2
Copyright 1999-2005 ImageMagick Studio LLC, a non-profit organization
3
dedicated to making software imaging solutions freely available.
5
You may not use this file except in compliance with the License.
6
obtain a copy of the License at
8
http://www.imagemagick.org/script/license.php
10
Unless required by applicable law or agreed to in writing, software
11
distributed under the License is distributed on an "AS IS" BASIS,
12
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
See the License for the specific language governing permissions and
14
limitations under the License.
16
ImageMagick structure members.
18
NOTE: This is a simplifyed version of magick/magick-type.h
21
const MaxTextExtent = 4096;
28
MagickBooleanType = Byte;
30
PMagickBooleanType = ^MagickBooleanType;
32
//#include "magick/semaphore.h"
35
The Quantum Depth was fixed at 16 to make the code simpler
37
In the future there is the possibility to go to the c bindings
38
and implement the variable QuantumDepth here
46
MagickEpsilon = 1.0E-10;
47
MaxColormapSize = 65536;
53
MagickRealType = double;
60
MagickStatusType = Word;
61
MagickOffsetType = Int64;
62
MagickSizeType = Int64;
70
MagentaChannel = $0002;
72
YellowChannel = $0004;
74
OpacityChannel = $0008;
75
MatteChannel = $0008; // deprecated
83
PChannelType = ^ChannelType;
92
PClassType = ^ClassType;
99
TransparentColorspace,
113
Rec601LumaColorspace,
114
Rec709LumaColorspace,
118
PColorspaceType = ^ColorspaceType;
121
CompositeOperator = (
122
UndefinedCompositeOp,
129
ColorBurnCompositeOp,
130
ColorDodgeCompositeOp,
132
CopyBlackCompositeOp,
136
CopyGreenCompositeOp,
137
CopyMagentaCompositeOp,
138
CopyOpacityCompositeOp,
140
CopyYellowCompositeOp,
147
DifferenceCompositeOp,
150
ExclusionCompositeOp,
151
HardLightCompositeOp,
166
SoftLightCompositeOp,
173
ThresholdCompositeOp,
177
PCompositeOperator = ^CompositeOperator;
181
UndefinedCompression,
188
LosslessJPEGCompression,
194
PCompressionType = ^CompressionType;
197
UnrecognizedDispose = 0;
198
UndefinedDispose = 0;
200
BackgroundDispose = 2;
206
PDisposeType = ^DisposeType;
215
PEndianType = ^EndianType;
218
UndefinedException = 0;
219
WarningException = 300;
220
ResourceLimitWarning = 300;
223
DelegateWarning = 315;
224
MissingDelegateWarning = 320;
225
CorruptImageWarning = 325;
226
FileOpenWarning = 330;
235
XServerWarning = 380;
236
MonitorWarning = 385;
237
RegistryWarning = 390;
238
ConfigureWarning = 395;
239
ErrorException = 400;
240
ResourceLimitError = 400;
244
MissingDelegateError = 420;
245
CorruptImageError = 425;
258
ConfigureError = 495;
259
FatalErrorException = 700;
260
ResourceLimitFatalError = 700;
261
TypeFatalError = 705;
262
OptionFatalError = 710;
263
DelegateFatalError = 715;
264
MissingDelegateFatalError = 720;
265
CorruptImageFatalError = 725;
266
FileOpenFatalError = 730;
267
BlobFatalError = 735;
268
StreamFatalError = 740;
269
CacheFatalError = 745;
270
CoderFatalError = 750;
271
ModuleFatalError = 755;
272
DrawFatalError = 760;
273
ImageFatalError = 765;
274
WandFatalError = 770;
275
XServerFatalError = 780;
276
MonitorFatalError = 785;
277
RegistryFatalError = 790;
278
ConfigureFatalError = 795;
281
ExceptionType = Word;
283
PExceptionType = ^ExceptionType;
305
PFilterTypes = ^FilterTypes;
308
UndefinedGravity = 0;
310
NorthWestGravity = 1;
312
NorthEastGravity = 3;
316
SouthWestGravity = 7;
318
SouthEastGravity = 9;
324
PGravityType = ^GravityType;
336
ColorSeparationMatteType,
340
PImageType = ^ImageType;
351
PInterlaceType = ^InterlaceType;
355
UndefinedOrientation,
358
BottomRightOrientation,
359
BottomLeftOrientation,
362
RightBottomOrientation,
363
LeftBottomOrientation
366
POrientationType = ^OrientationType;
397
CharcoalDrawingPreview,
401
PPreviewType = ^PreviewType;
403
type RenderingIntent = (
411
PRenderingIntent = ^RenderingIntent;
413
type ResolutionType = (
415
PixelsPerInchResolution,
416
PixelsPerCentimeterResolution
419
PResolutionType = ^ResolutionType;
427
PTimerState = ^TimerState;
430
AffineMatrix = record
431
sx, rx, ry, sy, tx, ty: double;
434
PAffineMatrix = ^AffineMatrix;
437
IndexPacket = Quantum;
441
{$ifdef WORDS_BIGENDIAN}
442
red, green, blue, opacity: Quantum;
444
blue, green, red, opacity: Quantum;
448
PPixelPacket = ^PixelPacket;
457
PColorPacket = ^ColorPacket;
461
mean_error_per_pixel, normalized_mean_error, normalized_maximum_error: double;
477
PProfileInfo = ^ProfileInfo;
480
RectangleInfo = record
481
width, height: Cardinal;
487
x1, y1, x2, y2: double;
492
start, stop, total: double;
499
user, elapsed: Timer;
504
PTimerInfo = ^TimerInfo;
507
ChromaticityInfo = record
508
red_primary, green_primary, blue_primary, white_point: PrimaryInfo;
512
ExceptionInfo = record
513
severity: ExceptionType;
514
error_number: Shortint;
515
reason, description: PChar;
519
PExceptionInfo = ^ExceptionInfo;
521
//typedef struct _Ascii85Info _Ascii85Info_;
523
//typedef struct _BlobInfo _BlobInfo_;
526
MagickProgressMonitor = function (const str: PChar; const para: MagickOffsetType;
527
const sizetype: MagickSizeType; param: Pointer): PMagickBooleanType;
531
storage_class: ClassType;
532
colorspace: ColorspaceType;
533
compression: CompressionType;
535
orientation: OrientationType;
536
taint, matte: MagickBooleanType;
537
columns, rows, depth, colors: Cardinal;
538
colormap: PPixelPacket;
539
background_color, border_color, matte_color: PixelPacket;
541
chromaticity: ChromaticityInfo;
542
rendering_intent: RenderingIntent;
544
units: ResolutionType;
545
montage, directory, geometry: PChar;
547
x_resolution, y_resolution: double;
548
page, extract_info, tile_info: RectangleInfo; // deprecated
549
bias, blur, fuzz: double;
551
interlace: InterlaceType;
553
gravity: GravityType;
554
compose: CompositeOperator;
555
dispose: DisposeType;
556
clip_mask: Pointer; // PImage
557
scene, delay, iterations, total_colors: Cardinal;
561
progress_monitor: MagickProgressMonitor;
562
client_data: Pointer;
565
ascii85: Pointer; //_Ascii85Info_
566
blob: Pointer; // _BlobInfo_
567
filename, magick_filename, magick: array[1..MaxTextExtent] of char;
568
magick_columns, magick_rows: Integer;
569
exception: ExceptionInfo;
570
debug: MagickBooleanType;
571
reference_count: Integer;
572
semaphore: Pointer; //PSemaphoreInfo;
573
color_profile, iptc_profile: ProfileInfo;
574
generic_profile: PProfileInfo;
575
generic_profiles: Cardinal; // this & ProfileInfo is deprecated
577
previous, list, next: Pointer;
587
// size_t = PStreamHandler(procedure (const image: PImage;
588
// const param: Pointer; const) );
592
compression: CompressionType;
593
orientation: OrientationType;
594
temporary, adjoin, affirm, antialias: MagickBooleanType;
595
size, extract, page, scenes: PChar;
596
scene, number_scenes, depth: Cardinal;
597
interlace: InterlaceType;
599
units: ResolutionType;
601
sampling_factor, server_name, font, texture, density: PChar;
602
pointsize, fuzz: double;
603
background_color, border_color, matte_color: PixelPacket;
604
dither, monochrome: MagickBooleanType;
606
colorspace: ColorspaceType;
608
preview_type: PreviewType;
610
ping, verbose: MagickBooleanType;
611
view, authenticate: PChar;
612
channel: ChannelType;
615
progress_monitor: MagickProgressMonitor;
616
client_data, cache: Pointer;
617
stream: Cardinal; //StreamHandler;
618
file_: Pointer; // *file
621
magick, unique, zero, filename: array[1..MaxTextExtent] of char;
622
debug: MagickBooleanType;
628
subimage, subrange: Cardinal;
633
PImageInfo = ^ImageInfo;