I am able to display it on the screen and load it to an 2D array of ARGB longs using GetPixelArray2D but I don't need RGB data I need the 12 bit data (long) 2D array.
How can I achieve this?
First, 12 bit long data doesn't exist in any language.
Second, it is very hard to get array of pixel in 12bpp image. GdPicture provides many functions to handle these pixel within array of ARGB color. In 99% of cases, it is the best way to perform read & write operation within pixel data of any color depth image.
If you want to build your own pixel access function you need to use the low-level GetImageBits() method which returns a pointer to the data-bits of the bitmap:
http://guides.gdpicture.com/v5/gdpictur ... eBits.html
Note: This method is available since GdPicture V 5.2
Who is online
Users browsing this forum: No registered users and 10 guests