Post

 Resources 

Console

Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VBGamer
 VBGamer
 Save an Image

Note: You must be registered in order to post a reply.

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List Spell Checker
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

   Insert an File
Check here to include your profile signature.
Check here to subscribe to this topic.
    

T O P I C    R E V I E W
PW7962 Posted - Jun 03 2006 : 10:44:55 AM
I'm trying to save my map as an image and am using this code:
'Save Map Image
Dim map As String
    With cdbSave  
        .DefaultExt = ".jpg"  
        .DialogTitle = "Save Map As..."  
        .Filter = "Map (*.jpg)"  
        .InitDir = App.Path  
        .ShowSave  
    End With
    map = cdbSave.FileName  
    Call SavePicture(picMap.Image, map)         'save image  

And when I use it it saves a blank image even if I have something drawn on it. Any suggestions?
4   L A T E S T    R E P L I E S    (Newest First)
Eric Coleman Posted - Jun 03 2006 : 9:15:55 PM
Use the .Refresh method, picture1.Refresh
PW7962 Posted - Jun 03 2006 : 8:44:01 PM
Ok now I can save the image, but while actually drawing to the picturebox I cannot see it until I save it.
Eric Coleman Posted - Jun 03 2006 : 2:43:40 PM
I don't know why, but sometimes the following will help
  
Set picMap.Picture = picMap.Image  
'before
    Call SavePicture(picMap.Image, map)         'save image  
  

And make sure that AutoRedraw is True like Walrus suggested.
Walrus Posted - Jun 03 2006 : 1:29:19 PM
Have you set picMap's AutoRedraw property to true?

VBGamer © Go To Top Of Page
This page was generated in 0.09 seconds. Snitz Forums 2000

Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.