# Texture class

Namespace: [Rhino.DocObjects](https://developer.rhino3d.com/api/rhinocommon/namespace/rhino.docobjects.md) · Assembly: [RhinoCommon](https://developer.rhino3d.com/api/rhinocommon/assembly/rhinocommon.md)

```cs
[Serializable]
public class Texture : CommonObject
```

Represents a texture that is mapped on objects.

## Constructors

- [Texture](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.texture/ctor.md): (2 overloads) Initializes a new texture.

## Properties

- [ApplyUvwTransform](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.texture/applyuvwtransform.md): If true then the UVW transform is applied to the texture otherwise the UVW transform is ignored.
- [Enabled](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.texture/enabled.md): If the texture is enabled then it will be visible in the rendered display otherwise it will not.
- [FileName](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.texture/filename.md): Gets or sets a file name that is used by this texture. NOTE: We are moving away from string-based FileName, and suggest the usage of the new FileReference class. Also, this filename may well not be a path that makes sense on a user's computer because it was a path initially set on a different user's computer. If you want to get a workable path for this user, use the BitmapTable.Find function using this property.
- [FileReference](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.texture/filereference.md): Gets or sets a copy of the file reference that is used by this texture. After the get or the set method complete, you own the copy you received or passed in, and can Dispose() of it.
- [Id](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.texture/id.md): Gets the globally unique identifier of this texture.
- [MagFilter](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.texture/magfilter.md): The MagFilter setting controls how the color of the image pixel is calculated when the image pixel corresponds to a fraction of a texture bitmap pixel.
- [MappingChannelId](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.texture/mappingchannelid.md)
- [MinFilter](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.texture/minfilter.md): The MinFilter setting controls how the color of the image pixel is calculated when the image pixel corresponds to multiple texture bitmap pixels.
- [Offset](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.texture/offset.md): Helper for access to the offset value encoded in UvwTransform
- [ProjectionMode](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.texture/projectionmode.md): How texture is projected onto geometry
- [Repeat](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.texture/repeat.md): Helper for access to the repeat value encoded in UvwTransform
- [Rotation](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.texture/rotation.md): Helper for access to the rotation value encoded in UvwTransform
- [TextureCombineMode](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.texture/texturecombinemode.md): Determines how this texture is combined with others in a material's texture list.
- [TextureType](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.texture/texturetype.md): Controls how the pixels in the bitmap are interpreted
- [TreatAsLinear](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.texture/treataslinear.md): If false, the texture color values should be correctly by the linear workflow pre-process gamma value (in the document) if linear workflow is on. Otherwise, if the values is true, the values should be used raw from the texture.
- [UvwTransform](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.texture/uvwtransform.md): Transform to be applied to each instance of this texture if ApplyUvw is true
- [WcsBoxProjected](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.texture/wcsboxprojected.md): Is true if this texture uses world coordinate system (WCS) box projection for texture mapping. Notice: If this texture is used by an object that has an object coordinate system (OCS) frame defined on a mapping channel then that OCS frame is used instead of the WCS.
- [WcsProjected](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.texture/wcsprojected.md): Is true if this texture uses world coordinate system (WCS) projection for texture mapping. Notice: If this texture is used by an object that has an object coordinate system (OCS) frame defined on a mapping channel then that OCS frame is used instead of the WCS.
- [WrapU](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.texture/wrapu.md): Texture wrapping mode in the U direction
- [WrapV](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.texture/wrapv.md): Texture wrapping mode in the V direction
- [WrapW](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.texture/wrapw.md): Texture wrapping mode in the W direction

## Methods

- [GetAlphaBlendValues](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.texture/getalphablendvalues.md): If the TextureCombineMode is Blend, then the blending function for alpha is determined by new alpha = constanta0*(current alpha); a1*(texture alpha); a2*min(current alpha,texture alpha); a3*max(current alpha,texture alpha)
- [SetAlphaBlendValues](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.texture/setalphablendvalues.md): If the TextureCombineMode is Blend, then the blending function for alpha is determined by new alpha = constanta0*(current alpha); a1*(texture alpha); a2*min(current alpha,texture alpha); a3*max(current alpha,texture alpha)
- [SetRGBBlendValues](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.texture/setrgbblendvalues.md): If the TextureCombineMode is Blend, then the blending function for RGB is determined by new rgb = colorcolora0[0]*(current RGB); a1[1]*(texture RGB); a2[2]*min(current RGB,texture RGB); a3[3]*max(current RGB,texture RGB)

## Inherited Members

- From [CommonObject](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.commonobject.md): [Disposed](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.commonobject/disposed.md), [HasUserData](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.commonobject/hasuserdata.md), [IsDocumentControlled](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.commonobject/isdocumentcontrolled.md), [IsValid](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.commonobject/isvalid.md), [UserData](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.commonobject/userdata.md), [UserDictionary](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.commonobject/userdictionary.md), [ConstructConstObject](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.commonobject/constructconstobject.md), [Dispose](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.commonobject/dispose.md), [EnsurePrivateCopy](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.commonobject/ensureprivatecopy.md), [GetObjectData](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.commonobject/getobjectdata.md), [IsValidWithLog](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.commonobject/isvalidwithlog.md), [NonConstOperation](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.commonobject/nonconstoperation.md), [OnSwitchToNonConst](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.commonobject/onswitchtononconst.md), [ToJSON](https://developer.rhino3d.com/api/rhinocommon/type/rhino.runtime.commonobject/tojson.md)
