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

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

pierrotsc

USA
497 Posts

Posted - Feb 15 2019 :  11:51:08  Show Profile  Reply
I may be doing something wrong but if i have an image taht is 200x500 pixels for example and i crop it to 50x50. When i check the size if the image, it still shows 200x500.

After the crop, i use
// show file properties
procedure TFMain.ShowPropertyIOParams(params: TIOParams);
var
  ss: string;
  mdim, bitcount: integer;
  fFileSize: integer;
  fFrames: integer;
begin
  if assigned(params) then
ss := IntToStr(params.Width) + ' x ' + IntToStr(params.Height) + ' pixel';

w2m

USA
1990 Posts

Posted - Feb 15 2019 :  12:05:24  Show Profile  Reply
How were the params assigned? I suspect this is causing the problem. If the params are set correctly your values will be correct.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

pierrotsc

USA
497 Posts

Posted - Feb 15 2019 :  12:07:49  Show Profile  Reply
if i use imageenview.iebitmap.width, i get the correct value. so i can work with that.
Go to Top of Page

xequte

38180 Posts

Posted - Feb 18 2019 :  01:52:38  Show Profile  Reply
Params are filled at load time, so image editing does not update them. IEBitmap.Width/Height are the correct properties.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: