Results 1 to 3 of 3

Thread: Save a picture file from a picturebox (VB.NET)

  1. #1
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Bordeaux, France

    Save a picture file from a picturebox (VB.NET)

    I try create a plugin that read a QRCode !
    It run very well with a file read on my hard disk and i want to add the possibility to read a picture from a webcam !
    My webcam save well a frame into a picturebox but i can't to save my picture as a file !
    my picturebox's name is 'picImage' so i use the command:
    picImage.Image.Save("test.bmp", System.Drawing.Imaging.ImageFormat.Bmp)
    But my picture isn't saved !
    Where is my error please ?

    The error returned is:
    BCode Reader error: The reference of the object isn't defined as an object's instance .
    I suppose that i need to create an new object before my command save ?
    Last edited by pierrotm777; 01-08-2013 at 04:57 AM.

  2. #2
    Variable Bitrate
    Join Date
    Jul 2010
    Quick google search brought me to here:

    I love stackoverflow, very reliable... In regards to what was said there, are you drawing the image using the graphics class or setting the .Image of the picturebox? I know I've ran into the same problems in the past when drawing stuff with the graphics class.
    Current Worklog: TBA - '05 Rav4 (Mobo Dead). - Forums for Rav4 owners - Cooking website/forums
    -Basic forums live atm, come contribute!

  3. #3
    Mod - Driveline forum
    Auto Apps:loading...
    ClockWorK's Avatar
    Join Date
    Oct 2003
    Edit: Disregard. I only half-read the post because it's early and I'm not yet caffeinated.
    Last edited by ClockWorK; 01-08-2013 at 11:31 AM.

Similar Threads

  1. New skin file won't save?
    By Slider1385 in forum RR Skins
    Replies: 2
    Last Post: 02-06-2010, 03:03 PM
  2. How to save gas!
    By HiJackZX1 in forum Off Topic
    Replies: 2
    Last Post: 08-06-2008, 01:00 PM
  3. Old PC took a cr@p, how do I save the HDD?
    By HiJackZX1 in forum General Hardware Discussion
    Replies: 11
    Last Post: 03-27-2008, 02:57 PM
  4. How can I save Data to a file???
    By tolisn in forum Road Runner
    Replies: 19
    Last Post: 08-28-2007, 03:09 PM
  5. MPX Play best way to use file that have long file names ?
    By Vampyre in forum Software & Software Development
    Replies: 7
    Last Post: 09-16-2001, 03:39 PM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts