Creating Image file

A

Ashok

Hi All..

I am working in developing an application that draw a image using
Drawline by joining the co-ordinates.

I am successfull in doing that. But i want to save the drawn image as
image file any of the format.

The following code snippet is used to draw the image...

Sub subMarkPoint(ByVal PicBox As PictureBox)

Dim bmp As New Bitmap(PicBox.Width, PicBox.Height)
Dim gr As Graphics = Graphics.FromImage(bmp)

Dim i As Integer

For i = 0 To (UBound(arrx) - 1)
gr.DrawLine(New Pen(Color.Green), arrx(i + 1), arry(i +
1), arrx(i), arry(i))
Next

PicBox.Image = bmp

End Sub

This will draw the image in picturebox

in that arrx() and arry() values are loaded dynamically.

so i need some tips and code snippets to make my work finish.


Thanks in advance....

Ashok
 
A

Ashok

Hi Chris,


Thanks for your reply....

I forget to mention a thing...

I am using VS2003 to develop the application. save() is not supported
in this......

Thanks once again....

Cheers,

Ashok
 
G

Guest

Then the answer is far from simple. You need to abandon the Bitmap class
and manage the bitmap bits manually, and it's not at all a fun process.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top