blob: 8ef833a1d5a497ff352076302a49a0258163ddfc (
plain)
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
28
29
30
|
/*
Copyright (C) 2003-2020 GraphicsMagick Group
Copyright (C) 2002 ImageMagick Studio
This program is covered by multiple licenses, which are described in
Copyright.txt. You should have received a copy of Copyright.txt with this
package; otherwise see http://www.graphicsmagick.org/www/Copyright.html.
Private Methods to Get/Set/Destroy Image Text Attributes.
*/
/* Assign value of attribute to double if attribute exists for key */
#define MagickAttributeToDouble(image,key,variable) \
{ \
const ImageAttribute \
*attribute; \
\
if ((attribute=GetImageAttribute(image,key))) \
{ \
variable=strtod(attribute->value,(char **) NULL); \
} \
}
/*
* Local Variables:
* mode: c
* c-basic-offset: 2
* fill-column: 78
* End:
*/
|