Home > Software engineering >  A question about array, seek solutions
A question about array, seek solutions

Time:09-29


Click the grid can fill the corresponding color in the grid, simulation button and then click can you draw the graphics in the grid below the corresponding position, with the color of the corresponding grid under the graphics,,,

To draw graphics,
Question: how grid array defined as a (1 to 1 to m, n), and then assigned to the same color of grid, such as black grid a (I, j)=1, a (I, j)=2 red grid... , is the result of the graphics fill in
Wait, mua,,,,

CodePudding user response:

Your grid is that what east?

CodePudding user response:

With array, directly to the grid, is actually the source graphics and the mapping of the grid pattern,

The proportion relation between the key parameter is, if a source pixels, corresponds to a grid, is the simplest case, if it is a multiple source pixels corresponding to a grid, consider different colors of pixels to the synthesis of a grid point algorithm,

Finally, want to consider both the origin of the corresponding problem, also is to make the mapping to the grid graphics to translation,
  • Related