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
 CreateRGB - Undeclared identifier
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Soft

2 Posts

Posted - Sep 19 2017 :  10:33:11  Show Profile  Reply
Hello,
I am new to the Delphi world and have inherited a source code.
In the "uses" clause, the units that I believe are have been declared.
I find the following error:



uses
  Windows, Vcl.Dialogs, Vcl.Forms, System.SysUtils, Classes, Data.DBXFirebird, uni, Vcl.controls, imageenIO, ieview, imageenview, ievect, imageenproc,
  WinApi.WinSvc;
. . .
myIO := TImageEnIO.Create(nil);
   try
      myIO.LoadFromFileBMP(FileName);
      myIO.Update;
      myIO.Params.GIF_FlagTranspColor := True;
      myIO.Params.GIF_TranspColor := CreateRGB(255, 255, 255); <-- Error
      myIO.SaveToFileGIF(NewFileName);
      Result := true;
   finally
     myIO.Free;
     myIO := nil;
   end;


How can I solve that.
Thanks in advance.

w2m

USA
1990 Posts

Posted - Sep 19 2017 :  11:41:08  Show Profile  Reply
Add hyieutils to uses.

Look in the help file to find which unit a method is in.

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

Soft

2 Posts

Posted - Sep 19 2017 :  11:45:56  Show Profile  Reply
Hi w2m,
Thank you very much for responding so quickly.
I was doing this, when I received your response.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: