C# 클래스 Softbuild.Media.WriteableBitmapCoreExtensions

画像の拡張メソッド
파일 보기 프로젝트 열기: CH3COOH/Softbuild.Media

공개 메소드들

메소드 설명
DrawRect ( this bmp, IEnumerable drawRects, Color color ) : WriteableBitmap

指定した複数の矩形を指定した色で塗りつぶす

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フォーマットでピクチャーライブラリへ保存する

비공개 메소드들

메소드 설명
GetAspectRatio ( double srcWidth, double srcHeight, double dstWidth, double dstHeight ) : Size

画像比率を維持したまま指定されたサイズに収まる最大画像サイズを計算する

메소드 상세

DrawRect() 공개 정적인 메소드

指定した複数の矩形を指定した色で塗りつぶす
public static DrawRect ( this bmp, IEnumerable drawRects, Color color ) : WriteableBitmap
bmp this
drawRects IEnumerable
color Color
리턴 WriteableBitmap

DrawRect() 공개 정적인 메소드

指定した矩形を指定した色で塗りつぶす
public static DrawRect ( this bmp, Rect drawRect, Color color ) : WriteableBitmap
bmp this
drawRect Rect
color Color
리턴 WriteableBitmap

GetPixels() 공개 정적인 메소드

ビットマップの2-Dテクスチャを表す配列を取得します
public static GetPixels ( this bmp ) : byte[]
bmp this WriteableBitmapオブジェクト
리턴 byte[]

GetRect() 공개 정적인 메소드

public static GetRect ( this bmp ) : Rect
bmp this
리턴 Rect

GetSize() 공개 정적인 메소드

public static GetSize ( this bmp ) : Size
bmp this
리턴 Size

Resize() 공개 정적인 메소드

リサイズする
public static Resize ( this bmp, int destWidth, int destHeight ) : WriteableBitmap
bmp this WriteableBitmapオブジェクト
destWidth int 変形後の幅
destHeight int 変形後の高さ
리턴 WriteableBitmap

Save() 공개 정적인 메소드

画像をJPEGフォーマットでピクチャーライブラリへ保存する
public static Save ( this bmp, string fileNameWithoutExtension ) : void
bmp this 保存するWriteableBitmapオブジェクト
fileNameWithoutExtension string 拡張子を除く保存ファイル名
리턴 void

SaveToCameraRoll() 공개 정적인 메소드

画像をJPEGフォーマットでピクチャーライブラリへ保存する
public static SaveToCameraRoll ( this bmp, string fileNameWithoutExtension ) : void
bmp this 保存するWriteableBitmapオブジェクト
fileNameWithoutExtension string 拡張子を除く保存ファイル名
리턴 void