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
 Canvas or IECanvas ?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

graph_man

328 Posts

Posted - May 11 2023 :  15:04:16  Show Profile  Reply
IEBitmap->Canvas
or
IEBitmap->IECanvas

What is better to use and why?

xequte

38613 Posts

Posted - May 11 2023 :  23:30:53  Show Profile  Reply
Hi

Canvas is a standard VCL TCanvas.

TIECanvas is a GDI+ based canvas:

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

Use TIECanvas whenever you can because it supports newer features, like anti-aliasing and advanced text drawing.

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

graph_man

328 Posts

Posted - May 12 2023 :  03:59:09  Show Profile  Reply
Thanks
Go to Top of Page

graph_man

328 Posts

Posted - May 17 2023 :  04:58:43  Show Profile  Reply
I began to change TCanvas to TIECanvas in the program and ran into a problem that they are not fully compatible.

For example TIECanvas does not work with
PolyBezier
Pixels
CopyMode
FloodFill
etc.

Could this be fixed?
Go to Top of Page

xequte

38613 Posts

Posted - May 17 2023 :  05:25:33  Show Profile  Reply
GDI+ does not support all the functionality of TCanvas, such as PolyBezier and CopyMode.

For Pixels, use TIEBitmap.Pixels[]

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


For FloodFill, you can use TImageEnProc.CastColor:

https://www.imageen.com/help/TImageEnProc.CastColor.html

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