| Author |
Topic  |
|
|
bpolky
Malaysia
2 Posts |
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 |
|
|
xequte
    
39234 Posts |
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
|
 |
|
| |
Topic  |
|
|
|