1 using System.Collections.Generic;
2 using System.ComponentModel;
4 using SiliconStudio.Assets;
5 using SiliconStudio.Core;
6 using SiliconStudio.Core.IO;
7 using SiliconStudio.Core.Mathematics;
8 using SiliconStudio.Paradox.Assets.Texture;
10 namespace SiliconStudio.
Paradox.Assets
15 [DataContract(
"ImageGroupBase")]
28 public Color ColorKeyColor {
get; set; }
36 public bool ColorKeyEnabled {
get; set; }
60 public bool GenerateMipmaps {
get; set; }
72 Format = TextureFormat.Compressed;
73 Alpha = AlphaFormat.Interpolated;
74 ColorKeyColor =
new Color(255, 0, 255);
75 ColorKeyEnabled =
false;
76 GenerateMipmaps =
false;
82 return textureAbsolutePath +
"__IMAGE_TEXTURE__" + spriteIndex;
89 [DataContract(
"ImageGroup")]
101 public List<TImage> Images {
get; set; }
106 Images =
new List<TImage>();
static string BuildTextureUrl(UFile textureAbsolutePath, int spriteIndex)
SiliconStudio.Core.Mathematics.Color Color
override void SetDefaults()
Sets the defaults values for this instance
Represents a 32-bit color (4 bytes) in the form of RGBA (in byte order: R, G, B, A).
override void SetDefaults()
Sets the defaults values for this instance
HRESULT PremultiplyAlpha(_In_ const Image &srcImage, _In_ DWORD flags, _Out_ ScratchImage &image)
Defines a normalized file path. See UPath for details. This class cannot be inherited.
Describes an image group asset.