Search results for query: *

  • Users: davco
  • Order by date
  1. D

    Question Saving a drawn image on picturebox to file

    I have this code here that will add the picturebox to a file but there is only black where the image is supposed to be. Dim img As Image img = PB1.Image t = TBsave.Text Dim newBitmap As Bitmap = New Bitmap(x, y, PixelFormat.Format16bppRgb555) img = newBitmap...
  2. D

    Question Saving a drawn image on picturebox to file

    I am using vb .net 2003 and can draw on a picturebox just fine,but I can`t figure out how to save that drawing to a file.Can anyone help me out with this problem?:D
  3. D

    Image resizing

    I have an image resizing app and I need to keep the deminsions proportionate. How do I do that with this code? Private Sub Reduce(ByVal factor As Double) img = New Bitmap(img, New Size(50, 50)) picPhoto.Image = img Dim SizeKb As String ' To compute: size in Kb Dim ms...
  4. D

    calling subs

    vinnie is right,I want to paint from the click event. in the onpaint event I would have just forgotten the sub and just coded the painting in. Thanks vis , That is exactly what I was looking for. I haven`t been doing this long enough to figure some of this stuff out. Thanks vinnie,for helping...
  5. D

    calling subs

    Thanks a lot ,I`ll give it a run.
  6. D

    calling subs

    Could you elaborate a little bit on this subject,I am a beginner.
  7. D

    calling subs

    Thanks for the help but I just couldn`t get it to work.I keep getting the error:Object reference not set to an instance of an object.
  8. D

    calling subs

    Why can`t I get this to execute in the button1_click event? PublicSub AddCurveExample(ByVal e As PaintEventArgs) ' Create some points. Dim point1 AsNew Point(20, 20) Dim point2 AsNew Point(40, 0) Dim point3 AsNew Point(60, 40) Dim point4 AsNew Point(80, 20) ' Create an array of the points...
Back
Top