Results 1 to 2 of 2

Thread: PictureBox, Text & Saving

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 1999
    Location
    Vancouver, BC, Canada
    Posts
    84

    Post

    I just don't get it?!?!
    I have a picturebox called PicBox. The following code doesn't save the SAMPLE.

    PicBox.Picture = LoadPicture(App.Path & _ "\temp.bmp")
    PicBox.AutoRedraw = True
    PicBox.Print "SAMPLE"
    SavePicture PicBox, App.Path & "\temp.bmp"

    What's wrong...please!

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

    Post

    the Picture Property doesn't change, when you Print or Draw on the Picturebox using the Line or PSet Methods you are updating the Image, so you can either:
    Code:
    PicBox.Picture = LoadPicture(App.Path & _ "\temp.bmp")
    PicBox.AutoRedraw = True
    PicBox.Print "SAMPLE"
    SavePicture PicBox.Image, App.Path & "\temp.bmp"
    Or Force the Picture to Update, e.g.
    Picture1 = Picture1.Image
    Code:
    PicBox.Picture = LoadPicture(App.Path & _ "\temp.bmp")
    PicBox.AutoRedraw = True
    PicBox.Print "SAMPLE"
    PicBox = PicBox.Image
    SavePicture PicBox, App.Path & "\temp.bmp"
    ------------------
    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