### YamlMime:ManagedReference items: - uid: MLEM.Textures.TextureExtensions commentId: T:MLEM.Textures.TextureExtensions id: TextureExtensions parent: MLEM.Textures children: - MLEM.Textures.TextureExtensions.GetTextureData(Microsoft.Xna.Framework.Graphics.Texture2D) - MLEM.Textures.TextureExtensions.PremultipliedCopy(Microsoft.Xna.Framework.Graphics.Texture2D) langs: - csharp - vb name: TextureExtensions nameWithType: TextureExtensions fullName: MLEM.Textures.TextureExtensions type: Class source: remote: path: MLEM/Textures/TextureExtensions.cs branch: main repo: https://github.com/Ellpeck/MLEM id: TextureExtensions path: ../MLEM/Textures/TextureExtensions.cs startLine: 8 assemblies: - MLEM namespace: MLEM.Textures summary: A set of extensions for dealing with example: [] syntax: content: public static class TextureExtensions content.vb: Public Module TextureExtensions inheritance: - System.Object inheritedMembers: - System.Object.ToString - System.Object.Equals(System.Object) - System.Object.Equals(System.Object,System.Object) - System.Object.ReferenceEquals(System.Object,System.Object) - System.Object.GetHashCode - System.Object.GetType - System.Object.MemberwiseClone - uid: MLEM.Textures.TextureExtensions.GetTextureData(Microsoft.Xna.Framework.Graphics.Texture2D) commentId: M:MLEM.Textures.TextureExtensions.GetTextureData(Microsoft.Xna.Framework.Graphics.Texture2D) id: GetTextureData(Microsoft.Xna.Framework.Graphics.Texture2D) isExtensionMethod: true parent: MLEM.Textures.TextureExtensions langs: - csharp - vb name: GetTextureData(Texture2D) nameWithType: TextureExtensions.GetTextureData(Texture2D) fullName: MLEM.Textures.TextureExtensions.GetTextureData(Microsoft.Xna.Framework.Graphics.Texture2D) type: Method source: remote: path: MLEM/Textures/TextureExtensions.cs branch: main repo: https://github.com/Ellpeck/MLEM id: GetTextureData path: ../MLEM/Textures/TextureExtensions.cs startLine: 16 assemblies: - MLEM namespace: MLEM.Textures summary: >- Returns a new instance of which allows easily managing a texture's data with texture coordinates rather than indices. When this is used in a using statement, the texture data is automatically stored back in the texture at the end. example: [] syntax: content: public static TextureExtensions.TextureData GetTextureData(this Texture2D texture) parameters: - id: texture type: Microsoft.Xna.Framework.Graphics.Texture2D description: The texture whose data to get return: type: MLEM.Textures.TextureExtensions.TextureData description: The texture's data content.vb: Public Shared Function GetTextureData(texture As Texture2D) As TextureExtensions.TextureData overload: MLEM.Textures.TextureExtensions.GetTextureData* - uid: MLEM.Textures.TextureExtensions.PremultipliedCopy(Microsoft.Xna.Framework.Graphics.Texture2D) commentId: M:MLEM.Textures.TextureExtensions.PremultipliedCopy(Microsoft.Xna.Framework.Graphics.Texture2D) id: PremultipliedCopy(Microsoft.Xna.Framework.Graphics.Texture2D) isExtensionMethod: true parent: MLEM.Textures.TextureExtensions langs: - csharp - vb name: PremultipliedCopy(Texture2D) nameWithType: TextureExtensions.PremultipliedCopy(Texture2D) fullName: MLEM.Textures.TextureExtensions.PremultipliedCopy(Microsoft.Xna.Framework.Graphics.Texture2D) type: Method source: remote: path: MLEM/Textures/TextureExtensions.cs branch: main repo: https://github.com/Ellpeck/MLEM id: PremultipliedCopy path: ../MLEM/Textures/TextureExtensions.cs startLine: 25 assemblies: - MLEM namespace: MLEM.Textures summary: Creates and returns a copy of the given texture with all colors converted to premultiplied alpha, which is the format that MonoGame's content pipeline loads textures in. This method uses for all pixels in the texture. example: [] syntax: content: public static Texture2D PremultipliedCopy(this Texture2D texture) parameters: - id: texture type: Microsoft.Xna.Framework.Graphics.Texture2D description: The texture of which to create a premultiplied copy. return: type: Microsoft.Xna.Framework.Graphics.Texture2D description: The premultiplied copy of the texture. content.vb: Public Shared Function PremultipliedCopy(texture As Texture2D) As Texture2D overload: MLEM.Textures.TextureExtensions.PremultipliedCopy* references: - uid: Microsoft.Xna.Framework.Graphics.Texture2D commentId: T:Microsoft.Xna.Framework.Graphics.Texture2D parent: Microsoft.Xna.Framework.Graphics isExternal: true name: Texture2D nameWithType: Texture2D fullName: Microsoft.Xna.Framework.Graphics.Texture2D - uid: MLEM.Textures commentId: N:MLEM.Textures href: MLEM.html name: MLEM.Textures nameWithType: MLEM.Textures fullName: MLEM.Textures spec.csharp: - uid: MLEM name: MLEM href: MLEM.html - name: . - uid: MLEM.Textures name: Textures href: MLEM.Textures.html spec.vb: - uid: MLEM name: MLEM href: MLEM.html - name: . - uid: MLEM.Textures name: Textures href: MLEM.Textures.html - uid: System.Object commentId: T:System.Object parent: System isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object name: object nameWithType: object fullName: object nameWithType.vb: Object fullName.vb: Object name.vb: Object - uid: System.Object.ToString commentId: M:System.Object.ToString parent: System.Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.tostring name: ToString() nameWithType: object.ToString() fullName: object.ToString() nameWithType.vb: Object.ToString() fullName.vb: Object.ToString() spec.csharp: - uid: System.Object.ToString name: ToString isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.tostring - name: ( - name: ) spec.vb: - uid: System.Object.ToString name: ToString isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.tostring - name: ( - name: ) - uid: System.Object.Equals(System.Object) commentId: M:System.Object.Equals(System.Object) parent: System.Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object) name: Equals(object) nameWithType: object.Equals(object) fullName: object.Equals(object) nameWithType.vb: Object.Equals(Object) fullName.vb: Object.Equals(Object) name.vb: Equals(Object) spec.csharp: - uid: System.Object.Equals(System.Object) name: Equals isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object) - name: ( - uid: System.Object name: object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ) spec.vb: - uid: System.Object.Equals(System.Object) name: Equals isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object) - name: ( - uid: System.Object name: Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ) - uid: System.Object.Equals(System.Object,System.Object) commentId: M:System.Object.Equals(System.Object,System.Object) parent: System.Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object) name: Equals(object, object) nameWithType: object.Equals(object, object) fullName: object.Equals(object, object) nameWithType.vb: Object.Equals(Object, Object) fullName.vb: Object.Equals(Object, Object) name.vb: Equals(Object, Object) spec.csharp: - uid: System.Object.Equals(System.Object,System.Object) name: Equals isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object) - name: ( - uid: System.Object name: object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ',' - name: " " - uid: System.Object name: object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ) spec.vb: - uid: System.Object.Equals(System.Object,System.Object) name: Equals isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object) - name: ( - uid: System.Object name: Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ',' - name: " " - uid: System.Object name: Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ) - uid: System.Object.ReferenceEquals(System.Object,System.Object) commentId: M:System.Object.ReferenceEquals(System.Object,System.Object) parent: System.Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.referenceequals name: ReferenceEquals(object, object) nameWithType: object.ReferenceEquals(object, object) fullName: object.ReferenceEquals(object, object) nameWithType.vb: Object.ReferenceEquals(Object, Object) fullName.vb: Object.ReferenceEquals(Object, Object) name.vb: ReferenceEquals(Object, Object) spec.csharp: - uid: System.Object.ReferenceEquals(System.Object,System.Object) name: ReferenceEquals isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.referenceequals - name: ( - uid: System.Object name: object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ',' - name: " " - uid: System.Object name: object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ) spec.vb: - uid: System.Object.ReferenceEquals(System.Object,System.Object) name: ReferenceEquals isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.referenceequals - name: ( - uid: System.Object name: Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ',' - name: " " - uid: System.Object name: Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ) - uid: System.Object.GetHashCode commentId: M:System.Object.GetHashCode parent: System.Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.gethashcode name: GetHashCode() nameWithType: object.GetHashCode() fullName: object.GetHashCode() nameWithType.vb: Object.GetHashCode() fullName.vb: Object.GetHashCode() spec.csharp: - uid: System.Object.GetHashCode name: GetHashCode isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.gethashcode - name: ( - name: ) spec.vb: - uid: System.Object.GetHashCode name: GetHashCode isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.gethashcode - name: ( - name: ) - uid: System.Object.GetType commentId: M:System.Object.GetType parent: System.Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.gettype name: GetType() nameWithType: object.GetType() fullName: object.GetType() nameWithType.vb: Object.GetType() fullName.vb: Object.GetType() spec.csharp: - uid: System.Object.GetType name: GetType isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.gettype - name: ( - name: ) spec.vb: - uid: System.Object.GetType name: GetType isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.gettype - name: ( - name: ) - uid: System.Object.MemberwiseClone commentId: M:System.Object.MemberwiseClone parent: System.Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone name: MemberwiseClone() nameWithType: object.MemberwiseClone() fullName: object.MemberwiseClone() nameWithType.vb: Object.MemberwiseClone() fullName.vb: Object.MemberwiseClone() spec.csharp: - uid: System.Object.MemberwiseClone name: MemberwiseClone isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone - name: ( - name: ) spec.vb: - uid: System.Object.MemberwiseClone name: MemberwiseClone isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone - name: ( - name: ) - uid: Microsoft.Xna.Framework.Graphics commentId: N:Microsoft.Xna.Framework.Graphics isExternal: true name: Microsoft.Xna.Framework.Graphics nameWithType: Microsoft.Xna.Framework.Graphics fullName: Microsoft.Xna.Framework.Graphics spec.csharp: - uid: Microsoft name: Microsoft isExternal: true - name: . - uid: Microsoft.Xna name: Xna isExternal: true - name: . - uid: Microsoft.Xna.Framework name: Framework isExternal: true - name: . - uid: Microsoft.Xna.Framework.Graphics name: Graphics isExternal: true spec.vb: - uid: Microsoft name: Microsoft isExternal: true - name: . - uid: Microsoft.Xna name: Xna isExternal: true - name: . - uid: Microsoft.Xna.Framework name: Framework isExternal: true - name: . - uid: Microsoft.Xna.Framework.Graphics name: Graphics isExternal: true - uid: System commentId: N:System isExternal: true href: https://learn.microsoft.com/dotnet/api/system name: System nameWithType: System fullName: System - uid: MLEM.Textures.TextureExtensions.TextureData commentId: T:MLEM.Textures.TextureExtensions.TextureData parent: MLEM.Textures href: MLEM.Textures.TextureExtensions.html name: TextureExtensions.TextureData nameWithType: TextureExtensions.TextureData fullName: MLEM.Textures.TextureExtensions.TextureData spec.csharp: - uid: MLEM.Textures.TextureExtensions name: TextureExtensions href: MLEM.Textures.TextureExtensions.html - name: . - uid: MLEM.Textures.TextureExtensions.TextureData name: TextureData href: MLEM.Textures.TextureExtensions.TextureData.html spec.vb: - uid: MLEM.Textures.TextureExtensions name: TextureExtensions href: MLEM.Textures.TextureExtensions.html - name: . - uid: MLEM.Textures.TextureExtensions.TextureData name: TextureData href: MLEM.Textures.TextureExtensions.TextureData.html - uid: MLEM.Textures.TextureExtensions.GetTextureData* commentId: Overload:MLEM.Textures.TextureExtensions.GetTextureData href: MLEM.Textures.TextureExtensions.html#MLEM_Textures_TextureExtensions_GetTextureData_Microsoft_Xna_Framework_Graphics_Texture2D_ name: GetTextureData nameWithType: TextureExtensions.GetTextureData fullName: MLEM.Textures.TextureExtensions.GetTextureData - uid: Microsoft.Xna.Framework.Color.FromNonPremultiplied(Microsoft.Xna.Framework.Vector4) commentId: M:Microsoft.Xna.Framework.Color.FromNonPremultiplied(Microsoft.Xna.Framework.Vector4) isExternal: true name: FromNonPremultiplied(Vector4) nameWithType: Color.FromNonPremultiplied(Vector4) fullName: Microsoft.Xna.Framework.Color.FromNonPremultiplied(Microsoft.Xna.Framework.Vector4) spec.csharp: - uid: Microsoft.Xna.Framework.Color.FromNonPremultiplied(Microsoft.Xna.Framework.Vector4) name: FromNonPremultiplied isExternal: true - name: ( - uid: Microsoft.Xna.Framework.Vector4 name: Vector4 isExternal: true - name: ) spec.vb: - uid: Microsoft.Xna.Framework.Color.FromNonPremultiplied(Microsoft.Xna.Framework.Vector4) name: FromNonPremultiplied isExternal: true - name: ( - uid: Microsoft.Xna.Framework.Vector4 name: Vector4 isExternal: true - name: ) - uid: MLEM.Textures.TextureExtensions.PremultipliedCopy* commentId: Overload:MLEM.Textures.TextureExtensions.PremultipliedCopy href: MLEM.Textures.TextureExtensions.html#MLEM_Textures_TextureExtensions_PremultipliedCopy_Microsoft_Xna_Framework_Graphics_Texture2D_ name: PremultipliedCopy nameWithType: TextureExtensions.PremultipliedCopy fullName: MLEM.Textures.TextureExtensions.PremultipliedCopy