Click here to Skip to main content
15,902,492 members
Home / Discussions / Graphics
   

Graphics

 
GeneralRe: Stereo Cameras and OpenCV Pin
MikeMarq8-Nov-08 9:07
MikeMarq8-Nov-08 9:07 
GeneralRe: Stereo Cameras and OpenCV Pin
Tim Craig8-Nov-08 14:50
Tim Craig8-Nov-08 14:50 
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 
I wouldn't recommend using GDI for transparency - it wasn't designed to accommodate such features.

Instead, I'd take a look at GDI+, an extension of the GDI library and is included with versions of Windows XP upwards, but can also be distributed as an executable with your app if the target OS is lower than this. It's also a good library to familiarise yourself with for the future due to its diverse graphics manipulation functions included.

Something like this could create a semi-transparent black rectangle:

SolidBrush solidBrush(Color(150, 0, 0, 0)); //Color format: Alpha, R, G, B
graphics.FillRectangle(&solidBrush, 0, 0, 100, 50); //brush, x, y, width, height


Take a look more at the SolidBrush() class, the FillRectangle() method.

Regards,
--Perspx


"I've got my kids brainwashed: You don't use Google, and you don't use an iPod." - Steve Ballmer

"Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen an angry penguin charging at them in excess of 100mph." - Linus Torvalds

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 
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 

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.