Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
corundum
Posted - Aug 27 2021 : 13:33:16 I'm not sure that this is specific to layers, but I'd like to be able to set the size of a drawing area (e.g, background layer???) to a standard paper size (say, US 8.5 x 11 inches) and keep the page fixed at that size (no expansion if a layer is moved outside the page size, for example). How would this be accomplished?
7 L A T E S T R E P L I E S (Newest First)
corundum
Posted - Sep 09 2021 : 20:06:23 Just getting back to this now. It's now working as expected. Thank you!
aleatprog
Posted - Sep 02 2021 : 03:43:46 Hi Greg,
once you see the size information in layer[0] (in Nigel's example: 500 x 500) your problem is solved as ImageEnView1.LayersCropped := True uses these values.
You also may use IELayerMView1.Update in order to see the updated situation in the attached ImageEnLayerMView.
When I set LayersCropped to True, I am able add draw shapes, but they don't draw. This can be replicated by adding the following line as the first line in FormCreate in the Layers_AllTypes demo:
ImageEnView1.LayersCropped := True;
A screenshot is attached.
Greg
xequte
Posted - Aug 27 2021 : 20:10:16 Hi
You can set the background image (layer[0]) to the desired size and then: