C# 클래스 fCraft.ShapesLib

파일 보기 프로젝트 열기: GlennMR/800craft 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
blockCount int
player Player

공개 메소드들

메소드 설명
Crop ( Bitmap bmp ) : Bitmap
Draw ( Bitmap img ) : void
DrawRegularPolygon ( int sides, int startingAngle, bool FillPoly ) : void
DrawSpiral ( ) : void
DrawStar ( int num_points, int Radius, bool Fill ) : void
ShapesLib ( Block BlockColor, Vector3I Marks, Player p, int radius, Direction dir ) : System

비공개 메소드들

메소드 설명
CalculateConcaveRadius ( int num_points, int skip ) : double
CalculateVertices ( int sides, int radius, int startingAngle, Point center ) : Point[]
DegreesToXY ( float degrees, float radius, Point origin ) : Point
DrawBitmap ( int Width, int Height ) : void
DrawOneBlock ( Player player, Map map, Block drawBlock, Vector3I coord, BlockChangeContext context, int &blocks, int &blocksDenied, fCraft undoState ) : void
DrawPhiRectanglesOnGraphics ( List points, double x, double y, double wid, double hgt, RectOrientations orientation ) : void
FindIntersection ( PointF p1, PointF p2, PointF p3, PointF p4, bool &lines_intersect, bool &segments_intersect, PointF &intersection, PointF &close_p1, PointF &close_p2 ) : void
MakeStarPoints ( double start_theta, int num_points, int Radius ) : System.Drawing.PointF[]

메소드 상세

Crop() 공개 정적인 메소드

public static Crop ( Bitmap bmp ) : Bitmap
bmp System.Drawing.Bitmap
리턴 System.Drawing.Bitmap

Draw() 공개 메소드

public Draw ( Bitmap img ) : void
img System.Drawing.Bitmap
리턴 void

DrawRegularPolygon() 공개 메소드

public DrawRegularPolygon ( int sides, int startingAngle, bool FillPoly ) : void
sides int
startingAngle int
FillPoly bool
리턴 void

DrawSpiral() 공개 메소드

public DrawSpiral ( ) : void
리턴 void

DrawStar() 공개 메소드

public DrawStar ( int num_points, int Radius, bool Fill ) : void
num_points int
Radius int
Fill bool
리턴 void

ShapesLib() 공개 메소드

public ShapesLib ( Block BlockColor, Vector3I Marks, Player p, int radius, Direction dir ) : System
BlockColor Block
Marks Vector3I
p Player
radius int
dir Direction
리턴 System

프로퍼티 상세

blockCount 공개적으로 프로퍼티

public int blockCount
리턴 int

player 공개적으로 프로퍼티

public Player,fCraft player
리턴 Player