PixelFormat.Format8bppIndexed produces grayscale image
PixelFormat.Format8bppIndexed produces grayscale image
When I use GdPicturePDF.RenderPageToGdPictureImage with PixelFormat.Format8bppIndexed, it produces grayscale image. If pixel format is PixelFormat.Format4bppIndexed - a color image is produced. Why GdPicture decides to create color table when 4 bpp are used and grayscale table when 8 bpp are used ? What is the fastest way to convert PDF page to color 8 bit indexed TIFF ?
Re: PixelFormat.Format8bppIndexed produces grayscale image
This is by design.
If you need a 8bpp color image you should render the page to a 32-bit bitmap, and then apply the color quantization algorithm of the GdPcitureImaging class: ConvertTo8bppQ().
If you need a 8bpp color image you should render the page to a 32-bit bitmap, and then apply the color quantization algorithm of the GdPcitureImaging class: ConvertTo8bppQ().
Who is online
Users browsing this forum: Baidu [Spider] and 1 guest