|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
ID'ing color in a bitmapI import a bitmap into a .net. The bitmap is made up of black and
white pixels. Is there a way to test a single point on the bitmap and discover if it is in fact black or write? I basically want to test areas pixel by pixel. pmclinn wrote:
> I import a bitmap into a .net. The bitmap is made up of black and You can use the Bitmap.GetPixel() class which returns a Color object. > white pixels. Is there a way to test a single point on the bitmap and > discover if it is in fact black or write? I basically want to test > areas pixel by pixel. > You can use this color object to look at the RGB values. Depending on the bitmap this may mean that the R, G & B values are either 0 or 255 but more than likely they will be like close to 0 & 255. hope this helps. Chris "pmclinn" <pmcl***@gmail.com> schrieb: 'Bitmap.GetPixel'.>I import a bitmap into a .net. The bitmap is made up of black and > white pixels. Is there a way to test a single point on the bitmap and > discover if it is in fact black or write? I basically want to test > areas pixel by pixel. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/>
To use a combo ornot
Error: Login failed for user ???? How to retrive Outlook 2003 style gradient color schemes? Example of encryption Printing the contents of a textbox Copy List(Of type) to another List(Of type) Base Class Method to use Shadow'ed member variable of Derived Class? Reading a Webpage Source with Cyrillic Characters Serialization of Object Graph (Inheriting ArrayList) Get the Application Icon?? |
|||||||||||||||||||||||