MCPcopy Create free account
hub / github.com/cinder/Cinder / getDataAlpha

Function getDataAlpha

include/cinder/Surface.h:198–198  ·  view source on GitHub ↗

Returns a pointer to the alpha channel data of the pixel located at \a offset. Result is a uint8_t* for Surface8u and a float* for Surface32f. Undefined for Surfaces without an alpha channel.

Source from the content-addressed store, hash-verified

196 const T* getDataBlue( const ivec2 &offset ) const { return getData( offset ) + getBlueOffset(); }
197 //! Returns a pointer to the alpha channel data of the pixel located at \a offset. Result is a uint8_t* for Surface8u and a float* for Surface32f. Undefined for Surfaces without an alpha channel.
198 T* getDataAlpha( const ivec2 &offset ) { return getData( offset ) + getAlphaOffset(); }
199 const T* getDataAlpha( const ivec2 &offset ) const { return getData( offset ) + getAlphaOffset(); }
200
201 //! Returns the shared_ptr to the underlying pixel data. Maybe be nullptr if the Surface does not own its data

Callers

nothing calls this directly

Calls 2

getAlphaOffsetFunction · 0.85
getDataFunction · 0.70

Tested by

no test coverage detected