00001
00019 #ifndef IMGS_H
00020 #define IMGS_H
00021
00022 #include "img.h"
00023 #include "varable.h"
00024
00031 extern INT_VAR_H (image_default_resolution, 300, "Image resolution dpi");
00034 INT32 check_legal_image_size(
00035 INT32 x,
00036 INT32 y,
00037 INT8 bits_per_pixel
00038 );
00039
00040 extern DLLSYM void copy_sub_image(IMAGE *source,
00041 INT32 xstart,
00042 INT32 ystart,
00043 INT32 xext,
00044 INT32 yext,
00045 IMAGE *dest,
00046 INT32 xdest,
00047 INT32 ydest,
00048 BOOL8 adjust_grey
00049 );
00050
00051 extern DLLSYM void enlarge_sub_image(IMAGE *source,
00052 INT32 xstart,
00053 INT32 ystart,
00054 IMAGE *dest,
00055 INT32 xdest,
00056 INT32 ydest,
00057 INT32 xext,
00058 INT32 yext,
00059 INT32 scale,
00060 BOOL8 adjust_grey
00061 );
00062
00063 extern DLLSYM void fast_reduce_sub_image(IMAGE *source,
00064 INT32 xstart,
00065 INT32 ystart,
00066 INT32 xext,
00067 INT32 yext,
00068 IMAGE *dest,
00069 INT32 xdest,
00070 INT32 ydest,
00071 INT32 scale,
00072 BOOL8 adjust_grey
00073 );
00074
00075 extern DLLSYM void reduce_sub_image(IMAGE *source,
00076 INT32 xstart,
00077 INT32 ystart,
00078 INT32 xext,
00079 INT32 yext,
00080 IMAGE *dest,
00081 INT32 xdest,
00082 INT32 ydest,
00083 INT32 scale,
00084 BOOL8 adjust_grey
00085 );
00086 extern DLLSYM void invert_image(
00087 IMAGE *image
00088 );
00089
00090 extern DLLSYM void bias_sub_image(IMAGE *source,
00091 INT32 xstart,
00092 INT32 ystart,
00093 INT32 xext,
00094 INT32 yext,
00095 UINT8 bias
00096 );
00097
00098 extern DLLSYM void starbase_to_normal(IMAGE *source,
00099 INT32 xstart,
00100 INT32 ystart,
00101 INT32 xext,
00102 INT32 yext,
00103 IMAGE *dest,
00104 INT32 xdest,
00105 INT32 ydest,
00106 BOOL8 preserve_grey
00107 );
00108 #endif