C# Class BiliRanking.Core.Fubang

Show file Open project: SkiTiSu/BiliRanking

Public Methods

Method Description
AddPic ( BiliInterfaceInfo info, int n ) : void
AddPic2 ( BiliInterfaceInfo info, int n ) : void
Gen ( List infos ) : void
Gen2 ( List infos ) : void
RoundCorners ( Image StartImage, int CornerRadius, Color BackgroundColor ) : Image
createFluffyBrush ( GraphicsPath gp, float blendPositions, float blendFactors ) : Brush
createRoundRect ( int x, int y, int width, int height, int radius ) : GraphicsPath
resizeImage ( Image imgToResize, Size size ) : Image
transferOneARGBChannelFromOneBitmapToAnother ( Bitmap source, Bitmap dest, ChannelARGB sourceChannel, ChannelARGB destChannel ) : void

Private Methods

Method Description
RoundCorners ( Image image, int cornerRadius ) : Image

Method Details

AddPic() public method

public AddPic ( BiliInterfaceInfo info, int n ) : void
info BiliInterfaceInfo
n int
return void

AddPic2() public method

public AddPic2 ( BiliInterfaceInfo info, int n ) : void
info BiliInterfaceInfo
n int
return void

Gen() public method

public Gen ( List infos ) : void
infos List
return void

Gen2() public method

public Gen2 ( List infos ) : void
infos List
return void

RoundCorners() public method

public RoundCorners ( Image StartImage, int CornerRadius, Color BackgroundColor ) : Image
StartImage Image
CornerRadius int
BackgroundColor Color
return Image

createFluffyBrush() public static method

public static createFluffyBrush ( GraphicsPath gp, float blendPositions, float blendFactors ) : Brush
gp System.Drawing.Drawing2D.GraphicsPath
blendPositions float
blendFactors float
return System.Drawing.Brush

createRoundRect() public static method

public static createRoundRect ( int x, int y, int width, int height, int radius ) : GraphicsPath
x int
y int
width int
height int
radius int
return System.Drawing.Drawing2D.GraphicsPath

resizeImage() public static method

public static resizeImage ( Image imgToResize, Size size ) : Image
imgToResize Image
size System.Drawing.Size
return Image

transferOneARGBChannelFromOneBitmapToAnother() public static method

public static transferOneARGBChannelFromOneBitmapToAnother ( Bitmap source, Bitmap dest, ChannelARGB sourceChannel, ChannelARGB destChannel ) : void
source System.Drawing.Bitmap
dest System.Drawing.Bitmap
sourceChannel ChannelARGB
destChannel ChannelARGB
return void