C# Class PurplePen.MapUtil

Afficher le fichier Open project: petergolde/PurplePen Class Usage Examples

Méthodes publiques

Свойство Type Description
StandardPaperSizes System.Drawing.Printing.PaperSize[]
TextMetricsProvider ITextMetrics

Méthodes publiques

Méthode Description
CreateToolboxIcon ( Bitmap bm ) : ToolboxIcon
GetDefaultPageSize ( RectangleF printAreaRectangle, float printScaleRatio, int &pageWidth, int &pageHeight, int &pageMargin, bool &landscape ) : void
GetDefaultPrintArea ( string mapFileName, float printScaleRatio ) : PrintArea
ValidateMapFile ( string mapFileName, float &scale, float &dpi, Size &bitmapSize, RectangleF &mapBounds, MapType &mapType, string &errorMessageText ) : bool
ValidatePdf ( string pdfFileName, float &dpi, Size &bitmapSize, string &errorMessageText ) : PdfMapFile

Method Details

CreateToolboxIcon() public static méthode

public static CreateToolboxIcon ( Bitmap bm ) : ToolboxIcon
bm System.Drawing.Bitmap
Résultat ToolboxIcon

GetDefaultPageSize() public static méthode

public static GetDefaultPageSize ( RectangleF printAreaRectangle, float printScaleRatio, int &pageWidth, int &pageHeight, int &pageMargin, bool &landscape ) : void
printAreaRectangle System.Drawing.RectangleF
printScaleRatio float
pageWidth int
pageHeight int
pageMargin int
landscape bool
Résultat void

GetDefaultPrintArea() public static méthode

public static GetDefaultPrintArea ( string mapFileName, float printScaleRatio ) : PrintArea
mapFileName string
printScaleRatio float
Résultat PrintArea

ValidateMapFile() public static méthode

public static ValidateMapFile ( string mapFileName, float &scale, float &dpi, Size &bitmapSize, RectangleF &mapBounds, MapType &mapType, string &errorMessageText ) : bool
mapFileName string
scale float
dpi float
bitmapSize System.Drawing.Size
mapBounds System.Drawing.RectangleF
mapType MapType
errorMessageText string
Résultat bool

ValidatePdf() public static méthode

public static ValidatePdf ( string pdfFileName, float &dpi, Size &bitmapSize, string &errorMessageText ) : PdfMapFile
pdfFileName string
dpi float
bitmapSize System.Drawing.Size
errorMessageText string
Résultat PdfMapFile

Property Details

StandardPaperSizes public_oe static_oe property

public static PaperSize[],System.Drawing.Printing StandardPaperSizes
Résultat System.Drawing.Printing.PaperSize[]

TextMetricsProvider public_oe static_oe property

public static ITextMetrics TextMetricsProvider
Résultat ITextMetrics