* * *

Author Topic: Retina / High DPI TBitmap  (Read 2042 times)

ps

  • Jr. Member
  • **
  • Posts: 57
Retina / High DPI TBitmap
« on: July 03, 2016, 08:45:40 am »
How to handle high DPI TBitmap for MacOS X?

I have problem with TBitmap see attachment.
Background is rendered on TBitmap with size of component. Text is painted with Canvas.TextOut(X,Y, 'Caption') and it's well rendered (except italics style). TBitmap size is same as component (TBitmap.Width := Self.Width) but in real it's half "real" width and height and result is uggly output. Target is Cocoa (under Windows target is all OK and TBitmap has real width and height 1px=1px).

« Last Edit: July 03, 2016, 08:47:32 am by ps »
IDE:  Lazarus 1.8 RC3/Trunk, Delphi XE OS:Windows 10, Ubuntu

lainz

  • Hero Member
  • *****
  • Posts: 2882
    • Home
Re: Retina / High DPI TBitmap
« Reply #1 on: December 13, 2017, 09:35:32 pm »
The same happens with BGRABitmap. So I see that this needs to be fixed for all kind of bitmaps. BGRABitmap uses TBitmap AFAIK.

Edit: Did not find a bug report, so I did one https://bugs.freepascal.org/view.php?id=32816
« Last Edit: December 13, 2017, 09:45:59 pm by lainz »

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus