Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
ImageInfo.cs
Go to the documentation of this file.
1 using System.ComponentModel;
2 
3 using SiliconStudio.Core;
4 using SiliconStudio.Core.IO;
5 using SiliconStudio.Core.Mathematics;
6 using SiliconStudio.Paradox.Graphics;
7 
8 namespace SiliconStudio.Paradox.Assets
9 {
10  /// <summary>
11  /// Describes various information about an image.
12  /// </summary>
13  [DataContract("ImageInfo")]
14  public class ImageInfo
15  {
16  /// <summary>
17  /// Gets or sets the source file of this
18  /// </summary>
19  /// <value>The source.</value>
20  [DataMember(0)]
21  [DefaultValue(null)]
22  public UFile Source;
23 
24  /// <summary>
25  /// Gets or sets the name of the sprite.
26  /// </summary>
27  [DataMember(10)]
28  public string Name;
29 
30  /// <summary>
31  /// The rectangle specifying the region of the texture to use.
32  /// </summary>
33  [DataMember(20)]
35 
36  /// <summary>
37  /// Gets or sets the rotation to apply to the texture region when rendering the image
38  /// </summary>
39  [DataMember(30)]
40  [DefaultValue(ImageOrientation.AsIs)]
41  public ImageOrientation Orientation { get; set; }
42  }
43 }
Rectangle TextureRegion
The rectangle specifying the region of the texture to use.
Definition: ImageInfo.cs:34
UFile Source
Gets or sets the source file of this
Definition: ImageInfo.cs:22
Describes various information about an image.
Definition: ImageInfo.cs:14
Structure using the same layout than System.Drawing.Rectangle
Definition: Rectangle.cs:35
Android.Widget.Orientation Orientation
Definition: Section.cs:9
Defines a normalized file path. See UPath for details. This class cannot be inherited.
Definition: UFile.cs:13
ImageOrientation
Defines the possible rotations to apply on image regions.
string Name
Gets or sets the name of the sprite.
Definition: ImageInfo.cs:28