Solved

it is About the  DirectDraw

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

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

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…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
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.

734 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