Hi all,
I have a picturebox with scalemode pixel
dim height as integer
dim width as integer
height = picbox.scaleHeight
width = picbox.scaleWidth
picbox.PaintPicture pic, 0, 0, height, width, 0, 0, picheight, picwidth
note: picheight and picwidth are the height and the width of pic (in pixel) that has been calculated with autosize picturebox in other form.
My problem is: the picture cannot be drawn for the entire picturebox... there is a gap on the right and bottom in the picturebox... why is it happens?
Note: my project is to zoom out the pic... to fit the picbox
Thanks