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
 I have some question,I'want help

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
ghhlovehyf Posted - Nov 05 2013 : 04:47:40
use Dephi xe2
ImageEn 4.14
now , have somequestion,please help me
I have create a form,then doubleclick form to open a new form
this new from ,before it show,I have write line
the first question
// when the new form show
self.imgEv1.select(105,55,370,266)
//then test
sx1 := self.imgEv1.selx1;
sx2 := self.imgEv1.selx2;
sy1 := self.ImagEv1.sely1;
sy2 ;= self.imagev2.sely2;

I think it should like this
sx1 = 105
sy1 = 55
sx2 = 370
sy2 = 266

but,it realy like this
sx1 = 151,sx2 = 401,sy1 = 401,sy2 =251

why ??


the second question:
//on the form show
this.imgev1.autofit := false;

//do this job
this.imagev1.Rotate(90,true);

at the first
the image can cover the panel,but after the rotate,it resize the imagesize and can't cover the panel


the third question
how to make the selecttion in the middle, and i can get the rectange's point?





3   L A T E S T    R E P L I E S    (Newest First)
ghhlovehyf Posted - Nov 06 2013 : 02:21:12
1#12289; You can convert them to screen coordinates with XBmp2Scr/YBmp2Scr
it work
ghhlovehyf Posted - Nov 05 2013 : 16:28:15
thank you ,i want to try
xequte Posted - Nov 05 2013 : 12:09:58
Hi

1. The selection refers to bitmap coordinates, which may not match the screen coordinates if the image has been zoomed or scrolled. You can convert them to screen coordinates with XBmp2Scr/YBmp2Scr

2. You can call ImageEnView1.Fit (or ImageEnView1.ShrinkToFit)

3. How about:

const
  Selection_Size = 0.2; // 20% of screen area
begin
  ImageEnView1.SelectionBase := iesbClientArea;
  ImageEnView1.Select(Trunc((0.5 - Selection_Size / 2) * ImageEnView1.ClientWidth),
                      Trunc((0.5 - Selection_Size / 2) * ImageEnView1.ClientHeight),
                      Trunc((0.5 + Selection_Size / 2) * ImageEnView1.ClientWidth),
                      Trunc((0.5 + Selection_Size / 2) * ImageEnView1.ClientHeight));


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