Transform3DEffect Class |
Namespace: Microsoft.Graphics.Canvas.Effects
public sealed class Transform3DEffect : ICanvasEffect, IGraphicsEffect, IGraphicsEffectSource, ICanvasImage, IDisposable
The Transform3DEffect type exposes the following members.
Name | Description | |
---|---|---|
![]() | Transform3DEffect | Initializes a new instance of the Transform3DEffect class. |
Name | Description | |
---|---|---|
![]() | BorderMode | Gets and sets border mode for edge pixels. |
![]() | BufferPrecision | Specifies what precision to use for intermediate buffers when drawing this effect. |
![]() | CacheOutput | Enables caching the output from drawing this effect. |
![]() | InterpolationMode | Gets or sets the interpolation mode for Transform3DEffect effect. |
![]() | Name | Attaches a user-defined name string to the effect. |
![]() | Source | Gets or sets the input source for Transform3DEffect effect. |
![]() | TransformMatrix | Gets or sets 4x4 transform matrix applied to the projection plane. |
Name | Description | |
---|---|---|
![]() | Dispose | Releases all resources used by the effect. |
![]() | GetBounds(ICanvasResourceCreator) | Retrieves the bounds of this Transform3DEffect. |
![]() | GetBounds(ICanvasResourceCreator, Matrix3x2) | Retrieves the bounds of this Transform3DEffect. |
![]() | GetInvalidRectangles | Queries what regions of the effect output have changed since it was last drawn. |
![]() ![]() | GetRequiredSourceRectangle | Queries what part of an effect source image is needed to draw an output region. |
![]() | GetRequiredSourceRectangles | Queries what parts of the effect source images are needed to draw an output region. |
![]() | InvalidateSourceRectangle | Notifies the effect that one of its source images has changed. |
Supported by Win2D but not Windows.UI.Composition.
Suppose, we have a cat image loaded as CanvasBitmap.
Transform3DEffect transformEffect = new Transform3DEffect() { Source = cat, TransformMatrix = Matrix4x4.CreateRotationZ(0.5f, new Vector3(0, 0, 0)) };
Use the Draw event to display it:
void myWidget_Draw(CanvasControl sender, CanvasDrawEventArgs args) { args.DrawingSession.DrawImage(transformEffect, 42, 42); }
This Windows Runtime type corresponds to the D2D 3D transform effect.