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
 Change the palette to 256 color
 New Topic  Reply to Topic
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

brm121966

USA
64 Posts

Posted - Feb 10 2022 :  10:14:50  Show Profile  Reply
Hi Nigel. Thanks for the information. But how to use it. Where to add gPNGAlphaThreshold in the program? Thank you.

  ImageEnView1 := TImageEnView.Create(nil);
  with ImageEnView1 do begin
    IO.LoadFromFile( 'Cover.png' );
    Proc.Resample(400, 400, rfLanczos3, True);
    Proc.ConvertTo(256, ieThreshold);                //Reduce colors
    Proc.Sharpen(10,4);
    IEBitmap.PixelFormat := ie8p;                    // Set PixelFormat to 8bit
    IEGlobalSettings().AutoSetBitDepth := True;
    OutputFilename := 'Folder.png';
    IO.Params.PNG_Compression := 8;
    IO.SaveToFile(OutputFilename, ioPNG);           // Save it
    Free;
  end;

Rudolf
Go to Top of Page

xequte

38608 Posts

Posted - Feb 10 2022 :  21:19:31  Show Profile  Reply
Hi Rudolf

Anytime before saving to PNG.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

brm121966

USA
64 Posts

Posted - Feb 12 2022 :  21:21:12  Show Profile  Reply
Hi Nigel.
Compilation error. [dcc64 Error] U_Edit_Settings_File.pas(666): E2003 Undeclared identifier: 'gPNGAlphaThreshold'
what module should i connect?
There is no description in the help for gPNGAlphaThreshold.
Thanks.

Rudolf
Go to Top of Page

xequte

38608 Posts

Posted - Feb 13 2022 :  17:43:52  Show Profile  Reply
Hi Rudolf

Please add pngfiltw to your uses clause.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

brm121966

USA
64 Posts

Posted - Feb 14 2022 :  10:12:43  Show Profile  Reply
Hi Nigel.
Did not help. There is no mention of gPNGAlphaThreshold in ImageEn\Source.

Rudolf
Go to Top of Page

xequte

38608 Posts

Posted - Feb 15 2022 :  03:59:09  Show Profile  Reply
Hi Rudolf

You need to be using Beta 201 or newer. If you have downloaded the beta, ensure your Delphi library path points to the beta source folder.


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

brm121966

USA
64 Posts

Posted - Feb 15 2022 :  20:57:57  Show Profile  Reply
Hi Nigel.
I use.

ImageEn 10.3.0 Packages
--------------------------------
Version : 10.3.0.6203
Date : 2021/1/17
Target : Delphi XE5 64bit (c:\ProgramData\ImageEn\DelphiXE5_64\)
--------------------------------
www.ImageEn.com

Path library - C:\ProgramData\ImageEn\DelphiXE5_64
--------------------------------

Where can I get beta 201 version?

Thanks.


Rudolf
Go to Top of Page

xequte

38608 Posts

Posted - Feb 16 2022 :  14:33:59  Show Profile  Reply
I've emailed you the latest beta.



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

brm121966

USA
64 Posts

Posted - Mar 12 2022 :  15:08:46  Show Profile  Reply
Hi Nigel.
The new version (10.3.5) solved the problem.
Thanks.

Rudolf
Go to Top of Page

xequte

38608 Posts

Posted - Mar 12 2022 :  18:10:18  Show Profile  Reply


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