Results 1 to 4 of 4

Thread: point

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2007
    Posts
    259

    Angry point

    if I have a picturebox, I can do picturebox.point to get the colour of a certain place in the picture, but say if I just had a picture stored as an stdpicture, How could I get the colour of a certain place in the picture? I cant just do stdpicture.point.

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: point

    You are correct. The pixel color you want can be obtained two different ways
    1. Load or daw the picture into a DC (i.e., PictureBox) then use VB's Point or GetPixel API to retrieve the color
    2. Load the picture in a DIB (windows bitmap storage object), then retrieve the pixel via GetDIBits or other similar methods.

    The stdPicture object is simply a container for the image. That object has very few methods/procedures.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2007
    Posts
    259

    Re: point

    what is stdpicture.render then?

  4. #4
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: point

    Quote Originally Posted by Kaimonington
    what is stdpicture.render then?
    It is a function to draw the image within the stdPicture to a destination DC. That niffty function emulates many API functions (depending on what image type is in stdPicture): BitBlt, StretchBlt, DrawIcon, DrawIconEx and double BitBlts for transparent gifs -- once for mask, once for color.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

Posting Permissions

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



Click Here to Expand Forum to Full Width