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

Method GetPixelsAt

include/imgui/imgui.h:3487–3487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3485 IMGUI_API void DestroyPixels();
3486 void* GetPixels() { IM_ASSERT(Pixels != NULL); return Pixels; }
3487 void* GetPixelsAt(int x, int y) { IM_ASSERT(Pixels != NULL); return Pixels + (x + y * Width) * BytesPerPixel; }
3488 int GetSizeInBytes() const { return Width * Height * BytesPerPixel; }
3489 int GetPitch() const { return Width * BytesPerPixel; }
3490 ImTextureRef GetTexRef() { ImTextureRef tex_ref; tex_ref._TexData = this; tex_ref._TexID = ImTextureID_Invalid; return tex_ref; }

Calls

no outgoing calls

Tested by

no test coverage detected