Click here to Skip to main content
15,908,834 members
Home / Discussions / Graphics
   

Graphics

 
GeneralRe: Drawing in background thread Pin
vineas22-Mar-07 20:19
vineas22-Mar-07 20:19 
QuestionExtracting specific image from tiff... Pin
PandemoniumPasha8-Mar-07 22:27
PandemoniumPasha8-Mar-07 22:27 
AnswerRe: Extracting specific image from tiff... Pin
PandemoniumPasha9-Mar-07 0:44
PandemoniumPasha9-Mar-07 0:44 
GeneralRe: Extracting specific image from tiff... Pin
Mogtabam10-Mar-07 21:07
Mogtabam10-Mar-07 21:07 
GeneralRe: Extracting specific image from tiff... Pin
Mark Salsbery11-Mar-07 9:16
Mark Salsbery11-Mar-07 9:16 
QuestionManaged DirectX DeviceResizing Pin
Dmitri Nеstеruk6-Mar-07 4:07
Dmitri Nеstеruk6-Mar-07 4:07 
QuestionMax Rectangles In Any Shape Pin
zbaum002-Mar-07 11:49
zbaum002-Mar-07 11:49 
AnswerRe: Max Rectangles In Any Shape Pin
John R. Shaw3-Mar-07 0:36
John R. Shaw3-Mar-07 0:36 
It sounds like you read a small paper of mine that was based on a piece of code (ellipses/circles/convex shapes) I wrote for doing exactly what you are talking about, but I only gave the paper to one person. Determining the number of rectangles for a circle or ellipse is not difficult [given the algorithm], provided that they consist of overlapping rectangles. Doing it for any shape gets a bit crazy and I have still not figured out that problem. The first thing you have to do (for any shape) is determine the boundaries, which means determining where each point on the edge will be drawn. Given the boundaries you must look for the all the horizontal lines that are adjacent to each other and of the same length, with the same starting and ending X values. It sounds fairly simple but it is way more complicated than that (for what I was trying to do). A good place to look is at algorithms for filling polygons like “Michael Abrash’s Graphics Programming”, He does not cover the subject you are asking about, but he does cover polygon edge scanning (polygon filling).

I am very curious as to what purpose you are applying this too and have kept my answer as general as possible, because I do not know the why.




INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra

GeneralRe: Max Rectangles In Any Shape Pin
zbaum004-Mar-07 10:38
zbaum004-Mar-07 10:38 
GeneralRe: Max Rectangles In Any Shape Pin
John R. Shaw9-Mar-07 8:35
John R. Shaw9-Mar-07 8:35 
AnswerRe: Max Rectangles In Any Shape Pin
Shog99-Mar-07 11:21
sitebuilderShog99-Mar-07 11:21 
QuestionHow to Connect DV Video Encoder to FileWriter Pin
Brooks Harris2-Mar-07 11:18
Brooks Harris2-Mar-07 11:18 
AnswerRe: How to Connect DV Video Encoder to FileWriter Pin
Mark Salsbery2-Mar-07 12:52
Mark Salsbery2-Mar-07 12:52 
GeneralRe: How to Connect DV Video Encoder to FileWriter Pin
Brooks Harris3-Mar-07 3:58
Brooks Harris3-Mar-07 3:58 
QuestionGDI+ Region::IsVisible() Pin
Mark Salsbery2-Mar-07 8:23
Mark Salsbery2-Mar-07 8:23 
AnswerRe: GDI+ Region::IsVisible() Pin
cmk2-Mar-07 10:44
cmk2-Mar-07 10:44 
GeneralRe: GDI+ Region::IsVisible() Pin
Mark Salsbery2-Mar-07 10:49
Mark Salsbery2-Mar-07 10:49 
GeneralRe: GDI+ Region::IsVisible() Pin
cmk2-Mar-07 10:56
cmk2-Mar-07 10:56 
GeneralRe: GDI+ Region::IsVisible() Pin
Mark Salsbery2-Mar-07 11:08
Mark Salsbery2-Mar-07 11:08 
QuestionHow can I find the exact colors of a grayscaled picture? Pin
JUNEYT1-Mar-07 9:16
JUNEYT1-Mar-07 9:16 
AnswerRe: How can I find the exact colors of a grayscaled picture? Pin
Mark Salsbery1-Mar-07 9:28
Mark Salsbery1-Mar-07 9:28 
AnswerRe: How can I find the exact colors of a grayscaled picture? Pin
El Corazon1-Mar-07 10:20
El Corazon1-Mar-07 10:20 
GeneralRe: How can I find the exact colors of a grayscaled picture? Pin
Mark Salsbery1-Mar-07 11:27
Mark Salsbery1-Mar-07 11:27 
GeneralRe: How can I find the exact colors of a grayscaled picture? Pin
El Corazon1-Mar-07 11:58
El Corazon1-Mar-07 11:58 
GeneralRe: How can I find the exact colors of a grayscaled picture? Pin
Mark Salsbery1-Mar-07 12:02
Mark Salsbery1-Mar-07 12:02 

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.