Click here to Skip to main content
15,903,385 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionftp capability Pin
Ronr226-Nov-07 11:17
Ronr226-Nov-07 11:17 
AnswerRe: ftp capability Pin
Dave Kreskowiak26-Nov-07 17:03
mveDave Kreskowiak26-Nov-07 17:03 
QuestionVB.Net + Quicktime? Pin
Sorikan26-Nov-07 11:01
Sorikan26-Nov-07 11:01 
QuestionRemote Application Pin
asc1126-Nov-07 4:46
asc1126-Nov-07 4:46 
AnswerRe: Remote Application Pin
Dave Kreskowiak26-Nov-07 4:48
mveDave Kreskowiak26-Nov-07 4:48 
GeneralRe: Remote Application Pin
asc1126-Nov-07 9:03
asc1126-Nov-07 9:03 
GeneralRe: Remote Application Pin
Dave Kreskowiak26-Nov-07 9:45
mveDave Kreskowiak26-Nov-07 9:45 
QuestionIssue with saving image [modified] Pin
nishkarsh_k26-Nov-07 3:33
nishkarsh_k26-Nov-07 3:33 
Hello every one

I am phasing some issues while i am tring to save a image..

My application works as follows

It is a application in which i am using a tablet to to let the user write free hand
I am able to do the first part by creating a bitmap and graphic object. I am capturing points and drawing lines between them
My next objective is to load a existing image and let the user draw over it and save it...
I am able to do it but when i save it back it gives a GDI error as “A generic error occurred in GDI+.”
I also have a option to let the user clear the old image and create a new one. When i do it i am able to save

The codes are as follows

form load

'Lode a existing image
picDraw.Image = System.Drawing.Image.FromFile(im_path)

'Associating the graphics object to Picture box
bm = New Bitmap(picDraw.Width, picDraw.Height)

g = Graphics.FromImage(bm)

'Draw on the Graphics object.
g.FillRectangle(New SolidBrush(Color.White), _
0, 0, picDraw.Width, picDraw.Height)

'Load the prescription to be edited
g.DrawImage(picDraw.Image, 0, 0)



Clear the image

' Draw on the Graphics object.
g.FillRectangle(New SolidBrush(Color.White), _
0, 0, picDraw.Width, picDraw.Height)

picDraw.Image = Nothing

Save the image

'Update the picture box with the latest bitmap
bm = picDraw.Image

'Save the bitmap as Image on the stated path
bm.Save(path_string, System.Drawing.Imaging.ImageFormat.Gif)


There is a timer which executes after every 50 milliseconds, hear i load the bitmap's contents in the picture box
picDraw.Image = bm


Can any one plz hep me out


-- modified at 9:47 Monday 26th November, 2007
AnswerRe: Issue with saving image Pin
Luc Pattyn26-Nov-07 4:29
sitebuilderLuc Pattyn26-Nov-07 4:29 
GeneralRe: Issue with saving image Pin
nishkarsh_k26-Nov-07 4:54
nishkarsh_k26-Nov-07 4:54 
GeneralRe: Issue with saving image Pin
nishkarsh_k26-Nov-07 4:57
nishkarsh_k26-Nov-07 4:57 
GeneralRe: Issue with saving image Pin
nishkarsh_k26-Nov-07 5:26
nishkarsh_k26-Nov-07 5:26 
Questiondatatype conversion Pin
eyes200726-Nov-07 3:22
eyes200726-Nov-07 3:22 
AnswerRe: datatype conversion Pin
nishkarsh_k26-Nov-07 4:03
nishkarsh_k26-Nov-07 4:03 
QuestionInviare email con vbnet Pin
zagari26-Nov-07 1:51
zagari26-Nov-07 1:51 
AnswerRe: Inviare email con vbnet Pin
Vasudevan Deepak Kumar26-Nov-07 3:00
Vasudevan Deepak Kumar26-Nov-07 3:00 
Questioncannot-access-a-disposed-object Pin
eyes200725-Nov-07 23:59
eyes200725-Nov-07 23:59 
AnswerRe: cannot-access-a-disposed-object Pin
Christian Graus26-Nov-07 0:08
protectorChristian Graus26-Nov-07 0:08 
GeneralRe: cannot-access-a-disposed-object Pin
eyes200726-Nov-07 0:15
eyes200726-Nov-07 0:15 
GeneralRe: cannot-access-a-disposed-object Pin
ChandraRam26-Nov-07 1:42
ChandraRam26-Nov-07 1:42 
QuestionSession expires when server side folder is deleted Pin
C.Shivashankar25-Nov-07 23:49
C.Shivashankar25-Nov-07 23:49 
Questionmenu is not getting displayed properly Pin
soniasan25-Nov-07 23:36
soniasan25-Nov-07 23:36 
AnswerRe: menu is not getting displayed properly Pin
Christian Graus25-Nov-07 23:51
protectorChristian Graus25-Nov-07 23:51 
AnswerRe: menu is not getting displayed properly Pin
Fred_Smith26-Nov-07 3:44
Fred_Smith26-Nov-07 3:44 
QuestionState of form Pin
nishkarsh_k25-Nov-07 23:23
nishkarsh_k25-Nov-07 23:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.