]>
git.ipfire.org Git - thirdparty/cups.git/blob - ppdc/ppdc-profile.cxx
2 // Color profile class for the CUPS PPD Compiler.
4 // Copyright 2007-2009 by Apple Inc.
5 // Copyright 2002-2005 by Easy Software Products.
7 // Licensed under Apache License v2.0. See the file "LICENSE" for more information.
11 // Include necessary headers...
14 #include "ppdc-private.h"
18 // 'ppdcProfile::ppdcProfile()' - Create a color profile.
21 ppdcProfile::ppdcProfile(const char *r
, // I - Resolution name
22 const char *m
, // I - Media type name
23 float d
, // I - Density
25 const float *p
) // I - 3x3 transform matrix
30 resolution
= new ppdcString(r
);
31 media_type
= new ppdcString(m
);
35 memcpy(profile
, p
, sizeof(profile
));
40 // 'ppdcProfile::~ppdcProfile()' - Destroy a color profile.
43 ppdcProfile::~ppdcProfile()
47 resolution
->release();
48 media_type
->release();