Questions tagged [createdibsection]

19 questions
0
votes
3 answers

CreateDIBSection leaving 'Not enough storage' error, but seems to still work anyway

Whenever my app tries to create a DIB section, either by calling CreateDIBSection(), or by calling LoadImage() with the LR_CREATEDIBSECTION flag, it seems to return successfully. The HBITMAP it returns is valid, and I can manipulate and display it…
Doug Kavendek
  • 3,624
  • 4
  • 31
  • 43
0
votes
1 answer

CreateDIBSection is throwing, when trying to create cursor on Win

I am trying to create Cursor from png, and CreateDIBSection() is throwing. Follwoing is the snippet of code: HDC hdc = GetDC(NULL); void* lpBits = NULL; HBITMAP hBitmap; try { hBitmap = CreateDIBSection( hdc, (BITMAPINFO*)&bi, 0, &lpBits, …
Anaamika
  • 9
  • 1
-1
votes
1 answer

CreateDIBSection returns inconsistent bitmap bit values for the same image

This is an extended question about CreateDIBSection. I used it to get the bitMap bit value of the same image which drawn using Direct3D, to verify its consistency of Direct3D rendering, i.e. as long as I get the same bitMap bit value every time I…
MK 5012
  • 29
  • 1
  • 9
-3
votes
1 answer

How do i Use Fillrect or DrawText on 32bit HBITMAP in C++

i'm sorry for what i did. i edited. i'd like to use Fillrect on 32bit HBITMAP which is Created with CreateDIBSection but i can't make rect visible in color that i want to. (i Drawed a fillrect with CreateSolidBrush blue(RGB(0, 0, 255)) on 32bit…
1
2