Method | Description | |
---|---|---|
DrawRect ( this bmp, IEnumerable |
指定した複数の矩形を指定した色で塗りつぶす
|
|
DrawRect ( this bmp, Rect drawRect, Color color ) : WriteableBitmap |
指定した矩形を指定した色で塗りつぶす
|
|
GetPixels ( this bmp ) : byte[] |
ビットマップの2-Dテクスチャを表す配列を取得します
|
|
GetRect ( this bmp ) : Rect | ||
GetSize ( this bmp ) : Size | ||
Resize ( this bmp, int destWidth, int destHeight ) : WriteableBitmap |
リサイズする
|
|
Save ( this bmp, string fileNameWithoutExtension ) : void |
画像をJPEGフォーマットでピクチャーライブラリへ保存する
|
|
SaveToCameraRoll ( this bmp, string fileNameWithoutExtension ) : void |
画像をJPEGフォーマットでピクチャーライブラリへ保存する
|
Method | Description | |
---|---|---|
GetAspectRatio ( double srcWidth, double srcHeight, double dstWidth, double dstHeight ) : Size |
画像比率を維持したまま指定されたサイズに収まる最大画像サイズを計算する
|
public static DrawRect ( this bmp, IEnumerable |
||
bmp | this | |
drawRects | IEnumerable |
|
color | Color | |
return | WriteableBitmap |
public static DrawRect ( this bmp, Rect drawRect, Color color ) : WriteableBitmap | ||
bmp | this | |
drawRect | Rect | |
color | Color | |
return | WriteableBitmap |
public static GetPixels ( this bmp ) : byte[] | ||
bmp | this | WriteableBitmapオブジェクト |
return | byte[] |
public static Resize ( this bmp, int destWidth, int destHeight ) : WriteableBitmap | ||
bmp | this | WriteableBitmapオブジェクト |
destWidth | int | 変形後の幅 |
destHeight | int | 変形後の高さ |
return | WriteableBitmap |
public static Save ( this bmp, string fileNameWithoutExtension ) : void | ||
bmp | this | 保存するWriteableBitmapオブジェクト |
fileNameWithoutExtension | string | 拡張子を除く保存ファイル名 |
return | void |
public static SaveToCameraRoll ( this bmp, string fileNameWithoutExtension ) : void | ||
bmp | this | 保存するWriteableBitmapオブジェクト |
fileNameWithoutExtension | string | 拡張子を除く保存ファイル名 |
return | void |