I am loading pictures onto some buttons but although I can scale the
images, when I load these to the button I only get a strip of the
picture. Different sizes of picture will give me a different size
strip. At first I thought I must be cropping the image rather than
scaling it but if I load the same image to a image control then it is
fine... blurry a bit but fine.
Any ideas appreciated as always.
img1 is Image = dLoadImage(Individuals.Photo)
xPHeight is numeric = img1..Height
xPWidth is numeric = img1..Width
xBHeight is numeric = {"BTN_"+sLoc}..Height*0.7
xScaleRatio is numeric = xBHeight/xPHeight
nWid is int = xPWidth*xScaleRatio
nHei is int = xPHeight*xScaleRatio
dResize(img1,nWid,nHei,drHomotheticExtended)
dEndDrawing(img1)
{"BTN_"+sLoc}..Image = dLoadImage(img1)