Solved

Creation of large bitmaps

Posted on 1999-01-05
2
342 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
Comment Utility
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
Comment Utility
Thanks for the prompt answer

What about CreateDIBitmap function?


0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now