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. C#
  4. Getting Bitmap from WebBrowser2

Getting Bitmap from WebBrowser2

Scheduled Pinned Locked Moved C#
graphicscsharpc++tutorialquestion
2 Posts 2 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.
  • G Offline
    G Offline
    Gluber
    wrote on last edited by
    #1

    Hi there ! I want to embed the MS IE Control into my application ( as covered by some tutorials here ) However ih ave one special requirement. Is it possible to get a BITMAP ( System.Drawing.Bitmap ) from this control ? I need that because i want to store it in a Texture for Managed DX9 .... any clues on this one ? Of course it would also be great to do that even if the webbrowser was not visible on screen.. In C++ i did that already ( overridng WM_PRINT etc and copying the image data by hand ) But how to do this in C#/NET Thanks

    J 1 Reply Last reply
    0
    • G Gluber

      Hi there ! I want to embed the MS IE Control into my application ( as covered by some tutorials here ) However ih ave one special requirement. Is it possible to get a BITMAP ( System.Drawing.Bitmap ) from this control ? I need that because i want to store it in a Texture for Managed DX9 .... any clues on this one ? Of course it would also be great to do that even if the webbrowser was not visible on screen.. In C++ i did that already ( overridng WM_PRINT etc and copying the image data by hand ) But how to do this in C#/NET Thanks

      J Offline
      J Offline
      John Fisher
      wrote on last edited by
      #2

      If you've already done it in C++, the most efficient use of your time may be to wrap that code in a managed C++ object and then use that object from C#. John

      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