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。
プロパティ
| 名前 | 型 | アクセス | 説明 |
|---|---|---|---|
Resolution | Resolution | 読み取り | DPIでの出力解像度。 |
RenderingOptions | Aspose.Pdf.RenderingOptions | 読み取り/書き込み | ページから画像へのレンダリングを高度に制御するためのレンダリングオプション。 |
CoordinateType | PageCoordinateType | 読み取り/書き込み | Which page box drives the rendered image extents. |
Width | int | 読み取り | Configured target pixel width (0 = follow the page’s natural size at Resolution). |
Height | int | 読み取り | Configured target pixel height (0 = follow the page’s natural size at Resolution). |
FormPresentationMode | FormPresentationMode | 読み取り/書き込み | フォームフィールドのレンダリング方法(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) | ページを画像バイトに変換する。 |