Results 1 to 2 of 2

Thread: Picture

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 1999
    Location
    LaGrangePark, IL, USA
    Posts
    5

    Post

    I have two questions:
    1) is there a way that i can store a pixel from a picture box picture and place it into another picture box?
    2)how can i save a picture box as a *.bmp

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    You can use the Point Method to Get the Color of a Pixel in a Picturebox and the PSet Method to Set a Pixel Color of a Picturebox, eg.

    Picture2.PSet(X, Y), Picture1.Point(X, Y) 'Copies a Pixel From Picture1 to Picture2

    To Save an Image in a Picturebox as a Bitmap, use the SavePicture Function, eg.

    SavePicture Picture1.Image, "C:\BMPS\MyBmp.bmp" 'Save the Image in Picture1 to the File "C:\BMPS\MyBmp.bmp" as a Bitmap.


    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]

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