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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 TIEBitmap Canvas acccess

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
kowal Posted - Aug 30 2023 : 13:10:29
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

1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Aug 30 2023 : 18:43:48
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