Re: DirectDraw line drawing? Filled rectangles using xor,or,and ops?

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Fabian Schmied (REMOVETHISfabianDOTschmied_at_fhs-hagenbergDOTacDOTat)
Date: 08/21/04


Date: Sun, 22 Aug 2004 00:34:19 +0200


> Is it possible to draw lines using DirectDraw, and also using
> OR,XOR,AND operations? And, is it possible fill rectangles using
> OR,XOR,AND operations?
> thanks
> Matt

DirectDraw does not offer any line drawing facilities (although you can
fill rectangles to simulate drawing horizontal and vertical lines) and
it's rectangle filling support is very limited. So, no, it isn't, unless
you either use GDI or implement your own line/rectangle drawing algorithm.

Fabian



Relevant Pages

  • Re: How to draw to the screen not the form?
    ... For drawing the rectangles, you need to look at some of the usual ... In other words, use the XORPEN flag to draw it, then draw it again ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Having trouble with pens and brushes
    ... it seems you drawed the rectangles in the OnMouseUp ... If you draw in this method, ... WM_PAINT message will invoke PaintHandler again, ... rectangle drawing, so you will not see the rectangle. ...
    (microsoft.public.win32.programmer.gdi)
  • Re: Having trouble with pens and brushes
    ... it seems you drawed the rectangles in the OnMouseUp ... If you draw in this method, ... WM_PAINT message will invoke PaintHandler again, ... rectangle drawing, so you will not see the rectangle. ...
    (microsoft.public.win32.programmer.gdi)
  • Re: How to convert 2D GDI+ to DirectDraw
    ... The problem with every direct draw example I have seen is that they draw very fancy 3D images and I want a minimal DirectDraw program that just draws some rectangles, text, line segments and images with no fancy 3D projections, textures or lighting effects. ... Or you can create your own surface with CreateOffscreenPlainSurface() or CreateRenderTarget ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: CView and bitmap problem
    ... Please do not immediately dismiss this as a "put drawing code ... My drawing of rectangles and lines, and arcs, and all ... I can even draw bitmaps. ... However, when a window ocludes the bitmap, it is not refreshed, even ...
    (microsoft.public.vc.mfc)