|
-
Jul 28th, 2000, 12:18 PM
#1
Thread Starter
New Member
I'm new to VB so please be patient.
I'm using Sam Huggil's GraphLite control in a test station program. I'd like to save the graph as an image file (any type). The control doesn't seem to have any image properties, so I put it inside a picture box and tried to use
SavePicture Picture1.Image <filename>
All I get is gray.
In my ignorance I also tried
SavePicture Picture1.Picture <filename>
and
Picture1.Picture = Picture1.Image
SavePicture Picture1.Picture <filname>
Still gray.
Does it just not work that way?
I suppose I could just take a screen shot of the whole window, but it would be neater if there was a way to just save the graph control's image. Is there?
And yes the data points are also saved to a file, and I could just recreate the graph, but my boss is like "Can we just save the graph from the test station?" So now I'm wondering if there's a way too.
-
Jul 28th, 2000, 11:35 PM
#2
transcendental analytic
Should be as easy as
Code:
Picture1.Picture = Picture1.Image 'Remove this if you have autoredraw
SavePicture Picture1.Picture, "C:\image.bmp"
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|