ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Question about dithering with Floyd-Steinberg and Co.
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

MrDeveloper

Switzerland
17 Posts

Posted - Nov 17 2023 :  01:30:29  Show Profile  Reply
Hello Nigel and everyone else

I have a urgent question about the TImageEnProc.ConvertTo method. If I understand it correctly there are 3 overloaded versions I can use here. In one of the methods I can pass a custom palette as an array of TRGB.

My question is about TIEDitherMethod = ieDithering. Is the Floyd-Steinberg dithering applied here? If not, how can this be implemented?

The reason for my question is that I have to convert an image into 4 up to max. 6 fix defined possible colors and, due to the possible true color illusion, this e. g. would have to be best implemented with the Floyd-Steinberg algorithm. Or is there an even better algorithm for such a very limited number of colors?

Thank you for your ideas and support!

xequte

38203 Posts

Posted - Nov 19 2023 :  18:46:40  Show Profile  Reply
Hi

Yes, if you use ieDithering and the color count >2 and <= 256, then Floyd-Steinberg dithering is applied.

You can see the effect in the "Every Method" demo in the \Demos\ImageEditing\ folder.


Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: