Go to the source code of this file.
◆ image_createFromPicture()
Definition at line 116 of file image.cpp.
118 {
120 nullptr, nullptr, BitDepth::kU8,
122 .release();
123}
static sk_sp< SkColorSpace > MakeSRGB()
SK_API sk_sp< SkImage > DeferredFromPicture(sk_sp< SkPicture > picture, const SkISize &dimensions, const SkMatrix *matrix, const SkPaint *paint, BitDepth bitDepth, sk_sp< SkColorSpace > colorSpace, SkSurfaceProps props)
◆ image_createFromPixels()
Definition at line 125 of file image.cpp.
129 {
132 colorTypeForPixelFormat(pixelFormat),
133 alphaTypeForPixelFormat(pixelFormat),
137}
sk_sp< T > sk_ref_sp(T *obj)
SK_API sk_sp< SkImage > RasterFromData(const SkImageInfo &info, sk_sp< SkData > pixels, size_t rowBytes)
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at)
◆ image_createFromTextureSource()
Definition at line 139 of file image.cpp.
142 {
144 std::unique_ptr<TextureSourceImageGenerator>(
151}
@ kPremul_SkAlphaType
pixel components are premultiplied by alpha
@ kRGBA_8888_SkColorType
pixel with 8 bits for red, green, blue, alpha; in 32-bit word
SK_API sk_sp< SkImage > DeferredFromTextureGenerator(std::unique_ptr< GrTextureGenerator > gen)
◆ image_dispose()
◆ image_getHeight()
◆ image_getWidth()
◆ image_ref()