Search Results for

    Show / Hide Table of Contents

    Class TwipsGraphics

    Helper for converting between twips and screen pixels at the current display DPI (with an optional scale factor) and for snapping points to a design grid.

    Inheritance
    object
    TwipsGraphics
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Reportman.Drawing
    Assembly: Reportman.Drawing.Windows.dll
    Syntax
    public class TwipsGraphics

    Constructors

    View Source

    TwipsGraphics()

    Declaration
    public TwipsGraphics()

    Methods

    View Source

    AlignToGridPixels(Point, int, int, double)

    Declaration
    public static Point AlignToGridPixels(Point npoint, int gridx, int gridy, double scale)
    Parameters
    Type Name Description
    Point npoint
    int gridx
    int gridy
    double scale
    Returns
    Type Description
    Point
    View Source

    AlignToGridPixels(int, int, int, double)

    Declaration
    public static int AlignToGridPixels(int x, int gridx, int gridy, double scale)
    Parameters
    Type Name Description
    int x
    int gridx
    int gridy
    double scale
    Returns
    Type Description
    int
    View Source

    AlignToGridTwips(Point, int, int)

    Align to grid a point

    Declaration
    public static Point AlignToGridTwips(Point npoint, int gridx, int gridy)
    Parameters
    Type Name Description
    Point npoint
    int gridx
    int gridy
    Returns
    Type Description
    Point
    View Source

    PixelsToTwips(int, double)

    Returns number of twips from a scaled pixels measure (uses screen pixels per inch)

    Declaration
    public static int PixelsToTwips(int pixels, double scale)
    Parameters
    Type Name Description
    int pixels
    double scale
    Returns
    Type Description
    int
    View Source

    TwipsToPixels(int, double)

    Returns number of pixels (uses screen pixels per inch) from a twips measure scaled

    Declaration
    public static int TwipsToPixels(int twips, double scale)
    Parameters
    Type Name Description
    int twips
    double scale
    Returns
    Type Description
    int
    • View Source
    In this article
    Back to top Generated by DocFX