Skia
2DGraphicsLibrary
|
Decode into the given pixels, a block of memory of size at least (info.fHeight - 1) * rowBytes + (info.fWidth * bytesPerPixel) More...
#include <SkImageGenerator.h>
Public Attributes | |
SkTransferFunctionBehavior | fBehavior |
Decode into the given pixels, a block of memory of size at least (info.fHeight - 1) * rowBytes + (info.fWidth * bytesPerPixel)
Repeated calls to this function should give the same results, allowing the PixelRef to be immutable.
info | A description of the format expected by the caller. This can simply be identical to the info returned by getInfo(). |
This contract also allows the caller to specify different output-configs, which the implementation can decide to support or not.
A size that does not match getInfo() implies a request to scale. If the generator cannot perform this scale, it will return false.
kIndex_8_SkColorType is not supported.