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
 Layers[0] resize / scrollbar problem
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

MoritzH

1 Posts

Posted - Feb 15 2012 :  03:06:18  Show Profile  Reply
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?

fab

1310 Posts

Posted - Feb 15 2012 :  15:04:50  Show Profile  Reply
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();
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: