StructsΒ§
- Canvas
Data π - Canvas
Paint πState - Path
Builder πRef A wrapper around a stored PathBuilder and an optional transformation that should be applied to any points to ensure they are in the matching device space. - TextRun π
- Unshaped
Text πRun
EnumsΒ§
- Filter π
- Path
State πThe canvas data stores a state machine for the current status of the path data and any relevant transformations that are applied to it. The Azure drawing API expects the path to be in userspace. However, when a path is being built but the canvasβ transform changes, we choose to transform the path and perform further operations to it in device space. When itβs time to draw the path, we convert it back to userspace and draw it with the correct transform applied. TODO: De-abstract now that Azure is removed?
ConstantsΒ§
- MIN_
WR_ πIMAGE_ SIZE
TraitsΒ§
- Rect
Toi32 π
FunctionsΒ§
- write_
image πIt writes an image to the destination target draw_target: the destination target where the image_data will be copied image_data: Pixel information of the image to be written. It takes RGBA8 image_size: The size of the image to be written dest_rect: Area of the destination target where the pixels will be copied smoothing_enabled: It determines if smoothing is applied to the image result premultiply: Determines whenever the image data should be premultiplied or not