Click here to Skip to main content
16,008,469 members
Home / Discussions / Graphics
   

Graphics

 
QuestionAnother DirectShow Problem Pin
KaldaP3-Nov-08 9:35
KaldaP3-Nov-08 9:35 
Questionorigami Pin
migraine2-Nov-08 3:06
migraine2-Nov-08 3:06 
AnswerRe: origami Pin
Tim Craig2-Nov-08 16:58
Tim Craig2-Nov-08 16:58 
AnswerRe: origami Pin
Smithers-Jones5-Nov-08 0:26
Smithers-Jones5-Nov-08 0:26 
QuestionTransparent rectangle in GDI Pin
Heptagonal1-Nov-08 13:17
Heptagonal1-Nov-08 13:17 
AnswerRe: Transparent rectangle in GDI Pin
Perspx1-Nov-08 13:54
Perspx1-Nov-08 13:54 
GeneralRe: Transparent rectangle in GDI Pin
Heptagonal1-Nov-08 21:58
Heptagonal1-Nov-08 21:58 
AnswerRe: Transparent rectangle in GDI [modified] Pin
Mark Salsbery1-Nov-08 16:05
Mark Salsbery1-Nov-08 16:05 
ummm....you are explicitly creating an opaque brush and then filling
a rect with it. There's nothing transparent about any of that Smile | :)

If you are trying to draw a hollow rect...
//untested - hopefully no typos :)

HPEN pen = CreatePen(PS_SOLID, 1, RGB(0x00, 0xD7, 0xEC));
HGDIOBJ oldpen = SelectObject(hdc, pen);
HGDIOBJ oldbrush = SelectObject(hdc, GetStockObject(HOLLOW_BRUSH));
Rectangle(hdc, r.left, r.top, r.right, r.bottom);
SelectObject(hdc, oldpen);
SelectObject(hdc, oldbrush);
DeleteObject(pen);


Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

modified on Saturday, November 1, 2008 10:12 PM

QuestionCImg Pin
jarabu30-Oct-08 17:27
jarabu30-Oct-08 17:27 
QuestionTCL\TK openGL Pin
pallaka28-Oct-08 22:52
pallaka28-Oct-08 22:52 
GeneralOpenCV Pin
ramvvs22-Oct-08 22:51
ramvvs22-Oct-08 22:51 
GeneralRe: OpenCV [modified] Pin
Tim Craig23-Oct-08 19:26
Tim Craig23-Oct-08 19:26 
QuestionOpenGL, DirectDraw or Direct3D Pin
Running Fool22-Oct-08 12:03
Running Fool22-Oct-08 12:03 
Questionopengl, loading picture on the surface. Pin
rkata20-Oct-08 4:47
rkata20-Oct-08 4:47 
QuestionMuscles in OpenGL Pin
Michael Fritzius18-Oct-08 10:19
professionalMichael Fritzius18-Oct-08 10:19 
QuestionSimple way to learn directx Pin
ripsware16-Oct-08 8:02
ripsware16-Oct-08 8:02 
AnswerRe: Simple way to learn directx Pin
KaldaP17-Oct-08 9:29
KaldaP17-Oct-08 9:29 
GeneralRe: Simple way to learn directx Pin
ripsware17-Oct-08 9:39
ripsware17-Oct-08 9:39 
GeneralRe: Simple way to learn directx Pin
Mark Salsbery18-Oct-08 9:20
Mark Salsbery18-Oct-08 9:20 
AnswerRe: Simple way to learn directx Pin
quakeboy29-Oct-08 0:04
quakeboy29-Oct-08 0:04 
Questiondrawing a room Pin
guyadika15-Oct-08 10:19
guyadika15-Oct-08 10:19 
AnswerRe: drawing a room Pin
guyadika15-Oct-08 10:20
guyadika15-Oct-08 10:20 
AnswerRe: drawing a room Pin
Alan Balkany16-Oct-08 3:45
Alan Balkany16-Oct-08 3:45 
QuestionExtrapolating lines to fill in missing sections Pin
Keith (MapMan)15-Oct-08 6:09
Keith (MapMan)15-Oct-08 6:09 
AnswerRe: Extrapolating lines to fill in missing sections Pin
Alan Balkany16-Oct-08 3:59
Alan Balkany16-Oct-08 3:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.