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
 LayersLoadFromFile and LayersSaveToFile

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 19 2016 : 11:13:12
It is recommended that LayersSaveToFile and LayersLoadFromFile be modified to include a parameter AIncludeBaseLayer: boolean. My thinking is that layer 0 or the baselayer is not really a layer. It is a baseimage. If this is added then all the layers excluding the base layer could easily be added to an existing base image. This would be a useful feature to add which is easily coded.

function LayersLoadFromFile(const FileName: String; AIncludeBaseImage): Boolean;
procedure LayersSaveToFile(const FileName: String; CompressionFormat: TIOFileType; AIncludeBaseImage);

If AIncludeBaseImage is True then all layers are loaded or saved.
If AIncludeBaseImage is False then layers 1 to LayerCount are loaded or saved.

This can be achieved by creating a TimageEnView at runtime and loading the layers into the runtime then copying the layers to the designtime TimageEnView, but modified methods to achive this would be less cumbersome:
if iImageEnView.LayersCount > 1 then
  for i := 1 to iImageEnView.LayersCount-1 do
  begin
    iIndex := ImageEnView.LayersAdd;
    ImageEnView.Layers[iIndex].Assign(iImageEnView.Layers[i]);
  end;

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jul 26 2016 : 18:10:39
Hi Bill

Please see:

http://www.imageen.com/help/TIOParams.IEN_StoreBackground.html


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com