Results 1 to 3 of 3

Thread: Picture Resizing in a Picture Box

  1. #1

    Thread Starter
    Addicted Member cutamacious's Avatar
    Join Date
    May 2001
    Location
    INDIA >> Andhra Pradesh >> Hyderabad
    Posts
    185

    Picture Resizing in a Picture Box

    Hi all

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

  2. #2
    Member SapphireGreen's Avatar
    Join Date
    Sep 2001
    Location
    I do not actually exist
    Posts
    45
    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.
    On Error Give Up

    Mind over matter. Then if it doesn't matter, you lose your mind.

  3. #3
    Lively Member
    Join Date
    Jan 2002
    Location
    USA all the way!
    Posts
    82
    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.
    Often talked of, never seen,
    Ever coming, never been,
    Daily looked for, never here,
    Still approaching, coming near,
    Thousands for its visit wait,
    But alas for their fate,
    Tho' they expect me to appear,
    They will never find me here.

    What's this about?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width