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
 24bit color to 16/256 colors with dithering
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

suriyont

USA
18 Posts

Posted - Jul 16 2014 :  12:30:19  Show Profile  Reply
I am using ImageEn to replace out the old image library called Envision. What I am struck with is the ability to convert 24bit color to 16/256 colors with dithering applied. I tried ConvertTo() procedure and pass ieOrdered dithering method. It does not seem to do anything. Any help is appreciated.

PS: I've attached the sample 16-color dithered bmp file.

Suri





Suri M.

xequte

38598 Posts

Posted - Jul 16 2014 :  22:30:05  Show Profile  Reply
Hi Suri

Sorry, what do you mean by "it doesn't do anything"? Specifically what result do you get?



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

suriyont

USA
18 Posts

Posted - Jul 18 2014 :  06:15:04  Show Profile  Reply
Sorry, I was not being clear. That was the sample of the dithered image that I wanted to achieve. The new attached image is the one from ImageEn library.



Suri M.
Go to Top of Page

xequte

38598 Posts

Posted - Jul 24 2014 :  13:04:45  Show Profile  Reply
Hi Suri

Can you please attach an example of the source image (before ImageEn does the conversion)?




Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

suriyont

USA
18 Posts

Posted - Jul 25 2014 :  06:51:30  Show Profile  Reply
Hi Nigel,
Here is the 24-bit image uncompressed. Let me know if you need anything else:

./attach/suriyont/201472565010_24bitInvoice.zip

Suri M.
Go to Top of Page

w2m

USA
1990 Posts

Posted - Jul 25 2014 :  11:14:50  Show Profile  Reply
Here is your image converted to 256 colors. Is this ok?


Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

suriyont

USA
18 Posts

Posted - Jul 25 2014 :  13:50:38  Show Profile  Reply
Hi Bill,

Thanks for the attached sample. It does not seem to to have dithering process applied, though. With dithering, the gradient would look smoother. I am just trying to find out why ConvertTo() does not process the dithering as intended. Or does dithering only applies to B/W?

Thanks,
Suri

Suri M.
Go to Top of Page

xequte

38598 Posts

Posted - Jul 29 2014 :  17:54:57  Show Profile  Reply
Hi Suri

Please email me. Our latest beta can reduce colors using the Floyd-Steinberg dithering algorithm. You can call it as follows:

ImageEnView1.proc.ConvertTo(16, ieDithering);

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