Results 1 to 3 of 3

Thread: [RESOLVED] resize picture not bigger than screen

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2007
    Posts
    261

    Resolved [RESOLVED] resize picture not bigger than screen

    hi all
    im trying to load my picture up and resize the picture so that it is not bigger than the screen i have tryed a couple of things with no look any help on this would be great

    Code:
    With Me
            .ScaleMode = vbPixels
        End With
        
        'Set up picturebox
        With pic
            .ScaleMode = vbPixels
            .AutoRedraw = True
            .AutoSize = True
            .DrawMode = vbInvert
            .DrawStyle = vbDashDot
    
           
            .MousePointer = vbCrosshair
            .Picture = LoadPicture("C:\temp.jpg")
        End With

  2. #2
    Addicted Member Vanasha's Avatar
    Join Date
    Jun 2007
    Location
    In a bin.>_>
    Posts
    152

    Re: resize picture not bigger than screen

    You can stretch the pic control, using the stretch property. So it always fits in the width and height of the control.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2007
    Posts
    261

    Re: resize picture not bigger than screen

    thanks for that will have a play and see how i go

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