Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

it is About the  DirectDraw

Posted on 1998-10-04
4
Medium Priority
?
216 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 40 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

Independent Software Vendors: 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

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
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. …
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 be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

963 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