Hello,
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;
cmd.SetPalette(null);
Thanks
Frédéric
Changing bit depth
Re: Changing bit depth
Frédéric,
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: https://www.gdpicture.com/guides/gdpicture/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.
https://www.gdpicture.com/guides/gdpicture/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.
https://www.gdpicture.com/guides/gdpicture/GdP ... toBGR.html
Regards,
David
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: https://www.gdpicture.com/guides/gdpicture/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.
https://www.gdpicture.com/guides/gdpicture/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.
https://www.gdpicture.com/guides/gdpicture/GdP ... toBGR.html
Regards,
David
Who is online
Users browsing this forum: No registered users and 1 guest