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. COM
  4. IPictureDisp to byte array

IPictureDisp to byte array

Scheduled Pinned Locked Moved COM
data-structurestutorial
4 Posts 3 Posters 0 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.
  • V Offline
    V Offline
    vibindia
    wrote on last edited by
    #1

    how to convert IPictureDisp*   to byte array

    VIBIN "Fool's run away,where angle's fear to tread"

    S V 2 Replies Last reply
    0
    • V vibindia

      how to convert IPictureDisp*   to byte array

      VIBIN "Fool's run away,where angle's fear to tread"

      S Offline
      S Offline
      Stephen Hewitt
      wrote on last edited by
      #2

      One way would be to render it into a bitmap created using the CreateDIBSection[^] function. You could also try looking at the GetDIBits[^] function. With both of these you use the handle returned by the get_Handle method.

      Steve

      1 Reply Last reply
      0
      • V vibindia

        how to convert IPictureDisp*   to byte array

        VIBIN "Fool's run away,where angle's fear to tread"

        V Offline
        V Offline
        Vi2
        wrote on last edited by
        #3

        As a rule, the object implemented IPictureDisp implements also IPersist**** interface (IPersistStream, seems) which can help you.

        With best wishes, Vita

        S 1 Reply Last reply
        0
        • V Vi2

          As a rule, the object implemented IPictureDisp implements also IPersist**** interface (IPersistStream, seems) which can help you.

          With best wishes, Vita

          S Offline
          S Offline
          Stephen Hewitt
          wrote on last edited by
          #4

          That's an interesting suggestion, but if the implementation persists the image (say a compressed .jpg) as a compressed .jpeg you haven't got yourself a ready-to-use byte-array.

          Steve

          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