Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeConicGradient

OfficeIMO.Drawing

Namespace
OfficeIMO.Drawing
Assembly
OfficeIMO.Core
Source revision
ba882f6b0d07 with working tree changes
Modifiers
sealed

Backend-neutral conic gradient intent that can be expanded into a bounded vector drawing. Stop offsets cover one clockwise turn, and zero degrees points upward.

Inheritance

  • object
  • OfficeConicGradient

Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Constructors

public OfficeConicGradient(double centerX, double centerY, double startAngle, IReadOnlyList<OfficeGradientStop> stops) #

Creates a conic gradient in normalized local coordinates.

Parameters

centerX double required
centerY double required
startAngle double required
stops System.Collections.Generic.IReadOnlyList<OfficeIMO.Drawing.OfficeGradientStop> required

Methods

public OfficeConicGradient Clone() #

Creates a detached copy.

public OfficeDrawing CreateDrawing(double width, double height, int qualitySegments = 360) #

Expands the gradient into clipped solid-color vector regions shared by raster, SVG, and PDF exporters. Authored stop boundaries are retained in addition to the uniform quality segments.

Parameters

width double required
height double required
qualitySegments int = 360 optional

Properties

public double CenterX { get; } #

Normalized horizontal center coordinate.

public double CenterY { get; } #

Normalized vertical center coordinate.

public double StartAngle { get; } #

Clockwise start angle in degrees where zero points upward.

public IReadOnlyList<OfficeGradientStop> Stops { get; } #

Gradient stops in non-decreasing offset order from zero to one.