+2010-05-12 6.6.1-8 Cristy <quetzlzacatenango@image...>
+ * Increase the estimated # points for the path drawing primitive.
+
2010-05-12 6.6.1-8 Anthony Thyssen <A.Thyssen@griffith...>
* Implementation of Pattern Matching Morphology methods
HitAndMiss, Thicken, Thinning
%
% GetImageArtifact() gets a value associated with an image artifact.
%
-% WARNING: The pointer returned points directly to stored values.
-% Do not free the memory they pointed to.
+% Note, the artifact is a constant. Do not attempt to free it.
%
% The format of the GetImageArtifact method is:
%
}
length++;
}
- length=6*(3*length/2+BezierQuantum)+360+1;
+ length=k*BezierQuantum;
break;
}
case CirclePrimitive:
/*
Resize based on speculative points required by primitive.
*/
- while ((unsigned long) (i+length) >= number_points)
- number_points<<=1;
+ number_points+=length+1;
primitive_info=(PrimitiveInfo *) ResizeQuantumMemory(primitive_info,
(size_t) number_points,sizeof(*primitive_info));
if (primitive_info == (PrimitiveInfo *) NULL)
graphic_context[n]->bounds.y2=point.y;
if (primitive_info[i].primitive == ImagePrimitive)
break;
+ if (i >= (long) number_points)
+ ThrowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed");
}
- if (i >= (long) number_points)
- ThrowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed");
if (graphic_context[n]->render != MagickFalse)
{
if ((n != 0) && (graphic_context[n]->clip_mask != (char *) NULL) &&
result.green = (MagickRealType) p[r].green;
result.blue = (MagickRealType) p[r].blue;
result.opacity = QuantumRange - (MagickRealType) p[r].opacity;
+ result.index = 0;
if ( image->colorspace == CMYKColorspace)
result.index = (MagickRealType) p_indexes[r];
{
if (LocaleNCompare("unique",property,6) == 0)
{
- if (*image_info->unique == '\0')
- (void) AcquireUniqueFilename(image_info->unique);
(void) CopyMagickString(filename,image_info->unique,MaxTextExtent);
(void) CopyMagickString(value,filename,MaxTextExtent);
break;
%
% The format of the GetNextKeyInSplayTree method is:
%
-% void *GetNextKeyInSplayTree(SplayTreeInfo *splay_tree)
+% const void *GetNextKeyInSplayTree(SplayTreeInfo *splay_tree)
%
% A description of each parameter follows:
%
% o key: the key.
%
*/
-MagickExport void *GetNextKeyInSplayTree(SplayTreeInfo *splay_tree)
+MagickExport const void *GetNextKeyInSplayTree(SplayTreeInfo *splay_tree)
{
register NodeInfo
*node;
%
% The format of the GetNextValueInSplayTree method is:
%
-% void *GetNextValueInSplayTree(SplayTreeInfo *splay_tree)
+% const void *GetNextValueInSplayTree(SplayTreeInfo *splay_tree)
%
% A description of each parameter follows:
%
% o key: the key.
%
*/
-MagickExport void *GetNextValueInSplayTree(SplayTreeInfo *splay_tree)
+MagickExport const void *GetNextValueInSplayTree(SplayTreeInfo *splay_tree)
{
register NodeInfo
*node;
%
% GetValueFromSplayTree() gets a value from the splay-tree by its key.
%
-% WARNING: The pointer returned points directly into the values stored in
-% tree. Do not free the memory pointed to.
+% Note, the value is a constant. Do not attempt to free it.
%
% The format of the GetValueFromSplayTree method is:
%
-% void *GetValueFromSplayTree(SplayTreeInfo *splay_tree,const void *key)
+% const void *GetValueFromSplayTree(SplayTreeInfo *splay_tree,
+% const void *key)
%
% A description of each parameter follows:
%
% o key: the key.
%
*/
-MagickExport void *GetValueFromSplayTree(SplayTreeInfo *splay_tree,
+MagickExport const void *GetValueFromSplayTree(SplayTreeInfo *splay_tree,
const void *key)
{
int
DeleteNodeByValueFromSplayTree(SplayTreeInfo *,const void *),
DeleteNodeFromSplayTree(SplayTreeInfo *,const void *);
+extern MagickExport const void
+ *GetValueFromSplayTree(SplayTreeInfo *,const void *);
+
extern MagickExport int
CompareSplayTreeString(const void *,const void *),
CompareSplayTreeStringInfo(const void *,const void *);
extern MagickExport void
*GetNextKeyInSplayTree(SplayTreeInfo *),
*GetNextValueInSplayTree(SplayTreeInfo *),
- *GetValueFromSplayTree(SplayTreeInfo *,const void *),
*RemoveNodeByValueFromSplayTree(SplayTreeInfo *,const void *),
*RemoveNodeFromSplayTree(SplayTreeInfo *,const void *),
ResetSplayTree(SplayTreeInfo *),