blob: c85fc11746bfb7953114204f98d4c3141b2011a5 [file] [log] [blame]
Hal Canary87515122019-03-15 14:22:51 -04001// 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.
3#include "fiddle/examples.h"
4// HASH=d06880c42f8bb3b4c3b67bd988046049
5REG_FIDDLE(Bitmap_009, 256, 256, true, 0) {
6void draw(SkCanvas* canvas) {
7 SkImageInfo info = SkImageInfo::MakeA8(16, 32);
8 SkBitmap bitmap;
9 bitmap.setInfo(info);
10 SkDebugf("bitmap width: %d info width: %d\n", bitmap.width(), info.width());
11}
12} // END FIDDLE