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
 TIEBitmap Canvas acccess
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

kowal

Poland
34 Posts

Posted - Aug 30 2023 :  13:10:29  Show Profile  Reply
Hi,
I'd like to do some operations on the new created IEBitmap i.e. draw some symbols to use them later in my application.
But I can not access the IEBitmap canvas.

here is the snippet of my code

procedure Tfienv.ietest1Click(Sender: TObject);
var iebmp: tiebitmap;
begin
iebmp := tieBitmap.Create;

// I got av error here - the Canvas property is nil
iebmp.Canvas.Brush.Color := clBlack;
iebmp.Canvas.Pen.Color := clWhite;
end;

How can I create an image using TIEBitmap?

regards
S. Kowalski

xequte

38457 Posts

Posted - Aug 30 2023 :  18:43:48  Show Profile  Reply
Hi

Canvas requires a valid VclBitmap, so call iebmp.VclBitmap after creating to initialize it (this is automatic in the next update).

https://www.imageen.com/help/TIEBitmap.VclBitmap.html


However, rather than Canvas, you are better to use the GDI+ canvas instead:

https://www.imageen.com/help/TIEBitmap.IECanvas.html

It is much more powerful:

https://www.imageen.com/help/TIECanvas.html

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