Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.


Welcome, Guest
Guest Settings
Help

Thread: TBitmap max size


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 2 - Last Post: Aug 10, 2017 4:20 AM Last Post By: bernard roussely Threads: [ Previous | Next ]
bernard roussely

Posts: 106
Registered: 2/8/05
TBitmap max size  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 9, 2017 8:00 AM
Hi,
Bitmaps seem to be limited to 8192 x 8192 pixels in RAD Studio. Is there an FMX component able to display bigger images?
Regards,
bernard
Alex Belo

Posts: 563
Registered: 10/8/06
Re: TBitmap max size  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 9, 2017 9:31 AM   in response to: bernard roussely in response to: bernard roussely
bernard roussely wrote:

Bitmaps seem to be limited to 8192 x 8192 pixels in RAD Studio.

What is PixelFormat?

Constructor of TBitmap sets pfDevice by default; such bitmaps use
(very) limited global GDI resources which size depends on video card
hardware and drivers.

Try setting pf24bit or pf32bit right after construction. In this case
bitmap will be in user's memory space and its size is limited only by
the amount of available virtual memory.

--
Alex
bernard roussely

Posts: 106
Registered: 2/8/05
Re: TBitmap max size  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 10, 2017 1:14 AM   in response to: Alex Belo in response to: Alex Belo
Alex Belo wrote:
Try setting pf24bit or pf32bit right after construction. In this case
bitmap will be in user's memory space and its size is limited only by
the amount of available virtual memory.

--
Alex

Hi Alex,
FMX doesn't have any "setter" function AFAIK for PixelFormat.
The "getter" returns 4, which is BGRA if I get the enum class order right.
Regards,
bernard

Note: I am unable to test VCL apps with bitmaps as they crash upon creation. See https://quality.embarcadero.com/browse/RSP-18622 for details.

Edited by: bernard roussely on Aug 10, 2017 1:19 PM
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02