Solved

Creation of large bitmaps

Posted on 1999-01-05
2
351 Views
Last Modified: 2013-11-20
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
Comment
Question by:saju
2 Comments
 
LVL 3

Accepted Solution

by:
plaroche earned 100 total points
ID: 1327222
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
 

Author Comment

by:saju
ID: 1327223
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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question