Aspose::Page::XPS::XpsDocument::CreateLinearGradientBrush method

XpsDocument::CreateLinearGradientBrush(System::Drawing::PointF, System::Drawing::PointF) method

Creates a new linear gradient brush.

System::SharedPtr<XpsModel::XpsLinearGradientBrush> Aspose::Page::XPS::XpsDocument::CreateLinearGradientBrush(System::Drawing::PointF startPoint, System::Drawing::PointF endPoint)
ParameterTypeDescription
startPointSystem::Drawing::PointFThe starting point of the linear gradient.
endPointSystem::Drawing::PointFThe end point of the linear gradient.

ReturnValue

New linear gradient brush.

See Also

XpsDocument::CreateLinearGradientBrush(System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<XpsModel::XpsGradientStop>>>, System::Drawing::PointF, System::Drawing::PointF) method

Creates a new linear gradient brush.

System::SharedPtr<XpsModel::XpsLinearGradientBrush> Aspose::Page::XPS::XpsDocument::CreateLinearGradientBrush(System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<XpsModel::XpsGradientStop>>> gradientStops, System::Drawing::PointF startPoint, System::Drawing::PointF endPoint)
ParameterTypeDescription
gradientStopsSystem::SharedPtr<System::Collections::Generic::List<System::SharedPtr<XpsModel::XpsGradientStop>>>The list of gradient stops.
startPointSystem::Drawing::PointFThe starting point of the linear gradient.
endPointSystem::Drawing::PointFThe end point of the linear gradient.

ReturnValue

New linear gradient brush.

See Also