ImageFill Class
A Brush that fills a Shape with an image.
It works almost identically to Image, but is a Brush and can therefore not be used as a standalone element.
Example
The following example will fill a Circle
with an image loaded from the file Portrait.png
:
<Circle Width="160" Height="160">
<ImageFill File="Portrait.png" />
</Circle>
Location
- Namespace
- Fuse.Drawing
- Package
- Fuse.Elements 2.9.1
Interface of ImageFill
AutoLoad : bool ux
Auto fetch and display the image data from the network or disk. The default value is true
.
To enable lazy load of the image set this AutoLoad
value to false
, and then the later on set it to true
to load the image.
You can also use the LoadImage
trigger action to fetch the Image.
Color : float4 ux
ContentAlignment : Alignment ux
Density : float ux
File : FileSource ux
GetDrawParams(DrawContext, float2) : DrawParams uno
ImageFill Constructor uno
IsLoaded : bool uno
get the information of the image fetch status
Load uno
Load the image from Url or Disk
MemoryPolicy : MemoryPolicy ux
Reload uno
Reload the image from Url or Disk