# Decal class

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

```cs
public class Decal : IDisposable
```

Represents a decal, or a picture that can be moved on an object.

## Finalizer

- [~Decal](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.decal/finalize.md)

## Properties

- [CRC](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.decal/crc.md): The decal CRC identifies a decal by its state. Multiple decals which would be exactly the same would have the same CRC and are culled from the system. If you store this value with the intention of using it to find the decal again later, you must update your stored value whenever the decal state changes. You can detect when a decal changes by watching for the legacy OnUserDataTransformed event or the newer custom event uuidEventDecalUserDataTransformed.
- [DecalMapping](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.decal/decalmapping.md): (obsolete) Gets the decal's mapping.
- [DecalProjection](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.decal/decalprojection.md): (obsolete) Gets the decal's projection. Used only when mapping is planar.
- [EndLatitude](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.decal/endlatitude.md): Gets the end angle of the decal's arc of latitude or 'horizontal sweep'. This is actually a LONGITUDINAL angle. Only used when mapping is cylindrical or spherical. This is deprecated in favor of HorzSweep().
- [EndLongitude](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.decal/endlongitude.md): Gets the end angle of the decal's arc of longitude or 'vertical sweep'. This is actually a LATITUDINAL angle. Only used when mapping is spherical.
- [Height](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.decal/height.md): Gets the height of the decal. Only used when mapping is cylindrical.
- [IsVisible](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.decal/isvisible.md): Gets the decal's visibility.
- [Mapping](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.decal/mapping.md): Gets the decal's mapping.
- [MapToInside](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.decal/maptoinside.md): Used only when mapping is cylindrical or spherical.
- [Origin](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.decal/origin.md): Gets the origin of the decal in world space.
- [Projection](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.decal/projection.md): Gets the decal's projection. Used only when mapping is planar.
- [Radius](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.decal/radius.md): Gets the radius of the decal. Only used when mapping is cylindrical or spherical.
- [StartLatitude](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.decal/startlatitude.md): Gets the start angle of the decal's arc of latitude or 'horizontal sweep'. This is actually a LONGITUDINAL angle. Only used when mapping is cylindrical or spherical.
- [StartLongitude](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.decal/startlongitude.md): Gets the start angle of the decal's arc of longitude or 'vertical sweep'. This is actually a LATITUDINAL angle. Only used when mapping is spherical.
- [TextureInstanceId](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.decal/textureinstanceid.md): Gets the asset instance id for this decal. This is the instance id of a material or texture.
- [Transparency](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.decal/transparency.md): Gets the decal's transparency in the range 0 to 1.
- [VectorAcross](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.decal/vectoracross.md): Gets the vector across. For cylindrical and spherical mapping, the vector is unitized.
- [VectorUp](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.decal/vectorup.md): For cylindrical and spherical mapping, the vector is unitized.

## Methods

- [ConstPointer](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.decal/constpointer.md)
- [Create](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.decal/create.md): (static)
- [CustomData](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.decal/customdata.md): (2 overloads) Gets decal custom data for the current renderer. See Rhino.Plugins.RenderPlugIn.ShowDecalProperties.
- [Dispose](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.decal/dispose.md): (2 overloads)
- [GetTextureMapping](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.decal/gettexturemapping.md): Gets the Texture Mapping of the decal.
- [GetUVBounds](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.decal/getuvbounds.md): The UV bounds of the decal. Only used when mapping is UV.
- [HorzSweep](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.decal/horzsweep.md): Gets the angles of the decal's arc of 'horizontal sweep'. Replaces StartLatitude and EndLatitude.
- [NonConstPointer](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.decal/nonconstpointer.md)
- [SetHorzSweep](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.decal/sethorzsweep.md): Sets the angles of the decal's arc of 'horizontal sweep'.
- [SetUVBounds](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.decal/setuvbounds.md): Sets the UV bounds of the decal. Only used when mapping is UV.
- [SetVertSweep](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.decal/setvertsweep.md): Sets the angles of the decal's arc of 'vertical sweep'.
- [TextureRenderCRC](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.decal/texturerendercrc.md): (2 overloads, obsolete) This method is deprecated in favor of TextureRenderHash below.
- [TextureRenderHash](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.decal/texturerenderhash.md): (2 overloads, obsolete) Get the texture render hash for the referenced texture using the specified CrcRenderHashFlags and linear workflow.
- [TryGetColor](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.decal/trygetcolor.md): Blend a color with the decal color at a given point. Please note that this function is very slow so you should only use it if you're not overly concerned about performance. Also please note that this function is actually a 'blend' operation, not a true 'get' operation and is sensitive to the value passed into the colInOut parameter. The alpha value of colInOut is used as the blend amount where 0 means 'all decal RGB' and 1 means 'all colInOut RGB'. If you want to simply GET the decal color, you must pass 0 for colInOut alpha.
- [UVBounds](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.decal/uvbounds.md): The UV bounds of the decal. Only used when mapping is UV.
- [VertSweep](https://developer.rhino3d.com/api/rhinocommon/type/rhino.render.decal/vertsweep.md): Gets the angles of the decal's arc of 'vertical sweep'. Replaces StartLongitude and EndLongitude.
