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
 TImageEnView same code produces different sized fonts in different applications

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
bpolky Posted - Oct 31 2025 : 07:37:47
I have a code library that creates a watermark image.

IV := TImageEnView.Create(Nil);
IV.IEBitmap.Width := 1600;
IV.IEBitmap.Height := 1600;
TextStr := 'Copyright Copyright Copyright Copyright Copyright Copyright Copyright Copyright';
IV.IEBitmap.FillRect(0, 0, IV.IEBitmap.Width, IV.IEBitmap.Height, clBlack);
IV.IEBitmap.Canvas.Font.Name := 'Ariel';
IV.IEBitmap.Canvas.Font.Size := 16;
IV.IEBitmap.Canvas.Font.Color := clWhite;
IV.IEBitmap.Canvas.Font.Style := [];
IV.IEBitmap.Canvas.TextFlags := 0;
IV.IEBitmap.Canvas.Brush.Style := bsClear;
IV.IEBitmap.Canvas.TextOut(XPos, YPos, TextStr);

I call this code from different applications, but the font size produced is quite different.

It is on the same computer, so everything else should be the same.

Is there some default setting for the TImageEnView that could affect the size of the text that could explain this.



Bruce Polkinghorne
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Nov 02 2025 : 19:54:16
Hi

Hmm, a few things...

- Ensure you specify the name correctly or it may substitute, i.e. "Arial"
- Is ImageEnView1.Zoom 100% ?
- Can you save the result to file from these different computers and attach them?

Nigel
Xequte Software
www.imageen.com