Solved

it is About the  DirectDraw

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
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 tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

864 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

23 Experts available now in Live!

Get 1:1 Help Now