Bitmap for WPF
WriteSource(BitmapSource) メソッド

C1.WPF.DX.4.5.2 アセンブリ > C1.Util.DX.WIC 名前空間 > BitmapFrameEncode クラス > WriteSource メソッド : WriteSource(BitmapSource) メソッド

The bitmap source to encode.

Encodes a bitmap source.

シンタックス
'宣言
 
Public Overloads Sub WriteSource( _
   ByVal bitmapSource As BitmapSource _
) 
public void WriteSource( 
   BitmapSource bitmapSource
)

パラメータ

bitmapSource

The bitmap source to encode.

解説

If SetSizeis not called prior to calling WriteSource, the size given in prcis used if not null . Otherwise, the size of the BitmapSource given in pIBitmapSourceis used.

If SetPixelFormatis not called prior to calling WriteSource, the pixel format of the BitmapSource given in pIBitmapSourceis used.

If SetResolutionis not called prior to calling WriteSource, the pixel format of pIBitmapSourceis used.

If SetPaletteis not called prior to calling WriteSource, the target pixel format is indexed, and the pixel format of pIBitmapSourcematches the encoder frame's pixel format, then the pIBitmapSourcepixel format is used.

When encoding a GIF image, if the global palette is set and the frame level palette is not set directly by the user or by a custom independent software vendor (ISV) GIF codec, WriteSourcewill use the global palette to encode the frame even when pIBitmapSourcehas a frame level palette.

Windows Vista:The source rect width must match the width set through SetSize. Repeated WriteSourcecalls can be made as long as the total accumulated source rect height is the same as set through SetSize.

参照

BitmapFrameEncode クラス
BitmapFrameEncode メンバ
オーバーロード一覧