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
 Layers[0] resize / scrollbar problem

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
MoritzH Posted - Feb 15 2012 : 03:06:18
Hi,

I use TImageEnVect for a diagram editor with potentially large diagrams (multiple thousand pixels in each direction), thus I have to avoid assigning a bitmap this big to the canvas (layer 0) or I get an out of resources error, obviously.
Problem is, the scroll bars for navigating the imageen view always seem to use the layer 0 bitmap size, not the actual layer size. Otherwise I could simply use a small white bitmap and stretch it to any size I want to save resources.
So, is there any way to enable the imageen scroll bars without using a huge canvas bitmap?
1   L A T E S T    R E P L I E S    (Newest First)
fab Posted - Feb 15 2012 : 15:04:50
Hi,
with current version it is not possible.
From next minor release a new pixel format has been added (ieVirtual), which allow to create a big virtual bitmap (which does not allocate memory). This will solve your problem, using following code:

ImageEnView1.LegacyBitmap := false;
ImageEnView1.IEBitmap.Allocate(100000, 100000, ieVirtual);
ImageEnView1.CurrentLayer.Transparency := 0;
ImageEnView1.Update();