Questions tagged [directdraw]

DirectDraw is a deprecated API that used to be a part of Microsoft's DirectX API.

DirectDraw is used to accelerate rendering of graphics in applications. DirectDraw also allows applications to run fullscreen or embedded in a window such as most other MS Windows applications. DirectDraw uses hardware acceleration if it is available on the client's computer. DirectDraw allows direct access to video memory, hardware overlays, hardware blitters, and page flipping. Its video memory manager can manipulate video memory with ease, taking full advantage of the blitting and color decompression capabilities of different types of display adapters.

91 questions
3
votes
1 answer

Accessing DirectDraw surface memory directly in C#

I have a video capture card that works by periodically filling a user-specified buffer (a given memory address) with image data. That works for me in C++, because I can just give it a Surface.lpSurface pointer address and the capture card driver…
PHNSys
  • 31
  • 2
3
votes
2 answers

DirectDraw Overlays

Does anyone have a working example (code) of a DirectDraw overlay? Like something moving on the screen. I have been trying to find an example of DirectDraw overlaying usage and was unable to. Thank you.
Nick
  • 43
  • 1
  • 5
3
votes
1 answer

Rotate an Image in Windows Mobile Programming

Are there any mechanism within Windows Mobile programming to rotate a Bitmap? I would like to rotate this to any angle.
Kevin
  • 9,309
  • 12
  • 44
  • 51
2
votes
0 answers

converting images to dds on linux command line

I have a bunch of images in jpeg format and i would like to batch convert them to .dds (DirectDraw surface). Does anyone know a command line tool to achieve such a conversion?
sotn0r
  • 109
  • 6
2
votes
0 answers

directdraw clipper worked incorrectly in Win11

I create a clipper and setHWnd. Code like: m_ddraw->CreateClipper(0, &m_clipper, NULL); m_clipper->SetHWnd(0, wnd); m_primarySurface->SetClipper(m_clipper); In windows10, it worked correctly. But in windows11,sometimes it caused 引发的异常: 0xC0000005:…
psxc233
  • 21
  • 1
2
votes
1 answer

"Transparent" Windows Form flickers when in front of DirectDraw Video Surface

I have an application where, beyond my control, several Windows Forms have a TransparencyKey property set. When these windows cover (are in front of) another form which has a DirectDraw video surface, the foreground form flickers (partly showing the…
PNielsen
  • 123
  • 5
2
votes
2 answers

CreateSurface in DirectDraw returns E_INVALIDARG on x64

In the following code, hRet gets set to E_INVALIDARG when built for x64. The same code always works ok in 32 bit. The only clear difference in input is the sizeof ddsd, which is 4 bytes larger in 64 bit mode, because of a pointer size. HRESULT…
glutz
  • 1,889
  • 7
  • 29
  • 44
2
votes
3 answers

Where is the DirectDraw documentation?

I'm maintaining a legacy application, and I need to find the documentation for the IDirectDraw::SetCooperativeLevel function. (No, the Windows CE MSDN page doesn't cut it.) It's not in MSDN, it's not in the latest DirectX SDK documentation, and by…
Vladimir Panteleev
  • 24,651
  • 6
  • 70
  • 114
2
votes
2 answers

ActiveX HWND, DirectX WindowLess mode

I would like to render video in ActiveX control (not in pop-up DirectShow window). I have: IID_IVMRWindowlessControl IID_IVMRFilterConfig9 CLSID_VideoMixingRenderer9 I would like to set WindowLess mode, but I don't know how to get HWND of...,…
Non Blocking
  • 21
  • 1
  • 3
2
votes
2 answers

Delphi + webcam

I am looking for a way to use my webcam in delphi, primary for grabbing a picture, by some reason I cannot use TWAIN drivers.
Plastkort
  • 957
  • 1
  • 26
  • 40
2
votes
3 answers

Mix opengl and directdraw in different windows of the same application?

I'm developing an application with two windows: Window 1: Renders direct draw surfaces Window 2: I'd like to have it do pure OpenGL calls I don't want to mix OpenGL and DirectDraw in the same window. I see from the Open GL FAQ…
Jeff
2
votes
2 answers

Getting a Bitmap BitsPerPixel from IWICBitmapSource, IWICBitmap, IWICBitmapDecoder, wherever

I think the subject says it all. But in some detail, I am loading, manipulating, then displaying a bitmap, and was doing it in GDI. Now I want to add some speed, because it happens repeatedly. Many years ago, I used DirectX for other things, but…
SpacemanScott
  • 953
  • 9
  • 21
2
votes
1 answer

how can I detect the maximum size of overlay hardware via Direct Draw library?

how can I detect the maximum size of overlay hardware via Direct Draw library?
2
votes
1 answer

I need to write a .DDS file cross-platform, can someone point me to example?

I need to create a .DDS file with code that runs on both OSX and Windows. Although the format doesn't look difficult, I'd still like an example of writing the file. Note I don't need to read it, just write it. C or C++ and RGBA bitmap.
user51511
2
votes
4 answers

DirectX9, DirectDraw, Optimization?

First off, I'm programming a game. Currently in the render function there are two calls to two different functions. One renders some text, one renders sprites. On my computer (AMD Phenom(tm) II X4 955 Processor (4 CPUs), ~3.2GHz, 4096MB RAM DDR2,…
user247334
  • 57
  • 1
  • 7