namespace Rive
{
///
/// Represents an Image file asset reference within a specific Rive file.
///
public class ImageEmbeddedAssetReference : EmbeddedAssetReference
{
[System.Obsolete]
public ImageEmbeddedAssetReference(EmbeddedAssetData embeddedAssetData, uint index)
: base(embeddedAssetData, index)
{
}
[System.Obsolete]
public ImageEmbeddedAssetReference(EmbeddedAssetType assetType, uint id, string name, uint embeddededBytesSize, uint index, OutOfBandAsset outOfBandAsset) : base(assetType, id, name, embeddededBytesSize, index, outOfBandAsset)
{
}
internal ImageEmbeddedAssetReference(InitializationData initializationData) : base(initializationData)
{
}
///
/// Updates the image asset reference in the Rive file.
///
///
public void SetImage(ImageOutOfBandAsset imageAsset)
{
this.UpdateEmbeddedAssetReferenceInFile(imageAsset);
}
}
}