C# Class CSharpUtils.Drawing.Distance.DistanceMap

Datei anzeigen Open project: soywiz/csharputils Class Usage Examples

Public Methods

Method Description
BitmapFromDistanceMap ( DistanceEntry DistanceMap ) : Bitmap

DrawGlow ( Bitmap Bitmap, DistanceEntry _DistanceMap, float GlowDistance, ARGB_Rev GlowColor, float>.Func Function = null ) : void
DrawGlow ( Bitmap Bitmap, DistanceEntry _DistanceMap, float GlowDistance, ARGB_Rev GlowColor, float Min, float Max = 1.0f ) : void
GetDistanceMap ( bool Mask ) : ].DistanceEntry[

GetMask ( Bitmap Bitmap, byte AlphaThresold = 1 ) : ].bool[

Range ( int From, int To, int Step = 1 ) : IEnumerable

Method Details

BitmapFromDistanceMap() static public method

static public BitmapFromDistanceMap ( DistanceEntry DistanceMap ) : Bitmap
DistanceMap DistanceEntry
return System.Drawing.Bitmap

DrawGlow() static public method

static public DrawGlow ( Bitmap Bitmap, DistanceEntry _DistanceMap, float GlowDistance, ARGB_Rev GlowColor, float>.Func Function = null ) : void
Bitmap System.Drawing.Bitmap
_DistanceMap DistanceEntry
GlowDistance float
GlowColor ARGB_Rev
Function float>.Func
return void

DrawGlow() static public method

static public DrawGlow ( Bitmap Bitmap, DistanceEntry _DistanceMap, float GlowDistance, ARGB_Rev GlowColor, float Min, float Max = 1.0f ) : void
Bitmap System.Drawing.Bitmap
_DistanceMap DistanceEntry
GlowDistance float
GlowColor ARGB_Rev
Min float
Max float
return void

GetDistanceMap() static public method

static public GetDistanceMap ( bool Mask ) : ].DistanceEntry[
Mask bool
return ].DistanceEntry[

GetMask() static public method

static public GetMask ( Bitmap Bitmap, byte AlphaThresold = 1 ) : ].bool[
Bitmap System.Drawing.Bitmap
AlphaThresold byte
return ].bool[

Range() static public method

static public Range ( int From, int To, int Step = 1 ) : IEnumerable
From int
To int
Step int
return IEnumerable