YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
ImageLayer.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2026-2026 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#ifndef YARP_IMAGE_LAYER_H
7#define YARP_IMAGE_LAYER_H
8
10
11namespace yarp::sig {
12class ImageLayer;
13} // namespace yarp::sig
14
16{
17 public:
18 ImageLayer() = default;
19 ImageLayer(const yarp::sig::FlexImage& img, bool ena = true, yarp::sig::ImageColorKey ckey = yarp::sig::ImageColorKey(), yarp::sig::ImageAlphaData alph = yarp::sig::ImageAlphaData(), bool compress = true, int off_x = 0, int off_y = 0)
20 {
21 layer = img;
22 enable = ena;
23 colorkey = ckey;
24 alpha = alph;
25 can_be_compressed = compress;
26 offset_x = off_x;
27 offset_y = off_y;
28 }
29};
30
31#endif // YARP_LAYERED_IMAGE_H
Image class with user control of representation details.
Definition Image.h:361
A single layer of a layered image.
yarp::sig::ImageAlphaData alpha
yarp::sig::ImageColorKey colorkey
yarp::sig::FlexImage layer
ImageLayer(const yarp::sig::FlexImage &img, bool ena=true, yarp::sig::ImageColorKey ckey=yarp::sig::ImageColorKey(), yarp::sig::ImageAlphaData alph=yarp::sig::ImageAlphaData(), bool compress=true, int off_x=0, int off_y=0)
Definition ImageLayer.h:19