Skip to content

Commit

Permalink
Removed MagickImage_AnnotateGravity, MagickImage_Annotate can be used…
Browse files Browse the repository at this point in the history
… with boundingArea set to null.
  • Loading branch information
dlemstra committed Jan 4, 2025
1 parent 321c14d commit 23d64a7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
17 changes: 0 additions & 17 deletions src/Magick.Native/MagickImage.c
Original file line number Diff line number Diff line change
Expand Up @@ -768,23 +768,6 @@ MAGICK_NATIVE_EXPORT void MagickImage_Annotate(Image *instance, const DrawInfo *
MAGICK_NATIVE_SET_EXCEPTION;
}

MAGICK_NATIVE_EXPORT void MagickImage_AnnotateGravity(Image *instance, const DrawInfo *settings, const char *text, const size_t gravity, ExceptionInfo **exception)
{
DrawInfo
*drawInfo;

drawInfo = CloneDrawInfo((const ImageInfo *) NULL, settings);
drawInfo->text = DestroyString(drawInfo->text);
drawInfo->text = (char *) text;
drawInfo->gravity = (GravityType) gravity;

MAGICK_NATIVE_GET_EXCEPTION;
AnnotateImage(instance, drawInfo, exceptionInfo);
drawInfo->text = (char *) NULL;
DestroyDrawInfo(drawInfo);
MAGICK_NATIVE_SET_EXCEPTION;
}

MAGICK_NATIVE_EXPORT void MagickImage_AutoGamma(Image *instance, const size_t channels, ExceptionInfo **exception)
{
MAGICK_NATIVE_GET_EXCEPTION;
Expand Down
2 changes: 0 additions & 2 deletions src/Magick.Native/MagickImage.h
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,6 @@ MAGICK_NATIVE_EXPORT Image *MagickImage_AffineTransform(Image *, const double, c

MAGICK_NATIVE_EXPORT void MagickImage_Annotate(Image *, const DrawInfo *, const char *, const char *, const size_t, const double, ExceptionInfo **);

MAGICK_NATIVE_EXPORT void MagickImage_AnnotateGravity(Image *, const DrawInfo *, const char *, const size_t, ExceptionInfo **);

MAGICK_NATIVE_EXPORT void MagickImage_AutoGamma(Image *, const size_t, ExceptionInfo **);

MAGICK_NATIVE_EXPORT void MagickImage_AutoLevel(Image *, const size_t, ExceptionInfo **);
Expand Down

0 comments on commit 23d64a7

Please sign in to comment.