Solved

Creation of large bitmaps

Posted on 1999-01-05
2
360 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

Technology Partners: 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

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

617 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