OK, I got the WIA thingy working etc. Now I have a problem. My app scans predefined forms which contain a small square for a signature and a paraf. Signature is divided from the paraf with a thin black line.
heres how the process goes:
1. scan a picture with a WIA compatible scanner
2. save entire A4 image in TIFF
3. again with WIA I crop the abovementioned square + save the Tiff and delete the original one, and load the crop into PictureBox
4. then I do this
the dividing line of the square is gone
then this:
It doesnt save the picture WITHOUT the dividing line (step 4. is ignored, although I see the picture after fillRectangle just as I want it!)
The question? How can I save my image from PicBox as I see it, with the dividing line cleared? If you like I can post some sample pics.
heres how the process goes:
1. scan a picture with a WIA compatible scanner
2. save entire A4 image in TIFF
3. again with WIA I crop the abovementioned square + save the Tiff and delete the original one, and load the crop into PictureBox
4. then I do this
Code:
Private Sub pictureBox1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs)
Dim g As Graphics = e.Graphics
g.FillRectangle(System.Drawing.Brushes.White, 529, 0, 7, PictureBox1.Bottom)
End Sub
then this:
Code:
Dim img As Image
img = PictureBox1.Image
img.Save("C:\enaa.TIFF", ImageFormat.Tiff)
It doesnt save the picture WITHOUT the dividing line (step 4. is ignored, although I see the picture after fillRectangle just as I want it!)
The question? How can I save my image from PicBox as I see it, with the dividing line cleared? If you like I can post some sample pics.