Solved

it is About the  DirectDraw

Posted on 1998-10-04
4
205 Views
Last Modified: 2010-04-01
why I can't Create a direct draw surface larger than the screen resolution.
is it about a bad flaging method or what?
0
Comment
Question by:georgesy
4 Comments
 

Expert Comment

by:bwilkins081898
ID: 1174336
What Version Of DirectX are you programming for?
0
 

Expert Comment

by:ghakan
ID: 1174337
with DirectX you can't create surfaces wider than the width of the screen (the current mode).


0
 

Author Comment

by:georgesy
ID: 1174338
if can't create a surface wider and larger than the screen resolution then please help by telling me the methode to put a part of a bitmap(that is larger then the screen) on the screen.I have tryed to put it with the bitblt methode that copy from the bitmapHeader to a Ddrawsurface butit isn't fast enough to make a successful game.
0
 
LVL 2

Accepted Solution

by:
kinkajou earned 20 total points
ID: 1174339
You need to extract the part of the bitmap you want to display. The extracted portion needs to be the size of the current screen/mode. Use Direct Draw Blt function to display the extracted image. If this is somewhat foreign sounding, you may need to learn Direct Draw - get the SDK, which is free. The DirectX SDK 6.0 has many souce examples and tutorials.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

759 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

18 Experts available now in Live!

Get 1:1 Help Now