C# Class CardMaker.Card.DrawItem

Show file Open project: nhmkdev/cardmaker Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

DrawElement() public static method

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
return void

DrawElementDebugBorder() public static method

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
return void

DrawFormattedText() public static method

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
return void

DrawOutline() public static method

public static DrawOutline ( ProjectLayoutElement zElement, Graphics zGraphics, GraphicsPath zPath ) : void
zElement CardMaker.XML.ProjectLayoutElement
zGraphics System.Drawing.Graphics
zPath GraphicsPath
return void

DumpImages() public static method

public static DumpImages ( ) : void
return void

DumpOpacityImages() public static method

public static DumpOpacityImages ( ) : void
return void

GetElementType() public static method

public static GetElementType ( string sType ) : ElementType
sType string
return ElementType

LoadImageFromCache() public static method

public static LoadImageFromCache ( string sFile ) : Bitmap
sFile string
return System.Drawing.Bitmap