1 Attachment(s)
{resolved} - BMP Bits n Bytes to RGB
right i've got this far with my image capture and cannot work out the best way to do this .... the user imports a BMP which is then converted to the following i can split the bmp into the exact grids but need to know how to get from a bmp format colours to RGB or Windows colours ...for rewriting back to the format of my files NOT bmp format ... its probably easy ... but this is the first time ive looked at image manipulation
here's the code the write the colours back to the BMP and a picture of the screen so you can see what i mean
VB Code:
' set blue
Marshal.WriteByte(scan0, firstByte, blue)
' set green
Marshal.WriteByte(scan0, firstByte + 1, green)
' set red
Marshal.WriteByte(scan0, firstByte + 2, red)
Re: BMP Bits n Bytes to RGB
i'm not 100% sure if this is what you're looking for but try the Drawing.ColorTranslator class
Re: BMP Bits n Bytes to RGB
ive got it .... picturebox.point will return the translated value .... many thanks any way
Re: {resolved} - BMP Bits n Bytes to RGB
Re: {resolved} - BMP Bits n Bytes to RGB
don't forget to mark the thread resolved if you have what you need.
Re: {resolved} - BMP Bits n Bytes to RGB