2 // "$Id: ppdc-profile.cxx 8484 2009-04-03 17:35:17Z mike $"
4 // Color profile class for the CUPS PPD Compiler.
6 // Copyright 2007-2009 by Apple Inc.
7 // Copyright 2002-2005 by Easy Software Products.
9 // These coded instructions, statements, and computer programs are the
10 // property of Apple Inc. and are protected by Federal copyright
11 // law. Distribution and use rights are outlined in the file "LICENSE.txt"
12 // which should have been included with this file. If this file is
13 // file is missing or damaged, see the license at "http://www.cups.org/".
17 // ppdcProfile::ppdcProfile() - Create a color profile.
18 // ppdcProfile::~ppdcProfile() - Destroy a color profile.
22 // Include necessary headers...
25 #include "ppdc-private.h"
29 // 'ppdcProfile::ppdcProfile()' - Create a color profile.
32 ppdcProfile::ppdcProfile(const char *r, // I - Resolution name
33 const char *m, // I - Media type name
34 float d, // I - Density
36 const float *p) // I - 3x3 transform matrix
41 resolution = new ppdcString(r);
42 media_type = new ppdcString(m);
46 memcpy(profile, p, sizeof(profile));
51 // 'ppdcProfile::~ppdcProfile()' - Destroy a color profile.
54 ppdcProfile::~ppdcProfile()
58 resolution->release();
59 media_type->release();
64 // End of "$Id: ppdc-profile.cxx 8484 2009-04-03 17:35:17Z mike $".