2 matches
Well, I would have surely tried CreateBitmap(), if it wasn't for it's arguments! I mean, for me at this stage, it will be quite difficult to figure out how to get all the arguments. I've just started off with VC++, and learning since 2 months! Anyway, I'm 100% sure the function is not returning a bitmap. I selected a huge font size (72), still it returned 4 as buffer size! Unless it uses some great compression technology, I don't think that's possible! So I feel it will be totally useless to use that function, since Get... will return the data in two-color bitmap, and I'm pretty sure about this.
I used the same function calls with GDI_NATIVE, and guess what! That one works perfectly![/b:7c66b9065c] So I feel the trouble is still with the DCs! I tried dc.CreateCompatibleDC( GetDC()); instead of NULL, but the result is the same.
Are there any alternate ways to get the bitmap (without displaying it anywhere, of course). If not, then I guess I'll have to use GDI_NATIVE, and spend some time in figuring out how it works. I know it's return type, but don't know as yet how to extract the information out of it! I can solve my problem with this, but it's not exactly what I was looking for.
Your replies have helped a lot, thanx for that! But the problem is still there!
|
Related keywords (10)
|