Solved

Creation of large bitmaps

Posted on 1999-01-05
2
355 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Change owner from userA to server Local Administrators 7 74
move a line in eclipse 3 111
sum13 challenge 24 150
scoreUp challenge 14 74
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Suggested Courses

751 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