WriteableBitmapExtensions

StockSharp.Xaml.Charting.Rendering.HighSpeedRasterizer.WBX

Silverlight WriteableBitmapクラス用の引出し延長方法のコレクション。

メソッド

AlphaBlend
public static int AlphaBlend(int sa, int sr, int sg, int sb, int destPixel)
result = WriteableBitmapExtensions.AlphaBlend(sa, sr, sg, sb, destPixel)

アルファは互いに2つの優先色をブレンドします

sa
ソースアルファ色のコンポーネント
sr
プレマルチプリケーションソース赤色コンポーネント
sg
プレマルチプリケーションソースグリーンカラーコンポーネント
sb
プレマルチプリケーションソースブルーカラーコンポーネント
destPixel
プレマルチプリケーションされた宛先色

戻り値: ブレンドカラー値のプレマルチプライド

AlphaBlendNormalOnPremultiplied
private static void AlphaBlendNormalOnPremultiplied(Int32* pixels, int index, int sa, uint srb, uint sg)
WriteableBitmapExtensions.AlphaBlendNormalOnPremultiplied(pixels, index, sa, srb, sg)

先物優先色の上に特定のソース色をブレンド

pixels
ピクセル配列
index
宛先ピクセルのインデックス
sa
ソースアルファ (0..255)
srb
ソース非準備赤と青のコンポーネントのフォーマット 0x00rr00bb
sg
ソースグリーンコンポーネント (0...255)
Blit
internal static void Blit(WriteableBitmap bmp, Rect destRect, WriteableBitmap source, Rect sourceRect, Color color, BlendMode BlendMode)
WriteableBitmapExtensions.Blit(bmp, destRect, source, sourceRect, color, BlendMode)

WriteableBitmap のソースからコピー先 WriteableBitmap へピクセルをコピーします。

bmp
The destination WriteableBitmap.
destRect
目的地の領域を定義する長方形。
source
The source WriteableBitmap.
sourceRect
ソースからコピー先へコピーされる長方形。
color
Colors.White でなければ、ソースイメージを一口にしてしまう。部分的に透明色とイメージが部分的に透明に描画される。BlendModeがColorKeying なら、この色は、この値ですべてのピクセルをマスクするカラーキーとして使われる。
BlendMode
The blending mode BlendMode.
Blit
internal static void Blit(WriteableBitmap bmp, Point destPosition, WriteableBitmap source, Rect sourceRect, Color color, BlendMode BlendMode)
WriteableBitmapExtensions.Blit(bmp, destPosition, source, sourceRect, color, BlendMode)

WriteableBitmap のソースからコピー先 WriteableBitmap へピクセルをコピーします。

bmp
The destination WriteableBitmap.
destPosition
宛先ビットマップの宛先位置。
source
The source WriteableBitmap.
sourceRect
ソースからコピー先へコピーされる長方形。
color
Colors.White でなければ、ソースイメージを省略します。部分的に透明色と画像は部分的に透明に描画されます。
BlendMode
The blending mode BlendMode.
Blit
internal static void Blit(WriteableBitmap bmp, Rect destRect, WriteableBitmap source, Rect sourceRect)
WriteableBitmapExtensions.Blit(bmp, destRect, source, sourceRect)

WriteableBitmap のソースからコピー先 WriteableBitmap へピクセルをコピーします。

bmp
The destination WriteableBitmap.
destRect
目的地の領域を定義する長方形。
source
The source WriteableBitmap.
sourceRect
ソースからコピー先へコピーされる長方形。
Blit
internal static void Blit(WriteableBitmap bmp, Rect destRect, WriteableBitmap source, Rect sourceRect, BlendMode BlendMode)
WriteableBitmapExtensions.Blit(bmp, destRect, source, sourceRect, BlendMode)

WriteableBitmap のソースからコピー先 WriteableBitmap へピクセルをコピーします。

bmp
The destination WriteableBitmap.
destRect
目的地の領域を定義する長方形。
source
The source WriteableBitmap.
sourceRect
ソースからコピー先へコピーされる長方形。
BlendMode
The blending mode BlendMode.
Clear
internal static void Clear(WriteableBitmap bmp, Color color)
WriteableBitmapExtensions.Clear(bmp, color)

色のWriteableBitmap全体に塗りつぶし。

bmp
代表取締役社長 佐藤 正
color
充填に使用される色。
Clear
internal static void Clear(WriteableBitmap bmp)
WriteableBitmapExtensions.Clear(bmp)

空色(0)でWriteableBitmap全体に塗りつぶします。

bmp
代表取締役社長 佐藤 正
Clone
internal static WriteableBitmap Clone(WriteableBitmap bmp)
result = WriteableBitmapExtensions.Clone(bmp)

指定されたWriteableBitmap@をクローンします。

bmp
代表取締役社長 佐藤 正

戻り値: 代表取締役社長 佐藤 浩一

CohenSutherlandLineClip
internal static bool CohenSutherlandLineClip(Rect extents, double x0, double y0, double x1, double y1)
result = WriteableBitmapExtensions.CohenSutherlandLineClip(extents, x0, y0, x1, y1)

Cohen-Sutherland クリップ アルゴリズムは P0 = (x0, y0) から P1 = (x1, y1) に、(xmin, ymin) から (xmax, ymax) まで、対角をクリップします。

戻り値: その結果のクリップされた行の2つのポイントのリスト、またはゼロ

ComputeBezierPoints
private static List<int> ComputeBezierPoints(int x1, int y1, int cx1, int cy1, int cx2, int cy2, int x2, int y2, int color, BitmapContext context, int w, int h)
result = WriteableBitmapExtensions.ComputeBezierPoints(x1, y1, cx1, cy1, cx2, cy2, x2, y2, color, context, w, h)

スタート、エンド、および2つの制御ポイントによって定義される満たされた、立方ベザースプラインを引いて下さい。

x1
スタート地点のx座標。
y1
スタート地点のy座標。
cx1
第1回制御ポイントのx座標。
cy1
y座標の1st制御点。
cx2
第2コントロールポイントのx座標。
cy2
y座標の2番目の制御点。
x2
終点のx座標。
y2
終点のy座標。
color
色の色。
context
bitmap のコンテキスト。
w
ビットマップの幅。
h
ビットマップの高さ。
ComputeOutCode
private static byte ComputeOutCode(Rect extents, double x, double y)
result = WriteableBitmapExtensions.ComputeOutCode(extents, x, y)

クリップ長方形の境界線を斜め(xmin、ymin)、(xmax、ymax)の点(xmax、ymax)のビット コードを計算します。 ASSUME THAT xmax、xmin、ymax、ymin はグローバル定数です。

extents
範囲。
x
と、
y
. . .
ComputeSegmentPoints
private static List<int> ComputeSegmentPoints(int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4, float tension, int color, BitmapContext context, int w, int h)
result = WriteableBitmapExtensions.ComputeSegmentPoints(x1, y1, x2, y2, x3, y3, x4, y4, tension, color, context, w, h)

4つの制御ポイントで定義されたカードのスプライン(立方)の分岐点を計算します。

x1
第1回制御ポイントのx座標。
y1
y座標の1st制御点。
x2
第2コントロールポイントのx座標。
y2
y座標の2番目の制御点。
x3
第3回制御ポイントのx座標。
y3
y座標の3位制御点。
x4
第4回制御ポイントのx座標。
y4
第4回制御ポイントのy座標。
tension
曲線の張力は形状を定義します。通常は0と1.の間は直線になります。
color
色の色。
context
ピクセル配列を含むコンテキスト。
w
ビットマップの幅。
h
ビットマップの高さ。
Convolute(WriteableBitmap, Int32[0:,0:]) : WriteableBitmap

フィルタリングされたWriteableBitmap@を新たに作成します。

bmp
代表取締役社長 佐藤 正
kernel
複雑なカーネルが、コンボリューションに使われます。

戻り値: フィルタリングされたバージョンのWriteableBitmapを新たに追加しました。

Convolute(WriteableBitmap, Int32[0:,0:], int, int) : WriteableBitmap

フィルタリングされたWriteableBitmap@を新たに作成します。

bmp
代表取締役社長 佐藤 正
kernel
複雑なカーネルが、コンボリューションに使われます。
kernelFactorSum
カーネルの召喚に使用する要因。
kernelOffsetSum
カーネルの召喚に使用するオフセット。

戻り値: フィルタリングされたバージョンのWriteableBitmapを新たに追加しました。

DrawBezier
internal static void DrawBezier(WriteableBitmap bmp, int x1, int y1, int cx1, int cy1, int cx2, int cy2, int x2, int y2, Color color)
WriteableBitmapExtensions.DrawBezier(bmp, x1, y1, cx1, cy1, cx2, cy2, x2, y2, color)

起動、終了、および2つの制御ポイントによって定義される立方ベジェールスプラインを引く。

bmp
代表取締役社長 佐藤 正
x1
スタート地点のx座標。
y1
スタート地点のy座標。
cx1
第1回制御ポイントのx座標。
cy1
y座標の1st制御点。
cx2
第2コントロールポイントのx座標。
cy2
y座標の2番目の制御点。
x2
終点のx座標。
y2
終点のy座標。
color
色の色。
DrawBezier
internal static void DrawBezier(WriteableBitmap bmp, int x1, int y1, int cx1, int cy1, int cx2, int cy2, int x2, int y2, int color)
WriteableBitmapExtensions.DrawBezier(bmp, x1, y1, cx1, cy1, cx2, cy2, x2, y2, color)

起動、終了、および2つの制御ポイントによって定義される立方ベジェールスプラインを引く。

bmp
代表取締役社長 佐藤 正
x1
スタート地点のx座標。
y1
スタート地点のy座標。
cx1
第1回制御ポイントのx座標。
cy1
y座標の1st制御点。
cx2
第2コントロールポイントのx座標。
cy2
y座標の2番目の制御点。
x2
終点のx座標。
y2
終点のy座標。
color
色の色。
DrawBeziers
internal static void DrawBeziers(WriteableBitmap bmp, int[] points, int color)
WriteableBitmapExtensions.DrawBeziers(bmp, points, color)

キュービック・ベジエラーのシリーズは、スタート、エンド、および2つのコントロールポイントによって定義される各スプラインをスプラインします。 前のカーブの終了点は、次の点として使用されます。 慣性曲線は4つのポイントとその後の3(2制御と1エンドポイント)を必要とします。

bmp
代表取締役社長 佐藤 正
points
x と y のペアの曲線の点は、配列として解釈されます(x1、y1、cx1、cy1、cx2、cy2、x2、y2、y2、cx3、cx4 ...、xn、yn)。
color
スプラインのカラー。
DrawBeziers
internal static void DrawBeziers(WriteableBitmap bmp, int[] points, Color color)
WriteableBitmapExtensions.DrawBeziers(bmp, points, color)

キュービック・ベジエラーのシリーズは、スタート、エンド、および2つのコントロールポイントによって定義される各スプラインをスプラインします。 前のカーブの終了点は、次の点として使用されます。 慣性曲線は4つのポイントとその後の3(2制御と1エンドポイント)を必要とします。

bmp
代表取締役社長 佐藤 正
points
x と y のペアの曲線の点は、配列として解釈されます(x1、y1、cx1、cy1、cx2、cy2、x2、y2、y2、cx3、cx4 ...、xn、yn)。
color
スプラインのカラー。
DrawCurve
internal static void DrawCurve(WriteableBitmap bmp, int[] points, float tension, int color)
WriteableBitmapExtensions.DrawCurve(bmp, points, tension, color)

点コレクションで定義された枢機卿スプライン(立方)を引く。カードのスプラインはコレクションの各点を通過します。

bmp
代表取締役社長 佐藤 正
points
x と y のペアの曲線の点は、配列として解釈されます(x1、y1、x2、y2、x3、y3、x4、y4、y4、x1、x2...、xn、yn)。
tension
曲線の張力は形状を定義します。通常は0と1.の間は直線になります。
color
スプラインのカラー。
DrawCurve
internal static void DrawCurve(WriteableBitmap bmp, int[] points, float tension, Color color)
WriteableBitmapExtensions.DrawCurve(bmp, points, tension, color)

点コレクションで定義された枢機卿スプライン(立方)を引く。カードのスプラインはコレクションの各点を通過します。

bmp
代表取締役社長 佐藤 正
points
x と y のペアの曲線の点は、配列として解釈されます(x1、y1、x2、y2、x3、y3、x4、y4、y4、x1、x2...、xn、yn)。
tension
曲線の張力は形状を定義します。通常は0と1.の間は直線になります。
color
スプラインのカラー。
DrawCurveClosed
internal static void DrawCurveClosed(WriteableBitmap bmp, int[] points, float tension, int color)
WriteableBitmapExtensions.DrawCurveClosed(bmp, points, tension, color)

ポイントコレクションで定義されたクローズド・カルジナル・スプライン(キュービック)を引く。カードキーン・スプラインは、コレクションの各ポイントを通過します。

bmp
代表取締役社長 佐藤 正
points
x と y のペアの曲線の点は、配列として解釈されます(x1、y1、x2、y2、x3、y3、x4、y4、y4、x1、x2...、xn、yn)。
tension
曲線の張力は形状を定義します。通常は0と1.の間は直線になります。
color
スプラインのカラー。
DrawCurveClosed
internal static void DrawCurveClosed(WriteableBitmap bmp, int[] points, float tension, Color color)
WriteableBitmapExtensions.DrawCurveClosed(bmp, points, tension, color)

ポイントコレクションで定義されたクローズド・カルジナル・スプライン(キュービック)を引く。カードキーン・スプラインは、コレクションの各ポイントを通過します。

bmp
代表取締役社長 佐藤 正
points
x と y のペアの曲線の点は、配列として解釈されます(x1、y1、x2、y2、x3、y3、x4、y4、y4、x1、x2...、xn、yn)。
tension
曲線の張力は形状を定義します。通常は0と1.の間は直線になります。
color
スプラインのカラー。
DrawCurveSegment
private static void DrawCurveSegment(int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4, float tension, int color, BitmapContext context, int w, int h)
WriteableBitmapExtensions.DrawCurveSegment(x1, y1, x2, y2, x3, y3, x4, y4, tension, color, context, w, h)

4つの制御ポイントで定義された枢機卿スプライン(立方)のセグメントを引く。

x1
第1回制御ポイントのx座標。
y1
y座標の1st制御点。
x2
第2コントロールポイントのx座標。
y2
y座標の2番目の制御点。
x3
第3回制御ポイントのx座標。
y3
y座標の3位制御点。
x4
第4回制御ポイントのx座標。
y4
第4回制御ポイントのy座標。
tension
曲線の張力は形状を定義します。通常は0と1.の間は直線になります。
color
色の色。
context
ピクセル配列を含むコンテキスト。
w
ビットマップの幅。
h
ビットマップの高さ。
DrawEllipse
internal static void DrawEllipse(WriteableBitmap bmp, int x1, int y1, int x2, int y2, int color, int thickness)
WriteableBitmapExtensions.DrawEllipse(bmp, x1, y1, x2, y2, color, thickness)

楕円を描画するための高速ブレンサムタイプアルゴリズムhttp://homepage.smc.edu/kennedy_john/belipse.pdfx2はx1とy2よりも大きい必要があります。

bmp
代表取締役社長 佐藤 正
x1
境界線の四角の左側のx座標。
y1
境界線の四角の上部のy座標。
x2
境界線の四角の右側のx座標。
y2
境界線の四角の底面のy座標。
color
線の色。
thickness
ラインの厚さ
DrawEllipseCentered
internal static void DrawEllipseCentered(WriteableBitmap bmp, int xc, int yc, int xr, int yr, Color color)
WriteableBitmapExtensions.DrawEllipseCentered(bmp, xc, yc, xr, yr, color)

楕円http://homepage.smc.edu/kennedy_john/belipse.pdfを描画するための高速ブレンセンハムタイプアルゴリズムは、DrawEllipse()よりも異なるパラメータ表現を使用します。

bmp
代表取締役社長 佐藤 正
xc
楕円の中心のX座標。
yc
楕円の中心のy座標。
xr
x方向の楕円の半径。
yr
y方向の楕円の半径。
color
線の色。
DrawEllipseCentered
internal static void DrawEllipseCentered(WriteableBitmap bmp, int xc, int yc, int xr, int yr, int color)
WriteableBitmapExtensions.DrawEllipseCentered(bmp, xc, yc, xr, yr, color)

楕円http://homepage.smc.edu/kennedy_john/belipse.pdfを描画するための高速ブレンセンハムタイプアルゴリズムは、DrawEllipse()よりも異なるパラメータ表現を使用します。

bmp
代表取締役社長 佐藤 正
xc
楕円の中心のX座標。
yc
楕円の中心のy座標。
xr
x方向の楕円の半径。
yr
y方向の楕円の半径。
color
線の色。
DrawLine
internal static void DrawLine(WriteableBitmap bmp, int x1, int y1, int x2, int y2, int color)
WriteableBitmapExtensions.DrawLine(bmp, x1, y1, x2, y2, color)

最適化されたDDAを使用して2つのポイントを接続することによって、色付きのラインを引く。

bmp
代表取締役社長 佐藤 正
x1
スタート地点のx座標。
y1
スタート地点のy座標。
x2
終点のx座標。
y2
終点のy座標。
color
線の色。
DrawLine
internal static void DrawLine(BitmapContext context, int pixelWidth, int pixelHeight, int x1, int y1, int x2, int y2, int color)
WriteableBitmapExtensions.DrawLine(context, pixelWidth, pixelHeight, x1, y1, x2, y2, color)

最適化されたDDAを使用して2つのポイントを接続することで色付きのラインを描画します。ピクセル配列と幅を直接使用して、最高のパフォーマンスを実現します。

context
ピクセルをint RGBA値として含んだコンテキスト。
pixelWidth
ピクセル配列の1つのスキャンラインの幅。
pixelHeight
ビットマップの高さ。
x1
スタート地点のx座標。
y1
スタート地点のy座標。
x2
終点のx座標。
y2
終点のy座標。
color
線の色。
DrawLine
internal static void DrawLine(WriteableBitmap bmp, int x1, int y1, int x2, int y2, Color color)
WriteableBitmapExtensions.DrawLine(bmp, x1, y1, x2, y2, color)

最適化されたDDAを使用して2つのポイントを接続することによって、色付きのラインを引く。

bmp
代表取締役社長 佐藤 正
x1
スタート地点のx座標。
y1
スタート地点のy座標。
x2
終点のx座標。
y2
終点のy座標。
color
線の色。
DrawLineAa
internal static void DrawLineAa(WriteableBitmap bmp, int x1, int y1, int x2, int y2, Color color)
WriteableBitmapExtensions.DrawLineAa(bmp, x1, y1, x2, y2, color)

http://nokola.com/blog/post/2010/10/14/Anti-aliased-Lines-And-Optimizing-Code-for-Windows-Phone-7e28093First-Look.aspxのWriteableBitmapからGupta-Sproullアルゴリズムの最適化版を使用して、アンチエイリアスラインを引く。 スタートポイントのx座標。 スタートポイントのy座標。 エンドポイントのx座標。 エンドポイントのy座標。 終点のy座標。 線の色。

DrawLineAa
internal static void DrawLineAa(BitmapContext context, int pixelWidth, int pixelHeight, int x1, int y1, int x2, int y2, int color, bool skipFirstPixel)
WriteableBitmapExtensions.DrawLineAa(context, pixelWidth, pixelHeight, x1, y1, x2, y2, color, skipFirstPixel)

反aliased ラインを引いて、Gupta-Sproull アルゴリズムの最適化されたバージョンを使用してhttp://nokola.com/blog/post/2010/10/14/Anti-aliased-Lines-And-Optimizing-Code-for-Windows-Phone-7e28093First-Look.aspxピクセルを int RGBA 値として含んだコンテキスト。ピクセル配列の 1 つのスキャンラインの幅。ビットマップの高さ。スタートポイントの x座標。開始点の y座標。終点の x座標。終点。終点の y座標。終点。終点の y座標。 線の y-coordinate 。 線のカラー。

DrawLineAa
internal static void DrawLineAa(WriteableBitmap bmp, int x1, int y1, int x2, int y2, int color)
WriteableBitmapExtensions.DrawLineAa(bmp, x1, y1, x2, y2, color)

http://nokola.com/blog/post/2010/10/14/Anti-aliased-Lines-And-Optimizing-Code-for-Windows-Phone-7e28093First-Look.aspxのWriteableBitmapからGupta-Sproullアルゴリズムの最適化版を使用して、アンチエイリアスラインを引く。 スタートポイントのx座標。 スタートポイントのy座標。 エンドポイントのx座標。 エンドポイントのy座標。 終点のy座標。 線の色。

DrawLineBresenham
internal static void DrawLineBresenham(WriteableBitmap bmp, int x1, int y1, int x2, int y2, int color)
WriteableBitmapExtensions.DrawLineBresenham(bmp, x1, y1, x2, y2, color)

Bresenhamアルゴリズムを使用して2つのポイントを接続することで色付きのラインを引く。

bmp
代表取締役社長 佐藤 正
x1
スタート地点のx座標。
y1
スタート地点のy座標。
x2
終点のx座標。
y2
終点のy座標。
color
線の色。
DrawLineBresenham
internal static void DrawLineBresenham(WriteableBitmap bmp, int x1, int y1, int x2, int y2, Color color)
WriteableBitmapExtensions.DrawLineBresenham(bmp, x1, y1, x2, y2, color)

Bresenhamアルゴリズムを使用して2つのポイントを接続することで色付きのラインを引く。

bmp
代表取締役社長 佐藤 正
x1
スタート地点のx座標。
y1
スタート地点のy座標。
x2
終点のx座標。
y2
終点のy座標。
color
線の色。
DrawLineDDA
internal static void DrawLineDDA(WriteableBitmap bmp, int x1, int y1, int x2, int y2, int color)
WriteableBitmapExtensions.DrawLineDDA(bmp, x1, y1, x2, y2, color)

DDAアルゴリズム(デジタル差動解析器)を使用して2つのポイントを接続することで色線を引く。

bmp
代表取締役社長 佐藤 正
x1
スタート地点のx座標。
y1
スタート地点のy座標。
x2
終点のx座標。
y2
終点のy座標。
color
線の色。
DrawLineDDA
internal static void DrawLineDDA(WriteableBitmap bmp, int x1, int y1, int x2, int y2, Color color)
WriteableBitmapExtensions.DrawLineDDA(bmp, x1, y1, x2, y2, color)

DDAアルゴリズム(デジタル差動解析器)を使用して2つのポイントを接続することで色線を引く。

bmp
代表取締役社長 佐藤 正
x1
スタート地点のx座標。
y1
スタート地点のy座標。
x2
終点のx座標。
y2
終点のy座標。
color
線の色。
DrawPolyline
internal static void DrawPolyline(WriteableBitmap bmp, int[] points, Color color)
WriteableBitmapExtensions.DrawPolyline(bmp, points, color)

行を閉じる場合は、配列の最後に、ポリラインを引く。最初の点も配列の最後に追加します。

bmp
代表取締役社長 佐藤 正
points
x と y のペアのポリラインのポイントは、配列として解釈されます(x1、y1、x2、y2、...、xn、yn)。
color
線の色。
DrawPolyline
internal static void DrawPolyline(WriteableBitmap bmp, int[] points, int color)
WriteableBitmapExtensions.DrawPolyline(bmp, points, color)

行を閉じる場合は、配列の最後に、ポリラインを引く。最初の点も配列の最後に追加します。

bmp
代表取締役社長 佐藤 正
points
x と y のペアのポリラインのポイントは、配列として解釈されます(x1、y1、x2、y2、...、xn、yn)。
color
線の色。
DrawQuad
internal static void DrawQuad(WriteableBitmap bmp, int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4, Color color)
WriteableBitmapExtensions.DrawQuad(bmp, x1, y1, x2, y2, x3, y3, x4, y4, color)

四角を引く。

bmp
代表取締役社長 佐藤 正
x1
1位のx座標。
y1
y座標1点目
x2
2位のx座標。
y2
y座標2位の2位の座標。
x3
3位のx座標。
y3
3位のy座標。
x4
第4点のx座標。
y4
4位のy座標。
color
色の色。
DrawQuad
internal static void DrawQuad(WriteableBitmap bmp, int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4, int color)
WriteableBitmapExtensions.DrawQuad(bmp, x1, y1, x2, y2, x3, y3, x4, y4, color)

四角を引く。

bmp
代表取締役社長 佐藤 正
x1
1位のx座標。
y1
y座標1点目
x2
2位のx座標。
y2
y座標2位の2位の座標。
x3
3位のx座標。
y3
3位のy座標。
x4
第4点のx座標。
y4
4位のy座標。
color
色の色。
DrawRectangle
internal static void DrawRectangle(WriteableBitmap bmp, int x1, int y1, int x2, int y2, int color)
WriteableBitmapExtensions.DrawRectangle(bmp, x1, y1, x2, y2, color)

四角を引く。x2はx1とy2よりも大きい必要があります。y1よりも大きいです。

bmp
代表取締役社長 佐藤 正
x1
境界線の四角の左側のx座標。
y1
境界線の四角の上部のy座標。
x2
境界線の四角の右側のx座標。
y2
境界線の四角の底面のy座標。
color
色の色。
DrawRectangle
internal static void DrawRectangle(WriteableBitmap bmp, int x1, int y1, int x2, int y2, Color color)
WriteableBitmapExtensions.DrawRectangle(bmp, x1, y1, x2, y2, color)

四角を引く。x2はx1とy2よりも大きい必要があります。y1よりも大きいです。

bmp
代表取締役社長 佐藤 正
x1
境界線の四角の左側のx座標。
y1
境界線の四角の上部のy座標。
x2
境界線の四角の右側のx座標。
y2
境界線の四角の底面のy座標。
color
色の色。
DrawTriangle
internal static void DrawTriangle(WriteableBitmap bmp, int x1, int y1, int x2, int y2, int x3, int y3, Color color)
WriteableBitmapExtensions.DrawTriangle(bmp, x1, y1, x2, y2, x3, y3, color)

三角形を引く。

bmp
代表取締役社長 佐藤 正
x1
1位のx座標。
y1
y座標1点目
x2
2位のx座標。
y2
y座標2位の2位の座標。
x3
3位のx座標。
y3
3位のy座標。
color
色の色。
DrawTriangle
internal static void DrawTriangle(WriteableBitmap bmp, int x1, int y1, int x2, int y2, int x3, int y3, int color)
WriteableBitmapExtensions.DrawTriangle(bmp, x1, y1, x2, y2, x3, y3, color)

三角形を引く。

bmp
代表取締役社長 佐藤 正
x1
1位のx座標。
y1
y座標1点目
x2
2位のx座標。
y2
y座標2位の2位の座標。
x3
3位のx座標。
y3
3位のy座標。
color
色の色。
DrawWuLine
public static void DrawWuLine(BitmapContext context, int pixelWidth, int pixelHeight, short X0, short Y0, short X1, short Y1, int sa, int sr, int sg, int sb)
WriteableBitmapExtensions.DrawWuLine(context, pixelWidth, pixelHeight, X0, Y0, X1, Y1, sa, sr, sg, sb)

アンチエイリアス、アルファブレンド、カラーラインをDrawsは、Wuのアンチエイリアスアルゴリズムを使用して2つのポイントを接続することで、ピクセル配列と幅を直接使用して最高のパフォーマンスを実現します。

context
ピクセルを int RGBA 値として含んだ配列です。
pixelWidth
ピクセル配列の1つのスキャンラインの幅。
pixelHeight
ビットマップの高さ。
X0
x0 の
Y0
y0 の y0 です。
X1
x1. の
Y1
y1.
sa
アルファカラーコンポーネント
sr
プリマルチプリペアされた赤色成分
sg
プレマルチプリケーショングリーンカラーコンポーネント
sb
青色素子の構成要素
FillBeziers
internal static void FillBeziers(WriteableBitmap bmp, int[] points, Color color)
WriteableBitmapExtensions.FillBeziers(bmp, points, color)

一連の充填された、立方ベジエラーは、開始、終了、および2つの制御ポイントによって定義される各スプラインをスプラインします。 前の曲線の終点は、次の点として使用されます。 初期曲線のTherforeは、4つのポイントとその後の3(2制御と1エンドポイント)を必要とします。

bmp
代表取締役社長 佐藤 正
points
x と y のペアの曲線の点は、配列として解釈されます(x1、y1、cx1、cy1、cx2、cy2、x2、y2、y2、cx3、cx4 ...、xn、yn)。
color
スプラインのカラー。
FillBeziers
internal static void FillBeziers(WriteableBitmap bmp, int[] points, int color)
WriteableBitmapExtensions.FillBeziers(bmp, points, color)

一連の充填された、立方ベジエラーは、開始、終了、および2つの制御ポイントによって定義される各スプラインをスプラインします。 前の曲線の終点は、次の点として使用されます。 初期曲線のTherforeは、4つのポイントとその後の3(2制御と1エンドポイント)を必要とします。

bmp
代表取締役社長 佐藤 正
points
x と y のペアの曲線の点は、配列として解釈されます(x1、y1、cx1、cy1、cx2、cy2、x2、y2、y2、cx3、cx4 ...、xn、yn)。
color
スプラインのカラー。
FillCurve
internal static void FillCurve(WriteableBitmap bmp, int[] points, float tension, int color)
WriteableBitmapExtensions.FillCurve(bmp, points, tension, color)

ポイントコレクションで定義された、カードのスプライン(キュービック)を埋めます。カードのスプラインはコレクションの各ポイントを通過します。

bmp
代表取締役社長 佐藤 正
points
x と y のペアの曲線の点は、配列として解釈されます(x1、y1、x2、y2、x3、y3、x4、y4、y4、x1、x2...、xn、yn)。
tension
曲線の張力は形状を定義します。通常は0と1.の間は直線になります。
color
スプラインのカラー。
FillCurve
internal static void FillCurve(WriteableBitmap bmp, int[] points, float tension, Color color)
WriteableBitmapExtensions.FillCurve(bmp, points, tension, color)

ポイントコレクションで定義された、カードのスプライン(キュービック)を埋めます。カードのスプラインはコレクションの各ポイントを通過します。

bmp
代表取締役社長 佐藤 正
points
x と y のペアの曲線の点は、配列として解釈されます(x1、y1、x2、y2、x3、y3、x4、y4、y4、x1、x2...、xn、yn)。
tension
曲線の張力は形状を定義します。通常は0と1.の間は直線になります。
color
スプラインのカラー。
FillCurveClosed
internal static void FillCurveClosed(WriteableBitmap bmp, int[] points, float tension, Color color)
WriteableBitmapExtensions.FillCurveClosed(bmp, points, tension, color)

ポイントコレクションで定義された、閉じた枢機卿スプライン(立方)を引く。カードのスプラインはコレクションの各ポイントを通過します。

bmp
代表取締役社長 佐藤 正
points
x と y のペアの曲線の点は、配列として解釈されます(x1、y1、x2、y2、x3、y3、x4、y4、y4、x1、x2...、xn、yn)。
tension
曲線の張力は形状を定義します。通常は0と1.の間は直線になります。
color
スプラインのカラー。
FillCurveClosed
internal static void FillCurveClosed(WriteableBitmap bmp, int[] points, float tension, int color)
WriteableBitmapExtensions.FillCurveClosed(bmp, points, tension, color)

ポイントコレクションで定義された、閉じた枢機卿スプライン(立方)を引く。カードのスプラインはコレクションの各ポイントを通過します。

bmp
代表取締役社長 佐藤 正
points
x と y のペアの曲線の点は、配列として解釈されます(x1、y1、x2、y2、x3、y3、x4、y4、y4、x1、x2...、xn、yn)。
tension
曲線の張力は形状を定義します。通常は0と1.の間は直線になります。
color
スプラインのカラー。
FillEllipse
internal static void FillEllipse(WriteableBitmap bmp, int x1, int y1, int x2, int y2, Color color)
WriteableBitmapExtensions.FillEllipse(bmp, x1, y1, x2, y2, color)

描画用高速ブレンスタムタイプアルゴリズム 充填楕円 http://homepage.smc.edu/kennedy_john/belipse.pdfx2 は x1 以上で、y2 は y1 よりも大きい必要があります。

bmp
代表取締役社長 佐藤 正
x1
境界線の四角の左側のx座標。
y1
境界線の四角の上部のy座標。
x2
境界線の四角の右側のx座標。
y2
境界線の四角の底面のy座標。
color
線の色。
FillEllipse
internal static void FillEllipse(WriteableBitmap bmp, int x1, int y1, int x2, int y2, int color)
WriteableBitmapExtensions.FillEllipse(bmp, x1, y1, x2, y2, color)

描画用高速ブレンスタムタイプアルゴリズム 充填楕円 http://homepage.smc.edu/kennedy_john/belipse.pdfx2 は x1 以上で、y2 は y1 よりも大きい必要があります。

bmp
代表取締役社長 佐藤 正
x1
境界線の四角の左側のx座標。
y1
境界線の四角の上部のy座標。
x2
境界線の四角の右側のx座標。
y2
境界線の四角の底面のy座標。
color
線の色。
FillEllipseCentered
internal static void FillEllipseCentered(WriteableBitmap bmp, int xc, int yc, int xr, int yr, int color)
WriteableBitmapExtensions.FillEllipseCentered(bmp, xc, yc, xr, yr, color)

描画の充填楕円のための高速ブレンスタムタイプアルゴリズム http://homepage.smc.edu/kennedy_john/belipse.pdf () より異なるパラメーター表現を使用します。

bmp
代表取締役社長 佐藤 正
xc
楕円の中心のX座標。
yc
楕円の中心のy座標。
xr
x方向の楕円の半径。
yr
y方向の楕円の半径。
color
線の色。
FillEllipseCentered
internal static void FillEllipseCentered(WriteableBitmap bmp, int xc, int yc, int xr, int yr, Color color)
WriteableBitmapExtensions.FillEllipseCentered(bmp, xc, yc, xr, yr, color)

描画の充填楕円のための高速ブレンスタムタイプアルゴリズム http://homepage.smc.edu/kennedy_john/belipse.pdf () より異なるパラメーター表現を使用します。

bmp
代表取締役社長 佐藤 正
xc
楕円の中心のX座標。
yc
楕円の中心のy座標。
xr
x方向の楕円の半径。
yr
y方向の楕円の半径。
color
線の色。
FillPolygon
internal static void FillPolygon(WriteableBitmap bmp, int[] points, Func<int, int, int> colorCb, BlendMode blendMode)
WriteableBitmapExtensions.FillPolygon(bmp, points, colorCb, blendMode)

いっぱいのポリゴンを引く。 ラインが閉じる必要がある場合は、配列の最後に最初のポイントも追加します。

bmp
代表取締役社長 佐藤 正
points
x と y のペアのポリゴンの点は、配列として解釈されます(x1、y1、x2、y2、...、xn、yn)。
colorCb
塗りつぶしの色。
blendMode
デフォルトはアルファです
FillPolygon
internal static void FillPolygon(WriteableBitmap bmp, int[] points, int color, BlendMode blendMode)
WriteableBitmapExtensions.FillPolygon(bmp, points, color, blendMode)

いっぱいのポリゴンを引く。 ラインが閉じる必要がある場合は、配列の最後に最初のポイントも追加します。

bmp
代表取締役社長 佐藤 正
points
x と y のペアのポリゴンの点は、配列として解釈されます(x1、y1、x2、y2、...、xn、yn)。
color
線の色。
blendMode
デフォルトはアルファです
FillPolygon
internal static void FillPolygon(WriteableBitmap bmp, int[] points, Color color)
WriteableBitmapExtensions.FillPolygon(bmp, points, color)

いっぱいのポリゴンを引く。 ラインが閉じる必要がある場合は、配列の最後に最初のポイントも追加します。

bmp
代表取締役社長 佐藤 正
points
x と y のペアのポリゴンの点は、配列として解釈されます(x1、y1、x2、y2、...、xn、yn)。
color
線の色。
FillQuad
internal static void FillQuad(WriteableBitmap bmp, int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4, int color)
WriteableBitmapExtensions.FillQuad(bmp, x1, y1, x2, y2, x3, y3, x4, y4, color)

満たされたクワッドをこなす。

bmp
代表取締役社長 佐藤 正
x1
1位のx座標。
y1
y座標1点目
x2
2位のx座標。
y2
y座標2位の2位の座標。
x3
3位のx座標。
y3
3位のy座標。
x4
第4点のx座標。
y4
4位のy座標。
color
色の色。
FillQuad
internal static void FillQuad(WriteableBitmap bmp, int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4, Color color)
WriteableBitmapExtensions.FillQuad(bmp, x1, y1, x2, y2, x3, y3, x4, y4, color)

満たされたクワッドをこなす。

bmp
代表取締役社長 佐藤 正
x1
1位のx座標。
y1
y座標1点目
x2
2位のx座標。
y2
y座標2位の2位の座標。
x3
3位のx座標。
y3
3位のy座標。
x4
第4点のx座標。
y4
4位のy座標。
color
色の色。
FillRectangle
internal static void FillRectangle(WriteableBitmap bmp, int x1, int y1, int x2, int y2, Color color)
WriteableBitmapExtensions.FillRectangle(bmp, x1, y1, x2, y2, color)

四角形を丸ごと押して、x2 は x1 と y2 よりも大きい必要があります。y1 よりも大きいです。

bmp
代表取締役社長 佐藤 正
x1
境界線の四角の左側のx座標。
y1
境界線の四角の上部のy座標。
x2
境界線の四角の右側のx座標。
y2
境界線の四角の底面のy座標。
color
色の色。
FillRectangle
internal static void FillRectangle(WriteableBitmap bmp, int x1, int y1, int x2, int y2, int color, BlendMode blendMode)
WriteableBitmapExtensions.FillRectangle(bmp, x1, y1, x2, y2, color, blendMode)

四角形を丸ごと押して、x2 は x1 と y2 よりも大きい必要があります。y1 よりも大きいです。

bmp
代表取締役社長 佐藤 正
x1
境界線の四角の左側のx座標。
y1
境界線の四角の上部のy座標。
x2
境界線の四角の右側のx座標。
y2
境界線の四角の底面のy座標。
color
色の色。
blendMode
ブレンドモード。
FillRectangle
internal static void FillRectangle(WriteableBitmap bmp, int x1, int y1, int x2, int y2, Func<int, int, int> colorCb, BlendMode blendMode)
WriteableBitmapExtensions.FillRectangle(bmp, x1, y1, x2, y2, colorCb, blendMode)

四角形を丸ごと押して、x2 は x1 と y2 よりも大きい必要があります。y1 よりも大きいです。

bmp
代表取締役社長 佐藤 正
x1
境界線の四角の左側のx座標。
y1
境界線の四角の上部のy座標。
x2
境界線の四角の右側のx座標。
y2
境界線の四角の底面のy座標。
colorCb
色の色。
blendMode
ブレンドモード。
FillTriangle
internal static void FillTriangle(WriteableBitmap bmp, int x1, int y1, int x2, int y2, int x3, int y3, int color)
WriteableBitmapExtensions.FillTriangle(bmp, x1, y1, x2, y2, x3, y3, color)

三角形を埋める。

bmp
代表取締役社長 佐藤 正
x1
1位のx座標。
y1
y座標1点目
x2
2位のx座標。
y2
y座標2位の2位の座標。
x3
3位のx座標。
y3
3位のy座標。
color
色の色。
FillTriangle
internal static void FillTriangle(WriteableBitmap bmp, int x1, int y1, int x2, int y2, int x3, int y3, Color color)
WriteableBitmapExtensions.FillTriangle(bmp, x1, y1, x2, y2, x3, y3, color)

三角形を埋める。

bmp
代表取締役社長 佐藤 正
x1
1位のx座標。
y1
y座標1点目
x2
2位のx座標。
y2
y座標2位の2位の座標。
x3
3位のx座標。
y3
3位のy座標。
color
色の色。
Flip
internal static WriteableBitmap Flip(WriteableBitmap bmp, FlipMode flipMode)
result = WriteableBitmapExtensions.Flip(bmp, flipMode)

フリップ(イメージを反映) 縦か横のアイター。

bmp
代表取締役社長 佐藤 正
flipMode
フリップモード。

戻り値: 入出力されたバージョンであるWriteableBitmapを新たに作成します。

ForEach
internal static void ForEach(WriteableBitmap bmp, Func<int, int, Color> func)
WriteableBitmapExtensions.ForEach(bmp, func)

与えられた関数をビットマップのすべてのピクセルに指定して、色を設定することができます。

bmp
代表取締役社長 佐藤 正
func
応用機能。変数x、yおよび色を結果としてとを使って
ForEach
internal static void ForEach(WriteableBitmap bmp, Func<int, int, Color, Color> func)
WriteableBitmapExtensions.ForEach(bmp, func)

与えられた関数をビットマップのすべてのピクセルに指定して、色を設定することができます。

bmp
代表取締役社長 佐藤 正
func
応用機能。変数x、y、源色および色を結果としてとを使って
FromByteArray
internal static WriteableBitmap FromByteArray(WriteableBitmap bmp, byte[] buffer)
result = WriteableBitmapExtensions.FromByteArray(bmp, buffer)

