summaryrefslogtreecommitdiff
path: root/libjava/gnu/java/awt/image/ImageConverter.h
blob: 8df255f6910af38bdc2e865cf2bf71fbfc5c83b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __gnu_java_awt_image_ImageConverter__
#define __gnu_java_awt_image_ImageConverter__

#pragma interface

#include <java/lang/Object.h>
#include <gcj/array.h>

extern "Java"
{
  namespace gnu
  {
    namespace java
    {
      namespace awt
      {
        namespace image
        {
            class AsyncImage;
            class ImageConverter;
        }
      }
    }
  }
  namespace java
  {
    namespace awt
    {
        class Image;
      namespace image
      {
          class BufferedImage;
          class ColorModel;
          class IndexColorModel;
      }
    }
  }
}

class gnu::java::awt::image::ImageConverter : public ::java::lang::Object
{

public:
  ImageConverter();
  virtual void setDimensions(jint, jint);
  virtual void setProperties(::java::util::Hashtable *);
  virtual void setColorModel(::java::awt::image::ColorModel *);
  virtual void setHints(jint);
  virtual void setPixels(jint, jint, jint, jint, ::java::awt::image::ColorModel *, JArray< jbyte > *, jint, jint);
  virtual void setPixels(jint, jint, jint, jint, ::java::awt::image::ColorModel *, JArray< jint > *, jint, jint);
private:
  ::java::awt::image::ColorModel * setupColorModel(::java::awt::image::ColorModel *);
  void createImage();
  jint transferPixels(jint, jint, jint, jint, ::java::awt::image::ColorModel *, JArray< jbyte > *, jint, jint, jint);
  jint transferPixels(jint, jint, jint, jint, ::java::awt::image::ColorModel *, JArray< jint > *, jint, jint, jint);
  jint convertPixels(jint, jint, jint, jint, ::java::awt::image::ColorModel *, JArray< jbyte > *, jint, jint, jint);
  jint convertPixels(jint, jint, jint, jint, ::java::awt::image::ColorModel *, JArray< jint > *, jint, jint, jint);
  jint convertIndexColorModelToSRGB(jint, jint, jint, jint, ::java::awt::image::IndexColorModel *, JArray< jbyte > *, jint, jint, jint);
  jint convertIndexColorModelToSRGB(jint, jint, jint, jint, ::java::awt::image::IndexColorModel *, JArray< jint > *, jint, jint, jint);
  jint updateTransparency(jint, jint);
public:
  virtual void imageComplete(jint);
  virtual void setTargetColorModel(::java::awt::image::ColorModel *);
  virtual ::java::awt::Image * getImage();
  static ::java::lang::String * IMAGE_TRANSPARENCY_PROPERTY;
  static ::java::lang::String * IMAGE_PROPERTIES_PROPERTY;
private:
  ::gnu::java::awt::image::AsyncImage * __attribute__((aligned(__alignof__( ::java::lang::Object)))) image;
  ::java::awt::image::BufferedImage * bImage;
  ::java::util::Hashtable * imageProperties;
  jint width;
  jint height;
  ::java::awt::image::ColorModel * colorModel;
  ::java::awt::image::ColorModel * targetColorModel;
public:
  static ::java::lang::Class class$;
};

#endif // __gnu_java_awt_image_ImageConverter__