C# 클래스 Smrf.GraphicsLib.GraphicsUtil

Set of static methods that perform graphics operations not available directly through GDI+.
Do not try to instantiate an object of this type. All methods are static.
파일 보기 프로젝트 열기: 2014-sed-team3/term-project

공개 메소드들

메소드 설명
AreaToRadius ( Double dArea ) : Double
Clear ( Graphics oGraphics, Color oColor ) : void
CreateRoundedRectangleGraphicsPath ( Rectangle oRectangle, Int32 iCornerRadius ) : GraphicsPath
DiamondFromCenterAndHalfWidth ( System.Single fXCenter, System.Single fYCenter, System.Single fHalfWidth ) : System.Drawing.PointF[]
DisposeBitmap ( Bitmap &oBitmap ) : void
DisposeBrush ( Brush &oBrush ) : void
DisposeGraphics ( Graphics &oGraphics ) : void
DisposeGraphicsPath ( GraphicsPath &oGraphicsPath ) : void
DisposePen ( Pen &oPen ) : void
DisposeSolidBrush ( SolidBrush &oSolidBrush ) : void
DistanceBetweenTwoPointFs ( PointF point1, PointF point2 ) : System.Single
Draw3DHorizontalLine ( Graphics oGraphics, System.Single fLeft, System.Single fTop, System.Single fRight ) : System.Single
DrawCircle ( Graphics oGraphics, Pen oPen, System.Single fXCenter, System.Single fYCenter, System.Single fRadius ) : void
DrawDiamond ( Graphics oGraphics, Pen oPen, System.Single fXCenter, System.Single fYCenter, System.Single fHalfWidth ) : void
DrawErrorStringOnGraphics ( Graphics oGraphics, Rectangle oRectangle, String sString ) : void
DrawSquare ( Graphics oGraphics, Pen oPen, System.Single fXCenter, System.Single fYCenter, System.Single fHalfWidth ) : void
DrawTriangle ( Graphics oGraphics, Pen oPen, System.Single fXCenter, System.Single fYCenter, System.Single fHalfWidth ) : void
FillCircle ( Graphics oGraphics, Brush oBrush, System.Single fXCenter, System.Single fYCenter, System.Single fRadius ) : void
FillCircle3D ( Graphics oGraphics, Color oColor, System.Single fXCenter, System.Single fYCenter, System.Single fRadius ) : void
FillDiamond ( Graphics oGraphics, Brush oBrush, System.Single fXCenter, System.Single fYCenter, System.Single fHalfWidth ) : void
FillSquare ( Graphics oGraphics, Brush oBrush, System.Single fXCenter, System.Single fYCenter, System.Single fHalfWidth ) : void
FillSquare3D ( Graphics oGraphics, Color oColor, System.Single fXCenter, System.Single fYCenter, System.Single fHalfWidth ) : void
FillTextRectangle ( Graphics oGraphics, Rectangle oRectangle, System.Boolean bTextIsSelected ) : void
FillTriangle ( Graphics oGraphics, Brush oBrush, System.Single fXCenter, System.Single fYCenter, System.Single fHalfWidth ) : void
GetDiamondEdgeMidpoints ( System.Single fXCenter, System.Single fYCenter, System.Single fHalfWidth ) : System.Drawing.PointF[]
GetImageCodecInfoForMimeType ( String sMimeType ) : System.Drawing.Imaging.ImageCodecInfo
GetTriangleEdgeMidpoints ( System.Single fXCenter, System.Single fYCenter, System.Single fHalfWidth ) : System.Drawing.PointF[]
LineSegmentsIntersect ( PointF endpointA1, PointF endpointA2, PointF endpointB1, PointF endpointB2 ) : System.Boolean
MoveRectangleWithinBounds ( RectangleF rectangle, RectangleF boundingRectangle, System.Boolean resizeRectangleIfNecessary ) : RectangleF
PixelsToPoints ( Graphics oGraphics, System.Single fWidthPx, System.Single fHeightPx, System.Single &fWidthPt, System.Single &fHeightPt ) : void
PointsToPixels ( Graphics oGraphics, System.Single fWidthPt, System.Single fHeightPt, Int32 &iWidthPx, Int32 &iHeightPx ) : void
PointsToPixels ( Graphics oGraphics, System.Single fWidthPt, System.Single fHeightPt, System.Single &fWidthPx, System.Single &fHeightPx ) : void
RadiusToArea ( Double dRadius ) : Double
RectangleFToRectangle ( RectangleF oRectangle, Int32 iPenWidthPx ) : Rectangle
SaveHighQualityImage ( Image oImage, String sFileName, ImageFormat eImageFormat ) : void
SaveJpegImage ( Image oImage, String sFileName, Int32 iQuality ) : void
SquareFromCenterAndHalfWidth ( System.Single fXCenter, System.Single fYCenter, System.Single fHalfWidth ) : RectangleF
TriangleFromCenterAndHalfWidth ( System.Single fXCenter, System.Single fYCenter, System.Single fHalfWidth ) : System.Drawing.PointF[]

