P
Peted
hi
im doing some stuff in visula c++ 2008
Im hoping someone can direct me to an algorithm to draw an onscreen
grid that has equal squares like a testpattern regardless of the
current resolution
I can get the curren screen res
I can draw a grid ok to
but i cant work out how to draw a neat grid with all the squares equal
size, all fitting neatly onscreen with no cut offs. the squares dont
have to be any specific size (other than i want to have 2
testpatterns, on with "large" squares and one with "small squares")
but they all need to be equal with no cutoffs
and it has to be calculated in any screen resolution a user may
select.
any advice appreciated
thanks
Peted
im doing some stuff in visula c++ 2008
Im hoping someone can direct me to an algorithm to draw an onscreen
grid that has equal squares like a testpattern regardless of the
current resolution
I can get the curren screen res
I can draw a grid ok to
but i cant work out how to draw a neat grid with all the squares equal
size, all fitting neatly onscreen with no cut offs. the squares dont
have to be any specific size (other than i want to have 2
testpatterns, on with "large" squares and one with "small squares")
but they all need to be equal with no cutoffs
and it has to be calculated in any screen resolution a user may
select.
any advice appreciated
thanks
Peted