PDA

Click to See Complete Forum and Search --> : Picture Resizing in a Picture Box


cutamacious
Mar 22nd, 2002, 12:47 AM
Hi all

I want to Know how do we resize a picture in the Picture Box

SapphireGreen
Mar 22nd, 2002, 12:54 AM
Do you know anything about Bitblting? I can't tell you off the top of my head, but you'd use StretchBlt to acomplish it, I believe.

I'll let someone else do that, maybe Hack. I'm surprised to find him not online. :)

Killerguppy101
Mar 24th, 2002, 01:25 PM
yeah, I checked out strecthblt and it does work.

Public Declare Function StretchBlt Lib "gdi32" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal nSrcWidth As Long, ByVal nSrcHeight As Long, ByVal dwRop As Long) As Long

you use it pretty much the same way you use regular bitblt.
it is great for a drawing prog like paint, where you can zoom in.