ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Maximum IEBitmap Size
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

w2m

USA
1990 Posts

Posted - Jul 14 2013 :  09:12:49  Show Profile  Reply
I am drawing thumbnails to very large IEBitmaps and occasionally the drawing fails because the bitmap is too large. Is there a way to estimate the maximum size of a TIEBitmap so I can trap this kind of error?


William Miller

fab

1310 Posts

Posted - Jul 17 2013 :  12:52:37  Show Profile  Reply
How do you draw the thumbnails? If you use TCanvas (or TIECanvas) the limitation is the same of a TBitmap.
Otherwise the limitation is related to the allocable memory (see the other "2GB" topic).
Go to Top of Page

w2m

USA
1990 Posts

Posted - Jul 17 2013 :  15:48:56  Show Profile  Reply
Are you saying that when drawing on large IEBitmaps it is better to use
iIEBitmap.RenderToTIEBitmapEx(Form1.ImageEnView1.IEBitmap, x, y, iMaxX, iMaxY, 0, 0, iMaxX, iMaxY, 255, rfNone);
rather than
iIEBitmap.DrawToCanvas(Form1.ImageEnView1.Bitmap.Canvas, x, y);
?

Does it do any good to use {$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}
to provide up to a maximum of 4 GB memory in 32-Bit application?

William Miller
Adirondack Software & Graphics
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html
Go to Top of Page

fab

1310 Posts

Posted - Jul 18 2013 :  14:07:03  Show Profile  Reply
Yes, it is better to use TIEBitmap.RenderToTIEBitmapEx. It doesn't require a canvas doing the job directly inside the buffers.

It is good to use {$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}, of course, otherwise there is still the 2GB limitation.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: