Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Thu, 27 Mar 2008 07:10:00 -0700,    group: microsoft.public.win32.programmer.gdi        back       


PolyPolygon and PolyPolyline in GDI+   
I have a graphics app that uses GDI.   I would like to add support for color 
transparency.   All our GDI calls are in one place.  I would like to make a 
helper class that mimics all the drawing primitives:  Polygon, PolyPolygon, 
Rectangle, PolyLine, PolyPolyline, MoveTo, LineTo, etc.   Then I could update 
all our existing GDI calls to use the helper.   The helper class would 
determine if the primitive is using a transparent color or not and if so, use 
GDI+, otherwise, continue using GDI.

The problem is that there's not a one to one correspondence between GDI 
primitives and GDI+ primitives.  For example, GDI+ does not support 
PolyPolygon and PolyPolyline.   

1) Has anyone already created a helper class that maps GDI drawing calls to 
GDI+?
2) Where can I find a robust implementation of PolyPolyline and PolyPolygon 
for GDI+?

John
date: Thu, 27 Mar 2008 07:10:00 -0700   author:   John Lutz

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us