ARGBバイト配列からこのWriteableBitmapにすべてのカラー情報をコピーします。

bmp
代表取締役社長 佐藤 正
buffer
バイトARGB値としてカラーバッファ。

戻り値: パラメータとして渡されたWriteableBitmap@

FromByteArray
internal static WriteableBitmap FromByteArray(WriteableBitmap bmp, byte[] buffer, int count)
result = WriteableBitmapExtensions.FromByteArray(bmp, buffer, count)

ARGBバイト配列からこのWriteableBitmapにカラー情報をコピーします。

bmp
代表取締役社長 佐藤 正
count
バッファからコピーするバイト数。
buffer
バイトARGB値としてカラーバッファ。

戻り値: パラメータとして渡されたWriteableBitmap@

FromByteArray
internal static WriteableBitmap FromByteArray(WriteableBitmap bmp, byte[] buffer, int offset, int count)
result = WriteableBitmapExtensions.FromByteArray(bmp, buffer, offset, count)

ARGB バイト配列から、特定のバッファインデックスから始まる WriteableBitmapにカラー情報をコピーします。

bmp
代表取締役社長 佐藤 正
offset
バッファの先頭のインデックス。
count
バッファからコピーするバイト数。
buffer
バイトARGB値としてカラーバッファ。

戻り値: パラメータとして渡されたWriteableBitmap@

FromContent
internal static WriteableBitmap FromContent(WriteableBitmap bmp, string relativePath)
result = WriteableBitmapExtensions.FromContent(bmp, relativePath)

アプリケーションのコンテンツから画像をロードし、WriteableBitmapに埋めます。

bmp
代表取締役社長 佐藤 正
relativePath
コンテンツファイルへの相対パスのみ。

戻り値: パラメータとして渡されたWriteableBitmap@

FromResource
internal static WriteableBitmap FromResource(WriteableBitmap bmp, string relativePath)
result = WriteableBitmapExtensions.FromResource(bmp, relativePath)

アプリケーションリソースファイルから画像を読み込み、WriteableBitmapを埋めます。

bmp
代表取締役社長 佐藤 正
relativePath
リソースファイルへの相対パスのみ。 アセンブリ名は自動的に取得されます。

戻り値: パラメータとして渡されたWriteableBitmap@

GetBrightness
internal static byte GetBrightness(WriteableBitmap bmp, int x, int y)
result = WriteableBitmapExtensions.GetBrightness(bmp, x, y)

x でピクセルの明るさ/輝度を得られる、y はバイトとして座標を座標化します。

bmp
代表取締役社長 佐藤 正
x
ピクセルのx座標。
y
ピクセルのy座標。

戻り値: x のピクセルの明るさ、y。

GetPixel
internal static Color GetPixel(WriteableBitmap bmp, int x, int y)
result = WriteableBitmapExtensions.GetPixel(bmp, x, y)

x でピクセルの色を取得すると、色構造として y 座標 を座標とします。最高のパフォーマンスのために、この方法は反復的なリアルタイムのシナリオでは使用しないでください。ループ内で直接コードを実装します。

bmp
代表取締役社長 佐藤 正
x
ピクセルのx座標。
y
ピクセルのy座標。

戻り値: x のピクセルの色、色は指示します。

GetPixeli
internal static int GetPixeli(WriteableBitmap bmp, int x, int y)
result = WriteableBitmapExtensions.GetPixeli(bmp, x, y)

x でピクセルの色を取得する、y は整数として座標を座標します。最高のパフォーマンスのために、この方法は反復的なリアルタイムのシナリオでは使用しないでください。ループ内で直接コードを実装します。

bmp
代表取締役社長 佐藤 正
x
ピクセルのx座標。
y
ピクセルのy座標。

戻り値: x のピクセルの色、y 。

Invert
internal static WriteableBitmap Invert(WriteableBitmap bmp)
result = WriteableBitmapExtensions.Invert(bmp)

新しく変換されたWriteableBitmap@を生成し、返します。

bmp
代表取締役社長 佐藤 正

戻り値: The new inverted WriteableBitmap.

Resize
internal static int[] Resize(BitmapContext srcContext, int widthSource, int heightSource, int width, int height, Interpolation interpolation)
result = WriteableBitmapExtensions.Resize(srcContext, widthSource, heightSource, width, height, interpolation)

新しくリサイズされたビットマップを作成します。

srcContext
ソースのコンテキスト。
widthSource
ソースピクセルの幅。
heightSource
ソースピクセルの高さ。
width
新しく希望する幅。
height
新しく希望する高さ。
interpolation
使用するべき補間方法。

戻り値: 新規のビットマップは、入力のリサイズバージョンです。

Resize
internal static WriteableBitmap Resize(WriteableBitmap bmp, int width, int height, Interpolation interpolation)
result = WriteableBitmapExtensions.Resize(bmp, width, height, interpolation)

Creates a new resized WriteableBitmap.

bmp
代表取締役社長 佐藤 正
width
新しく希望する幅。
height
新しく希望する高さ。
interpolation
使用するべき補間方法。

戻り値: 新規WriteableBitmap@ は、入力のサイズ変更版です。

Rotate
internal static WriteableBitmap Rotate(WriteableBitmap bmp, int angle)
result = WriteableBitmapExtensions.Rotate(bmp, angle)

ビットマップを90°のステップで回転させ、新しい回転WriteableBitmap@を戻します。

bmp
代表取締役社長 佐藤 正
angle
ビットマップを回す角度は、90°のステップで右回りに回転する必要があります。

戻り値: 入出力バージョンのWriteableBitmapを新たに作成します。

RotateFree
internal static WriteableBitmap RotateFree(WriteableBitmap bmp, double angle, bool crop)
result = WriteableBitmapExtensions.RotateFree(bmp, angle, crop)

ビットマップを任意の度に回転させると、WriteableBitmap@ が新しい回転を返します。

bmp
代表取締役社長 佐藤 正
angle
360度(陽性=時計回り)の任意角度。
crop
true: サイズを保ち、偽りなく:キャンバスを新しいサイズに調節して下さい

戻り値: 入出力バージョンのWriteableBitmapを新たに作成します。

SetPixel
internal static void SetPixel(WriteableBitmap bmp, int x, int y, int color)
WriteableBitmapExtensions.SetPixel(bmp, x, y, color)

ピクセルの色を設定します。最高のパフォーマンスのために、この方法は反復的なリアルタイムのシナリオでは使用しないでください。ループ内で直接コードを実装します。

bmp
代表取締役社長 佐藤 正
x
x座標(row) 。
y
y座標(カラム)。
color
色の色。
SetPixel
internal static void SetPixel(WriteableBitmap bmp, int x, int y, byte a, Color color)
WriteableBitmapExtensions.SetPixel(bmp, x, y, a, color)

追加のアルファ値を使用してピクセルの色を設定します。 このメソッドは、反復的なリアルタイムのシナリオでは使用しないでください。 ループ内のコードを直接実装します。

