QPdfDocumentRenderOptions 類

QPdfDocumentRenderOptions 類保持從 PDF 文檔渲染頁麵的選項。 更多...

頭: #include <QPdfDocumentRenderOptions>

公共類型

枚舉類 RenderFlag { None, Annotations, OptimizedForLcd, Grayscale, ForceHalftone, …, PathAliased }
flags RenderFlags
枚舉類 Rotation { None, Clockwise90, Clockwise180, Clockwise270 }

公共函數

QPdfDocumentRenderOptions ()
QPdfDocumentRenderOptions::RenderFlags renderFlags () const
QPdfDocumentRenderOptions::Rotation rotation () const
QRect scaledClipRect () const
QSize scaledSize () const
void setRenderFlags (QPdfDocumentRenderOptions::RenderFlags flags )
void setRotation (QPdfDocumentRenderOptions::Rotation rotation )
void setScaledClipRect (const QRect & r )
void setScaledSize (const QSize & s )

詳細描述

另請參閱 QPdfDocument .

成員類型文檔編製

enum class QPdfDocumentRenderOptions:: RenderFlag
flags QPdfDocumentRenderOptions:: RenderFlags

此枚舉用於描述應該如何渲染頁麵。

常量 描述
QPdfDocumentRenderOptions::RenderFlag::None 0x000 默認值,錶示無標誌。
QPdfDocumentRenderOptions::RenderFlag::Annotations 0x001 The page is rendered with annotations.
QPdfDocumentRenderOptions::RenderFlag::OptimizedForLcd 0x002 The text of the page is rendered optimized for LCD display.
QPdfDocumentRenderOptions::RenderFlag::Grayscale 0x004 The page is rendered grayscale.
QPdfDocumentRenderOptions::RenderFlag::ForceHalftone 0x008 Always use halftones for rendering if the output image is stretched.
QPdfDocumentRenderOptions::RenderFlag::TextAliased 0x010 Anti-aliasing is disabled for rendering text.
QPdfDocumentRenderOptions::RenderFlag::ImageAliased 0x020 Anti-aliasing is disabled for rendering images.
QPdfDocumentRenderOptions::RenderFlag::PathAliased 0x040 Anti-aliasing is disabled for rendering paths.

RenderFlags 類型是 typedef 對於 QFlags <RenderFlag>。它存儲 RenderFlag 值的 OR 組閤。

另請參閱 QPdfDocument::render ().

enum class QPdfDocumentRenderOptions:: Rotation

此枚舉描述渲染頁麵的鏇轉。

常量 描述
QPdfDocumentRenderOptions::Rotation::None 0 不鏇轉 (默認)
QPdfDocumentRenderOptions::Rotation::Clockwise90 1 順時針鏇轉 90 度
QPdfDocumentRenderOptions::Rotation::Clockwise180 2 鏇轉 180 度
QPdfDocumentRenderOptions::Rotation::Clockwise270 3 順時針鏇轉 270 度

另請參閱 QPdfDocument::render ().

成員函數文檔編製

[constexpr] QPdfDocumentRenderOptions:: QPdfDocumentRenderOptions ()

構造 QPdfDocumentRenderOptions 對象。

[constexpr] QPdfDocumentRenderOptions::RenderFlags QPdfDocumentRenderOptions:: renderFlags () const

Returns the special flags used for rendering a page from a PDF document.

另請參閱 setRenderFlags ().

[constexpr] QPdfDocumentRenderOptions::Rotation QPdfDocumentRenderOptions:: rotation () const

Returns the rotation used for rendering a page from a PDF document.

另請參閱 setRotation ().

[constexpr] QRect QPdfDocumentRenderOptions:: scaledClipRect () const

Returns the rectangular region to be clipped from the page after having been scaled to scaledSize ().

另請參閱 setScaledClipRect ().

[constexpr] QSize QPdfDocumentRenderOptions:: scaledSize () const

Returns the size of the page to be rendered, in pixels.

另請參閱 setScaledSize ().

[constexpr] void QPdfDocumentRenderOptions:: setRenderFlags ( QPdfDocumentRenderOptions::RenderFlags flags )

Sets the special flags used for rendering a page from a PDF document.

另請參閱 renderFlags ().

[constexpr] void QPdfDocumentRenderOptions:: setRotation ( QPdfDocumentRenderOptions::Rotation rotation )

設置 rotation used for rendering a page from a PDF document.

另請參閱 rotation ().

[constexpr] void QPdfDocumentRenderOptions:: setScaledClipRect (const QRect & r )

Sets the rectangle region ( r ) to be clipped from the page after having been scaled to scaledSize ().

另請參閱 scaledClipRect ().

[constexpr] void QPdfDocumentRenderOptions:: setScaledSize (const QSize & s )

Sets the size ( s ) of the page to be rendered, in pixels.

另請參閱 scaledSize ().