ImageDevice

ImageDevice

概要

ImageDevice は Aspose.PDF の FOSS における .NET 用のクラスです。

画像レンダリングデバイス(PNG、JPEG、BMP、TIFF)用の抽象基底クラス。

このクラスは、.NET プログラム内で ImageDevice オブジェクトを操作するための 10 のメソッドを提供します。利用可能なメソッドは GetBitmap、ImageDevice、Process です。Aspose.PDF の .NET 用 FOSS パッケージをインストールすれば、すべての公開メンバーは任意の .NET アプリケーションからアクセス可能です。プロパティ: CoordinateType、FormPresentationMode、Height、RenderingOptions、Resolution、Width。

プロパティ

名前型アクセス説明
ResolutionResolution読み取りDPIでの出力解像度。
RenderingOptionsAspose.Pdf.RenderingOptions読み取り/書き込みページから画像へのレンダリングを高度に制御するためのレンダリングオプション。
CoordinateTypePageCoordinateType読み取り/書き込みWhich page box drives the rendered image extents.
Widthint読み取りConfigured target pixel width (0 = follow the page’s natural size at Resolution).
Heightint読み取りConfigured target pixel height (0 = follow the page’s natural size at Resolution).
FormPresentationModeFormPresentationMode読み取り/書き込みフォームフィールドのレンダリング方法(Production vs Editor)。

メソッド

シグネチャ説明
ImageDevice(resolution: Resolution)組み込みの SoftwarePageRenderer を使用して、Resolution を指定した新しい ImageDevice を初期化します。
ImageDevice()デフォルトの解像度と組み込みの SoftwarePageRenderer を使用して新しい ImageDevice を初期化します。
ImageDevice(width: int, height: int)デフォルト解像度(150 DPI)で、組み込みの SoftwarePageRenderer を使用し、明示的な出力ピクセル寸法を指定した新しい ImageDevice を初期化します。
ImageDevice(width: int, height: int, resolution: Resolution)組み込みの SoftwarePageRenderer を使用して、明示的な出力ピクセル寸法とレンダリング解像度を指定した新しい ImageDevice を初期化します。
ImageDevice(pageSize: Aspose.Pdf.PageSize)PageSize から初期化します(ポイント単位;デフォルトの150 DPIで整数ピクセル寸法に変換)。
ImageDevice(pageSize: Aspose.Pdf.PageSize, resolution: Resolution)PageSize とレンダリング Resolution から初期化します。
GetBitmap(page: Page)ページを Bitmap にレンダリングします。
Process(page: Page, output: Stream)ページを画像バイトに変換し、ストリームに書き込む。
Process(page: Page, outputFileName: string)ページを画像ファイルに変換する。
Process(page: Page)ページを画像バイトに変換する。

参照

 日本語