Drawing apparatus and dotted line drawing method

Information

  • Patent Application
  • 20070229454
  • Publication Number
    20070229454
  • Date Filed
    July 28, 2006
    18 years ago
  • Date Published
    October 04, 2007
    17 years ago
Abstract
The challenge of the present invention is to prevent a crook line part of a dotted line from being displayed in half tone. The present invention is contrived to calculate a center coordinate of a texture pixel in a zone including a reference texture beginning point coordinate S_Begin as reference texture corrected beginning point coordinate S_Begin′. It is followed by calculating a center coordinate of a texture pixel in a zone including a reference texture end coordinate S_End as reference texture corrected end coordinate S_End′. A crook line part of a dotted line is drawn by fixing a reference coordinate to the S_Begin′ or S_End′ if a pixel to be drawn exists within a fixing section.
Description

BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 is a diagram showing a reference texture;



FIG. 2 is a description diagram of a conventional dotted line drawing method (1);



FIG. 3 is a description diagram of a conventional dotted line drawing method (2);



FIGS. 4A and 4B are diagrams showing a dotted line interpolated by a half tone;



FIG. 5 is a description chart of a problem in the case of filtering by a half tone;



FIG. 6 is a diagram showing a fundamental comprisal of a drawing apparatus according to an embodiment;



FIG. 7 is a block diagram of a drawing apparatus according to the embodiment;



FIG. 8 is a flow chart of a dotted line drawing process according to the embodiment;



FIGS. 9A, 9B and 9C are description charts of a beginning point coordinate and an end point coordinate of a reference texture;



FIGS. 10A and 10B are description chart of a coordinate of a crook line segment; and



FIG. 11 is a diagram exemplifying a drawing of a dotted line.


