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


  • Jr. Member
  • **
  • Posts: 69
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


  • Hero Member
  • *****
  • Posts: 2976
    • 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
« Last Edit: December 13, 2017, 09:45:59 pm by lainz »