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
 Selection and Big image
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

graphman

259 Posts

Posted - Jan 25 2013 :  08:06:48  Show Profile  Reply
I have image with big height (40.000 pix).
I try to select part of image (Selection) but after 30.000 pix I don't see selection rectangle.

How to fix it?

fab

1310 Posts

Posted - Jan 28 2013 :  04:11:02  Show Profile  Reply
Please let me know following details:
- the image width
- the image bit depth (1 bit, 24 bit RGB, etc...)
- the zoom level (100?)
Go to Top of Page

graphman

259 Posts

Posted - Jan 28 2013 :  04:28:28  Show Profile  Reply
Width - 1950
1 bit/pixel
zoom - any value (10-400)
Go to Top of Page

fab

1310 Posts

Posted - Jan 28 2013 :  07:58:34  Show Profile  Reply
I'm sorry, I cannot replicate. I tried to select in several ways (up-left to down-right, up to 39999 pixel, and so on) but the selection is always visible. Maybe I am missing something?
Go to Top of Page

graphman

259 Posts

Posted - Jan 28 2013 :  09:42:34  Show Profile  Reply
I use

ImageEnView1->MouseInteract = TIEMouseInteract() << miSelect;
Go to Top of Page

graphman

259 Posts

Posted - Jan 28 2013 :  09:59:51  Show Profile  Reply
I can send you my test project.
Go to Top of Page

fab

1310 Posts

Posted - Jan 29 2013 :  23:31:00  Show Profile  Reply
Yes, please, send me your test project.
Go to Top of Page

graphman

259 Posts

Posted - Jan 30 2013 :  05:24:29  Show Profile  Reply
Attached.

New empty test file have height = 50000
Selection became invisible after 43000

Go to Top of Page

graphman

259 Posts

Posted - Jan 30 2013 :  05:56:13  Show Profile  Reply


Go to Top of Page

graphman

259 Posts

Posted - Jan 31 2013 :  16:55:24  Show Profile  Reply
Have you received my attached file?
Go to Top of Page

xequte

38611 Posts

Posted - Feb 01 2013 :  02:18:44  Show Profile  Reply
Hi

What address did you use?

If the attachment includes an EXE file, please send to nigel@xequte.biz

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

graphman

259 Posts

Posted - Feb 01 2013 :  04:47:27  Show Profile  Reply
I have ctreate answer here (forum) and attached zip-archiv.

I have resent to this e-mail
Go to Top of Page

fab

1310 Posts

Posted - Feb 01 2013 :  13:34:44  Show Profile  Reply
Now I can replicate, thank you!
It will be fixed in next release.

You can fix now opening imageenview.pas and replacing following methods:


function TIELayer.ConvXScr2Bmp(x:integer):integer;
var
  ieview: TImageEnView;
begin
  ieview := (fOwner as TImageEnView);
  if Width <> 0 then
    result := trunc( 1.0 * ieview.XScr2Bmp(x - trunc(PosX * ieview.fZoomD100X)) * Bitmap.Width / Width )
  else
    result := 0;
end;


function TIELayer.ConvYScr2Bmp(y:integer):integer;
var
  ieview: TImageEnView;
begin
  ieview := (fOwner as TImageEnView);
  if Height <> 0 then
    result := trunc( 1.0 * ieview.YScr2Bmp(y - trunc(PosY * ieview.fZoomD100Y)) * Bitmap.Height / Height )
  else
    result := 0;
end;


function TIELayer.ConvXBmp2Scr(x:integer):integer;
var
  ieview: TImageEnView;
begin
  ieview := (fOwner as TImageEnView);
  result := ieview.XBmp2Scr(trunc(1.0 * x * Width / Bitmap.Width)) + trunc(PosX * ieview.fZoomD100X); 
end;


function TIELayer.ConvYBmp2Scr(y:integer):integer;
var
  ieview: TImageEnView;
begin
  ieview := (fOwner as TImageEnView);
  result := ieview.YBmp2Scr(trunc(1.0 * y * Height / Bitmap.Height)) + trunc(PosY * ieview.fZoomD100Y);
end;
Go to Top of Page

graphman

259 Posts

Posted - Feb 01 2013 :  13:43:16  Show Profile  Reply
Thanks.
I will wait new release.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: