4
<module name="FPImage">
5
<element name="TFPMemoryImage">
7
<var>TFPMemoryImage</var> - FreePascal base class for an image held in memory</short>
9
<element name="TFPPalette">
10
<short>FreePascal color palette class; base for LCL TPalette etc.</short>
11
<descr>[entire review 2010-13-01 DoDi]</descr>
13
<element name="TFPCustomImage">
14
<short>Abstract FreePascal base class for all image classes.</short>
16
<link id="#LCL.intfgraphics.TLazIntfImage">TLazIntfImage</link> is an LCL implementation of this class.
18
TFPCustomImage only provides an image size and a palette, and methods to load, store and Assign images.
19
The data storage and handling must be added in derived classes, by overriding the virtual (abstract) methods.
21
It also provides Extra image attributes (a TStringList).
23
[entire review 2010-14-01 DoDi]</descr>
25
<link id="#LCL.intfgraphics.TLazIntfImage">TLazIntfImage</link>
28
<element name="TFPMemoryImage"/>
29
<element name="TFPCustomImageHandler">
30
<short>Base class for image handlers.</short>
32
<element name="TFPCustomImageReader">
34
<var>TFPCustomImageReader</var> - FreePascal base class for Image reading</short>
36
<element name="TFPCustomImageWriter">
38
<var>TFPCustomImageWriter</var> - FreePascal base class for writing image data</short>
40
<element name="TFPPalette.FData">
42
<var>FData</var> - local variable to hold data as a Colour Array</short>
44
<element name="TFPPalette.FCount">
46
<var>FCount</var> - local variable to hold number of colours in array</short>
48
<element name="TFPPalette.FCapacity">
50
<var>FCapacity</var> - local variable to hold total capacity of array</short>
52
<element name="TFPPalette.SetCount">
53
<short>Set the number of colors in the palette.</short>
55
<element name="TFPPalette.GetCount">
56
<short>Get the number of used palette entries.</short>
58
<element name="TFPPalette.SetColor">
59
<short>Set the color of the specified palette entry.</short>
61
<element name="TFPPalette.GetColor">
62
<short>Get the color of the specified palette entry.</short>
64
<element name="TFPPalette.CheckIndex">
65
<short>Perform an bounds check of the supplied index.</short>
66
<errors>FPImageException when the index is out of bounds (not 0 </errors>
68
<element name="TFPPalette.EnlargeData">
69
<short>Makes room in the array for more palette entries.</short>
71
<element name="TFPPalette.Create">
72
<short>Creates a palette with ACount color entries.</short>
74
<link id="#rtl.System.TObject.Create">TObject.Create</link>
77
<element name="TFPPalette.Destroy">
78
<short>Destroys this instance.</short>
80
<link id="#rtl.System.TObject.Destroy">TObject.Destroy</link>
83
<element name="TFPPalette.Build">
84
<short>Builds the palette from an Image.</short>
85
<descr>All pixels in the image are inspected and their unique color values are added to the palette; duplicates are ignored.</descr>
87
<element name="TFPPalette.Copy">
88
<short>Replace the color table by a copy of APalette.</short>
90
<link id="TFPPalette.Merge"/>
93
<element name="TFPPalette.Merge">
94
<short>Merge the contents of the given palette into the current palette.</short>
96
<link id="TFPPalette.Copy"/>
99
<element name="TFPPalette.IndexOf">
100
<short>Returns the palette index of the given color.</short>
102
<element name="TFPPalette.Add">
103
<short>Add the given color to the palette, and return its palette index.</short>
104
<descr>Duplicate colors are ignored, and the index of the already existing color entry is returned.</descr>
106
<element name="TFPPalette.Clear">
107
<short>Empties the palette.</short>
109
<element name="TFPPalette.Color">
110
<short>The current <var>Color</var> from the palette</short>
112
<element name="TFPPalette.Count">
113
<short>Get or set the number of used palette entries.</short>
115
<element name="TFPCustomImage.SetInternalColor">
116
<short>Set RGBA pixel color.</short>
117
<descr>This is a virtual method, that translates the RGBA color into the internal pixel format.
119
The default implementation converts the RGBA Value into an palette index, which then is stored in the pixel data.
121
Storage of true RGBA or monochrome colors (not using a palette) has to be implemented in derived classes.</descr>
123
<element name="TFPCustomImage.GetInternalColor">
124
<short>Get RGBA pixel color.</short>
125
<descr>This is a virtual method that extracts the internal color representation into a TFPColor, shifting and expanding bits into a TFPColor.
127
The default implementation obtains the RGBA color from the palette. When true RGBA or monochrome colors are stored as pixel data, this must be handled in derived classes.</descr>
129
<element name="TFPCustomImage.SetInternalPixel">
130
<short>Set the color of a pixel, in its internal encoding.</short>
131
<descr>This is an abstract method, expecting color information as an palette index by default, or monochrome or RGBA data encoded as an Integer value.
133
The color Value must be encoded in the format of the actual image, as defined in its TRawImageDescription.
135
Applications should use SetInternalColor instead, which converts the given RGBA value into the proper internal encoding.</descr>
137
<element name="TFPCustomImage.GetInternalPixel">
138
<short>Returns the internal (encoded) color value of the specified pixel.</short>
139
<descr>For RGBA colors returns the internal (encoded) representation of the color.
140
For monochrome or palette based images the intensitiy or palette index is returned.</descr>
142
<element name="TFPCustomImage.SetUsePalette">
143
<short>Specifies whether a color palette is to be used.</short>
144
<descr>Creates an empty palette if required.</descr>
146
<element name="TFPCustomImage.Progress">
147
<short>Notifies an OnProgress handler.</short>
149
<element name="TFPCustomImage.create">
150
<short>Initializes for an image of the given size in pixels.</short>
152
<link id="#rtl.System.TObject.Create">TObject.Create</link>
155
<element name="TFPCustomImage.destroy">
156
<short>Frees the palette.</short>
158
<link id="#rtl.Classes.TPersistent.Destroy">TPersistent.Destroy</link>
161
<element link="#rtl.Classes.TPersistent.Assign" name="TFPCustomImage.Assign"/>
162
<element name="TFPCustomImage.LoadFromStream">
163
<short>Loads an image from a stream, optionally using an specific reader.</short>
164
<descr>An overloaded version allows to specify an custom image reader.
165
Otherwise the registered image readers are tried.</descr>
167
<element name="TFPCustomImage.LoadFromFile">
168
<short>Loads an image from an file, optionally using an specific reader.</short>
170
<link id="TFPCustomImage.LoadFromStream"/>
173
<element name="TFPCustomImage.SaveToStream">
174
<short>Saves the image in an stream, using the specified writer.</short>
176
<element name="TFPCustomImage.SaveToFile">
177
<short>Saves the image in an file, optionally using the specified writer.</short>
178
<descr>If no writer is specified, a registered writer is selected based on the file extension.</descr>
180
<element name="TFPCustomImage.SetSize">
181
<short>Set the size of the image in pixels.</short>
182
<descr>Override to perform further actions, like allocating memory.
184
This method also is called when the Width or Height is changed.</descr>
186
<element name="TFPCustomImage.Height">
187
<short>Height of the image in pixels.</short>
189
<element name="TFPCustomImage.Width">
190
<short>Width of the image in pixels.</short>
192
<element name="TFPCustomImage.Colors">
193
<short>The RGBA color of the specified pixel.</short>
194
<errors>FPImageException</errors>
196
<link id="TFPCustomImage.Pixels"/>
199
<element name="TFPCustomImage.UsePalette">
200
<short>Usage of a color palette (read/write).</short>
202
<element name="TFPCustomImage.Palette">
203
<short>The color palette in use; Nil if no palette is used.</short>
205
<element name="TFPCustomImage.Pixels">
206
<short>The internal color value of a pixel.</short>
207
<errors>FPImageException</errors>
209
<link id="TFPCustomImage.Colors"/>
211
<descr>For RGBA colors the value is the internal (encoded) representation of the color.
212
For monochrome or palette based images, the value is the intensitiy or palette index.
214
This property is useful when working with monochrome or palette based images. Otherwise <link id="TFPCustomImage.Colors"/> should be used to get or set the decoded RGBA color values.</descr>
216
<element name="TFPCustomImage.Extra">
217
<short>Additional information, not related to the internal image representation.</short>
218
<descr>Additional image attributes, organized as a list of strings accessible by name or <link id="TFPCustomImage.ExtraValue">index</link>.
220
[Missing is a direct reference to the underlying TStringList, for e.g. retrieving the list index of an entry]</descr>
222
<element name="TFPCustomImage.ExtraValue">
223
<short>Image attribute values (strings) by index.</short>
224
<descr>Attribute strings also can be accessed by <link id="TFPCustomImage.Extra">name</link>.</descr>
226
<element name="TFPCustomImage.ExtraKey">
227
<short>Image attribute names by index.</short>
229
<element name="TFPCustomImage.RemoveExtra">
230
<short>Removes the named image attribute.</short>
232
<element name="TFPCustomImage.ExtraCount">
233
<short>Returns the number of additional image attributes.</short>
235
<link id="TFPCustomImage.Extra"/>
238
<element name="TFPCustomImage.OnProgress">
239
<short>Handler for Progress events.</short>
241
<element name="TFPCustomImageClass">
242
<short>Class of <link id="TFPCustomImage"/>.</short>
244
<element name="PFPIntegerArray">
245
<short>Pointer to <link id="TFPIntegerArray"/>.</short>
247
<element name="TFPIntegerArray">
249
<var>TFPIntegerArray</var> - definition of integer array for use in images</short>
251
<element link="#fcl.FPimage.TFPCustomImage.SetInternalPixel" name="TFPMemoryImage.SetInternalPixel"/>
252
<element link="#fcl.FPimage.TFPCustomImage.GetInternalPixel" name="TFPMemoryImage.GetInternalPixel"/>
253
<element link="#fcl.FPimage.TFPCustomImage.create" name="TFPMemoryImage.create"/>
254
<element link="#fcl.FPimage.TFPCustomImage.destroy" name="TFPMemoryImage.destroy"/>
255
<element link="#fcl.FPimage.TFPCustomImage.SetSize" name="TFPMemoryImage.SetSize"/>
256
<element name="TFPCustomImageHandler.Progress">
258
<printshort id="TFPImgProgressEvent"/>
261
<element name="TFPCustomImageHandler.TheStream">
262
<short>The stream containing the image.</short>
264
<element name="TFPCustomImageHandler.TheImage">
265
<short>The image being read or written.</short>
267
<element link="#rtl.System.TObject.Create" name="TFPCustomImageHandler.Create"/>
268
<element name="TFPCustomImageHandler.OnProgress">
269
<short>Progress event handler.</short>
271
<element name="TFPCustomImageReader.InternalRead">
273
<var>InternalRead</var> - read specified image from nominated stream</short>
275
<element name="TFPCustomImageReader.InternalCheck">
277
<var>InternalCheck</var> - performs check on validity of stream, returns True if OK</short>
279
<element link="#rtl.System.TObject.Create" name="TFPCustomImageReader.Create"/>
280
<element name="TFPCustomImageReader.ImageRead">
282
<var>ImageRead</var> read specified image from nominated stream; returns the image</short>
284
<element name="TFPCustomImageReader.CheckContents">
286
<var>CheckContents</var> - Gives True if contents are readable</short>
288
<element name="TFPCustomImageReader.DefaultImageClass">
290
<var>DefaultImageClass</var> - Image Class to create when no img is given for reading</short>
292
<element name="TFPCustomImageReaderClass">
294
<var>TFPCustomImageReaderClass</var> - class of
296
<var>TFPCustomImageReader</var>
299
<element name="TFPCustomImageWriter.InternalWrite">
301
<var>InternalWrite</var> - write specified image to nominated stream</short>
303
<element name="TFPCustomImageWriter.ImageWrite">
305
<var>ImageWrite</var> - writes given image to stream</short>
307
<element name="TFPCustomImageWriterClass">
309
<var>TFPCustomImageWriterClass</var> - class of
311
<var>TFPCustomImageWriter</var>
314
<element name="TIHData">
316
<var>TIHData</var> - data for Image Handler</short>
318
<element name="TImageHandlersManager">
320
<var>TImageHandlersManager</var> - class for managing image handlers</short>
322
<element name="TImageHandlersManager.Create">
324
<var>Create</var> - constructor fro
326
<var>TImageHandlersManager</var>: calls inherited
328
<var>Create</var> then constructs list of handlers</short>
330
<link id="#rtl.System.TObject.Create">TObject.Create</link>
333
<element name="TImageHandlersManager.Destroy">
335
<var>Destroy</var> - destructor for
337
<var>TImageHandlersManager</var>: frees the list of handlers then calls inherited
342
<link id="#rtl.System.TObject.Destroy">TObject.Destroy</link>
345
<element name="TImageHandlersManager.RegisterImageHandlers">
347
<var>RegisterImageHandlers</var> - method for registering Image Handlers</short>
349
<element name="TImageHandlersManager.RegisterImageReader">
351
<var>RegisterImageReader</var> - method to register an Image Reader</short>
353
<element name="TImageHandlersManager.RegisterImageWriter">
355
<var>RegisterImageWriter</var> - method to register an Image Writer</short>
357
<element name="TImageHandlersManager.Count">
359
<var>Count</var> - the number of Image Handlers</short>
361
<element name="TImageHandlersManager.ImageReader">
362
<short>The <var>ImageReader</var> being used</short>
364
<element name="TImageHandlersManager.ImageWriter">
365
<short>The <var>ImageWriter</var> being used</short>
367
<element name="TImageHandlersManager.Extentions">
368
<short>The filename <var>Extentions</var> for the image handlers</short>
370
<element name="TImageHandlersManager.DefaultExtention">
371
<short>The <var>DefaultExtention</var> to be used if no extention is supplied</short>
373
<element name="TImageHandlersManager.TypeNames">
374
<short>A list of <var>TypeNames</var> to be used with the handler files</short>
376
<element name="TFPColor">
377
<short>RGBA color information.</short>
378
<descr>This compatible RGBA color representation allows for easy access and manipulation of colors. Concrete images instead will use other (compressed) encodings, which are not suited for direct manipulation.
380
The TFPColor record contains the Red, Green, Blue and Alpha channel values as left adjusted 16 bit words, with increasing intensity from 0 to $FFFF. Alpha=0 indicates transparent pixels.The internal representation uses the high order bits of these values, as specified by the color Depth of the image description.</descr>
382
<link id="TFPColor"/>
385
<element name="PFPColor">
386
<short>Pointer to <link id="TFPColor"/>.</short>
388
<element name="TFPCustomImage.SetHeight">
389
<short>Set the image Height in pixels.</short>
390
<descr>Calls SetSize, to allow for adjustments of the overall (data) size.</descr>
392
<element name="TFPCustomImage.SetWidth">
393
<short>Set the image Width in pixels.</short>
394
<descr>Calls SetSize, to allow for adjustments of the overall (data) size.</descr>
396
<element name="TFPImgProgressStage">
397
<short>State of processing (psStarting, psRunning, psEnding).</short>
398
<seealso>TFPImgProgressStage</seealso>
400
<element name="TProgressStage">
401
<short>State of processing (psStarting, psRunning, psEnding).</short>
403
<element name="TFPCustomImage.GetPixel">
404
<short>Returns the internal (encoded) color value of the specified pixel.</short>
405
<errors>FPImageException</errors>
407
<element name="TFPCustomImage.CheckIndex">
408
<short>Bounds check of pixel coordinates.</short>
409
<errors>FPImageException</errors>
411
<element name="TFPImgProgressEvent">
412
<short>Image processing progress event.</short>
414
<link id="TFPCustomImage.OnProgress"/>
417
<p>Sender: the image object</p>
418
<p>Stage: Starting, Running or Ending</p>
419
<p>PercentDone: how much has been accomplished</p>
420
<p>RedrawNow: whether to refresh the Image</p>
421
<p>R: the rectangle in which drawing progress is being monitored</p>
422
<p>Msg: a message to show in the progress display</p>
423
<p>Continue: set Continue to False to abort image processing</p>
428
</fpdoc-descriptions>