MagickCore  6.9.11-59
Convert, Edit, Or Compose Bitmap Images
shear.h
Go to the documentation of this file.
1 /*
2  Copyright 1999-2021 ImageMagick Studio LLC, a non-profit organization
3  dedicated to making software imaging solutions freely available.
4 
5  You may not use this file except in compliance with the License. You may
6  obtain a copy of the License at
7 
8  https://imagemagick.org/script/license.php
9 
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15 
16  MagickCore image stream methods.
17 */
18 #ifndef MAGICKCORE_SHEAR_H
19 #define MAGICKCORE_SHEAR_H
20 
21 #if defined(__cplusplus) || defined(c_plusplus)
22 extern "C" {
23 #endif
24 
25 extern MagickExport Image
26  *DeskewImage(const Image *,const double,ExceptionInfo *),
28  *ShearImage(const Image *,const double,const double,ExceptionInfo *),
29  *ShearRotateImage(const Image *,const double,ExceptionInfo *);
30 
31 #if defined(__cplusplus) || defined(c_plusplus)
32 }
33 #endif
34 
35 #endif
_Image::colorspace
ColorspaceType colorspace
Definition: image.h:158
QuantumScale
#define QuantumScale
Definition: magick-type.h:124
MagickExport
#define MagickExport
Definition: method-attribute.h:80
_Image::debug
MagickBooleanType debug
Definition: image.h:290
_Image::filename
char filename[MaxTextExtent]
Definition: image.h:278
_Image::background_color
PixelPacket background_color
Definition: image.h:181
_Image::progress_monitor
MagickProgressMonitor progress_monitor
Definition: image.h:264
_RectangleInfo::x
ssize_t x
Definition: geometry.h:130
CloneImage
MagickExport Image * CloneImage(const Image *image, const size_t columns, const size_t rows, const MagickBooleanType detach, ExceptionInfo *exception)
Definition: image.c:771
_AffineMatrix
Definition: geometry.h:96
_Image::matte
MagickBooleanType matte
Definition: image.h:171
SetImageProgress
MagickExport MagickBooleanType SetImageProgress(const Image *image, const char *tag, const MagickOffsetType offset, const MagickSizeType extent)
Definition: monitor.c:136
GetMatrixColumns
MagickExport size_t GetMatrixColumns(const MatrixInfo *matrix_info)
Definition: matrix.c:606
_Image::border_color
PixelPacket border_color
Definition: image.h:182
YShearImageTag
#define YShearImageTag
_MatrixInfo
Definition: matrix.c:60
Swap
#define Swap(x, y)
Definition: studio.h:384
_MagickPixelPacket::red
MagickRealType red
Definition: pixel.h:122
DirectClass
@ DirectClass
Definition: magick-type.h:198
threshold.h
GetMagickModule
#define GetMagickModule()
Definition: log.h:29
DestroyCacheView
MagickExport CacheView * DestroyCacheView(CacheView *cache_view)
Definition: cache-view.c:256
GetMagickPixelPacket
MagickExport void GetMagickPixelPacket(const Image *image, MagickPixelPacket *pixel)
Definition: pixel.c:2233
nt-base-private.h
statistic.h
distort.h
CropImage
MagickExport Image * CropImage(const Image *image, const RectangleInfo *geometry, ExceptionInfo *exception)
Definition: transform.c:614
geometry.h
IsMagickTrue
MagickExport MagickBooleanType IsMagickTrue(const char *value)
Definition: token.c:657
RadiansToDegrees
static MagickRealType RadiansToDegrees(const MagickRealType radians)
Definition: image-private.h:69
MagickCoreSignature
#define MagickCoreSignature
Definition: method-attribute.h:86
FormatLocaleString
MagickExport ssize_t FormatLocaleString(char *magick_restrict string, const size_t length, const char *magick_restrict format,...)
Definition: locale.c:497
GetCacheViewVirtualIndexQueue
MagickExport const IndexPacket * GetCacheViewVirtualIndexQueue(const CacheView *cache_view)
Definition: cache-view.c:638
_RectangleInfo::height
size_t height
Definition: geometry.h:127
channel.h
GetCacheViewAuthenticPixels
MagickExport PixelPacket * GetCacheViewAuthenticPixels(CacheView *cache_view, const ssize_t x, const ssize_t y, const size_t columns, const size_t rows, ExceptionInfo *exception)
Definition: cache-view.c:473
magick_restrict
#define magick_restrict
Definition: MagickCore.h:41
_RectangleInfo
Definition: geometry.h:124
image-private.h
monitor.h
_Image::columns
size_t columns
Definition: image.h:174
MedianStatistic
@ MedianStatistic
Definition: statistic.h:127
artifact.h
ShearRotateImage
MagickExport Image * ShearRotateImage(const Image *image, const double degrees, ExceptionInfo *exception)
Definition: shear.c:1726
IndexPacket
Quantum IndexPacket
Definition: pixel.h:129
resource_.h
ConvertRGBToCMYK
static void ConvertRGBToCMYK(MagickPixelPacket *pixel)
Definition: colorspace-private.h:40
_Image::type
ImageType type
Definition: image.h:334
GetPixelRed
#define GetPixelRed(pixel)
Definition: pixel-accessor.h:50
DestroyMatrixInfo
MagickExport MatrixInfo * DestroyMatrixInfo(MatrixInfo *matrix_info)
Definition: matrix.c:366
ResourceLimitError
@ ResourceLimitError
Definition: exception.h:55
TransformEvent
@ TransformEvent
Definition: log.h:52
_PixelPacket::blue
Quantum blue
Definition: pixel.h:143
_CacheView
Definition: cache-view.c:66
string_.h
GetImageBoundingBox
MagickExport RectangleInfo GetImageBoundingBox(const Image *image, ExceptionInfo *exception)
Definition: attribute.c:391
quantum.h
GetPixelCacheTileSize
MagickExport void GetPixelCacheTileSize(const Image *, size_t *, size_t *)
MagickTrue
@ MagickTrue
Definition: magick-type.h:205
QueueCacheViewAuthenticPixels
MagickExport PixelPacket * QueueCacheViewAuthenticPixels(CacheView *cache_view, const ssize_t x, const ssize_t y, const size_t columns, const size_t rows, ExceptionInfo *exception)
Definition: cache-view.c:883
_RectangleInfo::y
ssize_t y
Definition: geometry.h:131
CopyCompositeOp
@ CopyCompositeOp
Definition: composite.h:40
OpaqueAlphaChannel
@ OpaqueAlphaChannel
Definition: image.h:38
_Image::compose
CompositeOperator compose
Definition: image.h:235
GetPixelIndex
#define GetPixelIndex(indexes)
Definition: pixel-accessor.h:44
SyncCacheViewAuthenticPixels
MagickExport MagickBooleanType SyncCacheViewAuthenticPixels(CacheView *magick_restrict cache_view, ExceptionInfo *exception)
Definition: cache-view.c:1000
_MagickPixelPacket::blue
MagickRealType blue
Definition: pixel.h:124
blob-private.h
ParseAbsoluteGeometry
MagickExport MagickStatusType ParseAbsoluteGeometry(const char *geometry, RectangleInfo *region_info)
Definition: geometry.c:718
ClampToQuantum
static Quantum ClampToQuantum(const MagickRealType quantum)
Definition: quantum.h:88
thread-private.h
AffineTransformImage
MagickExport Image * AffineTransformImage(const Image *image, const AffineMatrix *affine_matrix, ExceptionInfo *exception)
Definition: distort.c:285
matrix.h
TraceEvent
@ TraceEvent
Definition: log.h:38
ShearRotateImage
MagickExport Image * ShearRotateImage(const Image *, const double, ExceptionInfo *)
Definition: shear.c:1726
decorate.h
ThrowImageException
#define ThrowImageException(severity, tag)
Definition: exception-private.h:70
cache-private.h
SetImageAlphaChannel
MagickExport MagickBooleanType SetImageAlphaChannel(Image *image, const AlphaChannelType alpha_type)
Definition: channel.c:652
_Image
Definition: image.h:153
GetCacheViewAuthenticIndexQueue
MagickExport IndexPacket * GetCacheViewAuthenticIndexQueue(CacheView *cache_view)
Definition: cache-view.c:564
AcquireAuthenticCacheView
MagickExport CacheView * AcquireAuthenticCacheView(const Image *image, ExceptionInfo *exception)
Definition: cache-view.c:111
_MagickPixelPacket
Definition: pixel.h:105
ImageError
@ ImageError
Definition: exception.h:69
attribute.h
_Image::exception
ExceptionInfo exception
Definition: image.h:287
AcquireMatrixInfo
MagickExport MatrixInfo * AcquireMatrixInfo(const size_t columns, const size_t rows, const size_t stride, ExceptionInfo *exception)
Definition: matrix.c:197
ShearImage
MagickExport Image * ShearImage(const Image *image, const double x_shear, const double y_shear, ExceptionInfo *exception)
Definition: shear.c:1592
MagickFalse
@ MagickFalse
Definition: magick-type.h:204
MagickProgressMonitor
MagickBooleanType(* MagickProgressMonitor)(const char *, const MagickOffsetType, const MagickSizeType, void *)
Definition: monitor.h:26
GetPixelBlue
#define GetPixelBlue(pixel)
Definition: pixel-accessor.h:38
pixel-private.h
image.h
GetPixelOpacity
#define GetPixelOpacity(pixel)
Definition: pixel-accessor.h:49
_AffineMatrix::tx
double tx
Definition: geometry.h:102
_AffineMatrix::sy
double sy
Definition: geometry.h:101
_AffineMatrix::ty
double ty
Definition: geometry.h:103
_PixelPacket::opacity
Quantum opacity
Definition: pixel.h:146
_AffineMatrix::sx
double sx
Definition: geometry.h:98
RadonTransform
static MagickBooleanType RadonTransform(const Image *image, const double threshold, size_t *projection, ExceptionInfo *exception)
Definition: shear.c:328
color-private.h
draw.h
_PixelPacket::red
Quantum red
Definition: pixel.h:145
composite.h
QuantumRange
#define QuantumRange
Definition: magick-type.h:90
CMYKColorspace
@ CMYKColorspace
Definition: colorspace.h:39
SetMatrixElement
MagickExport MagickBooleanType SetMatrixElement(const MatrixInfo *matrix_info, const ssize_t x, const ssize_t y, const void *value)
Definition: matrix.c:1108
_Image::rows
size_t rows
Definition: image.h:175
XShearImage
static MagickBooleanType XShearImage(Image *image, const MagickRealType degrees, const size_t width, const size_t height, const ssize_t x_offset, const ssize_t y_offset, ExceptionInfo *exception)
Definition: shear.c:1145
_PixelPacket::green
Quantum green
Definition: pixel.h:144
SetMagickPixelPacket
static void SetMagickPixelPacket(const Image *image, const PixelPacket *color, const IndexPacket *index, MagickPixelPacket *pixel)
Definition: pixel-private.h:78
IntegralRotateImage
MagickExport Image * IntegralRotateImage(const Image *, size_t, ExceptionInfo *)
YShearImage
static MagickBooleanType YShearImage(Image *image, const MagickRealType degrees, const size_t width, const size_t height, const ssize_t x_offset, const ssize_t y_offset, ExceptionInfo *exception)
Definition: shear.c:1367
_ExceptionInfo::signature
size_t signature
Definition: exception.h:124
RotateImageTag
#define RotateImageTag
_Image::signature
size_t signature
Definition: image.h:307
SetImageArtifact
MagickExport MagickBooleanType SetImageArtifact(Image *image, const char *artifact, const char *value)
Definition: artifact.c:434
MagickBooleanType
MagickBooleanType
Definition: magick-type.h:203
composite-private.h
RelinquishMagickMemory
MagickExport void * RelinquishMagickMemory(void *memory)
Definition: memory.c:1162
StatisticImage
MagickExport Image * StatisticImage(const Image *image, const StatisticType type, const size_t width, const size_t height, ExceptionInfo *exception)
Definition: statistic.c:3589
IntegralRotateImage
MagickExport Image * IntegralRotateImage(const Image *image, size_t rotations, ExceptionInfo *exception)
Definition: shear.c:708
_ExceptionInfo
Definition: exception.h:103
GetMatrixRows
MagickExport size_t GetMatrixRows(const MatrixInfo *matrix_info)
Definition: matrix.c:748
DegreesToRadians
static double DegreesToRadians(const double degrees)
Definition: image-private.h:64
_RectangleInfo::width
size_t width
Definition: geometry.h:126
SetPixelIndex
#define SetPixelIndex(indexes, value)
Definition: pixel-accessor.h:78
studio.h
StringToLong
static long StringToLong(const char *magick_restrict value)
Definition: string-private.h:108
RadonProjection
static void RadonProjection(const Image *image, MatrixInfo *source_matrix, MatrixInfo *destination_matrix, const ssize_t sign, size_t *projection)
Definition: shear.c:219
GetMatrixElement
MagickExport MagickBooleanType GetMatrixElement(const MatrixInfo *matrix_info, const ssize_t x, const ssize_t y, void *value)
Definition: matrix.c:702
MagickPixelCompositeAreaBlend
static void MagickPixelCompositeAreaBlend(const MagickPixelPacket *p, const MagickRealType alpha, const MagickPixelPacket *q, const MagickRealType beta, const MagickRealType area, MagickPixelPacket *composite)
Definition: composite-private.h:150
MagickRealType
MagickDoubleType MagickRealType
Definition: magick-type.h:129
_PointInfo::y
double y
Definition: draw.h:142
monitor-private.h
GetImageArtifact
MagickExport const char * GetImageArtifact(const Image *image, const char *artifact)
Definition: artifact.c:266
shear.h
NullMatrix
MagickExport MagickBooleanType NullMatrix(MatrixInfo *matrix_info)
Definition: matrix.c:1001
AcquireVirtualCacheView
MagickExport CacheView * AcquireVirtualCacheView(const Image *image, ExceptionInfo *exception)
Definition: cache-view.c:153
BorderImage
MagickExport Image * BorderImage(const Image *image, const RectangleInfo *border_info, ExceptionInfo *exception)
Definition: decorate.c:102
DestroyImage
MagickExport Image * DestroyImage(Image *image)
Definition: image.c:1174
transform.h
memory_.h
_PointInfo
Definition: draw.h:139
DeskewImage
MagickExport Image * DeskewImage(const Image *, const double, ExceptionInfo *)
_AffineMatrix::ry
double ry
Definition: geometry.h:100
exception-private.h
DeskewImage
MagickExport Image * DeskewImage(const Image *image, const double threshold, ExceptionInfo *exception)
Definition: shear.c:564
exception.h
SetImageStorageClass
MagickExport MagickBooleanType SetImageStorageClass(Image *image, const ClassType storage_class)
Definition: image.c:2595
GetPixelGreen
#define GetPixelGreen(pixel)
Definition: pixel-accessor.h:43
list.h
SetImageVirtualPixelMethod
MagickExport VirtualPixelMethod SetImageVirtualPixelMethod(const Image *image, const VirtualPixelMethod virtual_pixel_method)
Definition: image.c:3287
gem.h
LogMagickEvent
MagickExport MagickBooleanType LogMagickEvent(const LogEventType type, const char *module, const char *function, const size_t line, const char *format,...)
Definition: log.c:1420
ShearImage
MagickExport Image * ShearImage(const Image *, const double, const double, ExceptionInfo *)
MaxTextExtent
#define MaxTextExtent
Definition: method-attribute.h:89
GetCacheViewVirtualPixels
MagickExport const PixelPacket * GetCacheViewVirtualPixels(const CacheView *cache_view, const ssize_t x, const ssize_t y, const size_t columns, const size_t rows, ExceptionInfo *exception)
Definition: cache-view.c:723
string-private.h
colorspace-private.h
BackgroundVirtualPixelMethod
@ BackgroundVirtualPixelMethod
Definition: cache-view.h:30
token.h
InheritException
MagickExport void InheritException(ExceptionInfo *exception, const ExceptionInfo *relative)
Definition: exception.c:692
CastDoubleToLong
static ssize_t CastDoubleToLong(const double value)
Definition: image-private.h:53
CropToFitImage
static MagickBooleanType CropToFitImage(Image **image, const MagickRealType x_shear, const MagickRealType y_shear, const MagickRealType width, const MagickRealType height, const MagickBooleanType rotate, ExceptionInfo *exception)
Definition: shear.c:114
_AffineMatrix::rx
double rx
Definition: geometry.h:99
_Image::page
RectangleInfo page
Definition: image.h:213
_MagickPixelPacket::opacity
MagickRealType opacity
Definition: pixel.h:125
_PointInfo::x
double x
Definition: draw.h:141
_MagickPixelPacket::green
MagickRealType green
Definition: pixel.h:123
GetImageBackgroundColor
static void GetImageBackgroundColor(Image *image, const ssize_t offset, ExceptionInfo *exception)
Definition: shear.c:505
_PixelPacket
Definition: pixel.h:132
SetPixelPacket
static void SetPixelPacket(const Image *image, const MagickPixelPacket *pixel, PixelPacket *color, IndexPacket *index)
Definition: pixel-private.h:103
AcquireQuantumMemory
MagickExport void * AcquireQuantumMemory(const size_t count, const size_t quantum)
Definition: memory.c:665
MagickOffsetType
ssize_t MagickOffsetType
Definition: magick-type.h:139
XShearImageTag
#define XShearImageTag