CGGradient Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gradient definitions.
public class CGGradient : IDisposable, ObjCRuntime.INativeObject
type CGGradient = class
interface INativeObject
interface IDisposable
- Inheritance
-
CGGradient
- Implements
Remarks
A CGGradient defines a smooth transition between colors.
To use a CGGradient, application developers will typically have to create a custom UIView and override its Draw(CGRect) method. Application developers should consider a CAGradientLayer as a possible easier-to-use alternative.
Constructors
CGGradient(CGColorSpace, CGColor[], nfloat[]) | |
CGGradient(CGColorSpace, CGColor[]) | |
CGGradient(CGColorSpace, nfloat[], nfloat[]) | |
CGGradient(CGColorSpace, nfloat[]) |
Properties
Handle |
Handle (pointer) to the unmanaged object representation. |
Methods
Dispose() |
Releases the resources used by the CGGradient object. |
Dispose(Boolean) |
Releases the resources used by the CGGradient object. |
Finalize() |
Finalizer for the CGGradient object |
Applies to
See also
- <xref:CoreGraphics.CGContext.DrawLinearGradient>
- <xref:CoreGraphics.CGContext.DrawRadialGradient>
- CAGradientLayer
- QuartzSample