[thelist] .NET .SetPixel
Peter Brunone (EasyListBox.com)
peter at easylistbox.com
Fri Dec 8 11:39:38 CST 2006
Depends on what you want. If you want a standard color (and you've imported the System.Drawing namespace), you could do it this way:
Color.DarkBlue
If you want to use HTML RGB hex values, or if you don't want to have actual static color names lying around in code, you can use the FromName method:
Color.FromName("DarkBlue")
or
Color.FromName("#000066")
Cheers,
Peter
From: "Casey Crookston" caseyc at IntelliSoftmn.com
When setting the size of an image to be written to the sever, .SetPixel
requires three attributes: x as integer ,y as integer, color as
system.drawing.color)
I am unsure how to satisfy the color attribute. What would it actually
look like?
Where imglabel is the image in question:
imgLabel.SetPixel(576, 329, ????)
Thanks!
Casey
More information about the thelist
mailing list