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
 working/saving with a predefined image size

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
aleatprog Posted - Jul 27 2021 : 12:28:18
Hi,

I need to load an image to a predefined space (e.g. 600x450 px) and add some image and text layers.

Questions:

1.) Is it possible to show in ImageEnView only the predefined area and hide those parts of a layer/background image which is excessing the predefined area?

2.) When saving as JPG, is it possible to save only those parts of the content which is located on the predefined area?

Al
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Aug 15 2021 : 17:55:30
Nice one, Al

Nigel
Xequte Software
www.imageen.com
aleatprog Posted - Aug 15 2021 : 16:06:42
Hi Nigel,

ad 1) solved with:
ImageEnView1.SoftCrop := iesfAlphaBlend;
ImageEnView1.SoftCropValue := 30;

ad 2) solved with
ImageEnView1.LayersCropped := True;
ImageEnView1.LayersMergeAll();
ImageEnView1.IO.SaveToFile(FileName);



Perfect for me. : )
Al
xequte Posted - Jul 28 2021 : 00:27:46
Hi Al

1. Do you mean like:

https://www.imageen.com/help/TImageEnView.VisibleBitmapRect.html

2. You would need to copy it to another bitmap, e.g.

// Save the visible bitmap in ImageEnView1 to JPEG
bmp := TIEBitmap.Create;
bmp.Allocate( IERectangle( ImageEnView1.VisibleBitmapRect ).Width,
              IERectangle( ImageEnView1.VisibleBitmapRect ).Height );
ImageEnView1.IEBitmap.DrawToTIEBitmap( bmp, 0, 0, IERectangle( ImageEnView1.VisibleBitmapRect ));
bmp.Write( 'D:\im.jpg' );
bmp.Free;


Nigel
Xequte Software
www.imageen.com