Using FXSmooth on 1 bit image creates 24 bit
Using FXSmooth on 1 bit image creates 24 bit
Hi,
I am using the FxSmooth() function on a 1 bit image and afterwards the image bit depth is 24.
Why is that and how can I get back to the original bit depth?
I am using the FxSmooth() function on a 1 bit image and afterwards the image bit depth is 24.
Why is that and how can I get back to the original bit depth?
Re: Using FXSmooth on 1 bit image creates 24 bit
Hi,
FxSmooth somehow changes the value of a pixel with kind of average values of the neighborhood. It usually make sense for color and greyscale images, it is not often used for black and white image. For black and white images, a pixel is either black, either white, there's no real place for averages.
Now if you still want to apply smooth and get a 1bpp image, you will have to make use of the ConvertTo1Bpp method: https://www.gdpicture.com/guides/gdpicture/web ... o1Bpp.html
Regards,
David
FxSmooth somehow changes the value of a pixel with kind of average values of the neighborhood. It usually make sense for color and greyscale images, it is not often used for black and white image. For black and white images, a pixel is either black, either white, there's no real place for averages.
Now if you still want to apply smooth and get a 1bpp image, you will have to make use of the ConvertTo1Bpp method: https://www.gdpicture.com/guides/gdpicture/web ... o1Bpp.html
Regards,
David
Re: Using FXSmooth on 1 bit image creates 24 bit
The same Effect occurs with SharpenFX.... From Black/White Image with BitDepth 1 (95kb) result an RGB Image with BitDepth 24 ( = 1.2 MB) which is pretty heavy. Should Sharpening not "rerender" edges and make them more lineal ?
Re: Using FXSmooth on 1 bit image creates 24 bit
That implies interpolation process which cannot happen on a 1bpp image since there is no other value but white or black hence the bitdepth increase.
Who is online
Users browsing this forum: No registered users and 1 guest