Home | About us | Overview | Softwares - Downloads | Evaluate | Order | Support | old forums | Contact | F.A.Q. | Documentations | Search | Sitemap

Focus question

Support for GdPicture Light Imaging Toolkit and GdPicture Pro Imaging ActiveX/SDK.

Focus question

Postby 2basix on Fri Apr 04, 2008 10:09 am

Hoi Loic,

I seem to have a problem with the autofocus...
I do not want the picture to get the focus.. but, It is still happening:

Here's what I do:
Code: Select all
        this.oPic.visible=.T.
         this.oPic.DisableAutoFocus
        this.opic.DisplayFromFile(cFileName)
   this.oPic.ViewerQualityAuto=.T.
       
        IF this.opic.ImageWidth>this.opic.width OR ;
          this.opic.ImageHeight>this.opic.height
          this.otb_gdview.cbFitwindow.value=1
          this.opic.setZoomFitControl()
        ELSE
          this.otb_gdview.cbFitwindow.value=0
          IF this.opic.ImageWidth<this.opic.width/2 OR ;
            this.opic.ImageHeight<this.opic.height/2
            this.opic.zoom=1.50
          ELSE
            this.opic.zoom=1.00
          ENDIF 


I think the problem is in the setZoomFitControl() function
I have noticed that when the picture is to large and i use the setZoomFitControl() function
to make it fit on my window, then the picture receives the focus...
It doesn't happen if the picture doesn't need a resize (when it is smaller then my window)

I use the 4.5 control.

Can you help me with that ?

thnx,

Leo
--== Keep IT Basic ==--
User avatar
2basix
 
Posts: 8
Joined: Wed May 23, 2007 2:23 pm
Location: Netherlands

Return to GdPicture [Pro] ActiveX

Who is online

Users browsing this forum: CRYNER and 1 guest