Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
SkPixmapUtils.h
Go to the documentation of this file.
1/*
2 * Copyright 2023 Google LLC
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#ifndef SkPixmapUtils_DEFINED
9#define SkPixmapUtils_DEFINED
10
14
15class SkPixmap;
16
17namespace SkPixmapUtils {
18/**
19 * Copy the pixels in src into dst, applying the orientation transformations specified
20 * by origin. If the inputs are invalid, this returns false and no copy is made.
21 */
22SK_API bool Orient(const SkPixmap& dst, const SkPixmap& src, SkEncodedOrigin origin);
23
24/**
25 * Return a copy of the provided ImageInfo with the width and height swapped.
26 */
28
29} // namespace SkPixmapUtils
30
31#endif // SkPixmapUtils_DEFINED
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
Definition DM.cpp:213
#define SK_API
Definition SkAPI.h:35
SkEncodedOrigin
SK_API bool Orient(const SkPixmap &dst, const SkPixmap &src, SkEncodedOrigin origin)
SK_API SkImageInfo SwapWidthHeight(const SkImageInfo &info)