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

Function getDataBlue

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

Returns a pointer to the blue channel data of the pixel located at \a offset. Result is a uint8_t* for Surface8u and a float* for Surface32f.

Source from the content-addressed store, hash-verified

193 const T* getDataGreen( const ivec2 &offset ) const { return getData( offset ) + getGreenOffset(); }
194 //! Returns a pointer to the blue channel data of the pixel located at \a offset. Result is a uint8_t* for Surface8u and a float* for Surface32f.
195 T* getDataBlue( const ivec2 &offset ) { return getData( offset ) + getBlueOffset(); }
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(); }

Callers

nothing calls this directly

Calls 2

getBlueOffsetFunction · 0.85
getDataFunction · 0.70

Tested by

no test coverage detected