Advanced BitBlt problem...
-
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 BitmaptmpGraphics.DrawString("Hellow World!",myFont,myBursh,0,0)
Now BlitingtmpHdc = tmpGraphics.GetHdc()
< create a device contextBitBlt (TargetHdc ... tmpHdc )
it just wont work, it treats the sourceHdc
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)