보호된 메소드들

메소드 설명
ConvertPixelsAndPoints ( System.Boolean bPixelsToPoints, Graphics oGraphics, System.Single fWidthIn, System.Single fHeightIn, System.Single &fWidthOut, System.Single &fHeightOut ) : void

비공개 메소드들

메소드 설명
GraphicsUtil ( ) : System

Do not use this contructor.

All methods on this class are static, so there is no need to create a GraphicsUtil object.

메소드 상세

AreaToRadius() 공개 정적인 메소드

public static AreaToRadius ( Double dArea ) : Double
dArea Double
리턴 Double

Clear() 공개 정적인 메소드

public static Clear ( Graphics oGraphics, Color oColor ) : void
oGraphics System.Drawing.Graphics
oColor Color
리턴 void

ConvertPixelsAndPoints() 보호된 정적인 메소드

protected static ConvertPixelsAndPoints ( System.Boolean bPixelsToPoints, Graphics oGraphics, System.Single fWidthIn, System.Single fHeightIn, System.Single &fWidthOut, System.Single &fHeightOut ) : void
bPixelsToPoints System.Boolean
oGraphics System.Drawing.Graphics
fWidthIn System.Single
fHeightIn System.Single
fWidthOut System.Single
fHeightOut System.Single
리턴 void

CreateRoundedRectangleGraphicsPath() 공개 정적인 메소드

public static CreateRoundedRectangleGraphicsPath ( Rectangle oRectangle, Int32 iCornerRadius ) : GraphicsPath
oRectangle System.Drawing.Rectangle
iCornerRadius System.Int32
리턴 System.Drawing.Drawing2D.GraphicsPath

DiamondFromCenterAndHalfWidth() 공개 정적인 메소드

public static DiamondFromCenterAndHalfWidth ( System.Single fXCenter, System.Single fYCenter, System.Single fHalfWidth ) : System.Drawing.PointF[]
fXCenter System.Single
fYCenter System.Single
fHalfWidth System.Single
리턴 System.Drawing.PointF[]

DisposeBitmap() 공개 정적인 메소드

public static DisposeBitmap ( Bitmap &oBitmap ) : void
oBitmap System.Drawing.Bitmap
리턴 void

DisposeBrush() 공개 정적인 메소드

public static DisposeBrush ( Brush &oBrush ) : void
oBrush System.Drawing.Brush
리턴 void

DisposeGraphics() 공개 정적인 메소드

public static DisposeGraphics ( Graphics &oGraphics ) : void
oGraphics System.Drawing.Graphics
리턴 void

DisposeGraphicsPath() 공개 정적인 메소드

public static DisposeGraphicsPath ( GraphicsPath &oGraphicsPath ) : void
oGraphicsPath System.Drawing.Drawing2D.GraphicsPath
리턴 void

DisposePen() 공개 정적인 메소드

public static DisposePen ( Pen &oPen ) : void
oPen System.Drawing.Pen
리턴 void

DisposeSolidBrush() 공개 정적인 메소드

public static DisposeSolidBrush ( SolidBrush &oSolidBrush ) : void
oSolidBrush System.Drawing.SolidBrush
리턴 void

DistanceBetweenTwoPointFs() 공개 정적인 메소드

public static DistanceBetweenTwoPointFs ( PointF point1, PointF point2 ) : System.Single
point1 System.Drawing.PointF
point2 System.Drawing.PointF
리턴 System.Single

Draw3DHorizontalLine() 공개 정적인 메소드

public static Draw3DHorizontalLine ( Graphics oGraphics, System.Single fLeft, System.Single fTop, System.Single fRight ) : System.Single
oGraphics System.Drawing.Graphics
fLeft System.Single
fTop System.Single
fRight System.Single
리턴 System.Single

DrawCircle() 공개 정적인 메소드

