[futurebasic] Graphic scaling question

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : November 1997 : Group Archive : Group : All Groups

From: Anton <antone@...>
Date: Mon, 17 Nov 97 16:42:15 -0600
  I'm attempting to scale a picture proportionally in a picture field for 
printing.  Setting up the field is easy.  What I'm having trouble with is 
determining the size of the original picture so that I can calculate the 
picture field rectangle.  The original picture is created in the program 
with picture on/picture off statements.  When I try to get the pictures 
rectangle using the method of the example in the handbook:

DIM rect.8
rect;8 = (myPict&)+_picFrame

I get numbers out like: 

rect.top% = 14080
rect.bottom% = -30768
rect.left% = 202
rect.right% = 206

  Also, if I run the program several times (and create the same picture 
everytime), the numbers change every time the program runs.  This leads 
me to believe that the numbers have nothing to do with the picture 
itself.  Can someone tell me what I'm missing?  Are the dimensions of a 
picture contained in the file, and can they be accessed easily?

  The final goal of this project is to check if the size of the original 
picture is larger than the printable area of the paper.  If not, I want 
to print the original picture, original size.  It so, I want to scale it 
proportionally so as not to distort the picture, but it should fit in the 
printable area.  Am I on the right track, or is there a better way to 
approach this?


Anton (a novice at everything) Ehrhardt