Results 1 to 2 of 2

Thread: SavePicture and Setpixel

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2000
    Location
    Gloucestershire, England
    Posts
    301
    1) I am plotting a graph onto a picture box using the SetPixel API. I am trying to save the picture box using the savepicture command, however when I save all I get is a blank picture box (no plots)

    Any ideas? Heres the code

    Private Sub cmdSave_Click()

    SavePicture Picture1.Image, InputBox("Save Graph as..", "Save As..", "C:\Cropped.bmp")

    End Sub

    (I`ve tried .picture but this does`nt work either)

    2) I also have a problem with AutoRedraw, when enabled (for the picturebox) setpixel does`nt seem to work (the picture box remains blank) if I turn AutoRedraw off setpixel works fine.


    Cheers for any help




  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2000
    Location
    Gloucestershire, England
    Posts
    301
    Fixed it now, I used Line instead (set to give me a double width pixel) then set Autoredraw to true. It must have been a problem with the SetPixel API.


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