imaging - How apply Color Lut over bitmap image in c# -
I am opening different types of images (8 and 16 bit) and they are (monochrome, RGB, palette color) .
I have raw pixel data of these pictures. I make bitmaps like this for 8-bit images.
// I am passing pixel formatting for monochromatic images. Format8bppIndexed // I am passing pixel formatting for RGB images. Format 24 BPRGB Pixel Format Format = Pixel format.format 8bppinxad; Bitmap BMP = new bitmap (img_width, image_hights, format); Rectangle = new rectangle (0, 0, eighth_width, img_height); // bitmap locking bitmap data on memory bmpData = bmp.LockBits (rect, ImageLockMode.ReadWrite, format); // Copy the bitmap image data martial to the managed byte array. Copy (raw pixels, 0, BMPData scans, raw pixels. Lang); Bmp.UnlockBits (bmpData); The problem is that when I drag that BMP image it is different from the original in the color. So there is no way to apply lurking tables on that colorful images.
I need an unsafe code because I have tried gitics and set pixels and they are very slow. I also do not want that image .fromSource () methods.
Take a look at the property of bitmap.
Comments
Post a Comment