SKCanvas.DrawAtlas Method
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.
Overloads
| Name | Description |
|---|---|
| DrawAtlas(SKImage, SKRect[], SKRotationScaleMatrix[], SKColor[], SKBlendMode, SKSamplingOptions, SKPaint) |
Draws a set of sprites from an atlas image with sampling and color blending. |
| DrawAtlas(SKImage, SKRect[], SKRotationScaleMatrix[], SKColor[], SKBlendMode, SKSamplingOptions, SKRect, SKPaint) |
Draws a set of sprites from an atlas image with all options. |
| DrawAtlas(SKImage, SKRect[], SKRotationScaleMatrix[], SKColor[], SKBlendMode, SKRect, SKPaint) |
Draws a set of sprites from an atlas image with culling support. |
| DrawAtlas(SKImage, SKRect[], SKRotationScaleMatrix[], SKSamplingOptions, SKPaint) |
Draws a set of sprites from an atlas image with transforms and sampling options. |
| DrawAtlas(SKImage, SKRect[], SKRotationScaleMatrix[], SKPaint) |
Draws a set of sprites from an atlas image with transforms. |
| DrawAtlas(SKImage, SKRect[], SKRotationScaleMatrix[], SKColor[], SKBlendMode, SKPaint) |
Draws a set of sprites from an atlas image with color blending. |
DrawAtlas(SKImage, SKRect[], SKRotationScaleMatrix[], SKColor[], SKBlendMode, SKSamplingOptions, SKPaint)
Draws a set of sprites from an atlas image with sampling and color blending.
public void DrawAtlas(SkiaSharp.SKImage atlas, SkiaSharp.SKRect[] sprites, SkiaSharp.SKRotationScaleMatrix[] transforms, SkiaSharp.SKColor[] colors, SkiaSharp.SKBlendMode mode, SkiaSharp.SKSamplingOptions sampling, SkiaSharp.SKPaint paint = default);
Parameters
- atlas
- SKImage
The image atlas containing the sprites.
- sprites
- SKRect[]
The source rectangles within the atlas for each sprite.
- transforms
- SKRotationScaleMatrix[]
The rotation-scale transforms for each sprite.
- colors
- SKColor[]
The colors to blend with each sprite, or null.
- mode
- SKBlendMode
The blend mode used when colors are specified.
- sampling
- SKSamplingOptions
The sampling options for image filtering.
- paint
- SKPaint
The paint used to draw the sprites, or null.
Applies to
DrawAtlas(SKImage, SKRect[], SKRotationScaleMatrix[], SKColor[], SKBlendMode, SKSamplingOptions, SKRect, SKPaint)
Draws a set of sprites from an atlas image with all options.
public void DrawAtlas(SkiaSharp.SKImage atlas, SkiaSharp.SKRect[] sprites, SkiaSharp.SKRotationScaleMatrix[] transforms, SkiaSharp.SKColor[] colors, SkiaSharp.SKBlendMode mode, SkiaSharp.SKSamplingOptions sampling, SkiaSharp.SKRect cullRect, SkiaSharp.SKPaint paint = default);
Parameters
- atlas
- SKImage
The image atlas containing the sprites.
- sprites
- SKRect[]
The source rectangles within the atlas for each sprite.
- transforms
- SKRotationScaleMatrix[]
The rotation-scale transforms for each sprite.
- colors
- SKColor[]
The colors to blend with each sprite, or null.
- mode
- SKBlendMode
The blend mode used when colors are specified.
- sampling
- SKSamplingOptions
The sampling options for image filtering.
- cullRect
- SKRect
The rectangle to cull sprites that fall outside.
- paint
- SKPaint
The paint used to draw the sprites, or null.
Applies to
DrawAtlas(SKImage, SKRect[], SKRotationScaleMatrix[], SKColor[], SKBlendMode, SKRect, SKPaint)
Draws a set of sprites from an atlas image with culling support.
public void DrawAtlas(SkiaSharp.SKImage atlas, SkiaSharp.SKRect[] sprites, SkiaSharp.SKRotationScaleMatrix[] transforms, SkiaSharp.SKColor[] colors, SkiaSharp.SKBlendMode mode, SkiaSharp.SKRect cullRect, SkiaSharp.SKPaint paint);
public void DrawAtlas(SkiaSharp.SKImage atlas, SkiaSharp.SKRect[] sprites, SkiaSharp.SKRotationScaleMatrix[] transforms, SkiaSharp.SKColor[] colors, SkiaSharp.SKBlendMode mode, SkiaSharp.SKRect cullRect, SkiaSharp.SKPaint paint = default);
Parameters
- atlas
- SKImage
The image atlas containing the sprites.
- sprites
- SKRect[]
The source rectangles within the atlas for each sprite.
- transforms
- SKRotationScaleMatrix[]
The rotation-scale transforms for each sprite.
- colors
- SKColor[]
The colors to blend with each sprite, or null.
- mode
- SKBlendMode
The blend mode used when colors are specified.
- cullRect
- SKRect
The rectangle to cull sprites that fall outside.
- paint
- SKPaint
The paint used to draw the sprites, or null.
Applies to
DrawAtlas(SKImage, SKRect[], SKRotationScaleMatrix[], SKSamplingOptions, SKPaint)
Draws a set of sprites from an atlas image with transforms and sampling options.
public void DrawAtlas(SkiaSharp.SKImage atlas, SkiaSharp.SKRect[] sprites, SkiaSharp.SKRotationScaleMatrix[] transforms, SkiaSharp.SKSamplingOptions sampling, SkiaSharp.SKPaint paint = default);
Parameters
- atlas
- SKImage
The image atlas containing the sprites.
- sprites
- SKRect[]
The source rectangles within the atlas for each sprite.
- transforms
- SKRotationScaleMatrix[]
The rotation-scale transforms for each sprite.
- sampling
- SKSamplingOptions
The sampling options for image filtering.
- paint
- SKPaint
The paint used to draw the sprites, or null.
Applies to
DrawAtlas(SKImage, SKRect[], SKRotationScaleMatrix[], SKPaint)
Draws a set of sprites from an atlas image with transforms.
public void DrawAtlas(SkiaSharp.SKImage atlas, SkiaSharp.SKRect[] sprites, SkiaSharp.SKRotationScaleMatrix[] transforms, SkiaSharp.SKPaint paint);
public void DrawAtlas(SkiaSharp.SKImage atlas, SkiaSharp.SKRect[] sprites, SkiaSharp.SKRotationScaleMatrix[] transforms, SkiaSharp.SKPaint paint = default);
Parameters
- atlas
- SKImage
The image atlas containing the sprites.
- sprites
- SKRect[]
The source rectangles within the atlas for each sprite.
- transforms
- SKRotationScaleMatrix[]
The rotation-scale transforms for each sprite.
- paint
- SKPaint
The paint used to draw the sprites, or null.
Applies to
DrawAtlas(SKImage, SKRect[], SKRotationScaleMatrix[], SKColor[], SKBlendMode, SKPaint)
Draws a set of sprites from an atlas image with color blending.
public void DrawAtlas(SkiaSharp.SKImage atlas, SkiaSharp.SKRect[] sprites, SkiaSharp.SKRotationScaleMatrix[] transforms, SkiaSharp.SKColor[] colors, SkiaSharp.SKBlendMode mode, SkiaSharp.SKPaint paint);
public void DrawAtlas(SkiaSharp.SKImage atlas, SkiaSharp.SKRect[] sprites, SkiaSharp.SKRotationScaleMatrix[] transforms, SkiaSharp.SKColor[] colors, SkiaSharp.SKBlendMode mode, SkiaSharp.SKPaint paint = default);
Parameters
- atlas
- SKImage
The image atlas containing the sprites.
- sprites
- SKRect[]
The source rectangles within the atlas for each sprite.
- transforms
- SKRotationScaleMatrix[]
The rotation-scale transforms for each sprite.
- colors
- SKColor[]
The colors to blend with each sprite, or null.
- mode
- SKBlendMode
The blend mode used when colors are specified.
- paint
- SKPaint
The paint used to draw the sprites, or null.