1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2
"http://www.w3.org/TR/html4/loose.dtd">
5
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
6
<META NAME="GENERATOR" CONTENT="Mozilla/4.07 [en] (X11; U; SunOS 5.6 sun4u) [Netscape]">
7
<META NAME="Author" CONTENT="Bob Friesenhahn">
8
<META NAME="Description" CONTENT="Description of Magick::Image object composition.">
9
<TITLE>Magick::Image Data Structures</TITLE>
11
<BODY TEXT="#000000" BGCOLOR="#FFFFFF" LINK="#0000EE" VLINK="#551A8B" ALINK="#FF0000">
15
Magick::Image Data Structures</H1></CENTER>
16
The class Magick::Image is a simple handle which points to a reference-counted
17
image representation. This allows multiple Magick::Image instances to share
18
the same image and attributes. At the point in time that the image data,
19
or image attributes are modified and the current reference count is greater
20
than one, the image data and attributes are copied to create a new image
21
with a reference count of one and the reference count on the old image
22
is decremented. If the reference count on the old image becomes zero, then
23
the associated reference and data are deleted. This strategy represents
24
a simple (but effective) form of garbage collection
25
<P><IMG SRC="Image.png" HEIGHT=490 WIDTH=910>