1 using SiliconStudio.Core.Mathematics;
2 using SiliconStudio.Core.Serialization.Converters;
4 namespace SiliconStudio.
Paradox.Graphics
24 :this(fragmentName, null, null)
43 var referenceTexture = color ?? alpha;
44 if(referenceTexture != null)
45 RegionInternal =
new Rectangle(0, 0, referenceTexture.Width, referenceTexture.Height);
52 public string Name {
get;
internal set; }
69 public virtual bool SubstituteAlpha
71 get {
return TextureAlpha != null; }
80 get {
return RegionInternal; }
81 set { RegionInternal = value; }
88 public bool IsTransparent {
get; set; }
98 var textureName =
Texture != null ? Texture.Name :
"''";
99 return Name +
", Texture: " + textureName +
", Region: " + Region;
ImageFragment(string fragmentName)
Creates an empty image fragment having the provided name.
Base class for converters to/from a data type.
Define a RectangleF. This structure is slightly different from System.Drawing.RectangleF as it is int...
A Texture 2D frontend to SharpDX.Direct3D11.Texture2D.
System.Windows.Shapes.Rectangle Rectangle
Android.Widget.Orientation Orientation
ImageFragment(string fragmentName, Texture2D color, Texture2D alpha)
Creates a image fragment having the provided color/alpha textures and name. The region size is initia...
override string ToString()
ImageOrientation
Defines the possible rotations to apply on image regions.
Base class for texture resources.