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();
|
|
|