Claims
  • 1. A drawing apparatus equipped with the function of displaying a dotted line in gradation, comprising: a reference image storage unit for storing a reference dotted line image for drawing the dotted line;a judgment unit for judging whether or not a pixel to be drawn exists within a fixing section of a dotted line pattern; anda drawing unit for drawing a pixel within the fixing section of the dotted line pattern by fixing it to pixel data other than that of the reference dotted line image corresponding to a beginning point of the fixing section if the pixel to be drawn is judged, by the judgment unit, to exist within the fixing section of the dotted line pattern.
  • 2. The drawing apparatus according to claim 1, comprising: a first reference coordinate calculation unit for calculating a first reference coordinate of the reference dotted line image corresponding to the beginning point of the fixing section anda second reference coordinate calculation unit for calculating a second reference coordinate for designating pixel data of a specific foreground color pixel or background color pixel by applying a coordinate conversion process to the first reference coordinate calculated by the first reference coordinate calculation unit, whereinsaid drawing unit draws a crook line part of the dotted line by fixing the pixel within the fixing section to pixel data designated by the second reference coordinate.
  • 3. The drawing apparatus according to claim 1, comprising a dummy apex coordinate calculation unit for calculating a position which is advanced toward an inside from an edge part of a segment by a predetermined distance as a dummy apex coordinate of a dummy apex in the case of drawing the dotted line with a crook line part by using a plurality of segments, whereinsaid judgment unit judges whether or not the pixel to be drawn exists within the fixing section between the dummy apex and edge part of the segment.
  • 4. The drawing apparatus according to claim 1, comprising: a segment coordinate calculation unit for calculating a coordinate of an edge part of a segment in the case of drawing the dotted line with a crook line part by using a plurality of segments, anda dummy apex coordinate calculation unit for calculating a position which is advanced toward an inside from an edge part of the segment by a predetermined distance as a dummy apex coordinate of a dummy apex, whereinsaid judgment unit judges whether or not the pixel to be drawn exists within the fixing section between the dummy apex coordinate and coordinate of the edge part of the segment.
  • 5. The drawing apparatus according to claim 1, comprising: a segment coordinate calculation unit for calculating coordinates of both of edge parts of a segment in the case of drawing the dotted line with a crook line part by using a plurality of segments, anda dummy apex coordinate calculation unit for calculating a position which is advanced toward the center direction from both of edge parts of the segment by a predetermined distance as a dummy apex coordinate of a dummy apex on the beginning point side, or that of a dummy apex on the end point side, whereinsaid judgment unit judges whether or not the pixel to be drawn exists within the fixing section between the dummy apex coordinate of the end point of a first segment and the end edge of the first segment, or within the fixing section between the beginning edge of a second segment and the dummy apex coordinate on the beginning point side of a second segment.
  • 6. The drawing apparatus according to claim 1, comprising: a first reference coordinate calculation unit for calculating a first reference coordinate of the reference dotted line image corresponding to the beginning point of the fixing section, anda second reference coordinate calculation unit for applying a coordinate conversion process to the first reference coordinate calculated by the first reference coordinate calculation unit, thereby calculating a second reference coordinate of the center, or close thereto, of a zone of a foreground color or background color pixel, whereinsaid drawing unit draws a crook line part of the dotted line by fixing the pixel within the fixing section to pixel data designated by the reference coordinate if the pixel to be drawn is judged, by said judgment unit, to exist within the fixing section.
  • 7. The drawing apparatus according to claim 1, comprising: a first reference coordinate calculation unit for calculating a first reference coordinate of said reference dotted line image corresponding to the beginning point of the fixing section,a second reference coordinate calculation unit for calculating a second reference coordinate for designating pixel data of a specific foreground color pixel or background color pixel by applying a coordinate conversion process to the first reference coordinate calculated by the first reference coordinate calculation unit, anda dummy apex coordinate calculation unit for calculating a position which is advanced toward an inside from the end edge of said segment by a predetermined distance as a dummy apex coordinate on the end point side, or calculating a position which is advanced toward an inside from the beginning point of the segment by a predetermined distance as a dummy apex coordinate on the beginning point side, in the case of drawing the dotted line with a crook line part by using a plurality of segments, whereinsaid judgment unit judges whether or not a coordinate of the pixel to be drawn exists within the fixing section between the dummy apex coordinate on the endpoint side of a first segment and the end edge of the second segment, or within the fixing section between the beginning edge of a second segment following the first segment and the dummy apex coordinate on the beginning point side of the second segment, andsaid drawing unit draws a crook line part of the dotted line by fixing the pixel within the fixing section to pixel data designated by the second reference coordinate if the pixel to be drawn is judged, by said judgment unit, to exist within the fixing section.
  • 8. A dotted line drawing method displaying a dotted line in gradation, comprising: making a reference image storage unit store a reference dotted line image for drawing the dotted line;judging whether or not a pixel to be drawn exists within the fixing section of a dotted line pattern; anddrawing the pixel within the fixing section of the dotted line pattern by fixing it to pixel data other than that of the reference dotted line image corresponding to a beginning point of the fixing section if the pixel to be drawn is judged to exist within the fixing section.
  • 9. The dotted line drawing method according to claim 8, comprising: calculating a first reference coordinate of said reference dotted line image corresponding to a beginning point of the fixing section;calculating a second reference coordinate for designating pixel data of a specific foreground color pixel or background color pixel by applying a coordinate conversion process to the first reference coordinate; anddrawing a crook line part of the dotted line by fixing the pixel within the fixing section to pixel data designated by the second reference coordinate.
  • 10. The dotted line drawing method according to claim 8, comprising: calculating a position which is advanced toward an inside from an edge part of a segment by a predetermined distance as a dummy apex coordinate of a dummy apex in the case of drawing the dotted line with a crook line part by using a plurality of segments;judging whether or not the pixel to be drawn exists within the fixing section between the dummy apex and edge part of the segment; anddrawing the pixel within the fixing section by fixing it to pixel data of a specific foreground color or background color within said reference dotted line image in the case of the pixel to be drawn is judged to exist within the fixing section.
  • 11. The dotted line drawing method according to claim 8, comprising: calculating a coordinate of an edge part of a segment in the case of drawing the dotted line with a crook line part by using a plurality of segments;calculating a position which is advanced toward an inside from an edge part of the segment by a predetermined distance as a dummy apex coordinate of a dummy apex; andjudging whether or not the pixel to be drawn exists within the fixing section between the dummy apex coordinate and coordinate of the edge part of the segment.
  • 12. The dotted line drawing method according to claim 8, comprising: calculating coordinates of both of edge parts of a segment in the case of drawing the dotted line with a crook line part by using a plurality of segments;calculating a position which is advanced toward the center direction from both of edge parts of the segment by a predetermined distance as a dummy apex coordinate of a dummy apex on the beginning point side or that of a dummy apex on the end point side; andjudging whether or not the pixel to be drawn exists within the fixing section between the dummy apex coordinate of the end point of a first segment and the end edge of the first segment, or within the fixing section between the beginning edge of a second segment and the dummy apex coordinate on the beginning point side of the second segment.
  • 13. The dotted line drawing method according to claim 8, comprising: calculating a first reference coordinate of said reference dotted line image corresponding to the beginning point of said fixing section;calculating a second reference coordinate for designating pixel data of a specific foreground color or background color pixel by applying a coordinate conversion process to the first reference coordinate;calculating a position which is advanced toward an inside from the end edge of said segment by a predetermined distance, or a position which is advanced toward an inside from the beginning point of the segment by a predetermined distance, as a dummy apex coordinate on the end point side or as a dummy apex coordinate on the beginning point side, in the case of drawing the dotted line with a crook line part by using a plurality of segments;judging whether or not a coordinate of the pixel to be drawn exists within the fixing section between the dummy apex coordinate on the end point side of a first segment and the end edge thereof, or within the fixing section between the beginning edge of a second segment following the first segment and the dummy apex coordinate on the beginning point side of the second segment; anddrawing the crook line part of the dotted line by fixing the pixel within the fixing section to pixel data designated by the reference coordinate if the pixel to be drawn is judged, by said judgment unit, to exist within the fixing section.
  • 14. A drawing apparatus equipped with the function of displaying a dotted line in gradation, comprising: a reference image storage unit for storing a reference dotted line image for drawing the dotted line;a judgment unit for judging whether or not a pixel to be drawn exists within a fixing section of a dotted line pattern; anda drawing unit for drawing a crook line part of the dotted line by fixing the pixel within the fixing section to pixel data of a foreground color or background color pixel different from the reference dotted line image if the pixel to be drawn is judged, by the judgment unit, to exist within the fixing section of the dotted line pattern.
Priority Claims (1)
Number Date Country Kind
2006-089467 Mar 2006 JP national