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. Advanced BitBlt problem...

Advanced BitBlt problem...

Scheduled Pinned Locked Moved Visual Basic
graphicscomperformancehelptutorial
1 Posts 1 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.
  • F Offline
    F Offline
    Fade Amit BS
    wrote on last edited by
    #1

    Now this is a tricky one, as i am puzzeled about this, i got BitBlt all figured out, i even wrote an article on how to use it HERE[^] BUT!:wtf: It won't work if the source is not on the screen itself you cannot use this code: Dim tmpBitmap as new BitMap(...,...,) tmpGraphics = Graphics.FromImage(tmpBitmap) < graphics object Now- Drawing to the Bitmap tmpGraphics.DrawString("Hellow World!",myFont,myBursh,0,0) Now Bliting tmpHdc = tmpGraphics.GetHdc() < create a device context BitBlt (TargetHdc ... tmpHdc ) it just wont work, it treats the source Hdc as an empty area in the memory, getting a blank image. Note that if i'm coping from a context that is on the screen everything is working just fine, and then i can use the context in memory to copy to and from, but if i want the originating image to be created in memory and then use it? i don't like the idea of loading and drawing images to the screen in order for me to use them Nothing worked for me and i have tried a lot of things. You can download the code i'm using to BitBlt things, it's a class i worte, again here[^] it copies and pastes. Any Ideas?:confused: Fade (Amit BS) Fade (Amit BS)

    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