public static DrawCircle ( Graphics oGraphics, Pen oPen, System.Single fXCenter, System.Single fYCenter, System.Single fRadius ) : void
oGraphics System.Drawing.Graphics
oPen System.Drawing.Pen
fXCenter System.Single
fYCenter System.Single
fRadius System.Single
리턴 void

DrawDiamond() 공개 정적인 메소드

public static DrawDiamond ( Graphics oGraphics, Pen oPen, System.Single fXCenter, System.Single fYCenter, System.Single fHalfWidth ) : void
oGraphics System.Drawing.Graphics
oPen System.Drawing.Pen
fXCenter System.Single
fYCenter System.Single
fHalfWidth System.Single
리턴 void

DrawErrorStringOnGraphics() 공개 정적인 메소드

public static DrawErrorStringOnGraphics ( Graphics oGraphics, Rectangle oRectangle, String sString ) : void
oGraphics System.Drawing.Graphics
oRectangle System.Drawing.Rectangle
sString String
리턴 void

DrawSquare() 공개 정적인 메소드

public static DrawSquare ( Graphics oGraphics, Pen oPen, System.Single fXCenter, System.Single fYCenter, System.Single fHalfWidth ) : void
oGraphics System.Drawing.Graphics
oPen System.Drawing.Pen
fXCenter System.Single
fYCenter System.Single
fHalfWidth System.Single
리턴 void

DrawTriangle() 공개 정적인 메소드

public static DrawTriangle ( Graphics oGraphics, Pen oPen, System.Single fXCenter, System.Single fYCenter, System.Single fHalfWidth ) : void
oGraphics System.Drawing.Graphics
oPen System.Drawing.Pen
fXCenter System.Single
fYCenter System.Single
fHalfWidth System.Single
리턴 void

FillCircle() 공개 정적인 메소드

public static FillCircle ( Graphics oGraphics, Brush oBrush, System.Single fXCenter, System.Single fYCenter, System.Single fRadius ) : void
oGraphics System.Drawing.Graphics
oBrush System.Drawing.Brush
fXCenter System.Single
fYCenter System.Single
fRadius System.Single
리턴 void

FillCircle3D() 공개 정적인 메소드

public static FillCircle3D ( Graphics oGraphics, Color oColor, System.Single fXCenter, System.Single fYCenter, System.Single fRadius ) : void
oGraphics System.Drawing.Graphics
oColor Color
fXCenter System.Single
fYCenter System.Single
fRadius System.Single
리턴 void

FillDiamond() 공개 정적인 메소드

public static FillDiamond ( Graphics oGraphics, Brush oBrush, System.Single fXCenter, System.Single fYCenter, System.Single fHalfWidth ) : void
oGraphics System.Drawing.Graphics
oBrush System.Drawing.Brush
fXCenter System.Single
fYCenter System.Single
fHalfWidth System.Single
리턴 void

FillSquare() 공개 정적인 메소드

public static FillSquare ( Graphics oGraphics, Brush oBrush, System.Single fXCenter, System.Single fYCenter, System.Single fHalfWidth ) : void
oGraphics System.Drawing.Graphics
oBrush System.Drawing.Brush
fXCenter System.Single
fYCenter System.Single
fHalfWidth System.Single
리턴 void

FillSquare3D() 공개 정적인 메소드

public static FillSquare3D ( Graphics oGraphics, Color oColor, System.Single fXCenter, System.Single fYCenter, System.Single fHalfWidth ) : void
oGraphics System.Drawing.Graphics
oColor Color
fXCenter System.Single
fYCenter System.Single
fHalfWidth System.Single
리턴 void

FillTextRectangle() 공개 정적인 메소드

public static FillTextRectangle ( Graphics oGraphics, Rectangle oRectangle, System.Boolean bTextIsSelected ) : void
oGraphics System.Drawing.Graphics
oRectangle System.Drawing.Rectangle
bTextIsSelected System.Boolean
리턴 void

FillTriangle() 공개 정적인 메소드

public static FillTriangle ( Graphics oGraphics, Brush oBrush, System.Single fXCenter, System.Single fYCenter, System.Single fHalfWidth ) : void
oGraphics System.Drawing.Graphics
oBrush System.Drawing.Brush
fXCenter System.Single
fYCenter System.Single
fHalfWidth System.Single
리턴 void

GetDiamondEdgeMidpoints() 공개 정적인 메소드

public static GetDiamondEdgeMidpoints ( System.Single fXCenter, System.Single fYCenter, System.Single fHalfWidth ) : System.Drawing.PointF[]
fXCenter System.Single
fYCenter System.Single
fHalfWidth System.Single
리턴 System.Drawing.PointF[]

