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
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 rotate, resize, add
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  


3 Posts

Posted - Jan 31 2024 :  14:07:45  Show Profile  Reply
New to ImageEN and I must admit a little confused. I am trying to figure out a simple project and I am not sure which components I shoul use:

1- load an image
2- rotate the image (make sure it is portrait not landscape)
3- resize the image
4- add a waternark
5- save the image

If anyone could point me in the right direction I would appreciate,

Thank you.



3 Posts

Posted - Jan 31 2024 :  15:58:22  Show Profile  Reply
Never mind. Found the methods I needed. used a TIEBitmap component:

1- LOAD:
2- ROTATE: used a TImageEnProc to rotate
3- RESIZE: iebmp.resample
4- WATERMARK: watermarkbitmap.DrawToIEBitmap
5- SAVE: iebmp.write

I used the rfLanczos3 filter for the Resample method it gave me a very good result.

Go to Top of Page


38046 Posts

Posted - Jan 31 2024 :  20:07:47  Show Profile  Reply

If you want to do it visually (i.e. user can see what is happening), use a TImageEnView:

1- LOAD: ImageEnView1.IO.LoadFromFile()
2- ROTATE: ImageEnView1.Proc.Rotate()
3- RESIZE: ImageEnView1.Proc.Resample()
4- WATERMARK: watermarkbitmap.DrawToIEBitmap( ImageEnView1.IEBitmap )
5- SAVE: ImageEnView1.IO.SaveToFile()

If you want to do it non-visually (e.g. processing the image only), use a TIEBitmap:

1- LOAD: iebmp.Read()
2- ROTATE: iebmp.Rotate()
3- RESIZE: iebmp.Resample()
4- WATERMARK: watermarkbitmap.DrawToIEBitmap( iebmp )
5- SAVE: iebmp.Write()

Xequte Software
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: