I looking for an equivalent of LeadTools command "ColorResolutionCommand".
This function is used to change the bits per pixel of an image.
Is it possible with GDPicture ?
Here is the LeadTools call:
ColorResolutionCommand cmd = new ColorResolutionCommand();
cmd.Mode = ColorResolutionCommandMode.InPlace;
cmd.BitsPerPixel = 24;
cmd.Order = RasterByteOrder.Bgr;
cmd.DitheringMethod = RasterDitheringMethod.None;
cmd.PaletteFlags = ColorResolutionCommandPaletteFlags.None;
Although the API is different than our beloved competitor, GdPicture.NET is obviously able to achieve such conversion.
You will see a number of methods related to this topic listed there: http://guides.gdpicture.com/content/web ... mbers.html
For instance the ConvertTo24BppRGB method converts a GdPicture image to a 24-bits color image. 8 bits each are used for the red, green, and blue components.
http://guides.gdpicture.com/content/GdP ... ppRGB.html
In case you need BGR, the SwapColorsRGBtoBGR method swaps the color components (RGB - > BGR) of a GdPicture image or of an area of a GdPicture image defined by SetROI() method.
http://guides.gdpicture.com/content/GdP ... toBGR.html
Who is online
Users browsing this forum: No registered users and 3 guests