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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Maximum IEBitmap Size

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
w2m Posted - Jul 14 2013 : 09:12:49
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
3   L A T E S T    R E P L I E S    (Newest First)
fab Posted - Jul 18 2013 : 14:07:03
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.
w2m Posted - Jul 17 2013 : 15:48:56
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
fab Posted - Jul 17 2013 : 12:52:37
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).