Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
ImageInfo_notequal1_operator.cpp
Go to the documentation of this file.
1// Copyright 2019 Google LLC.
2// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
4// HASH=8c039fde0a476ac1aa62bf9de5d61c77
5REG_FIDDLE(ImageInfo_notequal1_operator, 256, 256, true, 0) {
6void draw(SkCanvas* canvas) {
9 SkDebugf("info1 %c= info2\n", info1 != info2 ? '!' : '=');
10 info2 = info2.makeWH(10, 20);
11 SkDebugf("info1 %c= info2\n", info1 != info2 ? '!' : '=');
13 SkDebugf("info1 %c= info2\n", info1 != info2 ? '!' : '=');
15 SkDebugf("info1 %c= info2\n", info1 != info2 ? '!' : '=');
16}
17} // 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
#define REG_FIDDLE(NAME, W, H, TEXT, I)
Definition examples.h:60
SkImageInfo makeWH(int newWidth, int newHeight) const
SkImageInfo makeAlphaType(SkAlphaType newAlphaType) const
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at)
SkImageInfo makeColorType(SkColorType newColorType) const