GetImageCodecInfoForMimeType() 공개 정적인 메소드

public static GetImageCodecInfoForMimeType ( String sMimeType ) : System.Drawing.Imaging.ImageCodecInfo
sMimeType String
리턴 System.Drawing.Imaging.ImageCodecInfo

GetTriangleEdgeMidpoints() 공개 정적인 메소드

public static GetTriangleEdgeMidpoints ( System.Single fXCenter, System.Single fYCenter, System.Single fHalfWidth ) : System.Drawing.PointF[]
fXCenter System.Single
fYCenter System.Single
fHalfWidth System.Single
리턴 System.Drawing.PointF[]

LineSegmentsIntersect() 공개 정적인 메소드

public static LineSegmentsIntersect ( PointF endpointA1, PointF endpointA2, PointF endpointB1, PointF endpointB2 ) : System.Boolean
endpointA1 System.Drawing.PointF
endpointA2 System.Drawing.PointF
endpointB1 System.Drawing.PointF
endpointB2 System.Drawing.PointF
리턴 System.Boolean

MoveRectangleWithinBounds() 공개 정적인 메소드

public static MoveRectangleWithinBounds ( RectangleF rectangle, RectangleF boundingRectangle, System.Boolean resizeRectangleIfNecessary ) : RectangleF
rectangle System.Drawing.RectangleF
boundingRectangle System.Drawing.RectangleF
resizeRectangleIfNecessary System.Boolean
리턴 System.Drawing.RectangleF

PixelsToPoints() 공개 정적인 메소드

public static PixelsToPoints ( Graphics oGraphics, System.Single fWidthPx, System.Single fHeightPx, System.Single &fWidthPt, System.Single &fHeightPt ) : void
oGraphics System.Drawing.Graphics
fWidthPx System.Single
fHeightPx System.Single
fWidthPt System.Single
fHeightPt System.Single
리턴 void

PointsToPixels() 공개 정적인 메소드

public static PointsToPixels ( Graphics oGraphics, System.Single fWidthPt, System.Single fHeightPt, Int32 &iWidthPx, Int32 &iHeightPx ) : void
oGraphics System.Drawing.Graphics
fWidthPt System.Single
fHeightPt System.Single
iWidthPx System.Int32
iHeightPx System.Int32
리턴 void

PointsToPixels() 공개 정적인 메소드

public static PointsToPixels ( Graphics oGraphics, System.Single fWidthPt, System.Single fHeightPt, System.Single &fWidthPx, System.Single &fHeightPx ) : void
oGraphics System.Drawing.Graphics
fWidthPt System.Single
fHeightPt System.Single
fWidthPx System.Single
fHeightPx System.Single
리턴 void

RadiusToArea() 공개 정적인 메소드

public static RadiusToArea ( Double dRadius ) : Double
dRadius Double
리턴 Double

RectangleFToRectangle() 공개 정적인 메소드

public static RectangleFToRectangle ( RectangleF oRectangle, Int32 iPenWidthPx ) : Rectangle
oRectangle System.Drawing.RectangleF
iPenWidthPx System.Int32
리턴 System.Drawing.Rectangle

SaveHighQualityImage() 공개 정적인 메소드

public static SaveHighQualityImage ( Image oImage, String sFileName, ImageFormat eImageFormat ) : void
oImage Image
sFileName String
eImageFormat System.Drawing.Imaging.ImageFormat
리턴 void

SaveJpegImage() 공개 정적인 메소드

public static SaveJpegImage ( Image oImage, String sFileName, Int32 iQuality ) : void
oImage Image
sFileName String
iQuality System.Int32
리턴 void

SquareFromCenterAndHalfWidth() 공개 정적인 메소드

public static SquareFromCenterAndHalfWidth ( System.Single fXCenter, System.Single fYCenter, System.Single fHalfWidth ) : RectangleF
fXCenter System.Single
fYCenter System.Single
fHalfWidth System.Single
리턴 System.Drawing.RectangleF

TriangleFromCenterAndHalfWidth() 공개 정적인 메소드

public static TriangleFromCenterAndHalfWidth ( System.Single fXCenter, System.Single fYCenter, System.Single fHalfWidth ) : System.Drawing.PointF[]
fXCenter System.Single
fYCenter System.Single
fHalfWidth System.Single
리턴 System.Drawing.PointF[]