Solved

it is About the  DirectDraw

Posted on 1998-10-04
4
209 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

828 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