Aspose::Page::XPS::XpsDocument::CreateVisualBrush 方法

XpsDocument::CreateVisualBrush method

创建一个新的视觉画刷。

System::SharedPtr<XpsModel::XpsVisualBrush> Aspose::Page::XPS::XpsDocument::CreateVisualBrush(System::SharedPtr<XpsModel::XpsContentElement> element, System::Drawing::RectangleF viewbox, System::Drawing::RectangleF viewport)
ParameterType描述
elementSystem::SharedPtr<XpsModel::XpsContentElement>用于 visual brush 的 Visual 属性的 XPS 元素(Canvas、Path 或 Glyphs)。
viewboxSystem::Drawing::RectangleF刷子源内容的位置和尺寸。
视口System::Drawing::RectangleF在包含坐标空间中,主刷子瓦片的区域(可能会重复)用于填充刷子应用的区域。

ReturnValue

新视觉画刷。

另见