help!!!!!!!!
i did a
for i=1 to picture1.scaleh eight/2
picture1.pset (i,i)
next i
and the pset is shown on the picture
but when i use
savepicture picture1.pictur e,"c:\testing2. bmp"
the testing2.bmp doesn't show the pset line on the picture.......
daimler 6 6449
try setting autoredraw to true
- or saving Picture1.Image
On Tue, 9 Sep 2003 11:50:44 +0800, "daimler" <da*******@yaho o.com.sg>
wrote: help!!!!!!!!
i did a
for i=1 to picture1.scaleh eight/2 picture1.pse t (i,i) next i
and the pset is shown on the picture
but when i use
savepicture picture1.pictur e,"c:\testing2. bmp"
the testing2.bmp doesn't show the pset line on the picture.......
daimler
daimler <da*******@yaho o.com.sg> schreef in berichtnieuws 3f******@news.s tarhub.net.sg...
Hello Daimler, help!!!!!!!!
[Snip]
but when i use savepicture picture1.pictur e,"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.
already did the autodraw to true and saving picture1.image
but the pset on the picture still can't be save.
J French <er*****@nowher e.com> wrote in message
news:3f******** ******@news.btc lick.com... try setting autoredraw to true
- or saving Picture1.Image
On Tue, 9 Sep 2003 11:50:44 +0800, "daimler" <da*******@yaho o.com.sg> wrote:
help!!!!!!!!
i did a
for i=1 to picture1.scaleh eight/2 picture1.pse t (i,i) next i
and the pset is shown on the picture
but when i use
savepicture picture1.pictur e,"c:\testing2. bmp"
the testing2.bmp doesn't show the pset line on the picture.......
daimler
As others have pointed out, this code does work:
Picture1.AutoRe draw = True
For i = 1 To Picture1.ScaleH eight / 2
Picture1.PSet (i, i)
Next i
SavePicture Picture1.Image, "c:\testing2.bm p"
"daimler" <da*******@yaho o.com.sg> wrote in message
news:3f******@n ews.starhub.net .sg... help!!!!!!!!
i did a
for i=1 to picture1.scaleh eight/2 picture1.pset (i,i) next i
and the pset is shown on the picture
but when i use
savepicture picture1.pictur e,"c:\testing2. bmp"
the testing2.bmp doesn't show the pset line on the picture.......
daimler
On Tue, 9 Sep 2003 23:53:45 +0800, "daimler" <da*******@yaho o.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.AutoRe draw = True
Picture1.ScaleM ode = vbPixels
Picture1.DrawWi dth = 5
Picture1.PSet (10, 10), vbBlue
' ---
SavePicture Picture1.Image, Fle$
Picture2.Pictur e = LoadPicture(Fle $)
End Sub
now seem to work based on the codes below :)
thank you!!! ^_^
J French <er*****@nowher e.com> wrote in message
news:3f******** *******@news.bt click.com... On Tue, 9 Sep 2003 23:53:45 +0800, "daimler" <da*******@yaho o.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.AutoRe draw = True Picture1.ScaleM ode = vbPixels Picture1.DrawWi dth = 5 Picture1.PSet (10, 10), vbBlue ' --- SavePicture Picture1.Image, Fle$
Picture2.Pictur e = LoadPicture(Fle $) End Sub This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 another line, connecting User1's, and User2's current X,Y
position.
Same thing happens with User2.
But User3, and User4 is not drawing, and see...
|
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 then save as a file from
clipboard, it is work well in application,but don't work in a web
application. how can I to do? and are there other ideas...
|
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 to
save it as "untitled.bmp",
not jpeg the picture actually is :(
And if i do save it and then check it - it is actually bmp image, not
jpeg (it...
|
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 things that I like about VB.NET &
there are things that I don't like. I like to do graphics like plotting math
functions & fractals & stuff. VB has...
|
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.
Thank for ur help..
| |
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
lblMessage.Text = "<embed align=bottom src=""inc/u.swf"" ></embed>"
Dim fileName As String = f1.FileName
Try
savePath &= CInt(intPic) & "." & pasvand
...
|
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 picture box.
When they have finished they press a button to save the picture's into certain files called Module1.jpeg, Module2.jpeg and so on. These...
|
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 box.
using this code:-
'opens file dialog box to load selected jpeg into picture box
OpenFD.InitialDirectory = "C:\My Documents\My...
|
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 pixels(1 To ubx, 1 To uby) As Long
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |