Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Can you load an image from a pointer?

Can you load an image from a pointer?

Scheduled Pinned Locked Moved Visual Basic
csharpcomperformancequestion
3 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Joe Dean
    wrote on last edited by
    #1

    If an ActiveX control returns a pointer to a TIFF image and the size of the image (both integers), can a VB.NET App load the image from memory? There's no such thing as a bad beer... some are just better than others.

    C 1 Reply Last reply
    0
    • J Joe Dean

      If an ActiveX control returns a pointer to a TIFF image and the size of the image (both integers), can a VB.NET App load the image from memory? There's no such thing as a bad beer... some are just better than others.

      C Offline
      C Offline
      Corinna John
      wrote on last edited by
      #2

      If the pointer is the handle to a bitmap, you can use Image.FromHbitmap: intPtr = new IntPtr( pointer ) img = Image.FromHbitmap( intPtr )

      J 1 Reply Last reply
      0
      • C Corinna John

        If the pointer is the handle to a bitmap, you can use Image.FromHbitmap: intPtr = new IntPtr( pointer ) img = Image.FromHbitmap( intPtr )

        J Offline
        J Offline
        Joe Dean
        wrote on last edited by
        #3

        Of course... the ActiveX control returns a pointer to an in-memory TIFF image (not a bitmap). -Joe There's no such thing as a bad beer... some are just better than others.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups