Results 1 to 6 of 6

Thread: Icons , picture boxes , changing 32x32 to 16x16

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Posts
    258
    please follow this to the original post

    Sorry for the inconvience ,

    []P
    Visual Basic 6 SP4 on win98se

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

  2. #2
    Member
    Join Date
    Oct 2000
    Posts
    47

    Red face image - strach = true

    i dont know for sure ..but maybe you can simply load a picture into
    image1
    setting the strech property to true
    than simply minimizing the image..

    i know this sounds just too easy ...but maybe it will work..



    although , i'm sure there are several API functions which does the job perfectly..(i dont know what are they..)
    DealMan

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Posts
    258
    I Need to shrink it .

    Visual Basic 6 SP4 on win98se

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

  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Code:
    Picture1.PaintPicture Picture2.Image, 0, 0, 16, 16, 0, 0, 32, 32, vbSrcCopy
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Posts
    258
    Thanks kedaman !
    maybe I'm asking wrong I used the API's to get the icon into the first box Then I tried your code here
    Code:
    retval = DrawIcon(pixDummy.hDC, 0, 0, hIcon)
                
                ' Although the icon's image is still visible, the icon itself is not in use.
                ' Therefore we destroy it to free up resources.
                retval = DestroyIcon(hIcon)
                pixDummy.PaintPicture pic_Little.Image, 0, 0, 16, 16, 0, 0, 32, 32, vbSrcCopy
                pic_Little.Refresh
    pic_little has autoredraw set to true but still fails to display the icon . What did I do wrong ?


    []P

    [Edited by PRIVATE1 on 11-11-2000 at 10:45 AM]
    Visual Basic 6 SP4 on win98se

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

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Posts
    258
    I Got it I confused the source and destination .


    thanks again
    Visual Basic 6 SP4 on win98se

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

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