Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 370
  • Last Modified:

Creation of large bitmaps

Machine : Pentium 166 Mhz, 64MB SDRAM

Env      : Win 95
        24 bit Screen Resolution
        800 * 600 Display Resolution

Compiler: Visual C++ 5.0


I failed to create a 24 bit Device Dependent bitmap
of more than 2400 * 2400 size. I tried with following
functions

CreateBitmap
CreateCompatibleBitmap
CreateDIBitmap( after creating DIB of required size )

Could you please tell me why this is happening, and do
you have any solutions.


0
saju
Asked:
saju
1 Solution
 
plarocheCommented:
This gives a bitmap of 16.48 megabytes.

Checking the doc for the WIN32 CreateBitmap and CreateCompatibleBitmap calls you can read this:
Windows 95/98: The created bitmap cannot exceed 16MB in size.

That is your answer. Try your code under NT, you should not have any problems. If you do check the GetLastError() return code.
0
 
sajuAuthor Commented:
Thanks for the prompt answer

What about CreateDIBitmap function?


0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now