Panda3D
Loading...
Searching...
No Matches
imageTrans.h
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file imageTrans.h
10 * @author drose
11 * @date 2000-06-19
12 */
13
14#ifndef IMAGETRANS_H
15#define IMAGETRANS_H
16
17#include "pandatoolbase.h"
18
19#include "imageFilter.h"
20
21/**
22 * A program to read an image file and write an equivalent image file,
23 * possibly performing some minor operations along the way.
24 */
25class ImageTrans : public ImageFilter {
26public:
27 ImageTrans();
28
29 void run();
30
31private:
32 static bool dispatch_channels(const std::string &opt, const std::string &arg, void *var);
33 void extract_alpha();
34
35 enum Channels {
36 C_default,
37 C_l = 1,
38 C_la = 2,
39 C_rgb = 3,
40 C_rgba = 4,
41 C_r,
42 C_g,
43 C_b,
44 C_a
45 };
46
47 Channels _channels;
48 LColor _color_scale;
49 bool _has_color_scale;
50 bool _flip, _mirror, _cw, _ccw;
51};
52
53#endif
This is the base class for a program that reads an image file, operates on it, and writes another ima...
Definition imageFilter.h:26
A program to read an image file and write an equivalent image file, possibly performing some minor op...
Definition imageTrans.h:25
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.