473,500 Members | 1,668 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

help: can't save picture with pset on it

help!!!!!!!!

i did a

for i=1 to picture1.scaleheight/2
picture1.pset (i,i)
next i

and the pset is shown on the picture

but when i use

savepicture picture1.picture,"c:\testing2.bmp"

the testing2.bmp doesn't show the pset line on the picture.......

daimler

Jul 17 '05 #1
6 6439
try setting autoredraw to true

- or saving Picture1.Image

On Tue, 9 Sep 2003 11:50:44 +0800, "daimler" <da*******@yahoo.com.sg>
wrote:
help!!!!!!!!

i did a

for i=1 to picture1.scaleheight/2
picture1.pset (i,i)
next i

and the pset is shown on the picture

but when i use

savepicture picture1.picture,"c:\testing2.bmp"

the testing2.bmp doesn't show the pset line on the picture.......

daimler


Jul 17 '05 #2
daimler <da*******@yahoo.com.sg> schreef in berichtnieuws
3f******@news.starhub.net.sg...

Hello Daimler,
help!!!!!!!!
[Snip]
but when i use
savepicture picture1.picture,"c:\testing2.bmp"
the testing2.bmp doesn't show the pset line on the picture.......


J. French gave you the solution, and I'm going to tell you why.

Start your app, so it shows the drawing. Now open-up any other app (I
suggest notepad), and place it ontop of your drawing. Close notepad.

Now where has your drawing gone ?

Answer : Your drawing was *only present on the desktop*, and was/is not
stored into the picture-box. As such a save of the picture-boxes contents
does not store the drawing ...

Setting "AutoRedraw" to true means that your drawing is copied/stored in the
picture-boxes memory, and as such can be saved into the BMP.

I hope the above clarifies it somewhat.

Regards,
Rudy Wieser

P.s.
Maybe you could allso take a look at (the difference between) the "picture"
and "image" properties of the picturebox.

Jul 17 '05 #3
already did the autodraw to true and saving picture1.image

but the pset on the picture still can't be save.

J French <er*****@nowhere.com> wrote in message
news:3f**************@news.btclick.com...
try setting autoredraw to true

- or saving Picture1.Image

On Tue, 9 Sep 2003 11:50:44 +0800, "daimler" <da*******@yahoo.com.sg>
wrote:
help!!!!!!!!

i did a

for i=1 to picture1.scaleheight/2
picture1.pset (i,i)
next i

and the pset is shown on the picture

but when i use

savepicture picture1.picture,"c:\testing2.bmp"

the testing2.bmp doesn't show the pset line on the picture.......

daimler

Jul 17 '05 #4
As others have pointed out, this code does work:

Picture1.AutoRedraw = True

For i = 1 To Picture1.ScaleHeight / 2
Picture1.PSet (i, i)
Next i

SavePicture Picture1.Image, "c:\testing2.bmp"

"daimler" <da*******@yahoo.com.sg> wrote in message
news:3f******@news.starhub.net.sg...
help!!!!!!!!

i did a

for i=1 to picture1.scaleheight/2
picture1.pset (i,i)
next i

and the pset is shown on the picture

but when i use

savepicture picture1.picture,"c:\testing2.bmp"

the testing2.bmp doesn't show the pset line on the picture.......

daimler

Jul 17 '05 #5
On Tue, 9 Sep 2003 23:53:45 +0800, "daimler" <da*******@yahoo.com.sg>
wrote:
already did the autodraw to true and saving picture1.image

but the pset on the picture still can't be save.


Private Sub Command1_Click()
Const Fle$ = "c:\tt\test.bmp"

Picture1.AutoRedraw = True
Picture1.ScaleMode = vbPixels
Picture1.DrawWidth = 5
Picture1.PSet (10, 10), vbBlue
' ---
SavePicture Picture1.Image, Fle$

Picture2.Picture = LoadPicture(Fle$)
End Sub

Jul 17 '05 #6
now seem to work based on the codes below :)

thank you!!! ^_^

J French <er*****@nowhere.com> wrote in message
news:3f***************@news.btclick.com...
On Tue, 9 Sep 2003 23:53:45 +0800, "daimler" <da*******@yahoo.com.sg>
wrote:
already did the autodraw to true and saving picture1.image

but the pset on the picture still can't be save.


Private Sub Command1_Click()
Const Fle$ = "c:\tt\test.bmp"

Picture1.AutoRedraw = True
Picture1.ScaleMode = vbPixels
Picture1.DrawWidth = 5
Picture1.PSet (10, 10), vbBlue
' ---
SavePicture Picture1.Image, Fle$

Picture2.Picture = LoadPicture(Fle$)
End Sub

Jul 17 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2710
by: C. Alexander | last post by:
I'm making a 'whiteboard' application. I'm trying to have 2+ connected users able to draw at the same time. However, if User1 draws a line, when User2 is drawing, on User1 screen, it will draw...
2
2449
by: zheng | last post by:
ÇçÌì I have a word document and it has a picture object, I want save the picture object as other single picture file by C# program. I have a idea, by clipboard, copy the picture to clipboard, and...
9
10688
by: b007uk | last post by:
Hi! Really need help, dont know whats wrong :( I am trying to show images using php script, it works fine, pictures are shown, but if i right click on it and choose "save picture as" it offers me...
4
6672
by: pcnerd | last post by:
I've been playing with "classic" VB since version 3. I have VB6 Learning Edition. Recently, I wanted to try VB.NET. I got a beginner's book with a CD with the software & installed it. There are...
1
2580
by: candice | last post by:
Hallo, I'm beginner and need help to do my project. I want to ask that how to save picture or image into database and can display back again form load when need call the picture from the database. ...
5
1957
by: arashkey | last post by:
Before this topic I save the picture with this code Dim savePath As String = Server.MapPath("picture\") If (f1.HasFile) Then pnlUpload.Visible = False ...
2
1155
by: blazingmavrick | last post by:
Hi My problem consits of the following:- i am creating mulitple picturebox's, when the user double clicks on the picture box it opens the opendialog box to load a picture (jpeg only) into the...
1
1887
by: blazingmavrick | last post by:
My problem consits of the following:- i am creating mulitple picturebox's, when the user double clicks on the picture box it opens the opendialog box to load a picture (jpeg only) into the picture...
0
7223
debasisdas
by: debasisdas | last post by:
Add two picture boxes to a form. Set the ScaleMode property of both the pictureboxes to 3-Pixels. General declaration -------------------------------- Const ubx = 1000 Const uby = 500 Dim...
0
7134
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7180
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6905
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7395
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5485
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4609
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3103
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1429
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
667
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.