bmp
代表取締役社長 佐藤 正
x
x座標(row) 。
y
y座標(カラム)。
a
色のアルファ値。
color
色の色。
SetPixel
internal static void SetPixel(WriteableBitmap bmp, int x, int y, Color color)
WriteableBitmapExtensions.SetPixel(bmp, x, y, color)

ピクセルの色を設定します。最高のパフォーマンスのために、この方法は反復的なリアルタイムのシナリオでは使用しないでください。ループ内で直接コードを実装します。

bmp
代表取締役社長 佐藤 正
x
x座標(row) 。
y
y座標(カラム)。
color
色の色。
SetPixel
internal static void SetPixel(WriteableBitmap bmp, int x, int y, byte a, byte r, byte g, byte b)
WriteableBitmapExtensions.SetPixel(bmp, x, y, a, r, g, b)

アルファ値を含むピクセルの色を設定します。このメソッドは、反復的なリアルタイムのシナリオでは使用しないでください。ループ内で直接コードを実行します。

bmp
代表取締役社長 佐藤 正
x
x座標(row) 。
y
y座標(カラム)。
a
色のアルファ値。
r
色の赤値。
g
色の緑色値。
b
色の青値。
SetPixel
internal static void SetPixel(WriteableBitmap bmp, int x, int y, byte r, byte g, byte b)
WriteableBitmapExtensions.SetPixel(bmp, x, y, r, g, b)

ピクセルの色を設定します。最高のパフォーマンスのために、この方法は反復的なリアルタイムのシナリオでは使用しないでください。ループ内で直接コードを実装します。

bmp
代表取締役社長 佐藤 正
x
x座標(row) 。
y
y座標(カラム)。
r
色の赤値。
g
色の緑色値。
b
色の青値。
SetPixeli
internal static void SetPixeli(WriteableBitmap bmp, int index, byte r, byte g, byte b)
WriteableBitmapExtensions.SetPixeli(bmp, index, r, g, b)

あらかじめ計算されたインデックス(ファッショナブル)を使用してピクセルの色を設定します。 最良のパフォーマンスのために、この方法は、反復的なリアルタイムのシナリオでは使用しないでください。 ループ内のコードを直接実装します。

bmp
代表取締役社長 佐藤 正
index
座標インデックス。
r
色の赤値。
g
色の緑色値。
b
色の青値。
SetPixeli
internal static void SetPixeli(WriteableBitmap bmp, int index, byte a, Color color)
WriteableBitmapExtensions.SetPixeli(bmp, index, a, color)

追加のアルファ値とプリカルキュレートされたインデックス(ファイヤー)を使用してピクセルの色を設定します。 最高のパフォーマンスのために、この方法は反復的なリアルタイムのシナリオで使用しないでください。 ループ内で直接コードを実装します。

bmp
代表取締役社長 佐藤 正
index
座標インデックス。
a
色のアルファ値。
color
色の色。
SetPixeli
internal static void SetPixeli(WriteableBitmap bmp, int index, byte a, byte r, byte g, byte b)
WriteableBitmapExtensions.SetPixeli(bmp, index, a, r, g, b)

アルファ値を含むピクセルの色を設定し、あらかじめ計算されたインデックス(ファッショナブル)を使用します。最高のパフォーマンスのために、この方法は反復的なリアルタイムのシナリオで使用すべきではありません。ループ内で直接コードを実装します。

bmp
代表取締役社長 佐藤 正
index
座標インデックス。
a
色のアルファ値。
r
色の赤値。
g
色の緑色値。
b
色の青値。
SetPixeli
internal static void SetPixeli(WriteableBitmap bmp, int index, Color color)
WriteableBitmapExtensions.SetPixeli(bmp, index, color)

あらかじめ計算されたインデックス(ファッショナブル)を使用してピクセルの色を設定します。 最良のパフォーマンスのために、この方法は、反復的なリアルタイムのシナリオでは使用しないでください。 ループ内のコードを直接実装します。

bmp
代表取締役社長 佐藤 正
index
座標インデックス。
color
色の色。
SetPixeli
internal static void SetPixeli(WriteableBitmap bmp, int index, int color)
WriteableBitmapExtensions.SetPixeli(bmp, index, color)

あらかじめ計算されたインデックス(ファッショナブル)を使用してピクセルの色を設定します。 最良のパフォーマンスのために、この方法は、反復的なリアルタイムのシナリオでは使用しないでください。 ループ内のコードを直接実装します。

bmp
代表取締役社長 佐藤 正
index
座標インデックス。
color
色の色。
ToByteArray
internal static byte[] ToByteArray(WriteableBitmap bmp, int count)
result = WriteableBitmapExtensions.ToByteArray(bmp, count)

WriteableBitmap から ARGB バイト配列にピクセルをコピーします。

bmp
代表取締役社長 佐藤 正
count
ピクセル数をコピーする。

戻り値: バイトARGB値としてカラーバッファ。

ToByteArray
internal static byte[] ToByteArray(WriteableBitmap bmp)
result = WriteableBitmapExtensions.ToByteArray(bmp)

WriteableBitmap から ARGB バイト配列にすべてのピクセルをコピーします。

bmp
代表取締役社長 佐藤 正

戻り値: バイトARGB値としてカラーバッファ。

ToByteArray
internal static byte[] ToByteArray(WriteableBitmap bmp, int offset, int count)
result = WriteableBitmapExtensions.ToByteArray(bmp, offset, count)

ピクセルをWriteableBitmap@にコピーし、特定のピクセルインデックスで始まるARGBバイト配列にコピーします。

bmp
代表取締役社長 佐藤 正
offset
ピクセルの先頭のインデックス。
count
コピーするピクセルの数、-1 はすべての

戻り値: バイトARGB値としてカラーバッファ。

WriteTga
internal static void WriteTga(WriteableBitmap bmp, Stream destination)
WriteableBitmapExtensions.WriteTga(bmp, destination)

ストリームにTGAイメージとしてWriteableBitmapを書いてください。 の許可を得て使用:http://nokola.com/blog/post/2010/01/21/Quick-and-Dirty-Output-of-WriteableBitmap-as-TGA-Image.aspx

bmp
代表取締役社長 佐藤 正
destination
目的地のストリーム。

フィールド

INSIDE
private const byte INSIDE
value = WriteableBitmapExtensions.INSIDE

スペースを9つの領域に分けるのに使用されるBitfields

KernelGaussianBlur3x3
internal static int[] KernelGaussianBlur3x3
value = WriteableBitmapExtensions.KernelGaussianBlur3x3

ガウスのブラーカーネルをサイズ3x3で

KernelGaussianBlur5x5
internal static int[] KernelGaussianBlur5x5
value = WriteableBitmapExtensions.KernelGaussianBlur5x5

ガウスのブラーカーネルをサイズ5x5で

KernelSharpen3x3
internal static int[] KernelSharpen3x3
value = WriteableBitmapExtensions.KernelSharpen3x3

サイズ3x3でカーネルをシャープン