Editar

Compartir a través de


SKShader.CreateTwoPointConicalGradient Method

Definition

Overloads

CreateTwoPointConicalGradient(SKPoint, Single, SKPoint, Single, SKColor[], SKShaderTileMode)

Creates a shader that generates a conical gradient given two circles.

CreateTwoPointConicalGradient(SKPoint, Single, SKPoint, Single, SKColor[], Single[], SKShaderTileMode)

Creates a shader that generates a conical gradient given two circles.

CreateTwoPointConicalGradient(SKPoint, Single, SKPoint, Single, SKColorF[], SKColorSpace, SKShaderTileMode)
CreateTwoPointConicalGradient(SKPoint, Single, SKPoint, Single, SKColor[], Single[], SKShaderTileMode, SKMatrix)

Creates a shader that generates a conical gradient given two circles.

CreateTwoPointConicalGradient(SKPoint, Single, SKPoint, Single, SKColorF[], SKColorSpace, Single[], SKShaderTileMode)
CreateTwoPointConicalGradient(SKPoint, Single, SKPoint, Single, SKColorF[], SKColorSpace, Single[], SKShaderTileMode, SKMatrix)

CreateTwoPointConicalGradient(SKPoint, Single, SKPoint, Single, SKColor[], SKShaderTileMode)

Creates a shader that generates a conical gradient given two circles.

public static SkiaSharp.SKShader CreateTwoPointConicalGradient (SkiaSharp.SKPoint start, float startRadius, SkiaSharp.SKPoint end, float endRadius, SkiaSharp.SKColor[] colors, SkiaSharp.SKShaderTileMode mode);

Parameters

start
SKPoint

The coordinates for the starting point.

startRadius
Single

The radius at the starting point.

end
SKPoint

The coordinates for the end point.

endRadius
Single

The radius at the end point.

colors
SKColor[]

The array colors to be distributed between the two points.

mode
SKShaderTileMode

The tiling mode.

Returns

Returns a new SKShader, or null on error.

Applies to

CreateTwoPointConicalGradient(SKPoint, Single, SKPoint, Single, SKColor[], Single[], SKShaderTileMode)

Creates a shader that generates a conical gradient given two circles.

public static SkiaSharp.SKShader CreateTwoPointConicalGradient (SkiaSharp.SKPoint start, float startRadius, SkiaSharp.SKPoint end, float endRadius, SkiaSharp.SKColor[] colors, float[] colorPos, SkiaSharp.SKShaderTileMode mode);

Parameters

start
SKPoint

The coordinates for the starting point.

startRadius
Single

The radius at the starting point.

end
SKPoint

The coordinates for the end point.

endRadius
Single

The radius at the end point.

colors
SKColor[]

The array colors to be distributed between the two points.

colorPos
Single[]

The positions (in the range of 0..1) of each corresponding color, or null to evenly distribute the colors.

mode
SKShaderTileMode

The tiling mode.

Returns

Returns a new SKShader, or null on error.

Applies to

CreateTwoPointConicalGradient(SKPoint, Single, SKPoint, Single, SKColorF[], SKColorSpace, SKShaderTileMode)

public static SkiaSharp.SKShader CreateTwoPointConicalGradient (SkiaSharp.SKPoint start, float startRadius, SkiaSharp.SKPoint end, float endRadius, SkiaSharp.SKColorF[] colors, SkiaSharp.SKColorSpace colorspace, SkiaSharp.SKShaderTileMode mode);

Parameters

start
SKPoint
startRadius
Single
end
SKPoint
endRadius
Single
colors
SKColorF[]
colorspace
SKColorSpace

Returns

Applies to

CreateTwoPointConicalGradient(SKPoint, Single, SKPoint, Single, SKColor[], Single[], SKShaderTileMode, SKMatrix)

Creates a shader that generates a conical gradient given two circles.

public static SkiaSharp.SKShader CreateTwoPointConicalGradient (SkiaSharp.SKPoint start, float startRadius, SkiaSharp.SKPoint end, float endRadius, SkiaSharp.SKColor[] colors, float[] colorPos, SkiaSharp.SKShaderTileMode mode, SkiaSharp.SKMatrix localMatrix);

Parameters

start
SKPoint

The coordinates for the starting point.

startRadius
Single

The radius at the starting point.

end
SKPoint

The coordinates for the end point.

endRadius
Single

The radius at the end point.

colors
SKColor[]

The array colors to be distributed between the two points.

colorPos
Single[]

The positions (in the range of 0..1) of each corresponding color, or null to evenly distribute the colors.

mode
SKShaderTileMode

The tiling mode.

localMatrix
SKMatrix

The matrix to apply before applying the shader.

Returns

Returns a new SKShader, or an empty shader on error. This function never returns null.

Applies to

CreateTwoPointConicalGradient(SKPoint, Single, SKPoint, Single, SKColorF[], SKColorSpace, Single[], SKShaderTileMode)

public static SkiaSharp.SKShader CreateTwoPointConicalGradient (SkiaSharp.SKPoint start, float startRadius, SkiaSharp.SKPoint end, float endRadius, SkiaSharp.SKColorF[] colors, SkiaSharp.SKColorSpace colorspace, float[] colorPos, SkiaSharp.SKShaderTileMode mode);

Parameters

start
SKPoint
startRadius
Single
end
SKPoint
endRadius
Single
colors
SKColorF[]
colorspace
SKColorSpace
colorPos
Single[]

Returns

Applies to

CreateTwoPointConicalGradient(SKPoint, Single, SKPoint, Single, SKColorF[], SKColorSpace, Single[], SKShaderTileMode, SKMatrix)

public static SkiaSharp.SKShader CreateTwoPointConicalGradient (SkiaSharp.SKPoint start, float startRadius, SkiaSharp.SKPoint end, float endRadius, SkiaSharp.SKColorF[] colors, SkiaSharp.SKColorSpace colorspace, float[] colorPos, SkiaSharp.SKShaderTileMode mode, SkiaSharp.SKMatrix localMatrix);

Parameters

start
SKPoint
startRadius
Single
end
SKPoint
endRadius
Single
colors
SKColorF[]
colorspace
SKColorSpace
colorPos
Single[]
localMatrix
SKMatrix

Returns

Applies to