C# Класс CardMaker.Card.DrawItem

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
DrawElement ( Graphics zGraphics, CardMaker.Card.Deck zDeck, ProjectLayoutElement zElement, ElementType eType, int nX, int nY, string sInput, bool bExport ) : void
DrawElementDebugBorder ( Graphics zGraphics, ProjectLayoutElement zElement, int nX, int nY, bool bSelected ) : void
DrawFormattedText ( Graphics zGraphics, CardMaker.Card.Deck zDeck, ProjectLayoutElement zElement, string sInput, Brush zBrush, Font zFont, Color colorFont ) : void
DrawOutline ( ProjectLayoutElement zElement, Graphics zGraphics, GraphicsPath zPath ) : void
DumpImages ( ) : void
DumpOpacityImages ( ) : void
GetElementType ( string sType ) : ElementType
LoadImageFromCache ( string sFile ) : Bitmap

Приватные методы

Метод Описание
DrawGraphic ( Graphics zGraphics, string sFile, ProjectLayoutElement zElement ) : void
DrawGraphicOriginalSize ( Graphics zGraphics, Bitmap zBmp, ProjectLayoutElement zElement ) : void

Draws the image cropped based on alignment. The image is always drawn in proper aspect by this method

DrawItem ( ) : System
DrawTextGraphics ( ) : System
DumpImagesFromDictionary ( Bitmap>.Dictionary dictionaryImages ) : void
LoadOpacityImageFromCache ( string sFile, ProjectLayoutElement zElement ) : Bitmap
UpdateAlignmentValue ( StringAlignment eAlignment, int &nResult, int nLarge, int nSmall ) : void

Описание методов

DrawElement() публичный статический Метод

public static DrawElement ( Graphics zGraphics, CardMaker.Card.Deck zDeck, ProjectLayoutElement zElement, ElementType eType, int nX, int nY, string sInput, bool bExport ) : void
zGraphics System.Drawing.Graphics
zDeck CardMaker.Card.Deck
zElement CardMaker.XML.ProjectLayoutElement
eType ElementType
nX int
nY int
sInput string
bExport bool
Результат void

DrawElementDebugBorder() публичный статический Метод

public static DrawElementDebugBorder ( Graphics zGraphics, ProjectLayoutElement zElement, int nX, int nY, bool bSelected ) : void
zGraphics System.Drawing.Graphics
zElement CardMaker.XML.ProjectLayoutElement
nX int
nY int
bSelected bool
Результат void

DrawFormattedText() публичный статический Метод

public static DrawFormattedText ( Graphics zGraphics, CardMaker.Card.Deck zDeck, ProjectLayoutElement zElement, string sInput, Brush zBrush, Font zFont, Color colorFont ) : void
zGraphics System.Drawing.Graphics
zDeck CardMaker.Card.Deck
zElement CardMaker.XML.ProjectLayoutElement
sInput string
zBrush System.Drawing.Brush
zFont System.Drawing.Font
colorFont Color
Результат void

DrawOutline() публичный статический Метод

public static DrawOutline ( ProjectLayoutElement zElement, Graphics zGraphics, GraphicsPath zPath ) : void
zElement CardMaker.XML.ProjectLayoutElement
zGraphics System.Drawing.Graphics
zPath GraphicsPath
Результат void

DumpImages() публичный статический Метод

public static DumpImages ( ) : void
Результат void

DumpOpacityImages() публичный статический Метод

public static DumpOpacityImages ( ) : void
Результат void

GetElementType() публичный статический Метод

public static GetElementType ( string sType ) : ElementType
sType string
Результат ElementType

LoadImageFromCache() публичный статический Метод

public static LoadImageFromCache ( string sFile ) : Bitmap
sFile string
Результат System.Drawing.Bitmap