Results 1 to 2 of 2

Thread: Change 32x32 to 16x16 icon

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Posts
    258
    Im trying to get an icon thats in a picture box thats 32 x 32 pixels into a picturebox thats 16 x 16 So I can load it into an image list and assighn it to the small icons properties of a list view . I have the icon it just the wrong size .

    any ideas ?

    []P
    Visual Basic 6 SP4 on win98se

    QUIT THE RAT RACE BECAUSE YOUR MESSING THE WORLD UP !!!!!

  2. #2
    Guest
    Use the PaintPicture method to shrink it or stretch it.
    Code:
    Private Sub Command1_Click()
        ScaleMode = vbPixels
        Picture2.ScaleMode = vbPixels
        Picture2.PaintPicture Picture1, 0, 0, 16, 16
    End Sub

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