Packages

 

com.aspose.imaging.fileformats.emf.emf.records

Classes

com.aspose.imaging.fileformats.emf.emf.records

Class EmfSetPolyFillMode

  • All Implemented Interfaces:
    com.aspose.imaging_internal.fileformats.emf.IRecord, Cloneable


    public final class EmfSetPolyFillMode
    extends EmfStateRecordType

    The EMR_SETPOLYFILLMODE record defines polygon fill mode.

    In general, the modes differ only in cases where a complex, overlapping polygon MUST be filled; for example, a five-sided polygon that forms a five-pointed star with a pentagon in the center. In such cases, ALTERNATE mode SHOULD fill every other enclosed region within the polygon (the points of the star), but WINDING mode SHOULD fill all regions (the points of the star and the pentagon). When the fill mode is ALTERNATE, the area between odd-numbered and even-numbered polygon sides on each scan line SHOULD be filled. That is, the area between the first and second side SHOULD be filled, and between the third and fourth side, and so on. When the fill mode is WINDING, any region that has a nonzero winding value SHOULD be filled. The winding value is the number of times a pen used to draw the polygon would go around the region. The direction of each edge of the polygon is significant.

    • Constructor Detail

      • EmfSetPolyFillMode

        public EmfSetPolyFillMode(EmfRecord source)

        Initializes a new instance of the EmfSetPolyFillMode class.

        Parameters:
        source - The source.
      • EmfSetPolyFillMode

        public EmfSetPolyFillMode()

        Initializes a new instance of the EmfSetPolyFillMode class.

    • Method Detail

      • getPolygonFillMode

        public int getPolygonFillMode()

        Gets or sets a 32-bit unsigned integer that specifies the polygon fill mode and MUST be in the PolygonFillMode (section 2.1.27) enumeration.

      • setPolygonFillMode

        public void setPolygonFillMode(int value)

        Gets or sets a 32-bit unsigned integer that specifies the polygon fill mode and MUST be in the PolygonFillMode (section 2.1.27) enumeration.