File: ImageDesign.rst

package info (click to toggle)
graphicsmagick 1.4%2Breally1.3.45%2Bhg17696-1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 49,092 kB
  • sloc: ansic: 249,519; cpp: 18,805; sh: 8,000; perl: 3,634; makefile: 2,567; tcl: 2,209; python: 1,250
file content (27 lines) | stat: -rw-r--r-- 1,082 bytes parent folder | download | duplicates (3)
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
.. -*- mode: rst -*-
.. This text is in reStucturedText format, so it may look a bit odd.
.. See http://docutils.sourceforge.net/rst.html for details.

=============================
Magick::Image Data Structures
=============================

The class Magick::Image is a simple handle which points to a
reference-counted image representation. This allows multiple
Magick::Image instances to share the same image and attributes. At the
point in time that the image data, or image attributes are modified
and the current reference count is greater than one, the image data
and attributes are copied to create a new image with a reference count
of one and the reference count on the old image is decremented. If the
reference count on the old image becomes zero, then the associated
reference and data are deleted. This strategy represents a simple (but
effective) form of garbage collection.

.. image:: Image.png
   :width: 910
   :height: 490
   :alt: Figure showing Image class design

.. |copy|   unicode:: U+000A9 .. COPYRIGHT SIGN

Copyright |copy| Bob Friesenhahn 1999 - 2022