Desktop Functions: Smart Device Functions:
|
C# Signature:
[DllImport("gdi32.dll")] User-Defined Types:None. Notes:The SetPixel method sets the color of a specified pixel in this bitmap. Tips & Tricks:Please add some! Sample Code:[DllImport("gdi32.dll")] static extern int SetPixel(IntPtr hdc, int X, int Y, int crColor); public int ColorToRGB(Color crColor) {
return crColor.B << 16 | crColor.G << 8 | crColor.R; } private void button1_Click(object sender, EventArgs e) {
Graphics vGraphics = Graphics.FromHwnd(Handle); } Alternative Managed API:Do you know one? Please contribute it! Please edit this page!Do you have...
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).
|
|