Flutter Engine
The Flutter Engine
Functions
ImageInfo_notequal1_operator.cpp File Reference
#include "tools/fiddle/examples.h"

Go to the source code of this file.

Functions

 REG_FIDDLE (ImageInfo_notequal1_operator, 256, 256, true, 0)
 

Function Documentation

◆ REG_FIDDLE()

REG_FIDDLE ( ImageInfo_notequal1_operator  ,
256  ,
256  ,
true  ,
 
)

Definition at line 4 of file ImageInfo_notequal1_operator.cpp.

4 {
5void draw(SkCanvas* canvas) {
8 SkDebugf("info1 %c= info2\n", info1 != info2 ? '!' : '=');
9 info2 = info2.makeWH(10, 20);
10 SkDebugf("info1 %c= info2\n", info1 != info2 ? '!' : '=');
12 SkDebugf("info1 %c= info2\n", info1 != info2 ? '!' : '=');
14 SkDebugf("info1 %c= info2\n", info1 != info2 ? '!' : '=');
15}
16} // END FIDDLE
kUnpremul_SkAlphaType
@ kPremul_SkAlphaType
pixel components are premultiplied by alpha
Definition: SkAlphaType.h:29
@ kAlpha_8_SkColorType
pixel with alpha in 8-bit byte
Definition: SkColorType.h:21
@ kGray_8_SkColorType
pixel with grayscale level in 8-bit byte
Definition: SkColorType.h:35
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
Definition: aaclip.cpp:27
SkImageInfo makeWH(int newWidth, int newHeight) const
Definition: SkImageInfo.h:444
SkImageInfo makeAlphaType(SkAlphaType newAlphaType) const
Definition: SkImageInfo.h:466
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at)
SkImageInfo makeColorType(SkColorType newColorType) const
Definition: SkImageInfo.h:475