Package apple.coregraphics.c
Class CoreGraphics
- java.lang.Object
-
- apple.coregraphics.c.CoreGraphics
-
public final class CoreGraphics extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCoreGraphics.Block_CGPathApplyWithBlockstatic interfaceCoreGraphics.Block_CGPDFArrayApplyBlockstatic interfaceCoreGraphics.Block_CGPDFDictionaryApplyBlockstatic interfaceCoreGraphics.Function_CGBitmapContextCreateWithDatastatic interfaceCoreGraphics.Function_CGDataProviderCreateWithDatastatic interfaceCoreGraphics.Function_CGErrorSetCallbackstatic interfaceCoreGraphics.Function_CGPathApplystatic interfaceCoreGraphics.Function_CGPDFDictionaryApplyFunctionstatic interfaceCoreGraphics.Function_CGPDFOperatorTableSetCallback
-
Field Summary
Fields Modifier and Type Field Description static doubleCG_HDR_BT_2100static intkCGBitmapByteOrder16Hoststatic intkCGBitmapByteOrder32Hoststatic charkCGFontIndexInvalidA value representing an invalid CGFontIndex.static charkCGFontIndexMaxThe maximum allowed value of a CGFontIndex.static charkCGGlyphMaxThe maximum allowed value of a CGGlyph.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static CGAffineTransform__CGAffineTransformMake(double a, double b, double c, double d, double tx, double ty)Definitions of inline functions.static CGPoint__CGPointApplyAffineTransform(CGPoint point, CGAffineTransform t)static boolean__CGPointEqualToPoint(CGPoint point1, CGPoint point2)static CGSize__CGSizeApplyAffineTransform(CGSize size, CGAffineTransform t)static boolean__CGSizeEqualToSize(CGSize size1, CGSize size2)static CGAffineTransformCGAffineTransformConcat(CGAffineTransform t1, CGAffineTransform t2)Concatenate `t2' to `t1' and return the result: t' = t1 * t2 API-Since: 2.0static CGAffineTransformComponentsCGAffineTransformDecompose(CGAffineTransform transform)Decompose a CGAffineTransform into a scale * shear * rotation * translation This decomposition method may be used to provide insight into what a arbitrary CGAffineTransform does.static booleanCGAffineTransformEqualToTransform(CGAffineTransform t1, CGAffineTransform t2)Return true if `t1' and `t2' are equal, false otherwise.static CGAffineTransformCGAffineTransformIdentity()The identity transform: [ 1 0 0 1 0 0 ].static CGAffineTransformCGAffineTransformInvert(CGAffineTransform t)Invert `t' and return the result.static booleanCGAffineTransformIsIdentity(CGAffineTransform t)Return true if `t' is the identity transform, false otherwise.static CGAffineTransformCGAffineTransformMake(double a, double b, double c, double d, double tx, double ty)Return the transform [ a b c d tx ty ].static CGAffineTransformCGAffineTransformMakeRotation(double angle)Return a transform which rotates by `angle' radians: t' = [ cos(angle) sin(angle) -sin(angle) cos(angle) 0 0 ] API-Since: 2.0static CGAffineTransformCGAffineTransformMakeScale(double sx, double sy)Return a transform which scales by `(sx, sy)': t' = [ sx 0 0 sy 0 0 ] API-Since: 2.0static CGAffineTransformCGAffineTransformMakeTranslation(double tx, double ty)Return a transform which translates by `(tx, ty)': t' = [ 1 0 0 1 tx ty ] API-Since: 2.0static CGAffineTransformCGAffineTransformMakeWithComponents(CGAffineTransformComponents components)Create CGAffineTransform from scale * shear * rotation * translation CGAffineTransformComponentsstatic CGAffineTransformCGAffineTransformRotate(CGAffineTransform t, double angle)Rotate `t' by `angle' radians and return the result: t' = [ cos(angle) sin(angle) -sin(angle) cos(angle) 0 0 ] * t API-Since: 2.0static CGAffineTransformCGAffineTransformScale(CGAffineTransform t, double sx, double sy)Scale `t' by `(sx, sy)' and return the result: t' = [ sx 0 0 sy 0 0 ] * t API-Since: 2.0static CGAffineTransformCGAffineTransformTranslate(CGAffineTransform t, double tx, double ty)Translate `t' by `(tx, ty)' and return the result: t' = [ 1 0 0 1 tx ty ] * t API-Since: 2.0static @Nullable CGContextRefCGBitmapContextCreate(@Nullable org.moe.natj.general.ptr.VoidPtr data, long width, long height, long bitsPerComponent, long bytesPerRow, @Nullable CGColorSpaceRef space, int bitmapInfo)Create a bitmap context.static @Nullable CGImageRefCGBitmapContextCreateImage(@Nullable CGContextRef context)Return an image containing a snapshot of the bitmap context `context'.static @Nullable CGContextRefCGBitmapContextCreateWithData(@Nullable org.moe.natj.general.ptr.VoidPtr data, long width, long height, long bitsPerComponent, long bytesPerRow, @Nullable CGColorSpaceRef space, int bitmapInfo, @Nullable CoreGraphics.Function_CGBitmapContextCreateWithData releaseCallback, @Nullable org.moe.natj.general.ptr.VoidPtr releaseInfo)Create a bitmap context.static intCGBitmapContextGetAlphaInfo(@Nullable CGContextRef context)Return the alpha info of the bitmap context `context', or "kCGImageAlphaNone" if `context' is not a bitmap context.static intCGBitmapContextGetBitmapInfo(@Nullable CGContextRef context)Return the bitmap info of the bitmap context `context', or 0 if `context' is not a bitmap context.static longCGBitmapContextGetBitsPerComponent(@Nullable CGContextRef context)Return the bits per component of the bitmap context `context', or 0 if `context' is not a bitmap context.static longCGBitmapContextGetBitsPerPixel(@Nullable CGContextRef context)Return the bits per pixel of the bitmap context `context', or 0 if `context' is not a bitmap context.static longCGBitmapContextGetBytesPerRow(@Nullable CGContextRef context)Return the bytes per row of the bitmap context `context', or 0 if `context' is not a bitmap context.static @Nullable CGColorSpaceRefCGBitmapContextGetColorSpace(@Nullable CGContextRef context)Return the color space of the bitmap context `context', or NULL if `context' is not a bitmap context.static @Nullable org.moe.natj.general.ptr.VoidPtrCGBitmapContextGetData(@Nullable CGContextRef context)Return the data associated with the bitmap context `context', or NULL if `context' is not a bitmap context.static longCGBitmapContextGetHeight(@Nullable CGContextRef context)Return the height of the bitmap context `context', or 0 if `context' is not a bitmap context.static longCGBitmapContextGetWidth(@Nullable CGContextRef context)Return the width of the bitmap context `context', or 0 if `context' is not a bitmap context.static @Nullable CGColorConversionInfoRefCGColorConversionInfoCreate(@Nullable CGColorSpaceRef src, @Nullable CGColorSpaceRef dst)Create CGColorConversionInfoRef for converting color from `src' color space to `dst' color space using kCGRenderingIntentDefault rendering intent.static @Nullable CGColorConversionInfoRefCGColorConversionInfoCreateFromList(@Nullable CFDictionaryRef options, @Nullable CGColorSpaceRef arg2, int arg3, int arg4, java.lang.Object... varargs)Create CGColorConversionInfoRef from a list of CG color spaces, transform types and rendering intents.static @Nullable CGColorConversionInfoRefCGColorConversionInfoCreateFromListWithArguments(@Nullable CFDictionaryRef options, @Nullable CGColorSpaceRef arg2, int arg3, int arg4, org.moe.natj.general.ptr.BytePtr arg5)API-Since: 11.0static @Nullable CGColorConversionInfoRefCGColorConversionInfoCreateWithOptions(@NotNull CGColorSpaceRef src, @NotNull CGColorSpaceRef dst, @Nullable CFDictionaryRef options)API-Since: 13.0static longCGColorConversionInfoGetTypeID()static @Nullable CGColorRefCGColorCreate(@Nullable CGColorSpaceRef space, @Nullable org.moe.natj.general.ptr.ConstNFloatPtr components)Create a color in the color space `space' with color components (including alpha) specified by `components'.static @Nullable CGColorRefCGColorCreateCopy(@Nullable CGColorRef color)Create a copy of `color'.static @Nullable CGColorRefCGColorCreateCopyByMatchingToColorSpace(@Nullable CGColorSpaceRef arg1, int intent, @Nullable CGColorRef color, @Nullable CFDictionaryRef options)Create a copy of `color' by matching existing color to destination color space.static @Nullable CGColorRefCGColorCreateCopyWithAlpha(@Nullable CGColorRef color, double alpha)Create a copy of `color' with alpha set to `alpha'.static @NotNull CGColorRefCGColorCreateGenericCMYK(double cyan, double magenta, double yellow, double black, double alpha)Create a color in the "Generic" CMYK color space.static @NotNull CGColorRefCGColorCreateGenericGray(double gray, double alpha)Create a color in the "Generic" gray color space.static @NotNull CGColorRefCGColorCreateGenericGrayGamma2_2(double gray, double alpha)Create a color in the "Generic Gray Gamma 2.2 color space.static @NotNull CGColorRefCGColorCreateGenericRGB(double red, double green, double blue, double alpha)Create a color in the "Generic" RGB color space.static @NotNull CGColorRefCGColorCreateSRGB(double red, double green, double blue, double alpha)Create a color in sRGB color space.static @Nullable CGColorRefCGColorCreateWithPattern(@Nullable CGColorSpaceRef space, @Nullable CGPatternRef pattern, @Nullable org.moe.natj.general.ptr.ConstNFloatPtr components)Create a color in color space `space' with pattern `pattern' and components `components'.static booleanCGColorEqualToColor(@Nullable CGColorRef color1, @Nullable CGColorRef color2)Return true if `color1' is equal to `color2'; false otherwise.static doubleCGColorGetAlpha(@Nullable CGColorRef color)Return the alpha component associated with `color'.static @Nullable CGColorSpaceRefCGColorGetColorSpace(@Nullable CGColorRef color)Return the color space associated with `color'.static @Nullable org.moe.natj.general.ptr.ConstNFloatPtrCGColorGetComponents(@Nullable CGColorRef color)Return the color components (including alpha) associated with `color'.static @Nullable CGColorRefCGColorGetConstantColor(@Nullable CFStringRef colorName)Return a constant color.static longCGColorGetNumberOfComponents(@Nullable CGColorRef color)Return the number of color components (including alpha) associated with `color'.static @Nullable CGPatternRefCGColorGetPattern(@Nullable CGColorRef color)Return the pattern associated with `color', if it's a color in a pattern color space; NULL otherwise.static longCGColorGetTypeID()Return the CFTypeID for CGColors.static voidCGColorRelease(@Nullable CGColorRef color)Equivalent to `CFRelease(color)', except it doesn't crash (as CFRelease does) if `color' is NULL.static @Nullable CGColorRefCGColorRetain(@Nullable CGColorRef color)Equivalent to `CFRetain(color)', except it doesn't crash (as CFRetain does) if `color' is NULL.static @Nullable CFDataRefCGColorSpaceCopyICCData(@Nullable CGColorSpaceRef space)Return a copy of the ICC profile data of `space', or NULL if the color space doesn't have an ICC profile.static @Nullable CFDataRefCGColorSpaceCopyICCProfile(@Nullable CGColorSpaceRef space)Deprecated.static @Nullable CFStringRefCGColorSpaceCopyName(@Nullable CGColorSpaceRef space)Same as `CGColorSpaceGetName' but with ownership released to the caller.static @Nullable org.moe.natj.general.ptr.ConstVoidPtrCGColorSpaceCopyPropertyList(@NotNull CGColorSpaceRef space)CGColorSpaceCopyPropertyList will return NULL for special color spaces (e.g.static @NotNull CGColorSpaceRefCGColorSpaceCreateCopyWithStandardRange(@NotNull CGColorSpaceRef s)Create a copy of the color space which uses standard range [0.0, 1.0].static @Nullable CGColorSpaceRefCGColorSpaceCreateDeviceCMYK()Create a DeviceCMYK color space.static @Nullable CGColorSpaceRefCGColorSpaceCreateDeviceGray()Create a DeviceGray color space.static @Nullable CGColorSpaceRefCGColorSpaceCreateDeviceRGB()Create a DeviceRGB color space.static @Nullable CGColorSpaceRefCGColorSpaceCreateExtended(@NotNull CGColorSpaceRef space)Create a copy of the color space which uses extended range [-Inf, +Inf] if the color space is matrix based.static @Nullable CGColorSpaceRefCGColorSpaceCreateExtendedLinearized(@NotNull CGColorSpaceRef space)Create a linearized copy of the color space which uses extended range [-Inf, +Inf] if the color space is matrix based.static @Nullable CGColorSpaceRefCGColorSpaceCreateICCBased(long nComponents, @Nullable org.moe.natj.general.ptr.ConstNFloatPtr range, @Nullable CGDataProviderRef profile, @Nullable CGColorSpaceRef alternate)Create an ICC-based color space.static @Nullable CGColorSpaceRefCGColorSpaceCreateIndexed(@Nullable CGColorSpaceRef baseSpace, long lastIndex, @Nullable java.lang.String colorTable)Create an indexed color space.static @Nullable CGColorSpaceRefCGColorSpaceCreateLinearized(@NotNull CGColorSpaceRef space)Create a linearized copy of the color space if the color space is matrix based.static @Nullable CGColorSpaceRefCGColorSpaceCreatePattern(@Nullable CGColorSpaceRef baseSpace)Create a pattern color space.static @Nullable CGColorSpaceRefCGColorSpaceCreateWithColorSyncProfile(@Nullable ColorSyncProfileRef arg1, @Nullable CFDictionaryRef options)Create a color space using ColorSyncProfileRef.static @Nullable CGColorSpaceRefCGColorSpaceCreateWithICCData(@Nullable org.moe.natj.general.ptr.ConstVoidPtr data)Create an ICC-based color space using the ICC profile raw data specified by `data' which can be either CFDataRef or CGDataProviderRef API-Since: 10.0static @Nullable CGColorSpaceRefCGColorSpaceCreateWithICCProfile(@Nullable CFDataRef data)Deprecated.static @Nullable CGColorSpaceRefCGColorSpaceCreateWithName(@Nullable CFStringRef name)Create a color space using `name' as the identifier for the color space.static @Nullable CGColorSpaceRefCGColorSpaceCreateWithPlatformColorSpace(@Nullable org.moe.natj.general.ptr.ConstVoidPtr ref)Deprecated.static @Nullable CGColorSpaceRefCGColorSpaceCreateWithPropertyList(@NotNull org.moe.natj.general.ptr.ConstVoidPtr plist)API-Since: 10.0static @Nullable CGColorSpaceRefCGColorSpaceGetBaseColorSpace(@Nullable CGColorSpaceRef space)Return the base color space of `space' if `space' is a pattern or indexed color space; otherwise, return NULL.static voidCGColorSpaceGetColorTable(@Nullable CGColorSpaceRef space, @Nullable org.moe.natj.general.ptr.BytePtr table)Copy the entries in the color table of `space' to `table' if `space' is an indexed color space; otherwise, do nothing.static longCGColorSpaceGetColorTableCount(@Nullable CGColorSpaceRef space)Return the number of entries in the color table of `space' if `space' is an indexed color space; otherwise, return 0.static intCGColorSpaceGetModel(@Nullable CGColorSpaceRef space)Return the color space model of `space'.static @Nullable CFStringRefCGColorSpaceGetName(@Nullable CGColorSpaceRef space)Return the system name of the color space.static longCGColorSpaceGetNumberOfComponents(@Nullable CGColorSpaceRef space)Return the number of color components in the color space `space'.static longCGColorSpaceGetTypeID()Return the CFTypeID for CGColorSpaces.static booleanCGColorSpaceIsHDR(@NotNull CGColorSpaceRef arg1)Deprecated.static booleanCGColorSpaceIsHLGBased(@NotNull CGColorSpaceRef s)API-Since: 15.0static booleanCGColorSpaceIsPQBased(@NotNull CGColorSpaceRef s)API-Since: 15.0static booleanCGColorSpaceIsWideGamutRGB(@NotNull CGColorSpaceRef arg1)Return true if gamut of the RGB color space is greater than 85% of NTSC gamut API-Since: 10.0static voidCGColorSpaceRelease(@Nullable CGColorSpaceRef space)Equivalent to `CFRelease(space)', except it doesn't crash (as CFRelease does) if `space' is NULL.static @Nullable CGColorSpaceRefCGColorSpaceRetain(@Nullable CGColorSpaceRef space)Equivalent to `CFRetain(space)', except it doesn't crash (as CFRetain does) if `space' is NULL.static booleanCGColorSpaceSupportsOutput(@NotNull CGColorSpaceRef space)Return true if `space' can be used as a destination color space; false otherwise.static booleanCGColorSpaceUsesExtendedRange(@NotNull CGColorSpaceRef space)Return true if `space' uses extended range [-Inf, +Inf]; false otherwise.static booleanCGColorSpaceUsesITUR_2100TF(@NotNull CGColorSpaceRef arg1)Return true if color space uses transfer functions defined in ITU Rec.2100 API-Since: 14.0static voidCGContextAddArc(@Nullable CGContextRef c, double x, double y, double radius, double startAngle, double endAngle, int clockwise)Add an arc of a circle to the context's path, possibly preceded by a straight line segment.static voidCGContextAddArcToPoint(@Nullable CGContextRef c, double x1, double y1, double x2, double y2, double radius)Add an arc of a circle to the context's path, possibly preceded by a straight line segment.static voidCGContextAddCurveToPoint(@Nullable CGContextRef c, double cp1x, double cp1y, double cp2x, double cp2y, double x, double y)Append a cubic Bezier curve from the current point to `(x,y)', with control points `(cp1x, cp1y)' and `(cp2x, cp2y)'.static voidCGContextAddEllipseInRect(@Nullable CGContextRef c, CGRect rect)Add an ellipse inside `rect' to the current path of `context'.static voidCGContextAddLines(@Nullable CGContextRef c, @Nullable CGPoint points, long count)Add a set of lines to the context's path.static voidCGContextAddLineToPoint(@Nullable CGContextRef c, double x, double y)Append a straight line segment from the current point to `(x, y)'.static voidCGContextAddPath(@Nullable CGContextRef c, @Nullable CGPathRef path)Add `path' to the path of context.static voidCGContextAddQuadCurveToPoint(@Nullable CGContextRef c, double cpx, double cpy, double x, double y)Append a quadratic curve from the current point to `(x, y)', with control point `(cpx, cpy)'.static voidCGContextAddRect(@Nullable CGContextRef c, CGRect rect)Add a single rect to the context's path.static voidCGContextAddRects(@Nullable CGContextRef c, @Nullable CGRect rects, long count)Add a set of rects to the context's path.static voidCGContextBeginPage(@Nullable CGContextRef c, @Nullable CGRect mediaBox)Begin a new page.static voidCGContextBeginPath(@Nullable CGContextRef c)Begin a new path.static voidCGContextBeginTransparencyLayer(@Nullable CGContextRef c, @Nullable CFDictionaryRef auxiliaryInfo)Begin a transparency layer in `context'.static voidCGContextBeginTransparencyLayerWithRect(@Nullable CGContextRef c, CGRect rect, @Nullable CFDictionaryRef auxInfo)Begin a transparency layer in `context'.static voidCGContextClearRect(@Nullable CGContextRef c, CGRect rect)Clear `rect' (that is, set the region within the rect to transparent).static voidCGContextClip(@Nullable CGContextRef c)Intersect the context's path with the current clip path and use the resulting path as the clip path for subsequent rendering operations.static voidCGContextClipToMask(@Nullable CGContextRef c, CGRect rect, @Nullable CGImageRef mask)Add `mask' transformed to `rect' to the clipping area of `context'.static voidCGContextClipToRect(@Nullable CGContextRef c, CGRect rect)Intersect the current clipping path with `rect'.static voidCGContextClipToRects(@Nullable CGContextRef c, @NotNull CGRect rects, long count)Intersect the current clipping path with the clipping region formed by creating a path consisting of all rects in `rects'.static voidCGContextClosePath(@Nullable CGContextRef c)Close the current subpath of the context's path.static voidCGContextConcatCTM(@Nullable CGContextRef c, CGAffineTransform transform)Concatenate the current graphics state's transformation matrix (the CTM) with the affine transform `transform'.static CGPointCGContextConvertPointToDeviceSpace(@Nullable CGContextRef c, CGPoint point)Transform `point' from the user space of `context' to device space.static CGPointCGContextConvertPointToUserSpace(@Nullable CGContextRef c, CGPoint point)Transform `point' from device space to the user space of `context'.static CGRectCGContextConvertRectToDeviceSpace(@Nullable CGContextRef c, CGRect rect)Transform `rect' from the user space of `context' to device space.static CGRectCGContextConvertRectToUserSpace(@Nullable CGContextRef c, CGRect rect)Transform `rect' from device space to the user space of `context'.static CGSizeCGContextConvertSizeToDeviceSpace(@Nullable CGContextRef c, CGSize size)Transform `size' from the user space of `context' to device space.static CGSizeCGContextConvertSizeToUserSpace(@Nullable CGContextRef c, CGSize size)Transform `size' from device space to the user space of `context'.static @Nullable CGPathRefCGContextCopyPath(@Nullable CGContextRef c)Return a copy of the path of `context'.static voidCGContextDrawConicGradient(@NotNull CGContextRef c, @Nullable CGGradientRef gradient, CGPoint center, double angle)Fill the current clipping region of `context' with a conic gradient defined by the center point and rotation angle.static voidCGContextDrawImage(@Nullable CGContextRef c, CGRect rect, @Nullable CGImageRef image)Draw `image' in the rectangular area specified by `rect' in the context `c'.static voidCGContextDrawLayerAtPoint(@Nullable CGContextRef context, CGPoint point, @Nullable CGLayerRef layer)Draw the contents of `layer' at `point' in `context'.static voidCGContextDrawLayerInRect(@Nullable CGContextRef context, CGRect rect, @Nullable CGLayerRef layer)Draw the contents of `layer' into `rect' of `context'.static voidCGContextDrawLinearGradient(@Nullable CGContextRef c, @Nullable CGGradientRef gradient, CGPoint startPoint, CGPoint endPoint, int options)Fill the current clipping region of `context' with a linear gradient from `startPoint' to `endPoint'.static voidCGContextDrawPath(@Nullable CGContextRef c, int mode)Draw the context's path using drawing mode `mode'.static voidCGContextDrawPDFPage(@Nullable CGContextRef c, @Nullable CGPDFPageRef page)Draw `page' in the current user space of the context `c'.static voidCGContextDrawRadialGradient(@Nullable CGContextRef c, @Nullable CGGradientRef gradient, CGPoint startCenter, double startRadius, CGPoint endCenter, double endRadius, int options)Fill the current clipping region of `context' with a radial gradient between two circles defined by the center point and radius of each circle.static voidCGContextDrawShading(@Nullable CGContextRef c, @Nullable CGShadingRef shading)Fill the current clipping region of `context' with `shading'.static voidCGContextDrawTiledImage(@Nullable CGContextRef c, CGRect rect, @Nullable CGImageRef image)Draw `image' tiled in the context `c'.static voidCGContextEndPage(@Nullable CGContextRef c)End the current page.static voidCGContextEndTransparencyLayer(@Nullable CGContextRef c)End a tranparency layer.static voidCGContextEOClip(@Nullable CGContextRef c)Intersect the context's path with the current clip path and use the resulting path as the clip path for subsequent rendering operations.static voidCGContextEOFillPath(@Nullable CGContextRef c)Fill the context's path using the even-odd fill rule.static voidCGContextFillEllipseInRect(@Nullable CGContextRef c, CGRect rect)Fill an ellipse (an oval) inside `rect'.static voidCGContextFillPath(@Nullable CGContextRef c)Fill the context's path using the winding-number fill rule.static voidCGContextFillRect(@Nullable CGContextRef c, CGRect rect)Fill `rect' with the current fill color.static voidCGContextFillRects(@Nullable CGContextRef c, @Nullable CGRect rects, long count)Fill `rects', an array of `count' CGRects, with the current fill color.static voidCGContextFlush(@Nullable CGContextRef c)Flush all drawing to the destination.static CGRectCGContextGetClipBoundingBox(@Nullable CGContextRef c)Return the bounding box of the clip path of `c' in user space.static CGAffineTransformCGContextGetCTM(@Nullable CGContextRef c)Return the current graphics state's transformation matrix.static intCGContextGetInterpolationQuality(@Nullable CGContextRef c)Return the interpolation quality for image rendering of `context'.static CGRectCGContextGetPathBoundingBox(@Nullable CGContextRef c)Return the bounding box of the path of `context'.static CGPointCGContextGetPathCurrentPoint(@Nullable CGContextRef c)Return the current point of the current subpath of the path of `context'.static CGAffineTransformCGContextGetTextMatrix(@Nullable CGContextRef c)Return the text matrix in the context `c'.static CGPointCGContextGetTextPosition(@Nullable CGContextRef c)Return the user-space point at which text will be drawn in `context'.static longCGContextGetTypeID()Return the CFTypeID for CGContextRefs.static CGAffineTransformCGContextGetUserSpaceToDeviceSpaceTransform(@Nullable CGContextRef c)Return the affine transform mapping the user space (abstract coordinates) of `context' to device space (pixels).static booleanCGContextIsPathEmpty(@Nullable CGContextRef c)Return true if the path of `context' contains no elements, false otherwise.static voidCGContextMoveToPoint(@Nullable CGContextRef c, double x, double y)Start a new subpath at point `(x, y)' in the context's path.static booleanCGContextPathContainsPoint(@Nullable CGContextRef c, CGPoint point, int mode)Return true if `point' is contained in the current path of `context'.static voidCGContextRelease(@Nullable CGContextRef c)Equivalent to `CFRelease(c)'.static voidCGContextReplacePathWithStrokedPath(@Nullable CGContextRef c)Replace the path in `context' with the stroked version of the path, using the parameters of `context' to calculate the stroked path.static voidCGContextResetClip(@NotNull CGContextRef c)Reset the current clip of `c' to the default value.static voidCGContextRestoreGState(@Nullable CGContextRef c)Restore the current graphics state from the one on the top of the graphics state stack, popping the graphics state stack in the process.static @Nullable CGContextRefCGContextRetain(@Nullable CGContextRef c)Equivalent to `CFRetain(c)'.static voidCGContextRotateCTM(@Nullable CGContextRef c, double angle)Rotate the current graphics state's transformation matrix (the CTM) by `angle' radians.static voidCGContextSaveGState(@Nullable CGContextRef c)Push a copy of the current graphics state onto the graphics state stack.static voidCGContextScaleCTM(@Nullable CGContextRef c, double sx, double sy)Scale the current graphics state's transformation matrix (the CTM) by `(sx, sy)'.static voidCGContextSelectFont(@Nullable CGContextRef c, @Nullable java.lang.String name, double size, int textEncoding)Deprecated.static voidCGContextSetAllowsAntialiasing(@Nullable CGContextRef c, boolean allowsAntialiasing)Allow antialiasing in `context' if `allowsAntialiasing' is true; don't allow it otherwise.static voidCGContextSetAllowsFontSmoothing(@Nullable CGContextRef c, boolean allowsFontSmoothing)If `allowsFontSmoothing' is true, then allow font smoothing when displaying text in `context'; otherwise, don't allow font smoothing.static voidCGContextSetAllowsFontSubpixelPositioning(@Nullable CGContextRef c, boolean allowsFontSubpixelPositioning)If `allowsFontSubpixelPositioning' is true, then allow font subpixel positioning when displaying text in `context'; otherwise, don't allow subpixel positioning.static voidCGContextSetAllowsFontSubpixelQuantization(@Nullable CGContextRef c, boolean allowsFontSubpixelQuantization)If `allowsFontSubpixelQuantization' is true, then allow font subpixel quantization when displaying text in `context'; otherwise, don't allow subpixel quantization.static voidCGContextSetAlpha(@Nullable CGContextRef c, double alpha)Set the alpha value in the current graphics state of `c' to `alpha'.static voidCGContextSetBlendMode(@Nullable CGContextRef c, int mode)Set the blend mode of `context' to `mode'.static voidCGContextSetCharacterSpacing(@Nullable CGContextRef c, double spacing)Set the current character spacing in `context' to `spacing'.static voidCGContextSetCMYKFillColor(@Nullable CGContextRef c, double cyan, double magenta, double yellow, double black, double alpha)Set the current fill color space in `context' to `DeviceCMYK' and set the components of the current fill color to `(cyan, magenta, yellow, black, alpha)'.static voidCGContextSetCMYKStrokeColor(@Nullable CGContextRef c, double cyan, double magenta, double yellow, double black, double alpha)Set the current stroke color space in `context' to `DeviceCMYK' and set the components of the current stroke color to `(cyan, magenta, yellow, black, alpha)'.static voidCGContextSetFillColor(@Nullable CGContextRef c, @Nullable org.moe.natj.general.ptr.ConstNFloatPtr components)Set the components of the current fill color in `context' to the values specifed by `components'.static voidCGContextSetFillColorSpace(@Nullable CGContextRef c, @Nullable CGColorSpaceRef space)Set the current fill color space in `context' to `space'.static voidCGContextSetFillColorWithColor(@Nullable CGContextRef c, @Nullable CGColorRef color)Set the current fill color in the context `c' to `color'.static voidCGContextSetFillPattern(@Nullable CGContextRef c, @Nullable CGPatternRef pattern, @Nullable org.moe.natj.general.ptr.ConstNFloatPtr components)Set the components of the current fill color in `context' to the values specifed by `components', and set the current fill pattern to `pattern'.static voidCGContextSetFlatness(@Nullable CGContextRef c, double flatness)Set the path flatness parameter in the current graphics state of `c' to `flatness'.static voidCGContextSetFont(@Nullable CGContextRef c, @Nullable CGFontRef font)Set the font in the current graphics state of the context `c' to `font'.static voidCGContextSetFontSize(@Nullable CGContextRef c, double size)Set the font size in the current graphics state of the context `c' to `size'.static voidCGContextSetGrayFillColor(@Nullable CGContextRef c, double gray, double alpha)Set the current fill color space in `context' to `DeviceGray' and set the components of the current fill color to `(gray, alpha)'.static voidCGContextSetGrayStrokeColor(@Nullable CGContextRef c, double gray, double alpha)Set the current stroke color space in `context' to `DeviceGray' and set the components of the current stroke color to `(gray, alpha)'.static voidCGContextSetInterpolationQuality(@Nullable CGContextRef c, int quality)Set the interpolation quality of `context' to `quality'.static voidCGContextSetLineCap(@Nullable CGContextRef c, int cap)Set the line cap in the current graphics state to `cap'.static voidCGContextSetLineDash(@Nullable CGContextRef c, double phase, @Nullable org.moe.natj.general.ptr.ConstNFloatPtr lengths, long count)Set the line dash patttern in the current graphics state of `c'.static voidCGContextSetLineJoin(@Nullable CGContextRef c, int join)Set the line join in the current graphics state to `join'.static voidCGContextSetLineWidth(@Nullable CGContextRef c, double width)Set the line width in the current graphics state to `width'.static voidCGContextSetMiterLimit(@Nullable CGContextRef c, double limit)Set the miter limit in the current graphics state to `limit'.static voidCGContextSetPatternPhase(@Nullable CGContextRef c, CGSize phase)Set the pattern phase in the current graphics state of `context' to `phase'.static voidCGContextSetRenderingIntent(@Nullable CGContextRef c, int intent)Set the rendering intent in the current graphics state of `context' to `intent'.static voidCGContextSetRGBFillColor(@Nullable CGContextRef c, double red, double green, double blue, double alpha)Set the current fill color space in `context' to `DeviceRGB' and set the components of the current fill color to `(red, green, blue, alpha)'.static voidCGContextSetRGBStrokeColor(@Nullable CGContextRef c, double red, double green, double blue, double alpha)Set the current stroke color space in `context' to `DeviceRGB' and set the components of the current stroke color to `(red, green, blue, alpha)'.static voidCGContextSetShadow(@Nullable CGContextRef c, CGSize offset, double blur)Equivalent to calling CGContextSetShadowWithColor(context, offset, blur, color) where color is black with 1/3 alpha (i.e., RGBA = {0, 0, 0, 1.0/3.0}) in the DeviceRGB color space.static voidCGContextSetShadowWithColor(@Nullable CGContextRef c, CGSize offset, double blur, @Nullable CGColorRef color)Set the shadow parameters in `context'.static voidCGContextSetShouldAntialias(@Nullable CGContextRef c, boolean shouldAntialias)Turn on antialiasing if `shouldAntialias' is true; turn it off otherwise.static voidCGContextSetShouldSmoothFonts(@Nullable CGContextRef c, boolean shouldSmoothFonts)Turn on font smoothing if `shouldSmoothFonts' is true; turn it off otherwise.static voidCGContextSetShouldSubpixelPositionFonts(@Nullable CGContextRef c, boolean shouldSubpixelPositionFonts)If `shouldSubpixelPositionFonts' is true, then glyphs may be placed at subpixel positions (if allowed) when displaying text in `context'; otherwise, glyphs will be forced to integer pixel boundaries.static voidCGContextSetShouldSubpixelQuantizeFonts(@Nullable CGContextRef c, boolean shouldSubpixelQuantizeFonts)If `shouldSubpixelQuantizeFonts' is true, then quantize the subpixel positions of glyphs when displaying text in `context'; otherwise, don't quantize the subpixel positions.static voidCGContextSetStrokeColor(@Nullable CGContextRef c, @Nullable org.moe.natj.general.ptr.ConstNFloatPtr components)Set the components of the current stroke color in `context' to the values specifed by `components'.static voidCGContextSetStrokeColorSpace(@Nullable CGContextRef c, @Nullable CGColorSpaceRef space)Set the current stroke color space in `context' to `space'.static voidCGContextSetStrokeColorWithColor(@Nullable CGContextRef c, @Nullable CGColorRef color)Set the current stroke color in the context `c' to `color'.static voidCGContextSetStrokePattern(@Nullable CGContextRef c, @Nullable CGPatternRef pattern, @Nullable org.moe.natj.general.ptr.ConstNFloatPtr components)Set the components of the current stroke color in `context' to the values specifed by `components', and set the current stroke pattern to `pattern'.static voidCGContextSetTextDrawingMode(@Nullable CGContextRef c, int mode)Set the text drawing mode in the current graphics state of the context `c' to `mode'.static voidCGContextSetTextMatrix(@Nullable CGContextRef c, CGAffineTransform t)Set the text matrix in the context `c' to `t'.static voidCGContextSetTextPosition(@Nullable CGContextRef c, double x, double y)Set the user-space point at which text will be drawn in the context `c' to `(x, y)'.static voidCGContextShowGlyphs(@Nullable CGContextRef c, @Nullable org.moe.natj.general.ptr.ConstCharPtr g, long count)Deprecated.static voidCGContextShowGlyphsAtPoint(@Nullable CGContextRef c, double x, double y, @Nullable org.moe.natj.general.ptr.ConstCharPtr glyphs, long count)Deprecated.static voidCGContextShowGlyphsAtPositions(@Nullable CGContextRef c, @Nullable org.moe.natj.general.ptr.ConstCharPtr glyphs, @Nullable CGPoint Lpositions, long count)Draw `glyphs', an array of `count' CGGlyphs, at the points specified by `positions'.static voidCGContextShowGlyphsWithAdvances(@Nullable CGContextRef c, @Nullable org.moe.natj.general.ptr.ConstCharPtr glyphs, @Nullable CGSize advances, long count)Deprecated.static voidCGContextShowText(@Nullable CGContextRef c, @Nullable java.lang.String string, long length)Deprecated.static voidCGContextShowTextAtPoint(@Nullable CGContextRef c, double x, double y, @Nullable java.lang.String string, long length)Deprecated.static voidCGContextStrokeEllipseInRect(@Nullable CGContextRef c, CGRect rect)Stroke an ellipse (an oval) inside `rect'.static voidCGContextStrokeLineSegments(@Nullable CGContextRef c, @Nullable CGPoint points, long count)Stroke a sequence of line segments one after another in `context'.static voidCGContextStrokePath(@Nullable CGContextRef c)Stroke the context's path.static voidCGContextStrokeRect(@Nullable CGContextRef c, CGRect rect)Stroke `rect' with the current stroke color and the current linewidth.static voidCGContextStrokeRectWithWidth(@Nullable CGContextRef c, CGRect rect, double width)Stroke `rect' with the current stroke color, using `width' as the the line width.static voidCGContextSynchronize(@Nullable CGContextRef c)Synchronized drawing.static voidCGContextTranslateCTM(@Nullable CGContextRef c, double tx, double ty)Translate the current graphics state's transformation matrix (the CTM) by `(tx, ty)'.static booleanCGConvertColorDataWithFormat(long width, long height, org.moe.natj.general.ptr.VoidPtr dst_data, CGColorDataFormat dst_format, org.moe.natj.general.ptr.VoidPtr src_data, CGColorDataFormat src_format, CFDictionaryRef options)static @Nullable CGDataConsumerRefCGDataConsumerCreate(@Nullable org.moe.natj.general.ptr.VoidPtr info, @Nullable CGDataConsumerCallbacks cbks)Create a data consumer using `callbacks' to handle the data.static @Nullable CGDataConsumerRefCGDataConsumerCreateWithCFData(@Nullable CFMutableDataRef data)Create a data consumer which writes to `data'.static @Nullable CGDataConsumerRefCGDataConsumerCreateWithURL(@Nullable CFURLRef url)Create a data consumer which writes data to `url'.static longCGDataConsumerGetTypeID()Return the CFTypeID for CGDataConsumerRefs.static voidCGDataConsumerRelease(@Nullable CGDataConsumerRef consumer)Equivalent to `CFRelease(consumer)'.static @Nullable CGDataConsumerRefCGDataConsumerRetain(@Nullable CGDataConsumerRef consumer)Equivalent to `CFRetain(consumer)'.static @Nullable CFDataRefCGDataProviderCopyData(@Nullable CGDataProviderRef provider)Return a copy of the data specified by provider.static @Nullable CGDataProviderRefCGDataProviderCreateDirect(@Nullable org.moe.natj.general.ptr.VoidPtr info, long size, @Nullable CGDataProviderDirectCallbacks callbacks)Create a direct-access data provider using `callbacks' to supply `size' bytes of data.static @Nullable CGDataProviderRefCGDataProviderCreateSequential(@Nullable org.moe.natj.general.ptr.VoidPtr info, @Nullable CGDataProviderSequentialCallbacks callbacks)Create a sequential-access data provider using `callbacks' to provide the data.static @Nullable CGDataProviderRefCGDataProviderCreateWithCFData(@Nullable CFDataRef data)Create a direct-access data provider which reads from `data'.static @Nullable CGDataProviderRefCGDataProviderCreateWithData(@Nullable org.moe.natj.general.ptr.VoidPtr info, @Nullable org.moe.natj.general.ptr.ConstVoidPtr data, long size, @Nullable CoreGraphics.Function_CGDataProviderCreateWithData releaseData)Create a direct-access data provider using `data', an array of `size' bytes.static @Nullable CGDataProviderRefCGDataProviderCreateWithFilename(@Nullable java.lang.String filename)Create a data provider reading from `filename'.static @Nullable CGDataProviderRefCGDataProviderCreateWithURL(@Nullable CFURLRef url)Create a data provider reading from `url'.static @Nullable org.moe.natj.general.ptr.VoidPtrCGDataProviderGetInfo(@Nullable CGDataProviderRef provider)API-Since: 11.0static longCGDataProviderGetTypeID()Return the CFTypeID for CGDataProviderRefs.static voidCGDataProviderRelease(@Nullable CGDataProviderRef provider)Equivalent to `CFRelease(provider)', but doesn't crash (as CFRelease does) if `provider' is NULL.static @Nullable CGDataProviderRefCGDataProviderRetain(@Nullable CGDataProviderRef provider)Equivalent to `CFRetain(provider)', but doesn't crash (as CFRetain does) if `provider' is NULL.static voidCGErrorSetCallback(CoreGraphics.Function_CGErrorSetCallback callback)Set a callback for easier detection of error conditions causing CoreGraphics to raise an error.static booleanCGFontCanCreatePostScriptSubset(@Nullable CGFontRef font, int format)Return true if a subset in the PostScript format `format' can be created for `font'; false otherwise.static @Nullable CFStringRefCGFontCopyFullName(@Nullable CGFontRef font)Return the "full name" of `font'.static @Nullable CFStringRefCGFontCopyGlyphNameForGlyph(@Nullable CGFontRef font, char glyph)Return the glyph name of `glyph' in `font', or NULL if `glyph' does not appear in `font'.static @Nullable CFStringRefCGFontCopyPostScriptName(@Nullable CGFontRef font)Return the PostScript name of `font'.static @Nullable CFDataRefCGFontCopyTableForTag(@Nullable CGFontRef font, int tag)Return the table in `font' corresponding to `tag', or NULL if no such table exists.static @Nullable CFArrayRefCGFontCopyTableTags(@Nullable CGFontRef font)Return an array of font table tags in `font'.static @Nullable CFArrayRefCGFontCopyVariationAxes(@Nullable CGFontRef font)Return an array of the variation axis dictionaries for `font'.static @Nullable CFDictionaryRefCGFontCopyVariations(@Nullable CGFontRef font)Return the variation specification dictionary from `font'.static @Nullable CGFontRefCGFontCreateCopyWithVariations(@Nullable CGFontRef font, @Nullable CFDictionaryRef variations)Return a font based on `font' with the variation specification dictionary `variations' applied to `font'.static @Nullable CGFontRefCGFontCreateWithDataProvider(@Nullable CGDataProviderRef provider)Return the font defined by the data provided by `provider', or NULL if the font can't be created.static @Nullable CGFontRefCGFontCreateWithFontName(@Nullable CFStringRef name)Return the font identified by `name', corresponding to the font's PostScript name or its full name, or NULL if the font can't be created.static intCGFontGetAscent(@Nullable CGFontRef font)Return the ascent of `font'.static intCGFontGetCapHeight(@Nullable CGFontRef font)Return the cap height of `font'.static intCGFontGetDescent(@Nullable CGFontRef font)Return the descent of `font'.static CGRectCGFontGetFontBBox(@Nullable CGFontRef font)Return the font bounding box of `font'.static booleanCGFontGetGlyphAdvances(@Nullable CGFontRef font, @NotNull org.moe.natj.general.ptr.ConstCharPtr glyphs, long count, @NotNull org.moe.natj.general.ptr.IntPtr advances)Get the advance of each glyph in `glyphs', an array of `count' glyphs, and return it in the corresponding entry of `advances', an array of `count' integers.static booleanCGFontGetGlyphBBoxes(@Nullable CGFontRef font, @NotNull org.moe.natj.general.ptr.ConstCharPtr glyphs, long count, @NotNull CGRect bboxes)Get the bounding box of each glyph in `glyphs', an array of `count' glyphs, and return it in the corresponding entry of `bboxes', an array of `count' rectangles.static charCGFontGetGlyphWithGlyphName(@Nullable CGFontRef font, @Nullable CFStringRef name)Return the glyph associated with `name' in `font'.static doubleCGFontGetItalicAngle(@Nullable CGFontRef font)Return the italic angle of `font', measured in degrees counter-clockwise from the vertical.static intCGFontGetLeading(@Nullable CGFontRef font)Return the leading of `font'.static longCGFontGetNumberOfGlyphs(@Nullable CGFontRef font)Return the number of glyphs in `font'.static doubleCGFontGetStemV(@Nullable CGFontRef font)Return the thickness of the dominant vertical stems of glyphs in `font'.static longCGFontGetTypeID()Return the CFTypeID for CGFontRefs.static intCGFontGetUnitsPerEm(@Nullable CGFontRef font)Return the glyph space units/em for `font'.static intCGFontGetXHeight(@Nullable CGFontRef font)Return the x-height of `font'.static voidCGFontRelease(@Nullable CGFontRef font)Equivalent to `CFRelease(font)', except it doesn't crash (as CFRelease does) if `font' is NULL.static @Nullable CGFontRefCGFontRetain(@Nullable CGFontRef font)Equivalent to `CFRetain(font)', except it doesn't crash (as CFRetain does) if `font' is NULL.static @Nullable CGFunctionRefCGFunctionCreate(@Nullable org.moe.natj.general.ptr.VoidPtr info, long domainDimension, @Nullable org.moe.natj.general.ptr.ConstNFloatPtr domain, long rangeDimension, @Nullable org.moe.natj.general.ptr.ConstNFloatPtr range, @Nullable CGFunctionCallbacks callbacks)Create a CGFunction using `callbacks' to evaluate the function.static longCGFunctionGetTypeID()Return the CFTypeID for CGFunctionRefs.static voidCGFunctionRelease(@Nullable CGFunctionRef function)Equivalent to `CFRelease(function)', except it doesn't crash (as CFRelease does) if `function' is NULL.static @Nullable CGFunctionRefCGFunctionRetain(@Nullable CGFunctionRef function)Equivalent to `CFRetain(function)', except it doesn't crash (as CFRetain does) if `function' is NULL.static @Nullable CGGradientRefCGGradientCreateWithColorComponents(@Nullable CGColorSpaceRef space, @Nullable org.moe.natj.general.ptr.ConstNFloatPtr components, @Nullable org.moe.natj.general.ptr.ConstNFloatPtr locations, long count)Creates a gradient by pairing the color components provided in `components' with locations provided in `locations'.static @Nullable CGGradientRefCGGradientCreateWithColors(@Nullable CGColorSpaceRef space, @Nullable CFArrayRef colors, @Nullable org.moe.natj.general.ptr.ConstNFloatPtr locations)Creates a gradient by pairing the colors provided in `colors' with the locations provided in `locations'.static longCGGradientGetTypeID()Return the CFTypeID for CGGradients.static voidCGGradientRelease(@Nullable CGGradientRef gradient)Equivalent to `CFRelease' except that it doesn't crash (as `CFRelease' does) if `gradient' is NULL.static @Nullable CGGradientRefCGGradientRetain(@Nullable CGGradientRef gradient)Equivalent to `CFRetain' except that it doesn't crash (as `CFRetain' does) if `gradient' is NULL.static @Nullable CGImageRefCGImageCreate(long width, long height, long bitsPerComponent, long bitsPerPixel, long bytesPerRow, @Nullable CGColorSpaceRef space, int bitmapInfo, @Nullable CGDataProviderRef provider, @Nullable org.moe.natj.general.ptr.ConstNFloatPtr decode, boolean shouldInterpolate, int intent)Create an image.static @Nullable CGImageRefCGImageCreateCopy(@Nullable CGImageRef image)Return a copy of `image'.static @Nullable CGImageRefCGImageCreateCopyWithColorSpace(@Nullable CGImageRef image, @Nullable CGColorSpaceRef space)Create a copy of `image', replacing the image's color space with `space'.static @Nullable CGImageRefCGImageCreateWithImageInRect(@Nullable CGImageRef image, CGRect rect)Create an image using the data contained within the subrectangle `rect' of `image'.static @Nullable CGImageRefCGImageCreateWithJPEGDataProvider(@Nullable CGDataProviderRef source, @Nullable org.moe.natj.general.ptr.ConstNFloatPtr decode, boolean shouldInterpolate, int intent)Create an image from `source', a data provider of JPEG-encoded data.static @Nullable CGImageRefCGImageCreateWithMask(@Nullable CGImageRef image, @Nullable CGImageRef mask)Create a new image from `image' masked by `mask', which may be an image mask or an image.static @Nullable CGImageRefCGImageCreateWithMaskingColors(@Nullable CGImageRef image, @Nullable org.moe.natj.general.ptr.ConstNFloatPtr components)Create a new image from `image' masked by `components', an array of 2N values { min[1], max[1], ...static @Nullable CGImageRefCGImageCreateWithPNGDataProvider(@Nullable CGDataProviderRef source, @Nullable org.moe.natj.general.ptr.ConstNFloatPtr decode, boolean shouldInterpolate, int intent)Create an image using `source', a data provider for PNG-encoded data.static intCGImageGetAlphaInfo(@Nullable CGImageRef image)Return the alpha info of `image'.static intCGImageGetBitmapInfo(@Nullable CGImageRef image)Return the bitmap info of `image'.static longCGImageGetBitsPerComponent(@Nullable CGImageRef image)Return the number of bits/component of `image'.static longCGImageGetBitsPerPixel(@Nullable CGImageRef image)Return the number of bits/pixel of `image'.static intCGImageGetByteOrderInfo(@Nullable CGImageRef image)Return the byte order info of `image'.static longCGImageGetBytesPerRow(@Nullable CGImageRef image)Return the number of bytes/row of `image'.static @Nullable CGColorSpaceRefCGImageGetColorSpace(@Nullable CGImageRef image)Return the color space of `image', or NULL if `image' is an image mask.static @Nullable CGDataProviderRefCGImageGetDataProvider(@Nullable CGImageRef image)Return the data provider of `image'.static @Nullable org.moe.natj.general.ptr.ConstNFloatPtrCGImageGetDecode(@Nullable CGImageRef image)Return the decode array of `image'.static longCGImageGetHeight(@Nullable CGImageRef image)Return the height of `image'.static intCGImageGetPixelFormatInfo(@Nullable CGImageRef image)Return the pixel format of `image'.static intCGImageGetRenderingIntent(@Nullable CGImageRef image)Return the rendering intent of `image'.static booleanCGImageGetShouldInterpolate(@Nullable CGImageRef image)Return the interpolation parameter of `image'.static longCGImageGetTypeID()Return the CFTypeID for CGImageRefs.static @Nullable CFStringRefCGImageGetUTType(@Nullable CGImageRef image)Return the UTType of `image'.static longCGImageGetWidth(@Nullable CGImageRef image)Return the width of `image'.static booleanCGImageIsMask(@Nullable CGImageRef image)Return true if `image' is an image mask, false otherwise.static @Nullable CGImageRefCGImageMaskCreate(long width, long height, long bitsPerComponent, long bitsPerPixel, long bytesPerRow, @Nullable CGDataProviderRef provider, @Nullable org.moe.natj.general.ptr.ConstNFloatPtr decode, boolean shouldInterpolate)Create an image mask.static voidCGImageRelease(@Nullable CGImageRef image)Equivalent to `CFRelease(image)'.static @Nullable CGImageRefCGImageRetain(@Nullable CGImageRef image)Equivalent to `CFRetain(image)'.static @Nullable CGLayerRefCGLayerCreateWithContext(@Nullable CGContextRef context, CGSize size, @Nullable CFDictionaryRef auxiliaryInfo)Create a layer of size `size' relative to the context `context'.static @Nullable CGContextRefCGLayerGetContext(@Nullable CGLayerRef layer)Return the context of `layer'.static CGSizeCGLayerGetSize(@Nullable CGLayerRef layer)Return the size of the layer `layer'.static longCGLayerGetTypeID()Return the CFTypeID for CGLayerRefs.static voidCGLayerRelease(@Nullable CGLayerRef layer)Equivalent to `CFRelease(layer)', except it doesn't crash (as CFRelease does) if `layer' is NULL.static @Nullable CGLayerRefCGLayerRetain(@Nullable CGLayerRef layer)Equivalent to `CFRetain(layer)', except it doesn't crash (as CFRetain does) if `layer' is NULL.static voidCGPathAddArc(@Nullable CGMutablePathRef path, @Nullable CGAffineTransform m, double x, double y, double radius, double startAngle, double endAngle, boolean clockwise)Add an arc of a circle to `path', possibly preceded by a straight line segment.static voidCGPathAddArcToPoint(@Nullable CGMutablePathRef path, @Nullable CGAffineTransform m, double x1, double y1, double x2, double y2, double radius)Add an arc of a circle to `path', possibly preceded by a straight line segment.static voidCGPathAddCurveToPoint(@Nullable CGMutablePathRef path, @Nullable CGAffineTransform m, double cp1x, double cp1y, double cp2x, double cp2y, double x, double y)Append a cubic Bézier curve from the current point to `(x,y)' with control points `(cp1x, cp1y)' and `(cp2x, cp2y)' in `path' and move the current point to `(x, y)'.static voidCGPathAddEllipseInRect(@Nullable CGMutablePathRef path, @Nullable CGAffineTransform m, CGRect rect)Add an ellipse (an oval) inside `rect' to `path'.static voidCGPathAddLines(@Nullable CGMutablePathRef path, @Nullable CGAffineTransform m, @Nullable CGPoint points, long count)Move to the first element of `points', an array of `count' CGPoints, and append a line from each point to the next point in `points'.static voidCGPathAddLineToPoint(@Nullable CGMutablePathRef path, @Nullable CGAffineTransform m, double x, double y)Append a straight line segment from the current point to `(x, y)' in `path' and move the current point to `(x, y)'.static voidCGPathAddPath(@Nullable CGMutablePathRef path1, @Nullable CGAffineTransform m, @Nullable CGPathRef path2)Add `path2' to `path1'.static voidCGPathAddQuadCurveToPoint(@Nullable CGMutablePathRef path, @Nullable CGAffineTransform m, double cpx, double cpy, double x, double y)Append a quadratic curve from the current point to `(x, y)' with control point `(cpx, cpy)' in `path' and move the current point to `(x, y)'.static voidCGPathAddRect(@Nullable CGMutablePathRef path, @Nullable CGAffineTransform m, CGRect rect)Add `rect' to `path'.static voidCGPathAddRects(@Nullable CGMutablePathRef path, @Nullable CGAffineTransform m, @Nullable CGRect rects, long count)Add each rectangle specified by `rects', an array of `count' CGRects, to `path'.static voidCGPathAddRelativeArc(@Nullable CGMutablePathRef path, @Nullable CGAffineTransform matrix, double x, double y, double radius, double startAngle, double delta)Add an arc of a circle to `path', possibly preceded by a straight line segment.static voidCGPathAddRoundedRect(@Nullable CGMutablePathRef path, @Nullable CGAffineTransform transform, CGRect rect, double cornerWidth, double cornerHeight)Add a rounded rectangle to `path'.static voidCGPathApply(@Nullable CGPathRef path, @Nullable org.moe.natj.general.ptr.VoidPtr info, @Nullable CoreGraphics.Function_CGPathApply function)For element of `path', call `function', passing it the path element and `info'.static voidCGPathApplyWithBlock(@NotNull CGPathRef path, @NotNull CoreGraphics.Block_CGPathApplyWithBlock block)API-Since: 11.0static voidCGPathCloseSubpath(@Nullable CGMutablePathRef path)Append a line from the current point to the starting point of the current subpath of `path' and end the subpath.static booleanCGPathContainsPoint(@Nullable CGPathRef path, @Nullable CGAffineTransform m, CGPoint point, boolean eoFill)Return true if `point' is contained in `path'; false otherwise.static @Nullable CGPathRefCGPathCreateCopy(@Nullable CGPathRef path)Create a copy of `path'.static @Nullable CGPathRefCGPathCreateCopyByDashingPath(@Nullable CGPathRef path, @Nullable CGAffineTransform transform, double phase, @Nullable org.moe.natj.general.ptr.ConstNFloatPtr lengths, long count)Create a dashed path from `path'.static @Nullable CGPathRefCGPathCreateCopyByFlattening(@Nullable CGPathRef path, double flatteningThreshold)Returns a new path that is flattened, converting all curved line segments into straight line approximations.static @Nullable CGPathRefCGPathCreateCopyByIntersectingPath(@Nullable CGPathRef path, @Nullable CGPathRef maskPath, boolean evenOddFillRule)Returns a new path created by intersecting `path` and `maskPath`.static @Nullable CGPathRefCGPathCreateCopyByNormalizing(@Nullable CGPathRef path, boolean evenOddFillRule)Returns a new weakly-simple path without self-intersections and with a normalized orientation.static @Nullable CGPathRefCGPathCreateCopyByStrokingPath(@Nullable CGPathRef path, @Nullable CGAffineTransform transform, double lineWidth, int lineCap, int lineJoin, double miterLimit)Create a stroked path from `path'.static @Nullable CGPathRefCGPathCreateCopyBySubtractingPath(@Nullable CGPathRef path, @Nullable CGPathRef maskPath, boolean evenOddFillRule)Returns a new path created by subtracting `maskPath` from `path`.static @Nullable CGPathRefCGPathCreateCopyBySymmetricDifferenceOfPath(@Nullable CGPathRef path, @Nullable CGPathRef maskPath, boolean evenOddFillRule)Returns a new path created by exclusive or-ing `path` and `maskPath`.static @Nullable CGPathRefCGPathCreateCopyByTransformingPath(@Nullable CGPathRef path, @Nullable CGAffineTransform transform)Create a copy of `path' transformed by `transform'.static @Nullable CGPathRefCGPathCreateCopyByUnioningPath(@Nullable CGPathRef path, @Nullable CGPathRef maskPath, boolean evenOddFillRule)Returns a new path created by unioning `path` and `maskPath`.static @Nullable CGPathRefCGPathCreateCopyOfLineByIntersectingPath(@Nullable CGPathRef path, @Nullable CGPathRef maskPath, boolean evenOddFillRule)Returns a new path created by intersecting the line of `path` and the fill of `maskPath`.static @Nullable CGPathRefCGPathCreateCopyOfLineBySubtractingPath(@Nullable CGPathRef path, @Nullable CGPathRef maskPath, boolean evenOddFillRule)Returns a new path created by subtracting the `maskPath` from the line of `path` with the fill of `maskPath`.static @NotNull CGMutablePathRefCGPathCreateMutable()Create a mutable path.static @Nullable CGMutablePathRefCGPathCreateMutableCopy(@Nullable CGPathRef path)Create a mutable copy of `path'.static @Nullable CGMutablePathRefCGPathCreateMutableCopyByTransformingPath(@Nullable CGPathRef path, @Nullable CGAffineTransform transform)Create a mutable copy of `path' transformed by `transform'.static @Nullable CFArrayRefCGPathCreateSeparateComponents(@Nullable CGPathRef path, boolean evenOddFillRule)Return an array of the visually separated components of a path.static @NotNull CGPathRefCGPathCreateWithEllipseInRect(CGRect rect, @Nullable CGAffineTransform transform)Return a path representing an ellipse bounded by `rect'.static @NotNull CGPathRefCGPathCreateWithRect(CGRect rect, @Nullable CGAffineTransform transform)Return a path representing a rectangle bounded by `rect'.static @NotNull CGPathRefCGPathCreateWithRoundedRect(CGRect rect, double cornerWidth, double cornerHeight, @Nullable CGAffineTransform transform)Return a path representing a rounded rectangle.static booleanCGPathEqualToPath(@Nullable CGPathRef path1, @Nullable CGPathRef path2)Return true if `path1' is equal to `path2'; false otherwise.static CGRectCGPathGetBoundingBox(@Nullable CGPathRef path)Return the bounding box of `path'.static CGPointCGPathGetCurrentPoint(@Nullable CGPathRef path)Return the current point of the current subpath of `path'.static CGRectCGPathGetPathBoundingBox(@Nullable CGPathRef path)Return the path bounding box of `path'.static longCGPathGetTypeID()Return the CFTypeID for CGPathRefs.static booleanCGPathIntersectsPath(@Nullable CGPathRef path1, @Nullable CGPathRef path2, boolean evenOddFillRule)Returns true if path1 and path2 overlap.static booleanCGPathIsEmpty(@Nullable CGPathRef path)Return true if `path' contains no elements, false otherwise.static booleanCGPathIsRect(@Nullable CGPathRef path, @Nullable CGRect rect)Return true if `path' represents a rectangle, false otherwise.static voidCGPathMoveToPoint(@Nullable CGMutablePathRef path, @Nullable CGAffineTransform m, double x, double y)Move the current point to `(x, y)' in `path' and begin a new subpath.static voidCGPathRelease(@Nullable CGPathRef path)Equivalent to `CFRelease(path)', except it doesn't crash (as CFRelease does) if `path' is NULL.static @Nullable CGPathRefCGPathRetain(@Nullable CGPathRef path)Equivalent to `CFRetain(path)', except it doesn't crash (as CFRetain does) if `path' is NULL.static @Nullable CGPatternRefCGPatternCreate(@Nullable org.moe.natj.general.ptr.VoidPtr info, CGRect bounds, CGAffineTransform matrix, double xStep, double yStep, int tiling, boolean isColored, @Nullable CGPatternCallbacks callbacks)Create a pattern.static longCGPatternGetTypeID()Return the CFTypeID for CGPatternRefs.static voidCGPatternRelease(@Nullable CGPatternRef pattern)Equivalent to `CFRelease(pattern)', except it doesn't crash (as CF does) if `pattern' is NULL.static @Nullable CGPatternRefCGPatternRetain(@Nullable CGPatternRef pattern)Equivalent to `CFRetain(pattern)', except it doesn't crash (as CF does) if `pattern' is NULL.static voidCGPDFArrayApplyBlock(@Nullable CGPDFArrayRef array, @Nullable CoreGraphics.Block_CGPDFArrayApplyBlock block, @Nullable org.moe.natj.general.ptr.VoidPtr info)Enumerate all of the objects in `array', calling the block-function `block' once for each value in the array.static booleanCGPDFArrayGetArray(@Nullable CGPDFArrayRef array, long index, @Nullable org.moe.natj.general.ptr.Ptr<CGPDFArrayRef> value)Look up the object at `index' in `array' and, if it's an array, return it in `value'.static booleanCGPDFArrayGetBoolean(@Nullable CGPDFArrayRef array, long index, @Nullable org.moe.natj.general.ptr.BytePtr value)Look up the object at `index' in `array' and, if it's a boolean, return the result in `value'.static longCGPDFArrayGetCount(@Nullable CGPDFArrayRef array)API-Since: 2.0static booleanCGPDFArrayGetDictionary(@Nullable CGPDFArrayRef array, long index, @Nullable org.moe.natj.general.ptr.Ptr<CGPDFDictionaryRef> value)Look up the object at `index' in `array' and, if it's a dictionary, return it in `value'.static booleanCGPDFArrayGetInteger(@Nullable CGPDFArrayRef array, long index, @Nullable org.moe.natj.general.ptr.NIntPtr value)Look up the object at `index' in `array' and, if it's an integer, return the result in `value'.static booleanCGPDFArrayGetName(@Nullable CGPDFArrayRef array, long index, @Nullable java.lang.String[] value)Look up the object at `index' in `array' and, if it's a name, return the result in `value'.static booleanCGPDFArrayGetNull(@Nullable CGPDFArrayRef array, long index)Look up the object at `index' in `array' and, if it's a null, return true; otherwise, return false.static booleanCGPDFArrayGetNumber(@Nullable CGPDFArrayRef array, long index, @Nullable org.moe.natj.general.ptr.NFloatPtr value)Look up the object at `index' in `array' and, if it's a number (real or integer), return the result in `value'.static booleanCGPDFArrayGetObject(@Nullable CGPDFArrayRef array, long index, @Nullable org.moe.natj.general.ptr.Ptr<CGPDFObjectRef> value)Look up the object at `index' in `array' and return the result in `value'.static booleanCGPDFArrayGetStream(@Nullable CGPDFArrayRef array, long index, @Nullable org.moe.natj.general.ptr.Ptr<CGPDFStreamRef> value)Look up the object at `index' in `array' and, if it's a stream, return it in `value'.static booleanCGPDFArrayGetString(@Nullable CGPDFArrayRef array, long index, @Nullable org.moe.natj.general.ptr.Ptr<CGPDFStringRef> value)Look up the object at `index' in `array' and, if it's a string, return the result in `value'.static @NotNull CGPDFContentStreamRefCGPDFContentStreamCreateWithPage(@NotNull CGPDFPageRef page)Create a content stream from `page'.static @NotNull CGPDFContentStreamRefCGPDFContentStreamCreateWithStream(@NotNull CGPDFStreamRef stream, @NotNull CGPDFDictionaryRef streamResources, @Nullable CGPDFContentStreamRef parent)Create a content stream from `stream'.static @Nullable CGPDFObjectRefCGPDFContentStreamGetResource(@NotNull CGPDFContentStreamRef cs, @NotNull java.lang.String category, @NotNull java.lang.String name)Return the resource named `name' in category `category' of the resource dictionaries of `cs'.static @Nullable CFArrayRefCGPDFContentStreamGetStreams(@NotNull CGPDFContentStreamRef cs)Return the array of CGPDFStreamRefs comprising the entire content stream of `cs'.static voidCGPDFContentStreamRelease(@NotNull CGPDFContentStreamRef cs)Decrement the retain count of `cs'.static @NotNull CGPDFContentStreamRefCGPDFContentStreamRetain(@NotNull CGPDFContentStreamRef cs)Increment the retain count of `cs'.static voidCGPDFContextAddDestinationAtPoint(@Nullable CGContextRef context, @NotNull CFStringRef name, CGPoint point)Create a PDF destination named `name' at `point' in the current page of the PDF context `context'.static voidCGPDFContextAddDocumentMetadata(@Nullable CGContextRef context, @Nullable CFDataRef metadata)Add the metadata stream specified by `metadata' to the document catalog of `context', as described in Table 3.25, "Entries in the catalog dictionary", of the PDF 1.7 specification.static voidCGPDFContextBeginPage(@Nullable CGContextRef context, @Nullable CFDictionaryRef pageInfo)Begin a new page in the PDF context `context'.static voidCGPDFContextBeginTag(@NotNull CGContextRef context, int tagType, @Nullable CFDictionaryRef tagProperties)Sets the current tag to the given tagType with an associated tagProperties dictionary.static voidCGPDFContextClose(@Nullable CGContextRef context)Close a PDF context.static @Nullable CGContextRefCGPDFContextCreate(@Nullable CGDataConsumerRef consumer, @Nullable CGRect mediaBox, @Nullable CFDictionaryRef auxiliaryInfo)Create a PDF context, using `consumer' for output.static @Nullable CGContextRefCGPDFContextCreateWithURL(@Nullable CFURLRef url, @Nullable CGRect mediaBox, @Nullable CFDictionaryRef auxiliaryInfo)Create a PDF context for writing to `url'.static voidCGPDFContextEndPage(@Nullable CGContextRef context)End the current page in the PDF context `context'.static voidCGPDFContextEndTag(@NotNull CGContextRef context)Pop the current tag.static voidCGPDFContextSetDestinationForRect(@Nullable CGContextRef context, @NotNull CFStringRef name, CGRect rect)Specify a destination named `name' to jump to when clicking in `rect' of the current page of the PDF context `context'.static voidCGPDFContextSetOutline(@NotNull CGContextRef context, @Nullable CFDictionaryRef outline)Set the outline in the PDF created by a CGPDFContext (no effect in other types of CGContexts).static voidCGPDFContextSetURLForRect(@Nullable CGContextRef context, @NotNull CFURLRef url, CGRect rect)Set the URL associated with `rect' to `url' in the PDF context `context'.static voidCGPDFDictionaryApplyBlock(@Nullable CGPDFDictionaryRef dict, @Nullable CoreGraphics.Block_CGPDFDictionaryApplyBlock block, @Nullable org.moe.natj.general.ptr.VoidPtr info)Enumerate all of the keys in `dict', calling the block-function `block' once for each key/value pair.static voidCGPDFDictionaryApplyFunction(@Nullable CGPDFDictionaryRef dict, @Nullable CoreGraphics.Function_CGPDFDictionaryApplyFunction function, @Nullable org.moe.natj.general.ptr.VoidPtr info)Enumerate all of the keys in `dict', calling `function' once for each key/value pair.static booleanCGPDFDictionaryGetArray(@Nullable CGPDFDictionaryRef dict, @NotNull java.lang.String key, @Nullable org.moe.natj.general.ptr.Ptr<CGPDFArrayRef> value)Look up the object associated with `key' in `dict' and, if it's an array, return the result in `value'.static booleanCGPDFDictionaryGetBoolean(@Nullable CGPDFDictionaryRef dict, @NotNull java.lang.String key, @Nullable org.moe.natj.general.ptr.BytePtr value)Look up the object associated with `key' in `dict' and, if it's a boolean, return the result in `value'.static longCGPDFDictionaryGetCount(@Nullable CGPDFDictionaryRef dict)Return the number of entries in `dictionary'.static booleanCGPDFDictionaryGetDictionary(@Nullable CGPDFDictionaryRef dict, @NotNull java.lang.String key, @Nullable org.moe.natj.general.ptr.Ptr<CGPDFDictionaryRef> value)Look up the object associated with `key' in `dict' and, if it's a dictionary, return the result in `value'.static booleanCGPDFDictionaryGetInteger(@Nullable CGPDFDictionaryRef dict, @NotNull java.lang.String key, @Nullable org.moe.natj.general.ptr.NIntPtr value)Look up the object associated with `key' in `dict' and, if it's an integer, return the result in `value'.static booleanCGPDFDictionaryGetName(@Nullable CGPDFDictionaryRef dict, @NotNull java.lang.String key, @Nullable java.lang.String[] value)Look up the object associated with `key' in `dict' and, if it's a name, return the result in `value'.static booleanCGPDFDictionaryGetNumber(@Nullable CGPDFDictionaryRef dict, @NotNull java.lang.String key, @Nullable org.moe.natj.general.ptr.NFloatPtr value)Look up the object associated with `key' in `dict' and, if it's a number (real or integer), return the result in `value'.static booleanCGPDFDictionaryGetObject(@Nullable CGPDFDictionaryRef dict, @NotNull java.lang.String key, @Nullable org.moe.natj.general.ptr.Ptr<CGPDFObjectRef> value)Look up the object associated with `key' in `dict' and return the result in `value'.static booleanCGPDFDictionaryGetStream(@Nullable CGPDFDictionaryRef dict, @NotNull java.lang.String key, @Nullable org.moe.natj.general.ptr.Ptr<CGPDFStreamRef> value)Look up the object associated with `key' in `dict' and, if it's a stream, return the result in `value'.static booleanCGPDFDictionaryGetString(@Nullable CGPDFDictionaryRef dict, @NotNull java.lang.String key, @Nullable org.moe.natj.general.ptr.Ptr<CGPDFStringRef> value)Look up the object associated with `key' in `dict' and, if it's a string, return the result in `value'.static booleanCGPDFDocumentAllowsCopying(@Nullable CGPDFDocumentRef document)Return true if `document' allows copying; false otherwise.static booleanCGPDFDocumentAllowsPrinting(@Nullable CGPDFDocumentRef document)Return true if `document' allows printing; false otherwise.static @Nullable CGPDFDocumentRefCGPDFDocumentCreateWithProvider(@Nullable CGDataProviderRef provider)Create a PDF document, using `provider' to obtain the document's data.static @Nullable CGPDFDocumentRefCGPDFDocumentCreateWithURL(@Nullable CFURLRef url)Create a PDF document from `url'.static intCGPDFDocumentGetAccessPermissions(@NotNull CGPDFDocumentRef document)Return the document access permissions.static @Nullable CGPDFDictionaryRefCGPDFDocumentGetCatalog(@Nullable CGPDFDocumentRef document)Return the document catalog of `document'.static @Nullable CGPDFArrayRefCGPDFDocumentGetID(@Nullable CGPDFDocumentRef document)Return the "file identifier" array of `document'.static @Nullable CGPDFDictionaryRefCGPDFDocumentGetInfo(@Nullable CGPDFDocumentRef document)Return the info dictionary of `document'.static longCGPDFDocumentGetNumberOfPages(@Nullable CGPDFDocumentRef document)Return the number of pages in `document'.static @Nullable CFDictionaryRefCGPDFDocumentGetOutline(@NotNull CGPDFDocumentRef document)Return the document outline in the form of a CFDictionary tree containing the kCGPDFOutline keys.static @Nullable CGPDFPageRefCGPDFDocumentGetPage(@Nullable CGPDFDocumentRef document, long pageNumber)Return the page corresponding to `pageNumber', or NULL if no such page exists in the document.static longCGPDFDocumentGetTypeID()Return the CFTypeID for CGPDFDocumentRefs.static voidCGPDFDocumentGetVersion(@Nullable CGPDFDocumentRef document, @NotNull org.moe.natj.general.ptr.IntPtr majorVersion, @NotNull org.moe.natj.general.ptr.IntPtr minorVersion)Return the major and minor version numbers of `document'.static booleanCGPDFDocumentIsEncrypted(@Nullable CGPDFDocumentRef document)Return true if the PDF file associated with `document' is encrypted; false otherwise.static booleanCGPDFDocumentIsUnlocked(@Nullable CGPDFDocumentRef document)Return true if `document' is unlocked; false otherwise.static voidCGPDFDocumentRelease(@Nullable CGPDFDocumentRef document)Equivalent to `CFRelease(document)', except it doesn't crash (as CFRelease does) if `document' is NULL.static @Nullable CGPDFDocumentRefCGPDFDocumentRetain(@Nullable CGPDFDocumentRef document)Equivalent to `CFRetain(document)', except it doesn't crash (as CFRetain does) if `document' is NULL.static booleanCGPDFDocumentUnlockWithPassword(@Nullable CGPDFDocumentRef document, @NotNull java.lang.String password)Use `password' to decrypt `document' and grant permission for certain operations.static intCGPDFObjectGetType(@Nullable CGPDFObjectRef object)Return the type of `object'.static booleanCGPDFObjectGetValue(@Nullable CGPDFObjectRef object, int type, @Nullable org.moe.natj.general.ptr.VoidPtr value)Get the value of `object'.static @Nullable CGPDFOperatorTableRefCGPDFOperatorTableCreate()Return an empty operator table.static voidCGPDFOperatorTableRelease(@Nullable CGPDFOperatorTableRef table)Decrement the retain count of `table'.static @Nullable CGPDFOperatorTableRefCGPDFOperatorTableRetain(@Nullable CGPDFOperatorTableRef table)Increment the retain count of `table'.static voidCGPDFOperatorTableSetCallback(@Nullable CGPDFOperatorTableRef table, @Nullable java.lang.String name, @Nullable CoreGraphics.Function_CGPDFOperatorTableSetCallback callback)Set the callback for the operator named `name' to `callback' API-Since: 2.0static CGRectCGPDFPageGetBoxRect(@Nullable CGPDFPageRef page, int box)Return the rectangle associated with `box' in `page'.static @Nullable CGPDFDictionaryRefCGPDFPageGetDictionary(@Nullable CGPDFPageRef page)Return the dictionary of `page'.static @Nullable CGPDFDocumentRefCGPDFPageGetDocument(@Nullable CGPDFPageRef page)Return the document of `page'.static CGAffineTransformCGPDFPageGetDrawingTransform(@Nullable CGPDFPageRef page, int box, CGRect rect, int rotate, boolean preserveAspectRatio)Return a transform mapping the box specified by `box' to `rect' as follows: - Compute the effective rect by intersecting the rect associated with `box' and the /MediaBox entry of the page.static longCGPDFPageGetPageNumber(@Nullable CGPDFPageRef page)Return the page number of `page'.static intCGPDFPageGetRotationAngle(@Nullable CGPDFPageRef page)Return the rotation angle (in degrees) of `page'.static longCGPDFPageGetTypeID()Return the CFTypeID for CGPDFPageRefs.static voidCGPDFPageRelease(@Nullable CGPDFPageRef page)Equivalent to `CFRelease(page)', except it doesn't crash (as CFRelease does) if `page' is NULL.static @Nullable CGPDFPageRefCGPDFPageRetain(@Nullable CGPDFPageRef page)Equivalent to `CFRetain(page)', except it doesn't crash (as CFRetain does) if `page' is NULL.static @NotNull CGPDFScannerRefCGPDFScannerCreate(@NotNull CGPDFContentStreamRef cs, @Nullable CGPDFOperatorTableRef table, @Nullable org.moe.natj.general.ptr.VoidPtr info)Create a scanner.static @NotNull CGPDFContentStreamRefCGPDFScannerGetContentStream(@NotNull CGPDFScannerRef scanner)Return the content stream associated with `scanner'.static booleanCGPDFScannerPopArray(@NotNull CGPDFScannerRef scanner, @Nullable org.moe.natj.general.ptr.Ptr<CGPDFArrayRef> value)Pop an object from the stack of `scanner' and, if it's an array, return it in `value'.static booleanCGPDFScannerPopBoolean(@NotNull CGPDFScannerRef scanner, @Nullable org.moe.natj.general.ptr.BytePtr value)Pop an object from the stack of `scanner' and, if it's a boolean, return it in `value'.static booleanCGPDFScannerPopDictionary(@NotNull CGPDFScannerRef scanner, @Nullable org.moe.natj.general.ptr.Ptr<CGPDFDictionaryRef> value)Pop an object from the stack of `scanner' and, if it's a dictionary, return it in `value'.static booleanCGPDFScannerPopInteger(@NotNull CGPDFScannerRef scanner, @Nullable org.moe.natj.general.ptr.NIntPtr value)Pop an object from the stack of `scanner' and, if it's an integer, return it in `value'.static booleanCGPDFScannerPopName(@NotNull CGPDFScannerRef scanner, @Nullable java.lang.String[] value)Pop an object from the stack of `scanner' and, if it's a name, return it in `value'.static booleanCGPDFScannerPopNumber(@NotNull CGPDFScannerRef scanner, @Nullable org.moe.natj.general.ptr.NFloatPtr value)Pop an object from the stack of `scanner' and, if it's a number, return it in `value'.static booleanCGPDFScannerPopObject(@NotNull CGPDFScannerRef scanner, @Nullable org.moe.natj.general.ptr.Ptr<CGPDFObjectRef> value)Pop an object from the stack of `scanner' and return it in `value'.static booleanCGPDFScannerPopStream(@NotNull CGPDFScannerRef scanner, @Nullable org.moe.natj.general.ptr.Ptr<CGPDFStreamRef> value)Pop an object from the stack of `scanner' and, if it's a stream, return it in `value'.static booleanCGPDFScannerPopString(@NotNull CGPDFScannerRef scanner, @Nullable org.moe.natj.general.ptr.Ptr<CGPDFStringRef> value)Pop an object from the stack of `scanner' and, if it's a string, return it in `value'.static voidCGPDFScannerRelease(@Nullable CGPDFScannerRef scanner)Release `scanner'.static @Nullable CGPDFScannerRefCGPDFScannerRetain(@Nullable CGPDFScannerRef scanner)Retain `scanner'.static booleanCGPDFScannerScan(@Nullable CGPDFScannerRef scanner)Scan the content stream of `scanner'.static voidCGPDFScannerStop(@NotNull CGPDFScannerRef s)Cleanly stop the scanner on the current operator, releasing any temporary resources.static @Nullable CFDataRefCGPDFStreamCopyData(@Nullable CGPDFStreamRef stream, @Nullable org.moe.natj.general.ptr.IntPtr format)Return the data of `stream'.static @Nullable CGPDFDictionaryRefCGPDFStreamGetDictionary(@Nullable CGPDFStreamRef stream)Return the dictionary of `stream'.static @Nullable CFDateRefCGPDFStringCopyDate(@Nullable CGPDFStringRef string)Convert `string' to a CFDate.static @Nullable CFStringRefCGPDFStringCopyTextString(@Nullable CGPDFStringRef string)Return a CFString representing `string' as a "text string".static @Nullable java.lang.StringCGPDFStringGetBytePtr(@Nullable CGPDFStringRef string)Return a pointer to the bytes of `string'.static longCGPDFStringGetLength(@Nullable CGPDFStringRef string)Return the length of `string'.static @Nullable java.lang.StringCGPDFTagTypeGetName(int tagType)For a given CGPDFTagType, return a C-string that matches the names defined in section 10.7.3: Standard Structure Types.static CGPointCGPointApplyAffineTransform(CGPoint point, CGAffineTransform t)Transform `point' by `t' and return the result: p' = p * t where p = [ x y 1 ].static @NotNull CFDictionaryRefCGPointCreateDictionaryRepresentation(CGPoint point)Return a dictionary representation of `point'.static booleanCGPointEqualToPoint(CGPoint point1, CGPoint point2)Return true if `point1' and `point2' are the same, false otherwise.static CGPointCGPointMake(double x, double y)Make a point from `(x, y)'.static booleanCGPointMakeWithDictionaryRepresentation(@Nullable CFDictionaryRef dict, @Nullable CGPoint point)Make a CGPoint from the contents of `dict' (presumably returned earlier from `CGPointCreateDictionaryRepresentation') and store the value in `point'.static CGPointCGPointZero()The "zero" point -- equivalent to CGPointMake(0, 0).static CGRectCGRectApplyAffineTransform(CGRect rect, CGAffineTransform t)Transform `rect' by `t' and return the result.static booleanCGRectContainsPoint(CGRect rect, CGPoint point)Return true if `point' is contained in `rect', false otherwise.static booleanCGRectContainsRect(CGRect rect1, CGRect rect2)Return true if `rect2' is contained in `rect1', false otherwise.static @NotNull CFDictionaryRefCGRectCreateDictionaryRepresentation(CGRect arg1)Return a dictionary representation of `rect'.static voidCGRectDivide(CGRect rect, @NotNull CGRect slice, @NotNull CGRect remainder, double amount, int edge)Make two new rectangles, `slice' and `remainder', by dividing `rect' with a line that's parallel to one of its sides, specified by `edge' -- either `CGRectMinXEdge', `CGRectMinYEdge', `CGRectMaxXEdge', or `CGRectMaxYEdge'.static booleanCGRectEqualToRect(CGRect rect1, CGRect rect2)Return true if `rect1' and `rect2' are the same, false otherwise.static doubleCGRectGetHeight(CGRect rect)Return the height of `rect'.static doubleCGRectGetMaxX(CGRect rect)Return the rightmost x-value of `rect'.static doubleCGRectGetMaxY(CGRect rect)Return the largest y-value of `rect'.static doubleCGRectGetMidX(CGRect rect)Return the midpoint x-value of `rect'.static doubleCGRectGetMidY(CGRect rect)Return the midpoint y-value of `rect'.static doubleCGRectGetMinX(CGRect rect)Return the leftmost x-value of `rect'.static doubleCGRectGetMinY(CGRect rect)Return the smallest y-value of `rect'.static doubleCGRectGetWidth(CGRect rect)Return the width of `rect'.static CGRectCGRectInfinite()The infinite rectangle.static CGRectCGRectInset(CGRect rect, double dx, double dy)Inset `rect' by `(dx, dy)' -- i.e., offset its origin by `(dx, dy)', and decrease its size by `(2*dx, 2*dy)'.static CGRectCGRectIntegral(CGRect rect)Expand `rect' to the smallest rect containing it with integral origin and size.static CGRectCGRectIntersection(CGRect r1, CGRect r2)Return the intersection of `r1' and `r2'.static booleanCGRectIntersectsRect(CGRect rect1, CGRect rect2)Return true if `rect1' intersects `rect2', false otherwise.static booleanCGRectIsEmpty(CGRect rect)Return true if `rect' is empty (that is, if it has zero width or height), false otherwise.static booleanCGRectIsInfinite(CGRect rect)Return true if `rect' is the infinite rectangle, false otherwise.static booleanCGRectIsNull(CGRect rect)Return true if `rect' is the null rectangle, false otherwise.static CGRectCGRectMake(double x, double y, double width, double height)Make a rect from `(x, y; width, height)'.static booleanCGRectMakeWithDictionaryRepresentation(@Nullable CFDictionaryRef dict, @Nullable CGRect rect)Make a CGRect from the contents of `dict' (presumably returned earlier from `CGRectCreateDictionaryRepresentation') and store the value in `rect'.static CGRectCGRectNull()The "empty" rect.static CGRectCGRectOffset(CGRect rect, double dx, double dy)Offset `rect' by `(dx, dy)'.static CGRectCGRectStandardize(CGRect rect)Standardize `rect' -- i.e., convert it to an equivalent rect which has positive width and height.static CGRectCGRectUnion(CGRect r1, CGRect r2)Return the union of `r1' and `r2'.static CGRectCGRectZero()The "zero" rectangle -- equivalent to CGRectMake(0, 0, 0, 0).static @Nullable CGShadingRefCGShadingCreateAxial(@Nullable CGColorSpaceRef space, CGPoint start, CGPoint end, @Nullable CGFunctionRef function, boolean extendStart, boolean extendEnd)Create a shading defining a color blend which varies along a linear axis between two endpoints and extends indefinitely perpendicular to that axis.static @Nullable CGShadingRefCGShadingCreateRadial(@Nullable CGColorSpaceRef space, CGPoint start, double startRadius, CGPoint end, double endRadius, @Nullable CGFunctionRef function, boolean extendStart, boolean extendEnd)Create a shading defining a color blend which varies between two circles.static longCGShadingGetTypeID()Return the CFTypeID for CGShadingRefs.static voidCGShadingRelease(@Nullable CGShadingRef shading)Equivalent to `CFRelease(shading)', except it doesn't crash (as CFRelease does) if `shading' is NULL.static @Nullable CGShadingRefCGShadingRetain(@Nullable CGShadingRef shading)Equivalent to `CFRetain(shading)', except it doesn't crash (as CFRetain does) if `shading' is NULL.static CGSizeCGSizeApplyAffineTransform(CGSize size, CGAffineTransform t)Transform `size' by `t' and return the result: s' = s * t where s = [ width height 0 ].static @NotNull CFDictionaryRefCGSizeCreateDictionaryRepresentation(CGSize size)Return a dictionary representation of `size'.static booleanCGSizeEqualToSize(CGSize size1, CGSize size2)Return true if `size1' and `size2' are the same, false otherwise.static CGSizeCGSizeMake(double width, double height)Make a size from `(width, height)'.static booleanCGSizeMakeWithDictionaryRepresentation(@Nullable CFDictionaryRef dict, @Nullable CGSize size)Make a CGSize from the contents of `dict' (presumably returned earlier from `CGSizeCreateDictionaryRepresentation') and store the value in `size'.static CGSizeCGSizeZero()The "zero" size -- equivalent to CGSizeMake(0, 0).static CGVectorCGVectorMake(double dx, double dy)Make a vector from `(dx, dy)'.static @NotNull CFStringRefkCGColorBlack()API-Since: 14.0static @NotNull CFStringRefkCGColorClear()API-Since: 14.0static @NotNull CFStringRefkCGColorConversionBlackPointCompensation()CFBooleanRef which can be used as option to create CGColorConversionInfoRef, when Black Point Compensation is desired API-Since: 10.0static @NotNull CFStringRefkCGColorConversionTRCSize()API-Since: 11.0static @NotNull CFStringRefkCGColorSpaceACESCGLinear()API-Since: 9.0static @NotNull CFStringRefkCGColorSpaceAdobeRGB1998()The name of the Adobe RGB (1998) color space.static @NotNull CFStringRefkCGColorSpaceDCIP3()API-Since: 9.0static @NotNull CFStringRefkCGColorSpaceDisplayP3()API-Since: 9.3static @NotNull CFStringRefkCGColorSpaceDisplayP3_HLG()API-Since: 12.6static @NotNull CFStringRefkCGColorSpaceDisplayP3_PQ()API-Since: 13.4static @NotNull CFStringRefkCGColorSpaceDisplayP3_PQ_EOTF()Deprecated.static @NotNull CFStringRefkCGColorSpaceExtendedDisplayP3()API-Since: 14.0static @NotNull CFStringRefkCGColorSpaceExtendedGray()The name of the extended Gray color space.static @NotNull CFStringRefkCGColorSpaceExtendedITUR_2020()API-Since: 14.0static @NotNull CFStringRefkCGColorSpaceExtendedLinearDisplayP3()API-Since: 12.3static @NotNull CFStringRefkCGColorSpaceExtendedLinearGray()The name of the extended Generic Gray 2.2 color space variant with linear gamma API-Since: 10.0static @NotNull CFStringRefkCGColorSpaceExtendedLinearITUR_2020()API-Since: 12.3static @NotNull CFStringRefkCGColorSpaceExtendedLinearSRGB()The name of the extended sRGB color space variant with linear gamma API-Since: 10.0static @NotNull CFStringRefkCGColorSpaceExtendedRange()static @NotNull CFStringRefkCGColorSpaceExtendedSRGB()The name of the extended sRGB color space.static @NotNull CFStringRefkCGColorSpaceGenericCMYK()The name of the "Generic" CMYK color space.static @NotNull CFStringRefkCGColorSpaceGenericGray()The name of the "Generic" Gray color space.static @NotNull CFStringRefkCGColorSpaceGenericGrayGamma2_2()The "Generic" gray color space with γ = 2.2.static @NotNull CFStringRefkCGColorSpaceGenericLab()The name of the "Generic" L*a*b* color space.static @NotNull CFStringRefkCGColorSpaceGenericRGB()The name of the "Generic" RGB color space.static @NotNull CFStringRefkCGColorSpaceGenericRGBLinear()The name of the "Generic" linear RGB color space.static @NotNull CFStringRefkCGColorSpaceGenericXYZ()API-Since: 9.0static @NotNull CFStringRefkCGColorSpaceITUR_2020()API-Since: 9.0static @NotNull CFStringRefkCGColorSpaceITUR_2020_HLG()Deprecated.static @NotNull CFStringRefkCGColorSpaceITUR_2020_PQ()Deprecated.static @NotNull CFStringRefkCGColorSpaceITUR_2020_PQ_EOTF()Deprecated.static @NotNull CFStringRefkCGColorSpaceITUR_2020_sRGBGamma()API-Since: 15.1static @NotNull CFStringRefkCGColorSpaceITUR_2100_HLG()API-Since: 14.0static @NotNull CFStringRefkCGColorSpaceITUR_2100_PQ()API-Since: 14.0static @NotNull CFStringRefkCGColorSpaceITUR_709()API-Since: 9.0static @NotNull CFStringRefkCGColorSpaceITUR_709_HLG()API-Since: 15.1static @NotNull CFStringRefkCGColorSpaceITUR_709_PQ()API-Since: 15.1static @NotNull CFStringRefkCGColorSpaceLinearDisplayP3()API-Since: 15.0static @NotNull CFStringRefkCGColorSpaceLinearGray()The name of the Generic Gray 2.2 color space variant with linear gamma API-Since: 10.0static @NotNull CFStringRefkCGColorSpaceLinearITUR_2020()API-Since: 15.0static @NotNull CFStringRefkCGColorSpaceLinearSRGB()The name of the sRGB color space variant with linear gamma API-Since: 10.0static @NotNull CFStringRefkCGColorSpaceROMMRGB()API-Since: 9.0static @NotNull CFStringRefkCGColorSpaceSRGB()The name of the sRGB color space.static @NotNull CFStringRefkCGColorWhite()Colors in the "Generic" gray color space.static @NotNull CFStringRefkCGFontVariationAxisDefaultValue()The key used to obtain the default variation axis value from a variation axis dictionary.static @NotNull CFStringRefkCGFontVariationAxisMaxValue()The key used to obtain the maximum variation axis value from a variation axis dictionary.static @NotNull CFStringRefkCGFontVariationAxisMinValue()The key used to obtain the minimum variation axis value from a variation axis dictionary.static @NotNull CFStringRefkCGFontVariationAxisName()The key used to obtain the variation axis name from a variation axis dictionary.static @NotNull CFStringRefkCGPDFContextAccessPermissions()The document's access permissions, expressed as a CFNumber.static @NotNull CFStringRefkCGPDFContextAllowsCopying()Used to specify whether the document allows copying when unlocked with the user password.static @NotNull CFStringRefkCGPDFContextAllowsPrinting()Used to specify whether the document allows printing when unlocked with the user password.static @NotNull CFStringRefkCGPDFContextArtBox()The art box for the document or for a given page.static @NotNull CFStringRefkCGPDFContextAuthor()The name of the person who created this document.static @NotNull CFStringRefkCGPDFContextBleedBox()The bleed box for the document or for a given page.static @NotNull CFStringRefkCGPDFContextCreateLinearizedPDF()Output a linearized PDF API-Since: 14.0static @NotNull CFStringRefkCGPDFContextCreatePDFA()Output a PDF that conforms to PDF/A-2u (ISO 19005-2).static @NotNull CFStringRefkCGPDFContextCreator()The name of the application that created the original data used to create this document.static @NotNull CFStringRefkCGPDFContextCropBox()The crop box for the document or for a given page.static @NotNull CFStringRefkCGPDFContextEncryptionKeyLength()Specifies the encryption key length in bits; see Table 3.18 "Entries common to all encryption dictionaries", PDF Reference: Adobe PDF version 1.5 (4th ed.) for more info.static @NotNull CFStringRefkCGPDFContextKeywords()The keywords for this document.static @NotNull CFStringRefkCGPDFContextMediaBox()The media box for the document or for a given page.static @NotNull CFStringRefkCGPDFContextOutputIntent()The document's PDF/X output intent.static @NotNull CFStringRefkCGPDFContextOutputIntents()The document's output intents.static @NotNull CFStringRefkCGPDFContextOwnerPassword()The "owner password" of the PDF document.static @NotNull CFStringRefkCGPDFContextSubject()The subject of a document.static @NotNull CFStringRefkCGPDFContextTitle()The document's title.static @NotNull CFStringRefkCGPDFContextTrimBox()The trim box for the document or for a given page.static @NotNull CFStringRefkCGPDFContextUserPassword()The "user password" of the PDF document.static @NotNull CFStringRefkCGPDFOutlineChildren()Key: kCGPDFOutlineChildren Value: CFArray of CFDictionaries API-Since: 11.0static @NotNull CFStringRefkCGPDFOutlineDestination()Key: kCGPDFOutlineDestination Value: CFNumber (for a one-indexed page number) or CFURL API-Since: 11.0static @NotNull CFStringRefkCGPDFOutlineDestinationRect()Key: kCGPDFOutlineDestinationRect Value: CFDictionary from CGRectCreateDictionaryRepresentation.static @NotNull CFStringRefkCGPDFOutlineTitle()Key: kCGPDFOutlineTitle Value: CFString API-Since: 11.0static @NotNull CFStringRefkCGPDFTagPropertyActualText()Actual text, defined on page 860: "Text that is an exact replacement for the structure element and its children..." "...useful when extracting the document’s contents in support of accessibility..." This can be used to more precisely control what string is extracted by a user when they copy and paste from a document.static @NotNull CFStringRefkCGPDFTagPropertyAlternativeText()Alternative text, defined on page 860: "An alternate description of the structure element and its children in human-readable form".static @NotNull CFStringRefkCGPDFTagPropertyLanguageText()Language of text content, defined on page 860: Typically you should use the document's catalog to get its language, but if a section of text is not the same language as the document, this may be set and allow you to look at what language it is hinting at.static @NotNull CFStringRefkCGPDFTagPropertyTitleText()Title, defined on page 859: Title of the node in a human-readable form.static @NotNull CFStringRefkCGPDFXDestinationOutputProfile()kCGPDFXDestinationOutputProfile ("DestOutputProfile"): An ICC profile stream defining the transformation from the PDF document's source colors to output device colorants.static @NotNull CFStringRefkCGPDFXInfo()kCGPDFXInfo ("Info"): A human-readable text string containing additional information about the intended target device or production condition.static @NotNull CFStringRefkCGPDFXOutputCondition()kCGPDFXOutputCondition ("OutputCondition"): A text string identifying the intended output device or production condition in a human-readable form.static @NotNull CFStringRefkCGPDFXOutputConditionIdentifier()kCGPDFXOutputConditionIdentifier ("OutputConditionIdentifier"): A string identifying the intended output device or production condition in a human- or machine-readable form.static @NotNull CFStringRefkCGPDFXOutputIntentSubtype()The following keys are supported in the output intent dictionary: kCGPDFXOutputIntentSubtype ("S"): The output intent subtype.static @NotNull CFStringRefkCGPDFXRegistryName()kCGPDFXRegistryName ("RegistryName"): A string identifying the registry in which the condition designated by `kCGPDFXOutputConditionIdentifier' is defined.
-
-
-
Field Detail
-
kCGFontIndexMax
public static final char kCGFontIndexMax
The maximum allowed value of a CGFontIndex. Always <= USHRT_MAX - 1.- See Also:
- Constant Field Values
-
kCGFontIndexInvalid
public static final char kCGFontIndexInvalid
A value representing an invalid CGFontIndex. Always <= USHRT_MAX.- See Also:
- Constant Field Values
-
kCGGlyphMax
public static final char kCGGlyphMax
The maximum allowed value of a CGGlyph.- See Also:
- Constant Field Values
-
kCGBitmapByteOrder16Host
public static final int kCGBitmapByteOrder16Host
- See Also:
- Constant Field Values
-
kCGBitmapByteOrder32Host
public static final int kCGBitmapByteOrder32Host
- See Also:
- Constant Field Values
-
CG_HDR_BT_2100
public static final double CG_HDR_BT_2100
- See Also:
- Constant Field Values
-
-
Method Detail
-
CGPointMake
public static CGPoint CGPointMake(double x, double y)
Make a point from `(x, y)'.
-
CGSizeMake
public static CGSize CGSizeMake(double width, double height)
Make a size from `(width, height)'.
-
CGVectorMake
public static CGVector CGVectorMake(double dx, double dy)
Make a vector from `(dx, dy)'.
-
CGRectMake
public static CGRect CGRectMake(double x, double y, double width, double height)
Make a rect from `(x, y; width, height)'.
-
CGRectGetMinX
public static double CGRectGetMinX(CGRect rect)
Return the leftmost x-value of `rect'. API-Since: 2.0
-
CGRectGetMidX
public static double CGRectGetMidX(CGRect rect)
Return the midpoint x-value of `rect'. API-Since: 2.0
-
CGRectGetMaxX
public static double CGRectGetMaxX(CGRect rect)
Return the rightmost x-value of `rect'. API-Since: 2.0
-
CGRectGetMinY
public static double CGRectGetMinY(CGRect rect)
Return the smallest y-value of `rect'. API-Since: 2.0
-
CGRectGetMidY
public static double CGRectGetMidY(CGRect rect)
Return the midpoint y-value of `rect'. API-Since: 2.0
-
CGRectGetMaxY
public static double CGRectGetMaxY(CGRect rect)
Return the largest y-value of `rect'. API-Since: 2.0
-
CGRectGetWidth
public static double CGRectGetWidth(CGRect rect)
Return the width of `rect'. API-Since: 2.0
-
CGRectGetHeight
public static double CGRectGetHeight(CGRect rect)
Return the height of `rect'. API-Since: 2.0
-
CGPointEqualToPoint
public static boolean CGPointEqualToPoint(CGPoint point1, CGPoint point2)
Return true if `point1' and `point2' are the same, false otherwise. API-Since: 2.0
-
CGSizeEqualToSize
public static boolean CGSizeEqualToSize(CGSize size1, CGSize size2)
Return true if `size1' and `size2' are the same, false otherwise. API-Since: 2.0
-
CGRectEqualToRect
public static boolean CGRectEqualToRect(CGRect rect1, CGRect rect2)
Return true if `rect1' and `rect2' are the same, false otherwise. API-Since: 2.0
-
CGRectStandardize
public static CGRect CGRectStandardize(CGRect rect)
Standardize `rect' -- i.e., convert it to an equivalent rect which has positive width and height. API-Since: 2.0
-
CGRectIsEmpty
public static boolean CGRectIsEmpty(CGRect rect)
Return true if `rect' is empty (that is, if it has zero width or height), false otherwise. A null rect is defined to be empty. API-Since: 2.0
-
CGRectIsNull
public static boolean CGRectIsNull(CGRect rect)
Return true if `rect' is the null rectangle, false otherwise. API-Since: 2.0
-
CGRectIsInfinite
public static boolean CGRectIsInfinite(CGRect rect)
Return true if `rect' is the infinite rectangle, false otherwise. API-Since: 2.0
-
CGRectInset
public static CGRect CGRectInset(CGRect rect, double dx, double dy)
Inset `rect' by `(dx, dy)' -- i.e., offset its origin by `(dx, dy)', and decrease its size by `(2*dx, 2*dy)'. API-Since: 2.0
-
CGRectIntegral
public static CGRect CGRectIntegral(CGRect rect)
Expand `rect' to the smallest rect containing it with integral origin and size. API-Since: 2.0
-
CGRectUnion
public static CGRect CGRectUnion(CGRect r1, CGRect r2)
Return the union of `r1' and `r2'. API-Since: 2.0
-
CGRectIntersection
public static CGRect CGRectIntersection(CGRect r1, CGRect r2)
Return the intersection of `r1' and `r2'. This may return a null rect. API-Since: 2.0
-
CGRectOffset
public static CGRect CGRectOffset(CGRect rect, double dx, double dy)
Offset `rect' by `(dx, dy)'. API-Since: 2.0
-
CGRectDivide
public static void CGRectDivide(CGRect rect, @NotNull @NotNull CGRect slice, @NotNull @NotNull CGRect remainder, double amount, int edge)
Make two new rectangles, `slice' and `remainder', by dividing `rect' with a line that's parallel to one of its sides, specified by `edge' -- either `CGRectMinXEdge', `CGRectMinYEdge', `CGRectMaxXEdge', or `CGRectMaxYEdge'. The size of `slice' is determined by `amount', which measures the distance from the specified edge. API-Since: 2.0
-
CGRectContainsPoint
public static boolean CGRectContainsPoint(CGRect rect, CGPoint point)
Return true if `point' is contained in `rect', false otherwise. API-Since: 2.0
-
CGRectContainsRect
public static boolean CGRectContainsRect(CGRect rect1, CGRect rect2)
Return true if `rect2' is contained in `rect1', false otherwise. `rect2' is contained in `rect1' if the union of `rect1' and `rect2' is equal to `rect1'. API-Since: 2.0
-
CGRectIntersectsRect
public static boolean CGRectIntersectsRect(CGRect rect1, CGRect rect2)
Return true if `rect1' intersects `rect2', false otherwise. `rect1' intersects `rect2' if the intersection of `rect1' and `rect2' is not the null rect. API-Since: 2.0
-
CGPointCreateDictionaryRepresentation
@NotNull public static @NotNull CFDictionaryRef CGPointCreateDictionaryRepresentation(CGPoint point)
Return a dictionary representation of `point'. API-Since: 2.0
-
CGPointMakeWithDictionaryRepresentation
public static boolean CGPointMakeWithDictionaryRepresentation(@Nullable @Nullable CFDictionaryRef dict, @Nullable @Nullable CGPoint point)Make a CGPoint from the contents of `dict' (presumably returned earlier from `CGPointCreateDictionaryRepresentation') and store the value in `point'. Returns true on success; false otherwise. API-Since: 2.0
-
CGSizeCreateDictionaryRepresentation
@NotNull public static @NotNull CFDictionaryRef CGSizeCreateDictionaryRepresentation(CGSize size)
Return a dictionary representation of `size'. API-Since: 2.0
-
CGSizeMakeWithDictionaryRepresentation
public static boolean CGSizeMakeWithDictionaryRepresentation(@Nullable @Nullable CFDictionaryRef dict, @Nullable @Nullable CGSize size)Make a CGSize from the contents of `dict' (presumably returned earlier from `CGSizeCreateDictionaryRepresentation') and store the value in `size'. Returns true on success; false otherwise. API-Since: 2.0
-
CGRectCreateDictionaryRepresentation
@NotNull public static @NotNull CFDictionaryRef CGRectCreateDictionaryRepresentation(CGRect arg1)
Return a dictionary representation of `rect'. API-Since: 2.0
-
CGRectMakeWithDictionaryRepresentation
public static boolean CGRectMakeWithDictionaryRepresentation(@Nullable @Nullable CFDictionaryRef dict, @Nullable @Nullable CGRect rect)Make a CGRect from the contents of `dict' (presumably returned earlier from `CGRectCreateDictionaryRepresentation') and store the value in `rect'. Returns true on success; false otherwise. API-Since: 2.0
-
CGAffineTransformMake
public static CGAffineTransform CGAffineTransformMake(double a, double b, double c, double d, double tx, double ty)
Return the transform [ a b c d tx ty ]. API-Since: 2.0
-
CGAffineTransformMakeTranslation
public static CGAffineTransform CGAffineTransformMakeTranslation(double tx, double ty)
Return a transform which translates by `(tx, ty)': t' = [ 1 0 0 1 tx ty ] API-Since: 2.0
-
CGAffineTransformMakeScale
public static CGAffineTransform CGAffineTransformMakeScale(double sx, double sy)
Return a transform which scales by `(sx, sy)': t' = [ sx 0 0 sy 0 0 ] API-Since: 2.0
-
CGAffineTransformMakeRotation
public static CGAffineTransform CGAffineTransformMakeRotation(double angle)
Return a transform which rotates by `angle' radians: t' = [ cos(angle) sin(angle) -sin(angle) cos(angle) 0 0 ] API-Since: 2.0
-
CGAffineTransformIsIdentity
public static boolean CGAffineTransformIsIdentity(CGAffineTransform t)
Return true if `t' is the identity transform, false otherwise. API-Since: 2.0
-
CGAffineTransformTranslate
public static CGAffineTransform CGAffineTransformTranslate(CGAffineTransform t, double tx, double ty)
Translate `t' by `(tx, ty)' and return the result: t' = [ 1 0 0 1 tx ty ] * t API-Since: 2.0
-
CGAffineTransformScale
public static CGAffineTransform CGAffineTransformScale(CGAffineTransform t, double sx, double sy)
Scale `t' by `(sx, sy)' and return the result: t' = [ sx 0 0 sy 0 0 ] * t API-Since: 2.0
-
CGAffineTransformRotate
public static CGAffineTransform CGAffineTransformRotate(CGAffineTransform t, double angle)
Rotate `t' by `angle' radians and return the result: t' = [ cos(angle) sin(angle) -sin(angle) cos(angle) 0 0 ] * t API-Since: 2.0
-
CGAffineTransformInvert
public static CGAffineTransform CGAffineTransformInvert(CGAffineTransform t)
Invert `t' and return the result. If `t' has zero determinant, then `t' is returned unchanged. API-Since: 2.0
-
CGAffineTransformConcat
public static CGAffineTransform CGAffineTransformConcat(CGAffineTransform t1, CGAffineTransform t2)
Concatenate `t2' to `t1' and return the result: t' = t1 * t2 API-Since: 2.0
-
CGAffineTransformEqualToTransform
public static boolean CGAffineTransformEqualToTransform(CGAffineTransform t1, CGAffineTransform t2)
Return true if `t1' and `t2' are equal, false otherwise. API-Since: 2.0
-
CGPointApplyAffineTransform
public static CGPoint CGPointApplyAffineTransform(CGPoint point, CGAffineTransform t)
Transform `point' by `t' and return the result: p' = p * t where p = [ x y 1 ]. API-Since: 2.0
-
CGSizeApplyAffineTransform
public static CGSize CGSizeApplyAffineTransform(CGSize size, CGAffineTransform t)
Transform `size' by `t' and return the result: s' = s * t where s = [ width height 0 ]. API-Since: 2.0
-
CGRectApplyAffineTransform
public static CGRect CGRectApplyAffineTransform(CGRect rect, CGAffineTransform t)
Transform `rect' by `t' and return the result. Since affine transforms do not preserve rectangles in general, this function returns the smallest rectangle which contains the transformed corner points of `rect'. If `t' consists solely of scales, flips and translations, then the returned rectangle coincides with the rectangle constructed from the four transformed corners. API-Since: 2.0
-
__CGAffineTransformMake
public static CGAffineTransform __CGAffineTransformMake(double a, double b, double c, double d, double tx, double ty)
Definitions of inline functions. **
-
__CGPointApplyAffineTransform
public static CGPoint __CGPointApplyAffineTransform(CGPoint point, CGAffineTransform t)
-
__CGSizeApplyAffineTransform
public static CGSize __CGSizeApplyAffineTransform(CGSize size, CGAffineTransform t)
-
CGDataProviderGetTypeID
public static long CGDataProviderGetTypeID()
Return the CFTypeID for CGDataProviderRefs. API-Since: 2.0
-
CGDataProviderCreateSequential
@Nullable public static @Nullable CGDataProviderRef CGDataProviderCreateSequential(@Nullable @Nullable org.moe.natj.general.ptr.VoidPtr info, @Nullable @Nullable CGDataProviderSequentialCallbacks callbacks)
Create a sequential-access data provider using `callbacks' to provide the data. `info' is passed to each of the callback functions. API-Since: 2.0
-
CGDataProviderCreateDirect
@Nullable public static @Nullable CGDataProviderRef CGDataProviderCreateDirect(@Nullable @Nullable org.moe.natj.general.ptr.VoidPtr info, long size, @Nullable @Nullable CGDataProviderDirectCallbacks callbacks)
Create a direct-access data provider using `callbacks' to supply `size' bytes of data. `info' is passed to each of the callback functions. The underlying data must not change for the life of the data provider. API-Since: 2.0
-
CGDataProviderCreateWithData
@Nullable public static @Nullable CGDataProviderRef CGDataProviderCreateWithData(@Nullable @Nullable org.moe.natj.general.ptr.VoidPtr info, @Nullable @Nullable org.moe.natj.general.ptr.ConstVoidPtr data, long size, @Nullable @Nullable CoreGraphics.Function_CGDataProviderCreateWithData releaseData)
Create a direct-access data provider using `data', an array of `size' bytes. `releaseData' is called when the data provider is freed, and is passed `info' as its first argument. API-Since: 2.0
-
CGDataProviderCreateWithCFData
@Nullable public static @Nullable CGDataProviderRef CGDataProviderCreateWithCFData(@Nullable @Nullable CFDataRef data)
Create a direct-access data provider which reads from `data'. API-Since: 2.0
-
CGDataProviderCreateWithURL
@Nullable public static @Nullable CGDataProviderRef CGDataProviderCreateWithURL(@Nullable @Nullable CFURLRef url)
Create a data provider reading from `url'. API-Since: 2.0
-
CGDataProviderCreateWithFilename
@Nullable public static @Nullable CGDataProviderRef CGDataProviderCreateWithFilename(@Nullable @Nullable java.lang.String filename)
Create a data provider reading from `filename'. API-Since: 2.0
-
CGDataProviderRetain
@Nullable public static @Nullable CGDataProviderRef CGDataProviderRetain(@Nullable @Nullable CGDataProviderRef provider)
Equivalent to `CFRetain(provider)', but doesn't crash (as CFRetain does) if `provider' is NULL. API-Since: 2.0
-
CGDataProviderRelease
public static void CGDataProviderRelease(@Nullable @Nullable CGDataProviderRef provider)Equivalent to `CFRelease(provider)', but doesn't crash (as CFRelease does) if `provider' is NULL. API-Since: 2.0
-
CGDataProviderCopyData
@Nullable public static @Nullable CFDataRef CGDataProviderCopyData(@Nullable @Nullable CGDataProviderRef provider)
Return a copy of the data specified by provider. Returns NULL if a complete copy of the data can't be obtained (for example, if the underlying data is too large to fit in memory). API-Since: 2.0
-
CGColorSpaceCreateDeviceGray
@Nullable public static @Nullable CGColorSpaceRef CGColorSpaceCreateDeviceGray()
Create a DeviceGray color space. API-Since: 2.0
-
CGColorSpaceCreateDeviceRGB
@Nullable public static @Nullable CGColorSpaceRef CGColorSpaceCreateDeviceRGB()
Create a DeviceRGB color space. API-Since: 2.0
-
CGColorSpaceCreateDeviceCMYK
@Nullable public static @Nullable CGColorSpaceRef CGColorSpaceCreateDeviceCMYK()
Create a DeviceCMYK color space. API-Since: 2.0
-
CGColorSpaceCreateWithICCProfile
@Nullable @Deprecated public static @Nullable CGColorSpaceRef CGColorSpaceCreateWithICCProfile(@Nullable @Nullable CFDataRef data)
Deprecated.Please use `CGColorSpaceCreateWithICCData' API-Since: 2.0 Deprecated-Since: 11.0 Deprecated-Message: No longer supported
-
CGColorSpaceCreateICCBased
@Nullable public static @Nullable CGColorSpaceRef CGColorSpaceCreateICCBased(long nComponents, @Nullable @Nullable org.moe.natj.general.ptr.ConstNFloatPtr range, @Nullable @Nullable CGDataProviderRef profile, @Nullable @Nullable CGColorSpaceRef alternate)
Create an ICC-based color space. `nComponents' specifies the number of color components in the color space defined by the ICC profile data. This must match the number of components actually in the ICC profile, and must be 1, 3, or 4. `range' is an array of 2*nComponents numbers specifying the minimum and maximum valid values of the corresponding color components, so that for color component k, range[2*k] <= c[k] <= range[2*k+1], where c[k] is the k'th color component. `profile' is a data provider specifying the ICC profile. `alternate' specifies an alternate color space to be used in case the ICC profile is not supported. It must have `nComponents' color components. If `alternate' is NULL, then the color space used will be DeviceGray, DeviceRGB, or DeviceCMYK, depending on whether `nComponents' is 1, 3, or 4, respectively. API-Since: 2.0
-
CGColorSpaceCreateIndexed
@Nullable public static @Nullable CGColorSpaceRef CGColorSpaceCreateIndexed(@Nullable @Nullable CGColorSpaceRef baseSpace, long lastIndex, @Nullable @Nullable java.lang.String colorTable)
Create an indexed color space. A sample value in an indexed color space is treated as an index into the color table of the color space. `base' specifies the base color space in which the values in the color table are to be interpreted. `lastIndex' is an integer which specifies the maximum valid index value; it must be less than or equal to 255. `colorTable' is an array of m * (lastIndex + 1) bytes, where m is the number of color components in the base color space. Each byte is an unsigned integer in the range 0 to 255 that is scaled to the range of the corresponding color component in the base color space. API-Since: 2.0
-
CGColorSpaceCreatePattern
@Nullable public static @Nullable CGColorSpaceRef CGColorSpaceCreatePattern(@Nullable @Nullable CGColorSpaceRef baseSpace)
Create a pattern color space. `baseSpace' is the underlying color space of the pattern color space. For colored patterns, `baseSpace' should be NULL; for uncolored patterns, `baseSpace' specifies the color space of colors which will be painted through the pattern. API-Since: 2.0
-
CGColorSpaceCreateWithPlatformColorSpace
@Nullable @Deprecated public static @Nullable CGColorSpaceRef CGColorSpaceCreateWithPlatformColorSpace(@Nullable @Nullable org.moe.natj.general.ptr.ConstVoidPtr ref)
Deprecated.Please use `CGColorSpaceCreateWithColorSyncProfile' API-Since: 9.0 Deprecated-Since: 15.0 Deprecated-Message: No longer supported
-
CGColorSpaceCreateWithName
@Nullable public static @Nullable CGColorSpaceRef CGColorSpaceCreateWithName(@Nullable @Nullable CFStringRef name)
Create a color space using `name' as the identifier for the color space. API-Since: 2.0
-
CGColorSpaceRetain
@Nullable public static @Nullable CGColorSpaceRef CGColorSpaceRetain(@Nullable @Nullable CGColorSpaceRef space)
Equivalent to `CFRetain(space)', except it doesn't crash (as CFRetain does) if `space' is NULL. API-Since: 2.0
-
CGColorSpaceRelease
public static void CGColorSpaceRelease(@Nullable @Nullable CGColorSpaceRef space)Equivalent to `CFRelease(space)', except it doesn't crash (as CFRelease does) if `space' is NULL. API-Since: 2.0
-
CGColorSpaceCopyName
@Nullable public static @Nullable CFStringRef CGColorSpaceCopyName(@Nullable @Nullable CGColorSpaceRef space)
Same as `CGColorSpaceGetName' but with ownership released to the caller. API-Since: 10.0
-
CGColorSpaceGetTypeID
public static long CGColorSpaceGetTypeID()
Return the CFTypeID for CGColorSpaces. API-Since: 2.0
-
CGColorSpaceGetNumberOfComponents
public static long CGColorSpaceGetNumberOfComponents(@Nullable @Nullable CGColorSpaceRef space)Return the number of color components in the color space `space'. API-Since: 2.0
-
CGColorSpaceGetModel
public static int CGColorSpaceGetModel(@Nullable @Nullable CGColorSpaceRef space)Return the color space model of `space'. API-Since: 2.0
-
CGColorSpaceGetBaseColorSpace
@Nullable public static @Nullable CGColorSpaceRef CGColorSpaceGetBaseColorSpace(@Nullable @Nullable CGColorSpaceRef space)
Return the base color space of `space' if `space' is a pattern or indexed color space; otherwise, return NULL. To determine whether a color space is an indexed or pattern color space, use `CGColorSpaceGetModel'. API-Since: 2.0
-
CGColorSpaceGetColorTableCount
public static long CGColorSpaceGetColorTableCount(@Nullable @Nullable CGColorSpaceRef space)Return the number of entries in the color table of `space' if `space' is an indexed color space; otherwise, return 0. To determine whether a color space is an indexed color space, use `CGColorSpaceGetModel'. API-Since: 2.0
-
CGColorSpaceGetColorTable
public static void CGColorSpaceGetColorTable(@Nullable @Nullable CGColorSpaceRef space, @Nullable @Nullable org.moe.natj.general.ptr.BytePtr table)Copy the entries in the color table of `space' to `table' if `space' is an indexed color space; otherwise, do nothing. The array pointed to by `table' should be at least as large as the number of entries in the color table; the returned data is in the same format as that passed to `CGColorSpaceCreateIndexed'. To determine whether a color space is an indexed color space, use `CGColorSpaceGetModel'. API-Since: 2.0
-
CGColorSpaceCopyICCProfile
@Nullable @Deprecated public static @Nullable CFDataRef CGColorSpaceCopyICCProfile(@Nullable @Nullable CGColorSpaceRef space)
Deprecated.Please use `CGColorSpaceCopyICCData' API-Since: 2.0 Deprecated-Since: 11.0 Deprecated-Message: No longer supported
-
CGColorSpaceCopyICCData
@Nullable public static @Nullable CFDataRef CGColorSpaceCopyICCData(@Nullable @Nullable CGColorSpaceRef space)
Return a copy of the ICC profile data of `space', or NULL if the color space doesn't have an ICC profile. API-Since: 10.0
-
CGColorSpaceIsWideGamutRGB
public static boolean CGColorSpaceIsWideGamutRGB(@NotNull @NotNull CGColorSpaceRef arg1)Return true if gamut of the RGB color space is greater than 85% of NTSC gamut API-Since: 10.0
-
CGColorSpaceSupportsOutput
public static boolean CGColorSpaceSupportsOutput(@NotNull @NotNull CGColorSpaceRef space)Return true if `space' can be used as a destination color space; false otherwise. API-Since: 10.0
-
CGPatternGetTypeID
public static long CGPatternGetTypeID()
Return the CFTypeID for CGPatternRefs. API-Since: 2.0
-
CGPatternCreate
@Nullable public static @Nullable CGPatternRef CGPatternCreate(@Nullable @Nullable org.moe.natj.general.ptr.VoidPtr info, CGRect bounds, CGAffineTransform matrix, double xStep, double yStep, int tiling, boolean isColored, @Nullable @Nullable CGPatternCallbacks callbacks)
Create a pattern. API-Since: 2.0
-
CGPatternRetain
@Nullable public static @Nullable CGPatternRef CGPatternRetain(@Nullable @Nullable CGPatternRef pattern)
Equivalent to `CFRetain(pattern)', except it doesn't crash (as CF does) if `pattern' is NULL. API-Since: 2.0
-
CGPatternRelease
public static void CGPatternRelease(@Nullable @Nullable CGPatternRef pattern)Equivalent to `CFRelease(pattern)', except it doesn't crash (as CF does) if `pattern' is NULL. API-Since: 2.0
-
CGColorCreate
@Nullable public static @Nullable CGColorRef CGColorCreate(@Nullable @Nullable CGColorSpaceRef space, @Nullable @Nullable org.moe.natj.general.ptr.ConstNFloatPtr components)
Create a color in the color space `space' with color components (including alpha) specified by `components'. `space' may be any color space except a pattern color space. API-Since: 2.0
-
CGColorCreateWithPattern
@Nullable public static @Nullable CGColorRef CGColorCreateWithPattern(@Nullable @Nullable CGColorSpaceRef space, @Nullable @Nullable CGPatternRef pattern, @Nullable @Nullable org.moe.natj.general.ptr.ConstNFloatPtr components)
Create a color in color space `space' with pattern `pattern' and components `components'. `space' must be a pattern color space. API-Since: 2.0
-
CGColorCreateCopy
@Nullable public static @Nullable CGColorRef CGColorCreateCopy(@Nullable @Nullable CGColorRef color)
Create a copy of `color'. API-Since: 2.0
-
CGColorCreateCopyWithAlpha
@Nullable public static @Nullable CGColorRef CGColorCreateCopyWithAlpha(@Nullable @Nullable CGColorRef color, double alpha)
Create a copy of `color' with alpha set to `alpha'. API-Since: 2.0
-
CGColorCreateCopyByMatchingToColorSpace
@Nullable public static @Nullable CGColorRef CGColorCreateCopyByMatchingToColorSpace(@Nullable @Nullable CGColorSpaceRef arg1, int intent, @Nullable @Nullable CGColorRef color, @Nullable @Nullable CFDictionaryRef options)
Create a copy of `color' by matching existing color to destination color space. API-Since: 9.0
-
CGColorRetain
@Nullable public static @Nullable CGColorRef CGColorRetain(@Nullable @Nullable CGColorRef color)
Equivalent to `CFRetain(color)', except it doesn't crash (as CFRetain does) if `color' is NULL. API-Since: 2.0
-
CGColorRelease
public static void CGColorRelease(@Nullable @Nullable CGColorRef color)Equivalent to `CFRelease(color)', except it doesn't crash (as CFRelease does) if `color' is NULL. API-Since: 2.0
-
CGColorEqualToColor
public static boolean CGColorEqualToColor(@Nullable @Nullable CGColorRef color1, @Nullable @Nullable CGColorRef color2)Return true if `color1' is equal to `color2'; false otherwise. API-Since: 2.0
-
CGColorGetNumberOfComponents
public static long CGColorGetNumberOfComponents(@Nullable @Nullable CGColorRef color)Return the number of color components (including alpha) associated with `color'. API-Since: 2.0
-
CGColorGetComponents
@Nullable public static @Nullable org.moe.natj.general.ptr.ConstNFloatPtr CGColorGetComponents(@Nullable @Nullable CGColorRef color)Return the color components (including alpha) associated with `color'. API-Since: 2.0
-
CGColorGetAlpha
public static double CGColorGetAlpha(@Nullable @Nullable CGColorRef color)Return the alpha component associated with `color'. API-Since: 2.0
-
CGColorGetColorSpace
@Nullable public static @Nullable CGColorSpaceRef CGColorGetColorSpace(@Nullable @Nullable CGColorRef color)
Return the color space associated with `color'. API-Since: 2.0
-
CGColorGetPattern
@Nullable public static @Nullable CGPatternRef CGColorGetPattern(@Nullable @Nullable CGColorRef color)
Return the pattern associated with `color', if it's a color in a pattern color space; NULL otherwise. API-Since: 2.0
-
CGColorGetTypeID
public static long CGColorGetTypeID()
Return the CFTypeID for CGColors. API-Since: 2.0
-
CGFontGetTypeID
public static long CGFontGetTypeID()
Return the CFTypeID for CGFontRefs. API-Since: 2.0
-
CGFontCreateWithDataProvider
@Nullable public static @Nullable CGFontRef CGFontCreateWithDataProvider(@Nullable @Nullable CGDataProviderRef provider)
Return the font defined by the data provided by `provider', or NULL if the font can't be created. API-Since: 2.0
-
CGFontCreateWithFontName
@Nullable public static @Nullable CGFontRef CGFontCreateWithFontName(@Nullable @Nullable CFStringRef name)
Return the font identified by `name', corresponding to the font's PostScript name or its full name, or NULL if the font can't be created. API-Since: 2.0
-
CGFontCreateCopyWithVariations
@Nullable public static @Nullable CGFontRef CGFontCreateCopyWithVariations(@Nullable @Nullable CGFontRef font, @Nullable @Nullable CFDictionaryRef variations)
Return a font based on `font' with the variation specification dictionary `variations' applied to `font'. A variation specification dictionary contains keys corresponding the variation axis names of the font. Each key is a variation axis name; the value for each key is the value specified for that particular variation axis represented as a CFNumberRef. If a variation axis name is not specified in `variations', then the current value from `font' is used. API-Since: 2.0
-
CGFontRetain
@Nullable public static @Nullable CGFontRef CGFontRetain(@Nullable @Nullable CGFontRef font)
Equivalent to `CFRetain(font)', except it doesn't crash (as CFRetain does) if `font' is NULL. API-Since: 2.0
-
CGFontRelease
public static void CGFontRelease(@Nullable @Nullable CGFontRef font)Equivalent to `CFRelease(font)', except it doesn't crash (as CFRelease does) if `font' is NULL. API-Since: 2.0
-
CGFontGetNumberOfGlyphs
public static long CGFontGetNumberOfGlyphs(@Nullable @Nullable CGFontRef font)Return the number of glyphs in `font'. API-Since: 2.0
-
CGFontGetUnitsPerEm
public static int CGFontGetUnitsPerEm(@Nullable @Nullable CGFontRef font)Return the glyph space units/em for `font'. API-Since: 2.0
-
CGFontCopyPostScriptName
@Nullable public static @Nullable CFStringRef CGFontCopyPostScriptName(@Nullable @Nullable CGFontRef font)
Return the PostScript name of `font'. API-Since: 2.0
-
CGFontCopyFullName
@Nullable public static @Nullable CFStringRef CGFontCopyFullName(@Nullable @Nullable CGFontRef font)
Return the "full name" of `font'. API-Since: 2.0
-
CGFontGetAscent
public static int CGFontGetAscent(@Nullable @Nullable CGFontRef font)Return the ascent of `font'. The ascent is the maximum distance above the baseline of glyphs in a font. The value is specified in glyph space units. API-Since: 2.0
-
CGFontGetDescent
public static int CGFontGetDescent(@Nullable @Nullable CGFontRef font)Return the descent of `font'. The descent is the maximum distance below the baseline of glyphs in a font. The value is specified in glyph space units. API-Since: 2.0
-
CGFontGetLeading
public static int CGFontGetLeading(@Nullable @Nullable CGFontRef font)Return the leading of `font'. The leading is the spacing between consecutive lines of text in a font. The value is specified in glyph space units. API-Since: 2.0
-
CGFontGetCapHeight
public static int CGFontGetCapHeight(@Nullable @Nullable CGFontRef font)Return the cap height of `font'. The cap height is the distance above the baseline of the top of flat capital letters of glyphs in a font. The value is specified in glyph space units. API-Since: 2.0
-
CGFontGetXHeight
public static int CGFontGetXHeight(@Nullable @Nullable CGFontRef font)Return the x-height of `font'. The x-height is the distance above the baseline of the top of flat, non-ascending lowercase letters (such as "x") of glyphs in a font. The value is specified in glyph space units. API-Since: 2.0
-
CGFontGetFontBBox
public static CGRect CGFontGetFontBBox(@Nullable @Nullable CGFontRef font)
Return the font bounding box of `font'. The font bounding box is the union of all of the bounding boxes for all the glyphs in a font. The value is specified in glyph space units. API-Since: 2.0
-
CGFontGetItalicAngle
public static double CGFontGetItalicAngle(@Nullable @Nullable CGFontRef font)Return the italic angle of `font', measured in degrees counter-clockwise from the vertical. API-Since: 2.0
-
CGFontGetStemV
public static double CGFontGetStemV(@Nullable @Nullable CGFontRef font)Return the thickness of the dominant vertical stems of glyphs in `font'. The value is specified in glyph space units. API-Since: 2.0
-
CGFontCopyVariationAxes
@Nullable public static @Nullable CFArrayRef CGFontCopyVariationAxes(@Nullable @Nullable CGFontRef font)
Return an array of the variation axis dictionaries for `font'. Each variation axis dictionary contains values for the variation axis keys listed below. This function returns NULL if `font' doesn't support variations. API-Since: 2.0
-
CGFontCopyVariations
@Nullable public static @Nullable CFDictionaryRef CGFontCopyVariations(@Nullable @Nullable CGFontRef font)
Return the variation specification dictionary from `font'. This dictionary contains keys corresponding the variation axis names of the font. Each key is a variation axis name; the value for each key is the value specified for that particular variation axis represented as a CFNumberRef. This function returns NULL if `font' doesn't support variations. API-Since: 2.0
-
CGFontGetGlyphAdvances
public static boolean CGFontGetGlyphAdvances(@Nullable @Nullable CGFontRef font, @NotNull @NotNull org.moe.natj.general.ptr.ConstCharPtr glyphs, long count, @NotNull @NotNull org.moe.natj.general.ptr.IntPtr advances)Get the advance of each glyph in `glyphs', an array of `count' glyphs, and return it in the corresponding entry of `advances', an array of `count' integers. The advances are specified in glyph space. Returns false if advances can't be retrieved for any reason; true otherwise. API-Since: 2.0
-
CGFontGetGlyphBBoxes
public static boolean CGFontGetGlyphBBoxes(@Nullable @Nullable CGFontRef font, @NotNull @NotNull org.moe.natj.general.ptr.ConstCharPtr glyphs, long count, @NotNull @NotNull CGRect bboxes)Get the bounding box of each glyph in `glyphs', an array of `count' glyphs, and return it in the corresponding entry of `bboxes', an array of `count' rectangles. The bounding boxes are specified in glyph space. Returns false if bounding boxes can't be retrieved for any reason; true otherwise. API-Since: 2.0
-
CGFontGetGlyphWithGlyphName
public static char CGFontGetGlyphWithGlyphName(@Nullable @Nullable CGFontRef font, @Nullable @Nullable CFStringRef name)Return the glyph associated with `name' in `font'. If `name' isn't found in the font, return 0. API-Since: 2.0
-
CGFontCopyGlyphNameForGlyph
@Nullable public static @Nullable CFStringRef CGFontCopyGlyphNameForGlyph(@Nullable @Nullable CGFontRef font, char glyph)
Return the glyph name of `glyph' in `font', or NULL if `glyph' does not appear in `font'. API-Since: 2.0
-
CGFontCanCreatePostScriptSubset
public static boolean CGFontCanCreatePostScriptSubset(@Nullable @Nullable CGFontRef font, int format)Return true if a subset in the PostScript format `format' can be created for `font'; false otherwise. API-Since: 2.0
-
CGFontCopyTableTags
@Nullable public static @Nullable CFArrayRef CGFontCopyTableTags(@Nullable @Nullable CGFontRef font)
Return an array of font table tags in `font'. Each entry in the array is a four-byte value representing a single TrueType or OpenType font table tag. API-Since: 2.0
-
CGFontCopyTableForTag
@Nullable public static @Nullable CFDataRef CGFontCopyTableForTag(@Nullable @Nullable CGFontRef font, int tag)
Return the table in `font' corresponding to `tag', or NULL if no such table exists. API-Since: 2.0
-
CGGradientGetTypeID
public static long CGGradientGetTypeID()
Return the CFTypeID for CGGradients. API-Since: 2.0
-
CGGradientCreateWithColorComponents
@Nullable public static @Nullable CGGradientRef CGGradientCreateWithColorComponents(@Nullable @Nullable CGColorSpaceRef space, @Nullable @Nullable org.moe.natj.general.ptr.ConstNFloatPtr components, @Nullable @Nullable org.moe.natj.general.ptr.ConstNFloatPtr locations, long count)
Creates a gradient by pairing the color components provided in `components' with locations provided in `locations'. If `locations' is NULL, the first color in `colors' will be at location 0, the last color in `colors' will be at location 1, and intervening colors will be at equal intervals in between. Otherwise, each location in `locations' should be a CGFloat between 0 and 1. Each set of color components should specify a color in the color space `space', which may not any of CIELAB, DeviceN, Indexed or Pattern. The number of locations is specified by `count'; the number of color components is the product of `count' and the number of color components of `space'. If no color is provided for 0 or 1, the gradient will use the color provided at the locations closest to 0 and 1 for those values. API-Since: 2.0
-
CGGradientCreateWithColors
@Nullable public static @Nullable CGGradientRef CGGradientCreateWithColors(@Nullable @Nullable CGColorSpaceRef space, @Nullable @Nullable CFArrayRef colors, @Nullable @Nullable org.moe.natj.general.ptr.ConstNFloatPtr locations)
Creates a gradient by pairing the colors provided in `colors' with the locations provided in `locations'. `colors' should be a non-empty array of CGColor objects. The colors may be in any color space other than a pattern color space and are required to be convertible to `space'. If `space' is non-NULL, it may not be any of CIELAB, DeviceN, Indexed or Pattern. Each color will be converted to that color space and the gradient will drawn in that space; otherwise, each color will be converted to and drawn in the "Generic" RGB color space. If `locations' is NULL, the first color in `colors' will be at location 0, the last color in `colors' will be at location 1, and intervening colors will be at equal intervals in between. Otherwise, each location in `locations' should be a CGFloat between 0 and 1; the array of locations should should contain the same number of items as `colors'. If no color is provided for 0 or 1, the gradient will use the color provided at the locations closest to 0 and 1 for those values. API-Since: 2.0
-
CGGradientRetain
@Nullable public static @Nullable CGGradientRef CGGradientRetain(@Nullable @Nullable CGGradientRef gradient)
Equivalent to `CFRetain' except that it doesn't crash (as `CFRetain' does) if `gradient' is NULL. API-Since: 2.0
-
CGGradientRelease
public static void CGGradientRelease(@Nullable @Nullable CGGradientRef gradient)Equivalent to `CFRelease' except that it doesn't crash (as `CFRelease' does) if `gradient' is NULL. API-Since: 2.0
-
CGImageGetTypeID
public static long CGImageGetTypeID()
Return the CFTypeID for CGImageRefs. API-Since: 2.0
-
CGImageCreate
@Nullable public static @Nullable CGImageRef CGImageCreate(long width, long height, long bitsPerComponent, long bitsPerPixel, long bytesPerRow, @Nullable @Nullable CGColorSpaceRef space, int bitmapInfo, @Nullable @Nullable CGDataProviderRef provider, @Nullable @Nullable org.moe.natj.general.ptr.ConstNFloatPtr decode, boolean shouldInterpolate, int intent)
Create an image. API-Since: 2.0
-
CGImageMaskCreate
@Nullable public static @Nullable CGImageRef CGImageMaskCreate(long width, long height, long bitsPerComponent, long bitsPerPixel, long bytesPerRow, @Nullable @Nullable CGDataProviderRef provider, @Nullable @Nullable org.moe.natj.general.ptr.ConstNFloatPtr decode, boolean shouldInterpolate)
Create an image mask. Legal values for bits per component are 1, 2, 4 and 8. Bits per pixel must be either the same as bits per component or 8, with exception of 8 bits per component where bits per pixel can be also 16 or 32. API-Since: 2.0
-
CGImageCreateCopy
@Nullable public static @Nullable CGImageRef CGImageCreateCopy(@Nullable @Nullable CGImageRef image)
Return a copy of `image'. Only the image structure itself is copied; the underlying data is not. API-Since: 2.0
-
CGImageCreateWithJPEGDataProvider
@Nullable public static @Nullable CGImageRef CGImageCreateWithJPEGDataProvider(@Nullable @Nullable CGDataProviderRef source, @Nullable @Nullable org.moe.natj.general.ptr.ConstNFloatPtr decode, boolean shouldInterpolate, int intent)
Create an image from `source', a data provider of JPEG-encoded data. API-Since: 2.0
-
CGImageCreateWithPNGDataProvider
@Nullable public static @Nullable CGImageRef CGImageCreateWithPNGDataProvider(@Nullable @Nullable CGDataProviderRef source, @Nullable @Nullable org.moe.natj.general.ptr.ConstNFloatPtr decode, boolean shouldInterpolate, int intent)
Create an image using `source', a data provider for PNG-encoded data. API-Since: 2.0
-
CGImageCreateWithImageInRect
@Nullable public static @Nullable CGImageRef CGImageCreateWithImageInRect(@Nullable @Nullable CGImageRef image, CGRect rect)
Create an image using the data contained within the subrectangle `rect' of `image'. The new image is created by 1) adjusting `rect' to integral bounds by calling "CGRectIntegral"; 2) intersecting the result with a rectangle with origin (0, 0) and size equal to the size of `image'; 3) referencing the pixels within the resulting rectangle, treating the first pixel of the image data as the origin of the image. If the resulting rectangle is the null rectangle, this function returns NULL. If W and H are the width and height of image, respectively, then the point (0,0) corresponds to the first pixel of the image data; the point (W-1, 0) is the last pixel of the first row of the image data; (0, H-1) is the first pixel of the last row of the image data; and (W-1, H-1) is the last pixel of the last row of the image data. The resulting image retains a reference to the original image, so you may release the original image after calling this function. API-Since: 2.0
-
CGImageCreateWithMask
@Nullable public static @Nullable CGImageRef CGImageCreateWithMask(@Nullable @Nullable CGImageRef image, @Nullable @Nullable CGImageRef mask)
Create a new image from `image' masked by `mask', which may be an image mask or an image. If `mask' is an image mask, then it indicates which parts of the context are to be painted with the image when drawn in a context, and which are to be masked out (left unchanged). The source samples of the image mask determine which areas are painted, acting as an "inverse alpha": if the value of a source sample in the image mask is S, then the corresponding region in `image' is blended with the destination using an alpha of (1-S). (For example, if S is 1, then the region is not painted, while if S is 0, the region is fully painted.) If `mask' is an image, then it serves as alpha mask for blending the image onto the destination. The source samples of `mask' determine which areas are painted: if the value of the source sample in mask is S, then the corresponding region in image is blended with the destination with an alpha of S. (For example, if S is 0, then the region is not painted, while if S is 1, the region is fully painted.) The parameter `image' may not be an image mask and may not have an image mask or masking color associated with it. If `mask' is an image, then it must be in a monochrome color space (e.g. DeviceGray, GenericGray, etc...), may not have alpha, and may not itself be masked by an image mask or a masking color. API-Since: 2.0
-
CGImageCreateWithMaskingColors
@Nullable public static @Nullable CGImageRef CGImageCreateWithMaskingColors(@Nullable @Nullable CGImageRef image, @Nullable @Nullable org.moe.natj.general.ptr.ConstNFloatPtr components)
Create a new image from `image' masked by `components', an array of 2N values { min[1], max[1], ... min[N], max[N] } where N is the number of components in color space of `image'. Any image sample with color value {c[1], ... c[N]} where min[i] <= c[i] <= max[i] for 1 <= i <= N is masked out (that is, not painted). Each value in `components' must be a valid image sample value: if `image' has integral pixel components, then each value of must be in the range [0..2**bitsPerComponent - 1] (where `bitsPerComponent' is the number of bits/component of `image'); if `image' has floating-point pixel components, then each value may be any floating-point number which is a valid color component. The parameter `image' may not be an image mask, and may not already have an image mask or masking color associated with it. API-Since: 2.0
-
CGImageCreateCopyWithColorSpace
@Nullable public static @Nullable CGImageRef CGImageCreateCopyWithColorSpace(@Nullable @Nullable CGImageRef image, @Nullable @Nullable CGColorSpaceRef space)
Create a copy of `image', replacing the image's color space with `space'. Returns NULL if `image' is an image mask, or if the number of components of `space' isn't the same as the number of components of the color space of `image'. API-Since: 2.0
-
CGImageRetain
@Nullable public static @Nullable CGImageRef CGImageRetain(@Nullable @Nullable CGImageRef image)
Equivalent to `CFRetain(image)'. API-Since: 2.0
-
CGImageRelease
public static void CGImageRelease(@Nullable @Nullable CGImageRef image)Equivalent to `CFRelease(image)'. API-Since: 2.0
-
CGImageIsMask
public static boolean CGImageIsMask(@Nullable @Nullable CGImageRef image)Return true if `image' is an image mask, false otherwise. API-Since: 2.0
-
CGImageGetWidth
public static long CGImageGetWidth(@Nullable @Nullable CGImageRef image)Return the width of `image'. API-Since: 2.0
-
CGImageGetHeight
public static long CGImageGetHeight(@Nullable @Nullable CGImageRef image)Return the height of `image'. API-Since: 2.0
-
CGImageGetBitsPerComponent
public static long CGImageGetBitsPerComponent(@Nullable @Nullable CGImageRef image)Return the number of bits/component of `image'. API-Since: 2.0
-
CGImageGetBitsPerPixel
public static long CGImageGetBitsPerPixel(@Nullable @Nullable CGImageRef image)Return the number of bits/pixel of `image'. API-Since: 2.0
-
CGImageGetBytesPerRow
public static long CGImageGetBytesPerRow(@Nullable @Nullable CGImageRef image)Return the number of bytes/row of `image'. API-Since: 2.0
-
CGImageGetColorSpace
@Nullable public static @Nullable CGColorSpaceRef CGImageGetColorSpace(@Nullable @Nullable CGImageRef image)
Return the color space of `image', or NULL if `image' is an image mask. API-Since: 2.0
-
CGImageGetAlphaInfo
public static int CGImageGetAlphaInfo(@Nullable @Nullable CGImageRef image)Return the alpha info of `image'. API-Since: 2.0
-
CGImageGetDataProvider
@Nullable public static @Nullable CGDataProviderRef CGImageGetDataProvider(@Nullable @Nullable CGImageRef image)
Return the data provider of `image'. API-Since: 2.0
-
CGImageGetDecode
@Nullable public static @Nullable org.moe.natj.general.ptr.ConstNFloatPtr CGImageGetDecode(@Nullable @Nullable CGImageRef image)Return the decode array of `image'. API-Since: 2.0
-
CGImageGetShouldInterpolate
public static boolean CGImageGetShouldInterpolate(@Nullable @Nullable CGImageRef image)Return the interpolation parameter of `image'. API-Since: 2.0
-
CGImageGetRenderingIntent
public static int CGImageGetRenderingIntent(@Nullable @Nullable CGImageRef image)Return the rendering intent of `image'. API-Since: 2.0
-
CGImageGetBitmapInfo
public static int CGImageGetBitmapInfo(@Nullable @Nullable CGImageRef image)Return the bitmap info of `image'. API-Since: 2.0
-
CGImageGetUTType
@Nullable public static @Nullable CFStringRef CGImageGetUTType(@Nullable @Nullable CGImageRef image)
Return the UTType of `image'. API-Since: 9.0
-
CGPathGetTypeID
public static long CGPathGetTypeID()
Return the CFTypeID for CGPathRefs. API-Since: 2.0
-
CGPathCreateMutable
@NotNull public static @NotNull CGMutablePathRef CGPathCreateMutable()
Create a mutable path. API-Since: 2.0
-
CGPathCreateCopy
@Nullable public static @Nullable CGPathRef CGPathCreateCopy(@Nullable @Nullable CGPathRef path)
Create a copy of `path'. API-Since: 2.0
-
CGPathCreateCopyByTransformingPath
@Nullable public static @Nullable CGPathRef CGPathCreateCopyByTransformingPath(@Nullable @Nullable CGPathRef path, @Nullable @Nullable CGAffineTransform transform)
Create a copy of `path' transformed by `transform'. API-Since: 5.0
-
CGPathCreateMutableCopy
@Nullable public static @Nullable CGMutablePathRef CGPathCreateMutableCopy(@Nullable @Nullable CGPathRef path)
Create a mutable copy of `path'. API-Since: 2.0
-
CGPathCreateMutableCopyByTransformingPath
@Nullable public static @Nullable CGMutablePathRef CGPathCreateMutableCopyByTransformingPath(@Nullable @Nullable CGPathRef path, @Nullable @Nullable CGAffineTransform transform)
Create a mutable copy of `path' transformed by `transform'. API-Since: 5.0
-
CGPathCreateWithRect
@NotNull public static @NotNull CGPathRef CGPathCreateWithRect(CGRect rect, @Nullable @Nullable CGAffineTransform transform)
Return a path representing a rectangle bounded by `rect'. The rectangle forms a complete subpath of the path --- that is, it begins with a "move to" and ends with a "close subpath" --- oriented in the clockwise direction. If `transform' is non-NULL, then the lines representing the rectangle will be transformed by `transform' before they are added to the path. API-Since: 4.0
-
CGPathCreateWithEllipseInRect
@NotNull public static @NotNull CGPathRef CGPathCreateWithEllipseInRect(CGRect rect, @Nullable @Nullable CGAffineTransform transform)
Return a path representing an ellipse bounded by `rect'. The ellipse is approximated by a sequence of Bézier curves. The center of the ellipse is the midpoint of `rect'. If `rect' is square, then the ellipse will be circular with radius equal to one-half the width (equivalently, one-half the height) of `rect'. If `rect' is rectangular, then the major- and minor-axes will be the `width' and `height' of rect. The ellipse forms a complete subpath of the path --- that is, it begins with a "move to" and ends with a "close subpath" --- oriented in the clockwise direction. If `transform' is non-NULL, then the constructed Bézier curves representing the ellipse will be transformed by `transform' before they are added to the path. API-Since: 5.0
-
CGPathCreateWithRoundedRect
@NotNull public static @NotNull CGPathRef CGPathCreateWithRoundedRect(CGRect rect, double cornerWidth, double cornerHeight, @Nullable @Nullable CGAffineTransform transform)
Return a path representing a rounded rectangle. The rounded rectangle coincides with the edges of `rect'. Each corner is consists of one-quarter of an ellipse with axes equal to `cornerWidth' and `cornerHeight'. The rounded rectangle forms a complete subpath of the path --- that is, it begins with a "move to" and ends with a "close subpath" --- oriented in the clockwise direction. If `transform' is non-NULL, then the path elements representing the rounded rectangle will be transformed by `transform' before they are added to the path. API-Since: 7.0
-
CGPathAddRoundedRect
public static void CGPathAddRoundedRect(@Nullable @Nullable CGMutablePathRef path, @Nullable @Nullable CGAffineTransform transform, CGRect rect, double cornerWidth, double cornerHeight)Add a rounded rectangle to `path'. The rounded rectangle coincides with the edges of `rect'. Each corner is consists of one-quarter of an ellipse with axes equal to `cornerWidth' and `cornerHeight'. The rounded rectangle forms a complete subpath of the path --- that is, it begins with a "move to" and ends with a "close subpath" --- oriented in the clockwise direction. If `transform' is non-NULL, then the path elements representing the rounded rectangle will be transformed by `transform' before they are added to the path. API-Since: 7.0
-
CGPathCreateCopyByDashingPath
@Nullable public static @Nullable CGPathRef CGPathCreateCopyByDashingPath(@Nullable @Nullable CGPathRef path, @Nullable @Nullable CGAffineTransform transform, double phase, @Nullable @Nullable org.moe.natj.general.ptr.ConstNFloatPtr lengths, long count)
Create a dashed path from `path'. The parameters `phase', `lengths', and `count' have the same meaning as the corresponding parameters for `CGContextSetLineDash'. If `transform' is non-NULL, then the elements of the constructed path will be transformed by `transform' before they are added to the path. API-Since: 5.0
-
CGPathCreateCopyByStrokingPath
@Nullable public static @Nullable CGPathRef CGPathCreateCopyByStrokingPath(@Nullable @Nullable CGPathRef path, @Nullable @Nullable CGAffineTransform transform, double lineWidth, int lineCap, int lineJoin, double miterLimit)
Create a stroked path from `path'. The parameters `lineWidth', `lineCap', `lineJoin', and `miterLimit' have the same meaning as the corresponding CGContext parameters. If `transform' is non-NULL, then the elements of the constructed path will be transformed by `transform' before they are added to the path. API-Since: 5.0
-
CGPathRetain
@Nullable public static @Nullable CGPathRef CGPathRetain(@Nullable @Nullable CGPathRef path)
Equivalent to `CFRetain(path)', except it doesn't crash (as CFRetain does) if `path' is NULL. API-Since: 2.0
-
CGPathRelease
public static void CGPathRelease(@Nullable @Nullable CGPathRef path)Equivalent to `CFRelease(path)', except it doesn't crash (as CFRelease does) if `path' is NULL. API-Since: 2.0
-
CGPathEqualToPath
public static boolean CGPathEqualToPath(@Nullable @Nullable CGPathRef path1, @Nullable @Nullable CGPathRef path2)Return true if `path1' is equal to `path2'; false otherwise. API-Since: 2.0
-
CGPathMoveToPoint
public static void CGPathMoveToPoint(@Nullable @Nullable CGMutablePathRef path, @Nullable @Nullable CGAffineTransform m, double x, double y)Move the current point to `(x, y)' in `path' and begin a new subpath. If `m' is non-NULL, then transform `(x, y)' by `m' first. API-Since: 2.0
-
CGPathAddLineToPoint
public static void CGPathAddLineToPoint(@Nullable @Nullable CGMutablePathRef path, @Nullable @Nullable CGAffineTransform m, double x, double y)Append a straight line segment from the current point to `(x, y)' in `path' and move the current point to `(x, y)'. If `m' is non-NULL, then transform `(x, y)' by `m' first. API-Since: 2.0
-
CGPathAddQuadCurveToPoint
public static void CGPathAddQuadCurveToPoint(@Nullable @Nullable CGMutablePathRef path, @Nullable @Nullable CGAffineTransform m, double cpx, double cpy, double x, double y)Append a quadratic curve from the current point to `(x, y)' with control point `(cpx, cpy)' in `path' and move the current point to `(x, y)'. If `m' is non-NULL, then transform all points by `m' first. API-Since: 2.0
-
CGPathAddCurveToPoint
public static void CGPathAddCurveToPoint(@Nullable @Nullable CGMutablePathRef path, @Nullable @Nullable CGAffineTransform m, double cp1x, double cp1y, double cp2x, double cp2y, double x, double y)Append a cubic Bézier curve from the current point to `(x,y)' with control points `(cp1x, cp1y)' and `(cp2x, cp2y)' in `path' and move the current point to `(x, y)'. If `m' is non-NULL, then transform all points by `m' first. API-Since: 2.0
-
CGPathCloseSubpath
public static void CGPathCloseSubpath(@Nullable @Nullable CGMutablePathRef path)Append a line from the current point to the starting point of the current subpath of `path' and end the subpath. API-Since: 2.0
-
CGPathAddRect
public static void CGPathAddRect(@Nullable @Nullable CGMutablePathRef path, @Nullable @Nullable CGAffineTransform m, CGRect rect)Add `rect' to `path'. If `m' is non-NULL, then first transform `rect' by `m' before adding it to `path'. API-Since: 2.0
-
CGPathAddRects
public static void CGPathAddRects(@Nullable @Nullable CGMutablePathRef path, @Nullable @Nullable CGAffineTransform m, @Nullable @Nullable CGRect rects, long count)Add each rectangle specified by `rects', an array of `count' CGRects, to `path'. If `m' is non-NULL, then first transform each rectangle by `m' before adding it to `path'. API-Since: 2.0
-
CGPathAddLines
public static void CGPathAddLines(@Nullable @Nullable CGMutablePathRef path, @Nullable @Nullable CGAffineTransform m, @Nullable @Nullable CGPoint points, long count)Move to the first element of `points', an array of `count' CGPoints, and append a line from each point to the next point in `points'. If `m' is non-NULL, then first transform each point by `m'. API-Since: 2.0
-
CGPathAddEllipseInRect
public static void CGPathAddEllipseInRect(@Nullable @Nullable CGMutablePathRef path, @Nullable @Nullable CGAffineTransform m, CGRect rect)Add an ellipse (an oval) inside `rect' to `path'. The ellipse is approximated by a sequence of Bézier curves. The center of the ellipse is the midpoint of `rect'. If `rect' is square, then the ellipse will be circular with radius equal to one-half the width (equivalently, one-half the height) of `rect'. If `rect' is rectangular, then the major- and minor-axes will be the `width' and `height' of rect. The ellipse forms a complete subpath of `path' --- that is, it begins with a "move to" and ends with a "close subpath" --- oriented in the clockwise direction. If `m' is non-NULL, then the constructed Bézier curves representing the ellipse will be transformed by `m' before they are added to `path'. API-Since: 2.0
-
CGPathAddRelativeArc
public static void CGPathAddRelativeArc(@Nullable @Nullable CGMutablePathRef path, @Nullable @Nullable CGAffineTransform matrix, double x, double y, double radius, double startAngle, double delta)Add an arc of a circle to `path', possibly preceded by a straight line segment. The arc is approximated by a sequence of Bézier curves. The center of the arc is `(x,y)'; `radius' is its radius. `startAngle' is the angle to the first endpoint of the arc, measured counter-clockwise from the positive x-axis. `startAngle + delta' is the angle to the second endpoint of the arc. If `delta' is positive, then the arc is drawn counter-clockwise; if negative, clockwise. `startAngle' and `delta' are measured in radians. If `matrix' is non-NULL, then the constructed Bézier curves representing the arc will be transformed by `matrix' before they are added to the path. API-Since: 5.0
-
CGPathAddArc
public static void CGPathAddArc(@Nullable @Nullable CGMutablePathRef path, @Nullable @Nullable CGAffineTransform m, double x, double y, double radius, double startAngle, double endAngle, boolean clockwise)Add an arc of a circle to `path', possibly preceded by a straight line segment. The arc is approximated by a sequence of Bézier curves. `(x, y)' is the center of the arc; `radius' is its radius; `startAngle' is the angle to the first endpoint of the arc; `endAngle' is the angle to the second endpoint of the arc; and `clockwise' is true if the arc is to be drawn clockwise, false otherwise. `startAngle' and `endAngle' are measured in radians. If `m' is non-NULL, then the constructed Bézier curves representing the arc will be transformed by `m' before they are added to `path'. Note that using values very near 2π can be problematic. For example, setting `startAngle' to 0, `endAngle' to 2π, and `clockwise' to true will draw nothing. (It's easy to see this by considering, instead of 0 and 2π, the values ε and 2π - ε, where ε is very small.) Due to round-off error, however, it's possible that passing the value `2 * M_PI' to approximate 2π will numerically equal to 2π + δ, for some small δ; this will cause a full circle to be drawn. If you want a full circle to be drawn clockwise, you should set `startAngle' to 2π, `endAngle' to 0, and `clockwise' to true. This avoids the instability problems discussed above. API-Since: 2.0
-
CGPathAddArcToPoint
public static void CGPathAddArcToPoint(@Nullable @Nullable CGMutablePathRef path, @Nullable @Nullable CGAffineTransform m, double x1, double y1, double x2, double y2, double radius)Add an arc of a circle to `path', possibly preceded by a straight line segment. The arc is approximated by a sequence of Bézier curves. `radius' is the radius of the arc. The resulting arc is tangent to the line from the current point of `path' to `(x1, y1)', and the line from `(x1, y1)' to `(x2, y2)'. If `m' is non-NULL, then the constructed Bézier curves representing the arc will be transformed by `m' before they are added to `path'. API-Since: 2.0
-
CGPathAddPath
public static void CGPathAddPath(@Nullable @Nullable CGMutablePathRef path1, @Nullable @Nullable CGAffineTransform m, @Nullable @Nullable CGPathRef path2)Add `path2' to `path1'. If `m' is non-NULL, then the points in `path2' will be transformed by `m' before they are added to `path1'. API-Since: 2.0
-
CGPathIsEmpty
public static boolean CGPathIsEmpty(@Nullable @Nullable CGPathRef path)Return true if `path' contains no elements, false otherwise. API-Since: 2.0
-
CGPathIsRect
public static boolean CGPathIsRect(@Nullable @Nullable CGPathRef path, @Nullable @Nullable CGRect rect)Return true if `path' represents a rectangle, false otherwise. API-Since: 2.0
-
CGPathGetCurrentPoint
public static CGPoint CGPathGetCurrentPoint(@Nullable @Nullable CGPathRef path)
Return the current point of the current subpath of `path'. If there is no current point, then return CGPointZero. API-Since: 2.0
-
CGPathGetBoundingBox
public static CGRect CGPathGetBoundingBox(@Nullable @Nullable CGPathRef path)
Return the bounding box of `path'. The bounding box is the smallest rectangle completely enclosing all points in the path, including control points for Bézier cubic and quadratic curves. If the path is empty, then return `CGRectNull'. API-Since: 2.0
-
CGPathGetPathBoundingBox
public static CGRect CGPathGetPathBoundingBox(@Nullable @Nullable CGPathRef path)
Return the path bounding box of `path'. The path bounding box is the smallest rectangle completely enclosing all points in the path, *not* including control points for Bézier cubic and quadratic curves. If the path is empty, then return `CGRectNull'. API-Since: 4.0
-
CGPathContainsPoint
public static boolean CGPathContainsPoint(@Nullable @Nullable CGPathRef path, @Nullable @Nullable CGAffineTransform m, CGPoint point, boolean eoFill)Return true if `point' is contained in `path'; false otherwise. A point is contained in a path if it is inside the painted region when the path is filled; if `eoFill' is true, then the even-odd fill rule is used to evaluate the painted region of the path, otherwise, the winding-number fill rule is used. If `m' is non-NULL, then the point is transformed by `m' before determining whether the path contains it. API-Since: 2.0
-
CGPathApply
public static void CGPathApply(@Nullable @Nullable CGPathRef path, @Nullable @Nullable org.moe.natj.general.ptr.VoidPtr info, @Nullable @Nullable CoreGraphics.Function_CGPathApply function)For element of `path', call `function', passing it the path element and `info'. API-Since: 2.0
-
CGPDFObjectGetType
public static int CGPDFObjectGetType(@Nullable @Nullable CGPDFObjectRef object)Return the type of `object'. API-Since: 2.0
-
CGPDFObjectGetValue
public static boolean CGPDFObjectGetValue(@Nullable @Nullable CGPDFObjectRef object, int type, @Nullable @Nullable org.moe.natj.general.ptr.VoidPtr value)Get the value of `object'. If the type of `object' is equal to `type', then copy the value of `object' to `value' (if it's non-NULL) and return true. Otherwise, if the type of `object' is `kCGPDFObjectTypeInteger' and `type' is equal to `kCGPDFObjectTypeReal', then convert the value of `object' to floating point and copy the result to `value' (if it's non-NULL) and return true. Otherwise, return false. API-Since: 2.0
-
CGPDFStreamGetDictionary
@Nullable public static @Nullable CGPDFDictionaryRef CGPDFStreamGetDictionary(@Nullable @Nullable CGPDFStreamRef stream)
Return the dictionary of `stream'. API-Since: 2.0
-
CGPDFStreamCopyData
@Nullable public static @Nullable CFDataRef CGPDFStreamCopyData(@Nullable @Nullable CGPDFStreamRef stream, @Nullable @Nullable org.moe.natj.general.ptr.IntPtr format)
Return the data of `stream'. API-Since: 2.0
-
CGPDFStringGetLength
public static long CGPDFStringGetLength(@Nullable @Nullable CGPDFStringRef string)Return the length of `string'. API-Since: 2.0
-
CGPDFStringGetBytePtr
@Nullable public static @Nullable java.lang.String CGPDFStringGetBytePtr(@Nullable @Nullable CGPDFStringRef string)Return a pointer to the bytes of `string'. API-Since: 2.0
-
CGPDFStringCopyTextString
@Nullable public static @Nullable CFStringRef CGPDFStringCopyTextString(@Nullable @Nullable CGPDFStringRef string)
Return a CFString representing `string' as a "text string". See Section 3.8.1 "Text Strings", PDF Reference: Adobe PDF version 1.6 (5th ed.) for more information. API-Since: 2.0
-
CGPDFStringCopyDate
@Nullable public static @Nullable CFDateRef CGPDFStringCopyDate(@Nullable @Nullable CGPDFStringRef string)
Convert `string' to a CFDate. See Section 3.8.3 "Dates", PDF Reference: Adobe PDF version 1.6 (5th ed.) for more information. API-Since: 2.0
-
CGPDFArrayGetCount
public static long CGPDFArrayGetCount(@Nullable @Nullable CGPDFArrayRef array)API-Since: 2.0
-
CGPDFArrayGetObject
public static boolean CGPDFArrayGetObject(@Nullable @Nullable CGPDFArrayRef array, long index, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<CGPDFObjectRef> value)Look up the object at `index' in `array' and return the result in `value'. Return true on success; false otherwise. API-Since: 2.0
-
CGPDFArrayGetNull
public static boolean CGPDFArrayGetNull(@Nullable @Nullable CGPDFArrayRef array, long index)Look up the object at `index' in `array' and, if it's a null, return true; otherwise, return false. API-Since: 2.0
-
CGPDFArrayGetBoolean
public static boolean CGPDFArrayGetBoolean(@Nullable @Nullable CGPDFArrayRef array, long index, @Nullable @Nullable org.moe.natj.general.ptr.BytePtr value)Look up the object at `index' in `array' and, if it's a boolean, return the result in `value'. Return true on success; false otherwise. API-Since: 2.0
-
CGPDFArrayGetInteger
public static boolean CGPDFArrayGetInteger(@Nullable @Nullable CGPDFArrayRef array, long index, @Nullable @Nullable org.moe.natj.general.ptr.NIntPtr value)Look up the object at `index' in `array' and, if it's an integer, return the result in `value'. Return true on success; false otherwise. API-Since: 2.0
-
CGPDFArrayGetNumber
public static boolean CGPDFArrayGetNumber(@Nullable @Nullable CGPDFArrayRef array, long index, @Nullable @Nullable org.moe.natj.general.ptr.NFloatPtr value)Look up the object at `index' in `array' and, if it's a number (real or integer), return the result in `value'. Return true on success; false otherwise. API-Since: 2.0
-
CGPDFArrayGetName
public static boolean CGPDFArrayGetName(@Nullable @Nullable CGPDFArrayRef array, long index, @Nullable @Nullable java.lang.String[] value)Look up the object at `index' in `array' and, if it's a name, return the result in `value'. Return true on success; false otherwise. API-Since: 2.0
-
CGPDFArrayGetString
public static boolean CGPDFArrayGetString(@Nullable @Nullable CGPDFArrayRef array, long index, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<CGPDFStringRef> value)Look up the object at `index' in `array' and, if it's a string, return the result in `value'. Return true on success; false otherwise. API-Since: 2.0
-
CGPDFArrayGetArray
public static boolean CGPDFArrayGetArray(@Nullable @Nullable CGPDFArrayRef array, long index, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<CGPDFArrayRef> value)Look up the object at `index' in `array' and, if it's an array, return it in `value'. Return true on success; false otherwise. API-Since: 2.0
-
CGPDFArrayGetDictionary
public static boolean CGPDFArrayGetDictionary(@Nullable @Nullable CGPDFArrayRef array, long index, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<CGPDFDictionaryRef> value)Look up the object at `index' in `array' and, if it's a dictionary, return it in `value'. Return true on success; false otherwise. API-Since: 2.0
-
CGPDFArrayGetStream
public static boolean CGPDFArrayGetStream(@Nullable @Nullable CGPDFArrayRef array, long index, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<CGPDFStreamRef> value)Look up the object at `index' in `array' and, if it's a stream, return it in `value'. Return true on success; false otherwise. API-Since: 2.0
-
CGPDFDictionaryGetCount
public static long CGPDFDictionaryGetCount(@Nullable @Nullable CGPDFDictionaryRef dict)Return the number of entries in `dictionary'. API-Since: 2.0
-
CGPDFDictionaryGetObject
public static boolean CGPDFDictionaryGetObject(@Nullable @Nullable CGPDFDictionaryRef dict, @NotNull @NotNull java.lang.String key, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<CGPDFObjectRef> value)Look up the object associated with `key' in `dict' and return the result in `value'. Return true on success; false otherwise. API-Since: 2.0
-
CGPDFDictionaryGetBoolean
public static boolean CGPDFDictionaryGetBoolean(@Nullable @Nullable CGPDFDictionaryRef dict, @NotNull @NotNull java.lang.String key, @Nullable @Nullable org.moe.natj.general.ptr.BytePtr value)Look up the object associated with `key' in `dict' and, if it's a boolean, return the result in `value'. Return true on success; false otherwise. API-Since: 2.0
-
CGPDFDictionaryGetInteger
public static boolean CGPDFDictionaryGetInteger(@Nullable @Nullable CGPDFDictionaryRef dict, @NotNull @NotNull java.lang.String key, @Nullable @Nullable org.moe.natj.general.ptr.NIntPtr value)Look up the object associated with `key' in `dict' and, if it's an integer, return the result in `value'. Return true on success; false otherwise. API-Since: 2.0
-
CGPDFDictionaryGetNumber
public static boolean CGPDFDictionaryGetNumber(@Nullable @Nullable CGPDFDictionaryRef dict, @NotNull @NotNull java.lang.String key, @Nullable @Nullable org.moe.natj.general.ptr.NFloatPtr value)Look up the object associated with `key' in `dict' and, if it's a number (real or integer), return the result in `value'. Return true on success; false otherwise. API-Since: 2.0
-
CGPDFDictionaryGetName
public static boolean CGPDFDictionaryGetName(@Nullable @Nullable CGPDFDictionaryRef dict, @NotNull @NotNull java.lang.String key, @Nullable @Nullable java.lang.String[] value)Look up the object associated with `key' in `dict' and, if it's a name, return the result in `value'. Return true on success; false otherwise. API-Since: 2.0
-
CGPDFDictionaryGetString
public static boolean CGPDFDictionaryGetString(@Nullable @Nullable CGPDFDictionaryRef dict, @NotNull @NotNull java.lang.String key, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<CGPDFStringRef> value)Look up the object associated with `key' in `dict' and, if it's a string, return the result in `value'. Return true on success; false otherwise. API-Since: 2.0
-
CGPDFDictionaryGetArray
public static boolean CGPDFDictionaryGetArray(@Nullable @Nullable CGPDFDictionaryRef dict, @NotNull @NotNull java.lang.String key, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<CGPDFArrayRef> value)Look up the object associated with `key' in `dict' and, if it's an array, return the result in `value'. Return true on success; false otherwise. API-Since: 2.0
-
CGPDFDictionaryGetDictionary
public static boolean CGPDFDictionaryGetDictionary(@Nullable @Nullable CGPDFDictionaryRef dict, @NotNull @NotNull java.lang.String key, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<CGPDFDictionaryRef> value)Look up the object associated with `key' in `dict' and, if it's a dictionary, return the result in `value'. Return true on success; false otherwise. API-Since: 2.0
-
CGPDFDictionaryGetStream
public static boolean CGPDFDictionaryGetStream(@Nullable @Nullable CGPDFDictionaryRef dict, @NotNull @NotNull java.lang.String key, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<CGPDFStreamRef> value)Look up the object associated with `key' in `dict' and, if it's a stream, return the result in `value'. Return true on success; false otherwise. API-Since: 2.0
-
CGPDFDictionaryApplyFunction
public static void CGPDFDictionaryApplyFunction(@Nullable @Nullable CGPDFDictionaryRef dict, @Nullable @Nullable CoreGraphics.Function_CGPDFDictionaryApplyFunction function, @Nullable @Nullable org.moe.natj.general.ptr.VoidPtr info)Enumerate all of the keys in `dict', calling `function' once for each key/value pair. Passes the current key, the associated value, and `info' to `function'. API-Since: 2.0
-
CGPDFPageRetain
@Nullable public static @Nullable CGPDFPageRef CGPDFPageRetain(@Nullable @Nullable CGPDFPageRef page)
Equivalent to `CFRetain(page)', except it doesn't crash (as CFRetain does) if `page' is NULL. API-Since: 2.0
-
CGPDFPageRelease
public static void CGPDFPageRelease(@Nullable @Nullable CGPDFPageRef page)Equivalent to `CFRelease(page)', except it doesn't crash (as CFRelease does) if `page' is NULL. API-Since: 2.0
-
CGPDFPageGetDocument
@Nullable public static @Nullable CGPDFDocumentRef CGPDFPageGetDocument(@Nullable @Nullable CGPDFPageRef page)
Return the document of `page'. API-Since: 2.0
-
CGPDFPageGetPageNumber
public static long CGPDFPageGetPageNumber(@Nullable @Nullable CGPDFPageRef page)Return the page number of `page'. API-Since: 2.0
-
CGPDFPageGetBoxRect
public static CGRect CGPDFPageGetBoxRect(@Nullable @Nullable CGPDFPageRef page, int box)
Return the rectangle associated with `box' in `page'. This is the value of the corresponding entry (such as /MediaBox, /ArtBox, and so on) in the page's dictionary. Return CGRectNull if `page' is not a valid CGPDFPageRef or `box' is not a valid CGPDFBox. API-Since: 2.0
-
CGPDFPageGetRotationAngle
public static int CGPDFPageGetRotationAngle(@Nullable @Nullable CGPDFPageRef page)Return the rotation angle (in degrees) of `page'. This is the value of the /Rotate entry in the page's dictionary. Return 0 if `page' is not a valid CGPDFPageRef. API-Since: 2.0
-
CGPDFPageGetDrawingTransform
public static CGAffineTransform CGPDFPageGetDrawingTransform(@Nullable @Nullable CGPDFPageRef page, int box, CGRect rect, int rotate, boolean preserveAspectRatio)
Return a transform mapping the box specified by `box' to `rect' as follows: - Compute the effective rect by intersecting the rect associated with `box' and the /MediaBox entry of the page. - Rotate the effective rect according to the page's /Rotate entry. - Center the resulting rect on `rect'. If `rotation' is non-zero, then the rect will rotated clockwise by `rotation' degrees. `rotation' must be a multiple of 90. - Scale the rect down, if necessary, so that it coincides with the edges of `rect'. If `preserveAspectRatio' is true, then the final rect will coincide with the edges of `rect' only in the more restrictive dimension. API-Since: 2.0
-
CGPDFPageGetDictionary
@Nullable public static @Nullable CGPDFDictionaryRef CGPDFPageGetDictionary(@Nullable @Nullable CGPDFPageRef page)
Return the dictionary of `page'. API-Since: 2.0
-
CGPDFPageGetTypeID
public static long CGPDFPageGetTypeID()
Return the CFTypeID for CGPDFPageRefs. API-Since: 2.0
-
CGPDFDocumentCreateWithProvider
@Nullable public static @Nullable CGPDFDocumentRef CGPDFDocumentCreateWithProvider(@Nullable @Nullable CGDataProviderRef provider)
Create a PDF document, using `provider' to obtain the document's data. API-Since: 2.0
-
CGPDFDocumentCreateWithURL
@Nullable public static @Nullable CGPDFDocumentRef CGPDFDocumentCreateWithURL(@Nullable @Nullable CFURLRef url)
Create a PDF document from `url'. API-Since: 2.0
-
CGPDFDocumentRetain
@Nullable public static @Nullable CGPDFDocumentRef CGPDFDocumentRetain(@Nullable @Nullable CGPDFDocumentRef document)
Equivalent to `CFRetain(document)', except it doesn't crash (as CFRetain does) if `document' is NULL. API-Since: 2.0
-
CGPDFDocumentRelease
public static void CGPDFDocumentRelease(@Nullable @Nullable CGPDFDocumentRef document)Equivalent to `CFRelease(document)', except it doesn't crash (as CFRelease does) if `document' is NULL. API-Since: 2.0
-
CGPDFDocumentGetVersion
public static void CGPDFDocumentGetVersion(@Nullable @Nullable CGPDFDocumentRef document, @NotNull @NotNull org.moe.natj.general.ptr.IntPtr majorVersion, @NotNull @NotNull org.moe.natj.general.ptr.IntPtr minorVersion)Return the major and minor version numbers of `document'. API-Since: 2.0
-
CGPDFDocumentIsEncrypted
public static boolean CGPDFDocumentIsEncrypted(@Nullable @Nullable CGPDFDocumentRef document)Return true if the PDF file associated with `document' is encrypted; false otherwise. If the PDF file is encrypted, then a password must be supplied before certain operations are enabled; different passwords may enable different operations. API-Since: 2.0
-
CGPDFDocumentUnlockWithPassword
public static boolean CGPDFDocumentUnlockWithPassword(@Nullable @Nullable CGPDFDocumentRef document, @NotNull @NotNull java.lang.String password)Use `password' to decrypt `document' and grant permission for certain operations. Returns true if `password' is a valid password; false otherwise. API-Since: 2.0
-
CGPDFDocumentIsUnlocked
public static boolean CGPDFDocumentIsUnlocked(@Nullable @Nullable CGPDFDocumentRef document)Return true if `document' is unlocked; false otherwise. A document is unlocked if it isn't encrypted, or if it is encrypted and a valid password was specified with `CGPDFDocumentUnlockWithPassword'. API-Since: 2.0
-
CGPDFDocumentAllowsPrinting
public static boolean CGPDFDocumentAllowsPrinting(@Nullable @Nullable CGPDFDocumentRef document)Return true if `document' allows printing; false otherwise. Typically, this function returns false only if the document is encrypted and the document's current password doesn't grant permission to perform printing. API-Since: 2.0
-
CGPDFDocumentAllowsCopying
public static boolean CGPDFDocumentAllowsCopying(@Nullable @Nullable CGPDFDocumentRef document)Return true if `document' allows copying; false otherwise. Typically, this function returns false only if the document is encrypted and the document's current password doesn't grant permission to perform copying. API-Since: 2.0
-
CGPDFDocumentGetNumberOfPages
public static long CGPDFDocumentGetNumberOfPages(@Nullable @Nullable CGPDFDocumentRef document)Return the number of pages in `document'. API-Since: 2.0
-
CGPDFDocumentGetPage
@Nullable public static @Nullable CGPDFPageRef CGPDFDocumentGetPage(@Nullable @Nullable CGPDFDocumentRef document, long pageNumber)
Return the page corresponding to `pageNumber', or NULL if no such page exists in the document. Pages are numbered starting at 1. API-Since: 2.0
-
CGPDFDocumentGetCatalog
@Nullable public static @Nullable CGPDFDictionaryRef CGPDFDocumentGetCatalog(@Nullable @Nullable CGPDFDocumentRef document)
Return the document catalog of `document'. API-Since: 2.0
-
CGPDFDocumentGetInfo
@Nullable public static @Nullable CGPDFDictionaryRef CGPDFDocumentGetInfo(@Nullable @Nullable CGPDFDocumentRef document)
Return the info dictionary of `document'. API-Since: 2.0
-
CGPDFDocumentGetID
@Nullable public static @Nullable CGPDFArrayRef CGPDFDocumentGetID(@Nullable @Nullable CGPDFDocumentRef document)
Return the "file identifier" array of `document'. API-Since: 2.0
-
CGPDFDocumentGetTypeID
public static long CGPDFDocumentGetTypeID()
Return the CFTypeID for CGPDFDocumentRefs. API-Since: 2.0
-
CGFunctionGetTypeID
public static long CGFunctionGetTypeID()
Return the CFTypeID for CGFunctionRefs. API-Since: 2.0
-
CGFunctionCreate
@Nullable public static @Nullable CGFunctionRef CGFunctionCreate(@Nullable @Nullable org.moe.natj.general.ptr.VoidPtr info, long domainDimension, @Nullable @Nullable org.moe.natj.general.ptr.ConstNFloatPtr domain, long rangeDimension, @Nullable @Nullable org.moe.natj.general.ptr.ConstNFloatPtr range, @Nullable @Nullable CGFunctionCallbacks callbacks)
Create a CGFunction using `callbacks' to evaluate the function. `info' is passed to each of the callback functions. `domainDimension' is the number of input values to the function; `rangeDimension' is the number of output values from the function. `domain' is an array of 2M values, where M is the number of input values. For each k from 0 to M-1, domain[2*k] must be less than or equal to domain[2*k+1]. The k'th input value (in[k]) will be clipped to lie in this interval, so that domain[2*k] <= in[k] <= domain[2*k+1]. If `domain' is NULL, then the input values will not be clipped. However, it's strongly recommended that `domain' be specified; each domain interval should specify reasonable values for the minimum and maximum in that dimension. `range' is an array of 2N values, where N is the number of output values. For each k from 0 to N-1, range[2*k] must be less than or equal to range[2*k+1]. The k'th output value (out[k]) will be clipped to lie in this interval, so that range[2*k] <= out[k] <= range[2*k+1]. If `range' is NULL, then the output values will not be clipped. However, it's strongly recommended that `range' be specified; each range interval should specify reasonable values for the minimum and maximum in that dimension. The contents of the callbacks structure is copied, so, for example, a pointer to a structure on the stack can be passed to this function. API-Since: 2.0
-
CGFunctionRetain
@Nullable public static @Nullable CGFunctionRef CGFunctionRetain(@Nullable @Nullable CGFunctionRef function)
Equivalent to `CFRetain(function)', except it doesn't crash (as CFRetain does) if `function' is NULL. API-Since: 2.0
-
CGFunctionRelease
public static void CGFunctionRelease(@Nullable @Nullable CGFunctionRef function)Equivalent to `CFRelease(function)', except it doesn't crash (as CFRelease does) if `function' is NULL. API-Since: 2.0
-
CGShadingGetTypeID
public static long CGShadingGetTypeID()
Return the CFTypeID for CGShadingRefs. API-Since: 2.0
-
CGShadingCreateAxial
@Nullable public static @Nullable CGShadingRef CGShadingCreateAxial(@Nullable @Nullable CGColorSpaceRef space, CGPoint start, CGPoint end, @Nullable @Nullable CGFunctionRef function, boolean extendStart, boolean extendEnd)
Create a shading defining a color blend which varies along a linear axis between two endpoints and extends indefinitely perpendicular to that axis. The shading may optionally extend beyond either endpoint by continuing the boundary colors indefinitely. The color values are specified in the color space `space'. The starting point of the axis is `start' and the ending point of the axis is `end', both specified in the shading's target coordinate space. The shading function, specified by `function', is a 1-in, N-out function, where N is one more (for alpha) than the number of color components in the shading's color space. The input value 0 corresponds to the color at the starting point of the shading; the input value 1 corresponds to the color at the ending point of the shading. If `extendStart' is true, then the shading will extend beyond the starting point of the axis. If `extendEnd' is true, then the shading will extend beyond the ending point of the axis. API-Since: 2.0
-
CGShadingCreateRadial
@Nullable public static @Nullable CGShadingRef CGShadingCreateRadial(@Nullable @Nullable CGColorSpaceRef space, CGPoint start, double startRadius, CGPoint end, double endRadius, @Nullable @Nullable CGFunctionRef function, boolean extendStart, boolean extendEnd)
Create a shading defining a color blend which varies between two circles. The shading may optionally extend beyond either circle by continuing the boundary colors. The color values are specified in the color space `space'. The starting circle has radius `startRadius' and is centered at `start', specified in the shading's target coordinate space. The ending circle has radius `endRadius' and is centered at `end', specified in the shading's target coordinate space. The shading function, specified by `function', is a 1-in, N-out function, where N is one more (for alpha) than the number of color components in the shading's color space. The input value 0 corresponds to the color of the starting circle; the input value 1 corresponds to the color of the ending circle. If `extendStart' is true, then the shading will extend beyond the starting circle. If `extendEnd' is true, then the shading will extend beyond the ending circle. API-Since: 2.0
-
CGShadingRetain
@Nullable public static @Nullable CGShadingRef CGShadingRetain(@Nullable @Nullable CGShadingRef shading)
Equivalent to `CFRetain(shading)', except it doesn't crash (as CFRetain does) if `shading' is NULL. API-Since: 2.0
-
CGShadingRelease
public static void CGShadingRelease(@Nullable @Nullable CGShadingRef shading)Equivalent to `CFRelease(shading)', except it doesn't crash (as CFRelease does) if `shading' is NULL. API-Since: 2.0
-
CGContextGetTypeID
public static long CGContextGetTypeID()
Return the CFTypeID for CGContextRefs. API-Since: 2.0
-
CGContextSaveGState
public static void CGContextSaveGState(@Nullable @Nullable CGContextRef c)Push a copy of the current graphics state onto the graphics state stack. Note that the path is not considered part of the graphics state, and is not saved. API-Since: 2.0
-
CGContextRestoreGState
public static void CGContextRestoreGState(@Nullable @Nullable CGContextRef c)Restore the current graphics state from the one on the top of the graphics state stack, popping the graphics state stack in the process. API-Since: 2.0
-
CGContextScaleCTM
public static void CGContextScaleCTM(@Nullable @Nullable CGContextRef c, double sx, double sy)Scale the current graphics state's transformation matrix (the CTM) by `(sx, sy)'. API-Since: 2.0
-
CGContextTranslateCTM
public static void CGContextTranslateCTM(@Nullable @Nullable CGContextRef c, double tx, double ty)Translate the current graphics state's transformation matrix (the CTM) by `(tx, ty)'. API-Since: 2.0
-
CGContextRotateCTM
public static void CGContextRotateCTM(@Nullable @Nullable CGContextRef c, double angle)Rotate the current graphics state's transformation matrix (the CTM) by `angle' radians. API-Since: 2.0
-
CGContextConcatCTM
public static void CGContextConcatCTM(@Nullable @Nullable CGContextRef c, CGAffineTransform transform)Concatenate the current graphics state's transformation matrix (the CTM) with the affine transform `transform'. API-Since: 2.0
-
CGContextGetCTM
public static CGAffineTransform CGContextGetCTM(@Nullable @Nullable CGContextRef c)
Return the current graphics state's transformation matrix. Returns CGAffineTransformIdentity in case of inavlid context. API-Since: 2.0
-
CGContextSetLineWidth
public static void CGContextSetLineWidth(@Nullable @Nullable CGContextRef c, double width)Set the line width in the current graphics state to `width'. API-Since: 2.0
-
CGContextSetLineCap
public static void CGContextSetLineCap(@Nullable @Nullable CGContextRef c, int cap)Set the line cap in the current graphics state to `cap'. API-Since: 2.0
-
CGContextSetLineJoin
public static void CGContextSetLineJoin(@Nullable @Nullable CGContextRef c, int join)Set the line join in the current graphics state to `join'. API-Since: 2.0
-
CGContextSetMiterLimit
public static void CGContextSetMiterLimit(@Nullable @Nullable CGContextRef c, double limit)Set the miter limit in the current graphics state to `limit'. API-Since: 2.0
-
CGContextSetLineDash
public static void CGContextSetLineDash(@Nullable @Nullable CGContextRef c, double phase, @Nullable @Nullable org.moe.natj.general.ptr.ConstNFloatPtr lengths, long count)Set the line dash patttern in the current graphics state of `c'. API-Since: 2.0
-
CGContextSetFlatness
public static void CGContextSetFlatness(@Nullable @Nullable CGContextRef c, double flatness)Set the path flatness parameter in the current graphics state of `c' to `flatness'. API-Since: 2.0
-
CGContextSetAlpha
public static void CGContextSetAlpha(@Nullable @Nullable CGContextRef c, double alpha)Set the alpha value in the current graphics state of `c' to `alpha'. API-Since: 2.0
-
CGContextSetBlendMode
public static void CGContextSetBlendMode(@Nullable @Nullable CGContextRef c, int mode)Set the blend mode of `context' to `mode'. API-Since: 2.0
-
CGContextBeginPath
public static void CGContextBeginPath(@Nullable @Nullable CGContextRef c)Begin a new path. The old path is discarded. API-Since: 2.0
-
CGContextMoveToPoint
public static void CGContextMoveToPoint(@Nullable @Nullable CGContextRef c, double x, double y)Start a new subpath at point `(x, y)' in the context's path. API-Since: 2.0
-
CGContextAddLineToPoint
public static void CGContextAddLineToPoint(@Nullable @Nullable CGContextRef c, double x, double y)Append a straight line segment from the current point to `(x, y)'. API-Since: 2.0
-
CGContextAddCurveToPoint
public static void CGContextAddCurveToPoint(@Nullable @Nullable CGContextRef c, double cp1x, double cp1y, double cp2x, double cp2y, double x, double y)Append a cubic Bezier curve from the current point to `(x,y)', with control points `(cp1x, cp1y)' and `(cp2x, cp2y)'. API-Since: 2.0
-
CGContextAddQuadCurveToPoint
public static void CGContextAddQuadCurveToPoint(@Nullable @Nullable CGContextRef c, double cpx, double cpy, double x, double y)Append a quadratic curve from the current point to `(x, y)', with control point `(cpx, cpy)'. API-Since: 2.0
-
CGContextClosePath
public static void CGContextClosePath(@Nullable @Nullable CGContextRef c)Close the current subpath of the context's path. API-Since: 2.0
-
CGContextAddRect
public static void CGContextAddRect(@Nullable @Nullable CGContextRef c, CGRect rect)Add a single rect to the context's path. API-Since: 2.0
-
CGContextAddRects
public static void CGContextAddRects(@Nullable @Nullable CGContextRef c, @Nullable @Nullable CGRect rects, long count)Add a set of rects to the context's path. API-Since: 2.0
-
CGContextAddLines
public static void CGContextAddLines(@Nullable @Nullable CGContextRef c, @Nullable @Nullable CGPoint points, long count)Add a set of lines to the context's path. API-Since: 2.0
-
CGContextAddEllipseInRect
public static void CGContextAddEllipseInRect(@Nullable @Nullable CGContextRef c, CGRect rect)Add an ellipse inside `rect' to the current path of `context'. See the function `CGPathAddEllipseInRect' for more information on how the path for the ellipse is constructed. API-Since: 2.0
-
CGContextAddArc
public static void CGContextAddArc(@Nullable @Nullable CGContextRef c, double x, double y, double radius, double startAngle, double endAngle, int clockwise)Add an arc of a circle to the context's path, possibly preceded by a straight line segment. `(x, y)' is the center of the arc; `radius' is its radius; `startAngle' is the angle to the first endpoint of the arc; `endAngle' is the angle to the second endpoint of the arc; and `clockwise' is 1 if the arc is to be drawn clockwise, 0 otherwise. `startAngle' and `endAngle' are measured in radians. API-Since: 2.0
-
CGContextAddArcToPoint
public static void CGContextAddArcToPoint(@Nullable @Nullable CGContextRef c, double x1, double y1, double x2, double y2, double radius)Add an arc of a circle to the context's path, possibly preceded by a straight line segment. `radius' is the radius of the arc. The arc is tangent to the line from the current point to `(x1, y1)', and the line from `(x1, y1)' to `(x2, y2)'. API-Since: 2.0
-
CGContextAddPath
public static void CGContextAddPath(@Nullable @Nullable CGContextRef c, @Nullable @Nullable CGPathRef path)Add `path' to the path of context. The points in `path' are transformed by the CTM of context before they are added. API-Since: 2.0
-
CGContextReplacePathWithStrokedPath
public static void CGContextReplacePathWithStrokedPath(@Nullable @Nullable CGContextRef c)Replace the path in `context' with the stroked version of the path, using the parameters of `context' to calculate the stroked path. The resulting path is created such that filling it with the appropriate color will produce the same results as stroking the original path. You can use this path in the same way you can use the path of any context; for example, you can clip to the stroked version of a path by calling this function followed by a call to "CGContextClip". API-Since: 2.0
-
CGContextIsPathEmpty
public static boolean CGContextIsPathEmpty(@Nullable @Nullable CGContextRef c)Return true if the path of `context' contains no elements, false otherwise. API-Since: 2.0
-
CGContextGetPathCurrentPoint
public static CGPoint CGContextGetPathCurrentPoint(@Nullable @Nullable CGContextRef c)
Return the current point of the current subpath of the path of `context'. API-Since: 2.0
-
CGContextGetPathBoundingBox
public static CGRect CGContextGetPathBoundingBox(@Nullable @Nullable CGContextRef c)
Return the bounding box of the path of `context'. The bounding box is the smallest rectangle completely enclosing all points in the path, including control points for Bezier and quadratic curves. API-Since: 2.0
-
CGContextCopyPath
@Nullable public static @Nullable CGPathRef CGContextCopyPath(@Nullable @Nullable CGContextRef c)
Return a copy of the path of `context'. The returned path is specified in the current user space of `context'. API-Since: 2.0
-
CGContextPathContainsPoint
public static boolean CGContextPathContainsPoint(@Nullable @Nullable CGContextRef c, CGPoint point, int mode)Return true if `point' is contained in the current path of `context'. A point is contained within a context's path if it is inside the painted region when the path is stroked or filled with opaque colors using the path drawing mode `mode'. `point' is specified is user space. API-Since: 2.0
-
CGContextDrawPath
public static void CGContextDrawPath(@Nullable @Nullable CGContextRef c, int mode)Draw the context's path using drawing mode `mode'. API-Since: 2.0
-
CGContextFillPath
public static void CGContextFillPath(@Nullable @Nullable CGContextRef c)Fill the context's path using the winding-number fill rule. Any open subpath of the path is implicitly closed. API-Since: 2.0
-
CGContextEOFillPath
public static void CGContextEOFillPath(@Nullable @Nullable CGContextRef c)Fill the context's path using the even-odd fill rule. Any open subpath of the path is implicitly closed. API-Since: 2.0
-
CGContextStrokePath
public static void CGContextStrokePath(@Nullable @Nullable CGContextRef c)Stroke the context's path. API-Since: 2.0
-
CGContextFillRect
public static void CGContextFillRect(@Nullable @Nullable CGContextRef c, CGRect rect)Fill `rect' with the current fill color. API-Since: 2.0
-
CGContextFillRects
public static void CGContextFillRects(@Nullable @Nullable CGContextRef c, @Nullable @Nullable CGRect rects, long count)Fill `rects', an array of `count' CGRects, with the current fill color. API-Since: 2.0
-
CGContextStrokeRect
public static void CGContextStrokeRect(@Nullable @Nullable CGContextRef c, CGRect rect)Stroke `rect' with the current stroke color and the current linewidth. API-Since: 2.0
-
CGContextStrokeRectWithWidth
public static void CGContextStrokeRectWithWidth(@Nullable @Nullable CGContextRef c, CGRect rect, double width)Stroke `rect' with the current stroke color, using `width' as the the line width. API-Since: 2.0
-
CGContextClearRect
public static void CGContextClearRect(@Nullable @Nullable CGContextRef c, CGRect rect)Clear `rect' (that is, set the region within the rect to transparent). API-Since: 2.0
-
CGContextFillEllipseInRect
public static void CGContextFillEllipseInRect(@Nullable @Nullable CGContextRef c, CGRect rect)Fill an ellipse (an oval) inside `rect'. API-Since: 2.0
-
CGContextStrokeEllipseInRect
public static void CGContextStrokeEllipseInRect(@Nullable @Nullable CGContextRef c, CGRect rect)Stroke an ellipse (an oval) inside `rect'. API-Since: 2.0
-
CGContextStrokeLineSegments
public static void CGContextStrokeLineSegments(@Nullable @Nullable CGContextRef c, @Nullable @Nullable CGPoint points, long count)Stroke a sequence of line segments one after another in `context'. The line segments are specified by `points', an array of `count' CGPoints. This function is equivalent to CGContextBeginPath(context); for (k = 0; k < count; k += 2) { CGContextMoveToPoint(context, s[k].x, s[k].y); CGContextAddLineToPoint(context, s[k+1].x, s[k+1].y); } CGContextStrokePath(context); API-Since: 2.0
-
CGContextClip
public static void CGContextClip(@Nullable @Nullable CGContextRef c)Intersect the context's path with the current clip path and use the resulting path as the clip path for subsequent rendering operations. Use the winding-number fill rule for deciding what's inside the path. API-Since: 2.0
-
CGContextEOClip
public static void CGContextEOClip(@Nullable @Nullable CGContextRef c)Intersect the context's path with the current clip path and use the resulting path as the clip path for subsequent rendering operations. Use the even-odd fill rule for deciding what's inside the path. API-Since: 2.0
-
CGContextClipToMask
public static void CGContextClipToMask(@Nullable @Nullable CGContextRef c, CGRect rect, @Nullable @Nullable CGImageRef mask)Add `mask' transformed to `rect' to the clipping area of `context'. The mask, which may be either an image mask or an image, is mapped into the specified rectangle and intersected with the current clipping area of the context. If `mask' is an image mask, then it clips in a manner identical to the behavior if it were used with "CGContextDrawImage": it indicates an area to be masked out (left unchanged) when drawing. The source samples of the image mask determine which points of the clipping area are changed, acting as an "inverse alpha": if the value of a source sample in the image mask is S, then the corresponding point in the current clipping area will be multiplied by an alpha of (1-S). (For example, if S is 1, then the point in the clipping area becomes clear, while if S is 0, the point in the clipping area is unchanged. If `mask' is an image, then it serves as alpha mask and is blended with the current clipping area. The source samples of mask determine which points of the clipping area are changed: if the value of the source sample in mask is S, then the corresponding point in the current clipping area will be multiplied by an alpha of S. (For example, if S is 0, then the point in the clipping area becomes clear, while if S is 1, the point in the clipping area is unchanged. If `mask' is an image, then its color space must be of kCGColorSpaceModelMonochrome model, may not have alpha, and may not be masked by an image mask or masking color. API-Since: 2.0
-
CGContextGetClipBoundingBox
public static CGRect CGContextGetClipBoundingBox(@Nullable @Nullable CGContextRef c)
Return the bounding box of the clip path of `c' in user space. The bounding box is the smallest rectangle completely enclosing all points in the clip. API-Since: 2.0
-
CGContextClipToRect
public static void CGContextClipToRect(@Nullable @Nullable CGContextRef c, CGRect rect)Intersect the current clipping path with `rect'. Note that this function resets the context's path to the empty path. API-Since: 2.0
-
CGContextClipToRects
public static void CGContextClipToRects(@Nullable @Nullable CGContextRef c, @NotNull @NotNull CGRect rects, long count)Intersect the current clipping path with the clipping region formed by creating a path consisting of all rects in `rects'. Note that this function resets the context's path to the empty path. API-Since: 2.0
-
CGContextSetFillColorWithColor
public static void CGContextSetFillColorWithColor(@Nullable @Nullable CGContextRef c, @Nullable @Nullable CGColorRef color)Set the current fill color in the context `c' to `color'. API-Since: 2.0
-
CGContextSetStrokeColorWithColor
public static void CGContextSetStrokeColorWithColor(@Nullable @Nullable CGContextRef c, @Nullable @Nullable CGColorRef color)Set the current stroke color in the context `c' to `color'. API-Since: 2.0
-
CGContextSetFillColorSpace
public static void CGContextSetFillColorSpace(@Nullable @Nullable CGContextRef c, @Nullable @Nullable CGColorSpaceRef space)Set the current fill color space in `context' to `space'. As a side-effect, set the fill color to a default value appropriate for the color space. API-Since: 2.0
-
CGContextSetStrokeColorSpace
public static void CGContextSetStrokeColorSpace(@Nullable @Nullable CGContextRef c, @Nullable @Nullable CGColorSpaceRef space)Set the current stroke color space in `context' to `space'. As a side-effect, set the stroke color to a default value appropriate for the color space. API-Since: 2.0
-
CGContextSetFillColor
public static void CGContextSetFillColor(@Nullable @Nullable CGContextRef c, @Nullable @Nullable org.moe.natj.general.ptr.ConstNFloatPtr components)Set the components of the current fill color in `context' to the values specifed by `components'. The number of elements in `components' must be one greater than the number of components in the current fill color space (N color components + 1 alpha component). The current fill color space must not be a pattern color space. API-Since: 2.0
-
CGContextSetStrokeColor
public static void CGContextSetStrokeColor(@Nullable @Nullable CGContextRef c, @Nullable @Nullable org.moe.natj.general.ptr.ConstNFloatPtr components)Set the components of the current stroke color in `context' to the values specifed by `components'. The number of elements in `components' must be one greater than the number of components in the current stroke color space (N color components + 1 alpha component). The current stroke color space must not be a pattern color space. API-Since: 2.0
-
CGContextSetFillPattern
public static void CGContextSetFillPattern(@Nullable @Nullable CGContextRef c, @Nullable @Nullable CGPatternRef pattern, @Nullable @Nullable org.moe.natj.general.ptr.ConstNFloatPtr components)Set the components of the current fill color in `context' to the values specifed by `components', and set the current fill pattern to `pattern'. The number of elements in `components' must be one greater than the number of components in the current fill color space (N color components + 1 alpha component). The current fill color space must be a pattern color space. API-Since: 2.0
-
CGContextSetStrokePattern
public static void CGContextSetStrokePattern(@Nullable @Nullable CGContextRef c, @Nullable @Nullable CGPatternRef pattern, @Nullable @Nullable org.moe.natj.general.ptr.ConstNFloatPtr components)Set the components of the current stroke color in `context' to the values specifed by `components', and set the current stroke pattern to `pattern'. The number of elements in `components' must be one greater than the number of components in the current stroke color space (N color components + 1 alpha component). The current stroke color space must be a pattern color space. API-Since: 2.0
-
CGContextSetPatternPhase
public static void CGContextSetPatternPhase(@Nullable @Nullable CGContextRef c, CGSize phase)Set the pattern phase in the current graphics state of `context' to `phase'. API-Since: 2.0
-
CGContextSetGrayFillColor
public static void CGContextSetGrayFillColor(@Nullable @Nullable CGContextRef c, double gray, double alpha)Set the current fill color space in `context' to `DeviceGray' and set the components of the current fill color to `(gray, alpha)'. API-Since: 2.0
-
CGContextSetGrayStrokeColor
public static void CGContextSetGrayStrokeColor(@Nullable @Nullable CGContextRef c, double gray, double alpha)Set the current stroke color space in `context' to `DeviceGray' and set the components of the current stroke color to `(gray, alpha)'. API-Since: 2.0
-
CGContextSetRGBFillColor
public static void CGContextSetRGBFillColor(@Nullable @Nullable CGContextRef c, double red, double green, double blue, double alpha)Set the current fill color space in `context' to `DeviceRGB' and set the components of the current fill color to `(red, green, blue, alpha)'. API-Since: 2.0
-
CGContextSetRGBStrokeColor
public static void CGContextSetRGBStrokeColor(@Nullable @Nullable CGContextRef c, double red, double green, double blue, double alpha)Set the current stroke color space in `context' to `DeviceRGB' and set the components of the current stroke color to `(red, green, blue, alpha)'. API-Since: 2.0
-
CGContextSetCMYKFillColor
public static void CGContextSetCMYKFillColor(@Nullable @Nullable CGContextRef c, double cyan, double magenta, double yellow, double black, double alpha)Set the current fill color space in `context' to `DeviceCMYK' and set the components of the current fill color to `(cyan, magenta, yellow, black, alpha)'. API-Since: 2.0
-
CGContextSetCMYKStrokeColor
public static void CGContextSetCMYKStrokeColor(@Nullable @Nullable CGContextRef c, double cyan, double magenta, double yellow, double black, double alpha)Set the current stroke color space in `context' to `DeviceCMYK' and set the components of the current stroke color to `(cyan, magenta, yellow, black, alpha)'. API-Since: 2.0
-
CGContextSetRenderingIntent
public static void CGContextSetRenderingIntent(@Nullable @Nullable CGContextRef c, int intent)Set the rendering intent in the current graphics state of `context' to `intent'. API-Since: 2.0
-
CGContextDrawImage
public static void CGContextDrawImage(@Nullable @Nullable CGContextRef c, CGRect rect, @Nullable @Nullable CGImageRef image)Draw `image' in the rectangular area specified by `rect' in the context `c'. The image is scaled, if necessary, to fit into `rect'. API-Since: 2.0
-
CGContextDrawTiledImage
public static void CGContextDrawTiledImage(@Nullable @Nullable CGContextRef c, CGRect rect, @Nullable @Nullable CGImageRef image)Draw `image' tiled in the context `c'. The image is scaled to the size specified by `rect' in user space, positioned at the origin of `rect' in user space, then replicated, stepping the width of `rect' horizontally and the height of `rect' vertically, to fill the current clip region. Unlike patterns, the image is tiled in user space, so transformations applied to the CTM affect the final result. API-Since: 2.0
-
CGContextGetInterpolationQuality
public static int CGContextGetInterpolationQuality(@Nullable @Nullable CGContextRef c)Return the interpolation quality for image rendering of `context'. The interpolation quality is a gstate parameter which controls the level of interpolation performed when an image is interpolated (for example, when scaling the image). Note that it is merely a hint to the context: not all contexts support all interpolation quality levels. API-Since: 2.0
-
CGContextSetInterpolationQuality
public static void CGContextSetInterpolationQuality(@Nullable @Nullable CGContextRef c, int quality)Set the interpolation quality of `context' to `quality'. API-Since: 2.0
-
CGContextSetShadowWithColor
public static void CGContextSetShadowWithColor(@Nullable @Nullable CGContextRef c, CGSize offset, double blur, @Nullable @Nullable CGColorRef color)Set the shadow parameters in `context'. `offset' specifies a translation in base-space; `blur' is a non-negative number specifying the amount of blur; `color' specifies the color of the shadow, which may contain a non-opaque alpha value. If `color' is NULL, it's equivalent to specifying a fully transparent color. The shadow is a gstate parameter. After a shadow is specified, all objects drawn subsequently will be shadowed. To turn off shadowing, set the shadow color to a fully transparent color (or pass NULL as the color), or use the standard gsave/grestore mechanism. API-Since: 2.0
-
CGContextSetShadow
public static void CGContextSetShadow(@Nullable @Nullable CGContextRef c, CGSize offset, double blur)Equivalent to calling CGContextSetShadowWithColor(context, offset, blur, color) where color is black with 1/3 alpha (i.e., RGBA = {0, 0, 0, 1.0/3.0}) in the DeviceRGB color space. API-Since: 2.0
-
CGContextDrawLinearGradient
public static void CGContextDrawLinearGradient(@Nullable @Nullable CGContextRef c, @Nullable @Nullable CGGradientRef gradient, CGPoint startPoint, CGPoint endPoint, int options)Fill the current clipping region of `context' with a linear gradient from `startPoint' to `endPoint'. The location 0 of `gradient' corresponds to `startPoint'; the location 1 of `gradient' corresponds to `endPoint'; colors are linearly interpolated between these two points based on the values of the gradient's locations. The option flags control whether the gradient is drawn before the start point or after the end point. API-Since: 2.0
-
CGContextDrawRadialGradient
public static void CGContextDrawRadialGradient(@Nullable @Nullable CGContextRef c, @Nullable @Nullable CGGradientRef gradient, CGPoint startCenter, double startRadius, CGPoint endCenter, double endRadius, int options)Fill the current clipping region of `context' with a radial gradient between two circles defined by the center point and radius of each circle. The location 0 of `gradient' corresponds to a circle centered at `startCenter' with radius `startRadius'; the location 1 of `gradient' corresponds to a circle centered at `endCenter' with radius `endRadius'; colors are linearly interpolated between these two circles based on the values of the gradient's locations. The option flags control whether the gradient is drawn before the start circle or after the end circle. API-Since: 2.0
-
CGContextDrawShading
public static void CGContextDrawShading(@Nullable @Nullable CGContextRef c, @Nullable @Nullable CGShadingRef shading)Fill the current clipping region of `context' with `shading'. API-Since: 2.0
-
CGContextSetCharacterSpacing
public static void CGContextSetCharacterSpacing(@Nullable @Nullable CGContextRef c, double spacing)Set the current character spacing in `context' to `spacing'. The character spacing is added to the displacement between the origin of one character and the origin of the next. API-Since: 2.0
-
CGContextSetTextPosition
public static void CGContextSetTextPosition(@Nullable @Nullable CGContextRef c, double x, double y)Set the user-space point at which text will be drawn in the context `c' to `(x, y)'. API-Since: 2.0
-
CGContextGetTextPosition
public static CGPoint CGContextGetTextPosition(@Nullable @Nullable CGContextRef c)
Return the user-space point at which text will be drawn in `context'. API-Since: 2.0
-
CGContextSetTextMatrix
public static void CGContextSetTextMatrix(@Nullable @Nullable CGContextRef c, CGAffineTransform t)Set the text matrix in the context `c' to `t'. API-Since: 2.0
-
CGContextGetTextMatrix
public static CGAffineTransform CGContextGetTextMatrix(@Nullable @Nullable CGContextRef c)
Return the text matrix in the context `c'. Returns CGAffineTransformIdentity if `c' is not a valid context. API-Since: 2.0
-
CGContextSetTextDrawingMode
public static void CGContextSetTextDrawingMode(@Nullable @Nullable CGContextRef c, int mode)Set the text drawing mode in the current graphics state of the context `c' to `mode'. API-Since: 2.0
-
CGContextSetFont
public static void CGContextSetFont(@Nullable @Nullable CGContextRef c, @Nullable @Nullable CGFontRef font)Set the font in the current graphics state of the context `c' to `font'. API-Since: 2.0
-
CGContextSetFontSize
public static void CGContextSetFontSize(@Nullable @Nullable CGContextRef c, double size)Set the font size in the current graphics state of the context `c' to `size'. API-Since: 2.0
-
CGContextShowGlyphsAtPositions
public static void CGContextShowGlyphsAtPositions(@Nullable @Nullable CGContextRef c, @Nullable @Nullable org.moe.natj.general.ptr.ConstCharPtr glyphs, @Nullable @Nullable CGPoint Lpositions, long count)Draw `glyphs', an array of `count' CGGlyphs, at the points specified by `positions'. Each element of `positions' specifies the position from the associated glyph; the positions are specified in user space. API-Since: 2.0
-
CGContextDrawPDFPage
public static void CGContextDrawPDFPage(@Nullable @Nullable CGContextRef c, @Nullable @Nullable CGPDFPageRef page)Draw `page' in the current user space of the context `c'. API-Since: 2.0
-
CGContextBeginPage
public static void CGContextBeginPage(@Nullable @Nullable CGContextRef c, @Nullable @Nullable CGRect mediaBox)Begin a new page. API-Since: 2.0
-
CGContextEndPage
public static void CGContextEndPage(@Nullable @Nullable CGContextRef c)End the current page. API-Since: 2.0
-
CGContextRetain
@Nullable public static @Nullable CGContextRef CGContextRetain(@Nullable @Nullable CGContextRef c)
Equivalent to `CFRetain(c)'. API-Since: 2.0
-
CGContextRelease
public static void CGContextRelease(@Nullable @Nullable CGContextRef c)Equivalent to `CFRelease(c)'. API-Since: 2.0
-
CGContextFlush
public static void CGContextFlush(@Nullable @Nullable CGContextRef c)Flush all drawing to the destination. API-Since: 2.0
-
CGContextSynchronize
public static void CGContextSynchronize(@Nullable @Nullable CGContextRef c)Synchronized drawing. API-Since: 2.0
-
CGContextSetShouldAntialias
public static void CGContextSetShouldAntialias(@Nullable @Nullable CGContextRef c, boolean shouldAntialias)Turn on antialiasing if `shouldAntialias' is true; turn it off otherwise. This parameter is part of the graphics state. API-Since: 2.0
-
CGContextSetAllowsAntialiasing
public static void CGContextSetAllowsAntialiasing(@Nullable @Nullable CGContextRef c, boolean allowsAntialiasing)Allow antialiasing in `context' if `allowsAntialiasing' is true; don't allow it otherwise. This parameter is not part of the graphics state. A context will perform antialiasing if both `allowsAntialiasing' and the graphics state parameter `shouldAntialias' are true. API-Since: 2.0
-
CGContextSetShouldSmoothFonts
public static void CGContextSetShouldSmoothFonts(@Nullable @Nullable CGContextRef c, boolean shouldSmoothFonts)Turn on font smoothing if `shouldSmoothFonts' is true; turn it off otherwise. This parameter is part of the graphics state. Note that this doesn't guarantee that font smoothing will occur: not all destination contexts support font smoothing. API-Since: 2.0
-
CGContextSetAllowsFontSmoothing
public static void CGContextSetAllowsFontSmoothing(@Nullable @Nullable CGContextRef c, boolean allowsFontSmoothing)If `allowsFontSmoothing' is true, then allow font smoothing when displaying text in `context'; otherwise, don't allow font smoothing. This parameter is not part of the graphics state. Fonts will be smoothed if they are antialiased when drawn and if both `allowsFontSmoothing' and the graphics state parameter `shouldSmoothFonts' are true. API-Since: 2.0
-
CGContextSetShouldSubpixelPositionFonts
public static void CGContextSetShouldSubpixelPositionFonts(@Nullable @Nullable CGContextRef c, boolean shouldSubpixelPositionFonts)If `shouldSubpixelPositionFonts' is true, then glyphs may be placed at subpixel positions (if allowed) when displaying text in `context'; otherwise, glyphs will be forced to integer pixel boundaries. This parameter is part of the graphics state. API-Since: 2.0
-
CGContextSetAllowsFontSubpixelPositioning
public static void CGContextSetAllowsFontSubpixelPositioning(@Nullable @Nullable CGContextRef c, boolean allowsFontSubpixelPositioning)If `allowsFontSubpixelPositioning' is true, then allow font subpixel positioning when displaying text in `context'; otherwise, don't allow subpixel positioning. This parameter is not part of the graphics state. A context will place glyphs at subpixel positions if fonts will be antialiased when drawn and if both `allowsFontSubpixelPositioning' and the graphics state parameter `shouldSubpixelPositionFonts' are true. API-Since: 2.0
-
CGContextSetShouldSubpixelQuantizeFonts
public static void CGContextSetShouldSubpixelQuantizeFonts(@Nullable @Nullable CGContextRef c, boolean shouldSubpixelQuantizeFonts)If `shouldSubpixelQuantizeFonts' is true, then quantize the subpixel positions of glyphs when displaying text in `context'; otherwise, don't quantize the subpixel positions. This parameter is part of the graphics state. API-Since: 2.0
-
CGContextSetAllowsFontSubpixelQuantization
public static void CGContextSetAllowsFontSubpixelQuantization(@Nullable @Nullable CGContextRef c, boolean allowsFontSubpixelQuantization)If `allowsFontSubpixelQuantization' is true, then allow font subpixel quantization when displaying text in `context'; otherwise, don't allow subpixel quantization. This parameter is not part of the graphics state. A context quantizes subpixel positions if glyphs will be drawn at subpixel positions and `allowsFontSubpixelQuantization' and the graphics state parameter `shouldSubpixelQuantizeFonts' are both true. API-Since: 2.0
-
CGContextBeginTransparencyLayer
public static void CGContextBeginTransparencyLayer(@Nullable @Nullable CGContextRef c, @Nullable @Nullable CFDictionaryRef auxiliaryInfo)Begin a transparency layer in `context'. All subsequent drawing operations until a corresponding `CGContextEndTransparencyLayer' are composited into a fully transparent backdrop (which is treated as a separate destination buffer from the context). After the transparency layer is ended, the result is composited into the context using the global alpha and shadow state of the context. This operation respects the clipping region of the context. After a call to this function, all of the parameters in the graphics state remain unchanged with the exception of the following: - The global alpha is set to 1. - The shadow is turned off. - The blend mode is set to `kCGBlendModeNormal'. Ending the transparency layer restores these parameters to the values they had before `CGContextBeginTransparencyLayer' was called. Transparency layers may be nested. API-Since: 2.0
-
CGContextBeginTransparencyLayerWithRect
public static void CGContextBeginTransparencyLayerWithRect(@Nullable @Nullable CGContextRef c, CGRect rect, @Nullable @Nullable CFDictionaryRef auxInfo)Begin a transparency layer in `context'. This function is identical to `CGContextBeginTransparencyLayer' except that the content of the transparency layer will be bounded by `rect' (specified in user space). API-Since: 2.0
-
CGContextEndTransparencyLayer
public static void CGContextEndTransparencyLayer(@Nullable @Nullable CGContextRef c)End a tranparency layer. API-Since: 2.0
-
CGContextGetUserSpaceToDeviceSpaceTransform
public static CGAffineTransform CGContextGetUserSpaceToDeviceSpaceTransform(@Nullable @Nullable CGContextRef c)
Return the affine transform mapping the user space (abstract coordinates) of `context' to device space (pixels). API-Since: 2.0
-
CGContextConvertPointToDeviceSpace
public static CGPoint CGContextConvertPointToDeviceSpace(@Nullable @Nullable CGContextRef c, CGPoint point)
Transform `point' from the user space of `context' to device space. API-Since: 2.0
-
CGContextConvertPointToUserSpace
public static CGPoint CGContextConvertPointToUserSpace(@Nullable @Nullable CGContextRef c, CGPoint point)
Transform `point' from device space to the user space of `context'. API-Since: 2.0
-
CGContextConvertSizeToDeviceSpace
public static CGSize CGContextConvertSizeToDeviceSpace(@Nullable @Nullable CGContextRef c, CGSize size)
Transform `size' from the user space of `context' to device space. API-Since: 2.0
-
CGContextConvertSizeToUserSpace
public static CGSize CGContextConvertSizeToUserSpace(@Nullable @Nullable CGContextRef c, CGSize size)
Transform `size' from device space to the user space of `context'. API-Since: 2.0
-
CGContextConvertRectToDeviceSpace
public static CGRect CGContextConvertRectToDeviceSpace(@Nullable @Nullable CGContextRef c, CGRect rect)
Transform `rect' from the user space of `context' to device space. Since affine transforms do not preserve rectangles in general, this function returns the smallest rectangle which contains the transformed corner points of `rect'. API-Since: 2.0
-
CGContextConvertRectToUserSpace
public static CGRect CGContextConvertRectToUserSpace(@Nullable @Nullable CGContextRef c, CGRect rect)
Transform `rect' from device space to the user space of `context'. Since affine transforms do not preserve rectangles in general, this function returns the smallest rectangle which contains the transformed corner points of `rect'. API-Since: 2.0
-
CGContextSelectFont
@Deprecated public static void CGContextSelectFont(@Nullable @Nullable CGContextRef c, @Nullable @Nullable java.lang.String name, double size, int textEncoding)Deprecated.DEPRECATED; use the CoreText API instead. API-Since: 2.0 Deprecated-Since: 7.0 Deprecated-Message: No longer supported
-
CGContextShowText
@Deprecated public static void CGContextShowText(@Nullable @Nullable CGContextRef c, @Nullable @Nullable java.lang.String string, long length)Deprecated.DEPRECATED; use the CoreText API instead. API-Since: 2.0 Deprecated-Since: 7.0 Deprecated-Message: No longer supported
-
CGContextShowTextAtPoint
@Deprecated public static void CGContextShowTextAtPoint(@Nullable @Nullable CGContextRef c, double x, double y, @Nullable @Nullable java.lang.String string, long length)Deprecated.DEPRECATED; use the CoreText API instead. API-Since: 2.0 Deprecated-Since: 7.0 Deprecated-Message: No longer supported
-
CGContextShowGlyphs
@Deprecated public static void CGContextShowGlyphs(@Nullable @Nullable CGContextRef c, @Nullable @Nullable org.moe.natj.general.ptr.ConstCharPtr g, long count)Deprecated.DEPRECATED; use the CoreText API instead. API-Since: 2.0 Deprecated-Since: 7.0 Deprecated-Message: No longer supported
-
CGContextShowGlyphsAtPoint
@Deprecated public static void CGContextShowGlyphsAtPoint(@Nullable @Nullable CGContextRef c, double x, double y, @Nullable @Nullable org.moe.natj.general.ptr.ConstCharPtr glyphs, long count)Deprecated.DEPRECATED; use the CoreText API instead. API-Since: 2.0 Deprecated-Since: 7.0 Deprecated-Message: No longer supported
-
CGContextShowGlyphsWithAdvances
@Deprecated public static void CGContextShowGlyphsWithAdvances(@Nullable @Nullable CGContextRef c, @Nullable @Nullable org.moe.natj.general.ptr.ConstCharPtr glyphs, @Nullable @Nullable CGSize advances, long count)Deprecated.DEPRECATED; use the CoreText API instead. API-Since: 2.0 Deprecated-Since: 7.0 Deprecated-Message: No longer supported
-
CGBitmapContextCreateWithData
@Nullable public static @Nullable CGContextRef CGBitmapContextCreateWithData(@Nullable @Nullable org.moe.natj.general.ptr.VoidPtr data, long width, long height, long bitsPerComponent, long bytesPerRow, @Nullable @Nullable CGColorSpaceRef space, int bitmapInfo, @Nullable @Nullable CoreGraphics.Function_CGBitmapContextCreateWithData releaseCallback, @Nullable @Nullable org.moe.natj.general.ptr.VoidPtr releaseInfo)
Create a bitmap context. The context draws into a bitmap which is `width' pixels wide and `height' pixels high. The number of components for each pixel is specified by `space', which may also specify a destination color profile. Note that the only legal case when `space' can be NULL is when alpha is specified as kCGImageAlphaOnly. The number of bits for each component of a pixel is specified by `bitsPerComponent'. The number of bytes per pixel is equal to `(bitsPerComponent * number of components + 7)/8'. Each row of the bitmap consists of `bytesPerRow' bytes, which must be at least `width * bytes per pixel' bytes; in addition, `bytesPerRow' must be an integer multiple of the number of bytes per pixel. `data', if non-NULL, points to a block of memory at least `bytesPerRow * height' bytes. If `data' is NULL, the context will allocate the data itself; this data will be freed when the context is deallocated. `bitmapInfo' specifies whether the bitmap should contain an alpha channel and how it's to be generated, along with whether the components are floating-point or integer. If `releaseCallback' is non-NULL, it is called when the context is freed with `releaseInfo' and `data' as arguments. API-Since: 4.0
-
CGBitmapContextCreate
@Nullable public static @Nullable CGContextRef CGBitmapContextCreate(@Nullable @Nullable org.moe.natj.general.ptr.VoidPtr data, long width, long height, long bitsPerComponent, long bytesPerRow, @Nullable @Nullable CGColorSpaceRef space, int bitmapInfo)
Create a bitmap context. The context draws into a bitmap which is `width' pixels wide and `height' pixels high. The number of components for each pixel is specified by `space', which may also specify a destination color profile. Note that the only legal case when `space' can be NULL is when alpha is specified as kCGImageAlphaOnly.The number of bits for each component of a pixel is specified by `bitsPerComponent'. The number of bytes per pixel is equal to `(bitsPerComponent * number of components + 7)/8'. Each row of the bitmap consists of `bytesPerRow' bytes, which must be at least `width * bytes per pixel' bytes; in addition, `bytesPerRow' must be an integer multiple of the number of bytes per pixel. `data', if non-NULL, points to a block of memory at least `bytesPerRow * height' bytes. If `data' is NULL, the data for context is allocated automatically and freed when the context is deallocated. `bitmapInfo' specifies whether the bitmap should contain an alpha channel and how it's to be generated, along with whether the components are floating-point or integer. API-Since: 2.0
-
CGBitmapContextGetData
@Nullable public static @Nullable org.moe.natj.general.ptr.VoidPtr CGBitmapContextGetData(@Nullable @Nullable CGContextRef context)Return the data associated with the bitmap context `context', or NULL if `context' is not a bitmap context. API-Since: 2.0
-
CGBitmapContextGetWidth
public static long CGBitmapContextGetWidth(@Nullable @Nullable CGContextRef context)Return the width of the bitmap context `context', or 0 if `context' is not a bitmap context. API-Since: 2.0
-
CGBitmapContextGetHeight
public static long CGBitmapContextGetHeight(@Nullable @Nullable CGContextRef context)Return the height of the bitmap context `context', or 0 if `context' is not a bitmap context. API-Since: 2.0
-
CGBitmapContextGetBitsPerComponent
public static long CGBitmapContextGetBitsPerComponent(@Nullable @Nullable CGContextRef context)Return the bits per component of the bitmap context `context', or 0 if `context' is not a bitmap context. API-Since: 2.0
-
CGBitmapContextGetBitsPerPixel
public static long CGBitmapContextGetBitsPerPixel(@Nullable @Nullable CGContextRef context)Return the bits per pixel of the bitmap context `context', or 0 if `context' is not a bitmap context. API-Since: 2.0
-
CGBitmapContextGetBytesPerRow
public static long CGBitmapContextGetBytesPerRow(@Nullable @Nullable CGContextRef context)Return the bytes per row of the bitmap context `context', or 0 if `context' is not a bitmap context. API-Since: 2.0
-
CGBitmapContextGetColorSpace
@Nullable public static @Nullable CGColorSpaceRef CGBitmapContextGetColorSpace(@Nullable @Nullable CGContextRef context)
Return the color space of the bitmap context `context', or NULL if `context' is not a bitmap context. API-Since: 2.0
-
CGBitmapContextGetAlphaInfo
public static int CGBitmapContextGetAlphaInfo(@Nullable @Nullable CGContextRef context)Return the alpha info of the bitmap context `context', or "kCGImageAlphaNone" if `context' is not a bitmap context. API-Since: 2.0
-
CGBitmapContextGetBitmapInfo
public static int CGBitmapContextGetBitmapInfo(@Nullable @Nullable CGContextRef context)Return the bitmap info of the bitmap context `context', or 0 if `context' is not a bitmap context. API-Since: 2.0
-
CGBitmapContextCreateImage
@Nullable public static @Nullable CGImageRef CGBitmapContextCreateImage(@Nullable @Nullable CGContextRef context)
Return an image containing a snapshot of the bitmap context `context'. If context is not a bitmap context, or if the image cannot be created for any reason, this function returns NULL. This is a "copy" operation --- subsequent changes to context will not affect the contents of the returned image. Note that in some cases the copy will actually follow "copy-on-write" semantics, so that the actual physical copy of the bits will only occur if the underlying data in the bitmap context is modified. As a consequence, you may wish to use the resulting image and release it before performing more drawing into the bitmap context; in this way, the actual physical copy of the data may be avoided. API-Since: 2.0
-
CGColorConversionInfoGetTypeID
public static long CGColorConversionInfoGetTypeID()
-
CGColorConversionInfoCreate
@Nullable public static @Nullable CGColorConversionInfoRef CGColorConversionInfoCreate(@Nullable @Nullable CGColorSpaceRef src, @Nullable @Nullable CGColorSpaceRef dst)
Create CGColorConversionInfoRef for converting color from `src' color space to `dst' color space using kCGRenderingIntentDefault rendering intent. Requirements: CG color spaces must be calibrated (no Device{Gray,RGB,CMYK}, Indexed or DeviceN are allowed). API-Since: 10.0
-
CGColorConversionInfoCreateFromList
@Nullable public static @Nullable CGColorConversionInfoRef CGColorConversionInfoCreateFromList(@Nullable @Nullable CFDictionaryRef options, @Nullable @Nullable CGColorSpaceRef arg2, int arg3, int arg4, java.lang.Object... varargs)
Create CGColorConversionInfoRef from a list of CG color spaces, transform types and rendering intents. ColorSpaces are iterated from first to last. The list of triples: {CGColorSpaceRef, CGColorConversionInfoTransformType, CGColorRenderingIntent} must be terminated with NULL Requirements: CG color spaces must be calibrated (no Device{Gray,RGB,CMYK}, Indexed or DeviceN are allowed). API-Since: 10.0
-
CGDataConsumerGetTypeID
public static long CGDataConsumerGetTypeID()
Return the CFTypeID for CGDataConsumerRefs. API-Since: 2.0
-
CGDataConsumerCreate
@Nullable public static @Nullable CGDataConsumerRef CGDataConsumerCreate(@Nullable @Nullable org.moe.natj.general.ptr.VoidPtr info, @Nullable @Nullable CGDataConsumerCallbacks cbks)
Create a data consumer using `callbacks' to handle the data. `info' is passed to each of the callback functions. API-Since: 2.0
-
CGDataConsumerCreateWithURL
@Nullable public static @Nullable CGDataConsumerRef CGDataConsumerCreateWithURL(@Nullable @Nullable CFURLRef url)
Create a data consumer which writes data to `url'. API-Since: 2.0
-
CGDataConsumerCreateWithCFData
@Nullable public static @Nullable CGDataConsumerRef CGDataConsumerCreateWithCFData(@Nullable @Nullable CFMutableDataRef data)
Create a data consumer which writes to `data'. API-Since: 2.0
-
CGDataConsumerRetain
@Nullable public static @Nullable CGDataConsumerRef CGDataConsumerRetain(@Nullable @Nullable CGDataConsumerRef consumer)
Equivalent to `CFRetain(consumer)'. API-Since: 2.0
-
CGDataConsumerRelease
public static void CGDataConsumerRelease(@Nullable @Nullable CGDataConsumerRef consumer)Equivalent to `CFRelease(consumer)'. API-Since: 2.0
-
CGLayerCreateWithContext
@Nullable public static @Nullable CGLayerRef CGLayerCreateWithContext(@Nullable @Nullable CGContextRef context, CGSize size, @Nullable @Nullable CFDictionaryRef auxiliaryInfo)
Create a layer of size `size' relative to the context `context'. The value of `size' is specified in default user space (base space) units. The parameter `auxiliaryInfo' should be NULL; it is reserved for future expansion. API-Since: 2.0
-
CGLayerRetain
@Nullable public static @Nullable CGLayerRef CGLayerRetain(@Nullable @Nullable CGLayerRef layer)
Equivalent to `CFRetain(layer)', except it doesn't crash (as CFRetain does) if `layer' is NULL. API-Since: 2.0
-
CGLayerRelease
public static void CGLayerRelease(@Nullable @Nullable CGLayerRef layer)Equivalent to `CFRelease(layer)', except it doesn't crash (as CFRelease does) if `layer' is NULL. API-Since: 2.0
-
CGLayerGetSize
public static CGSize CGLayerGetSize(@Nullable @Nullable CGLayerRef layer)
Return the size of the layer `layer'. CGSizeZero if invalid `layer'. API-Since: 2.0
-
CGLayerGetContext
@Nullable public static @Nullable CGContextRef CGLayerGetContext(@Nullable @Nullable CGLayerRef layer)
Return the context of `layer'. API-Since: 2.0
-
CGContextDrawLayerInRect
public static void CGContextDrawLayerInRect(@Nullable @Nullable CGContextRef context, CGRect rect, @Nullable @Nullable CGLayerRef layer)Draw the contents of `layer' into `rect' of `context'. The contents are scaled, if necessary, to fit into `rect'; the rectangle `rect' is in user space. API-Since: 2.0
-
CGContextDrawLayerAtPoint
public static void CGContextDrawLayerAtPoint(@Nullable @Nullable CGContextRef context, CGPoint point, @Nullable @Nullable CGLayerRef layer)Draw the contents of `layer' at `point' in `context'. This is equivalent to calling "CGContextDrawLayerInRect" with a rectangle having origin at `point' and size equal to the size of `layer'. API-Since: 2.0
-
CGLayerGetTypeID
public static long CGLayerGetTypeID()
Return the CFTypeID for CGLayerRefs. API-Since: 2.0
-
CGPDFContentStreamCreateWithPage
@NotNull public static @NotNull CGPDFContentStreamRef CGPDFContentStreamCreateWithPage(@NotNull @NotNull CGPDFPageRef page)
Create a content stream from `page'. API-Since: 2.0
-
CGPDFContentStreamCreateWithStream
@NotNull public static @NotNull CGPDFContentStreamRef CGPDFContentStreamCreateWithStream(@NotNull @NotNull CGPDFStreamRef stream, @NotNull @NotNull CGPDFDictionaryRef streamResources, @Nullable @Nullable CGPDFContentStreamRef parent)
Create a content stream from `stream'. API-Since: 2.0
-
CGPDFContentStreamRetain
@NotNull public static @NotNull CGPDFContentStreamRef CGPDFContentStreamRetain(@NotNull @NotNull CGPDFContentStreamRef cs)
Increment the retain count of `cs'. API-Since: 2.0
-
CGPDFContentStreamRelease
public static void CGPDFContentStreamRelease(@NotNull @NotNull CGPDFContentStreamRef cs)Decrement the retain count of `cs'. API-Since: 2.0
-
CGPDFContentStreamGetStreams
@Nullable public static @Nullable CFArrayRef CGPDFContentStreamGetStreams(@NotNull @NotNull CGPDFContentStreamRef cs)
Return the array of CGPDFStreamRefs comprising the entire content stream of `cs'. API-Since: 2.0
-
CGPDFContentStreamGetResource
@Nullable public static @Nullable CGPDFObjectRef CGPDFContentStreamGetResource(@NotNull @NotNull CGPDFContentStreamRef cs, @NotNull @NotNull java.lang.String category, @NotNull @NotNull java.lang.String name)
Return the resource named `name' in category `category' of the resource dictionaries of `cs'. API-Since: 2.0
-
CGPDFContextCreate
@Nullable public static @Nullable CGContextRef CGPDFContextCreate(@Nullable @Nullable CGDataConsumerRef consumer, @Nullable @Nullable CGRect mediaBox, @Nullable @Nullable CFDictionaryRef auxiliaryInfo)
Create a PDF context, using `consumer' for output. `mediaBox' is the default page media bounding box; if NULL, then a default page size is used. `auxiliaryInfo' specifies additional information used by the PDF context when generating the PDF file. The keys and values in `auxiliaryInfo' are described below. If `mediaBox' is non-NULL, then its value overrides the value of `kCGPDFContextMediaBox' if specified in the `auxiliaryInfo' dictionary. API-Since: 2.0
-
CGPDFContextCreateWithURL
@Nullable public static @Nullable CGContextRef CGPDFContextCreateWithURL(@Nullable @Nullable CFURLRef url, @Nullable @Nullable CGRect mediaBox, @Nullable @Nullable CFDictionaryRef auxiliaryInfo)
Create a PDF context for writing to `url'. This function behaves in the same manner as the above function, except that the output data will be written to `url'. API-Since: 2.0
-
CGPDFContextClose
public static void CGPDFContextClose(@Nullable @Nullable CGContextRef context)Close a PDF context. After closing the context, all pending data is written to the context's destination, and the PDF file is completed. No additional data will be written to the context's destionation after closing. API-Since: 2.0
-
CGPDFContextBeginPage
public static void CGPDFContextBeginPage(@Nullable @Nullable CGContextRef context, @Nullable @Nullable CFDictionaryRef pageInfo)Begin a new page in the PDF context `context'. API-Since: 2.0
-
CGPDFContextEndPage
public static void CGPDFContextEndPage(@Nullable @Nullable CGContextRef context)End the current page in the PDF context `context'. API-Since: 2.0
-
CGPDFContextAddDocumentMetadata
public static void CGPDFContextAddDocumentMetadata(@Nullable @Nullable CGContextRef context, @Nullable @Nullable CFDataRef metadata)Add the metadata stream specified by `metadata' to the document catalog of `context', as described in Table 3.25, "Entries in the catalog dictionary", of the PDF 1.7 specification. The contents of metadata must be XML formatted according to the Extensible Metadata Platform, as described in section 10.2.2, "Metadata Streams", of the PDF 1.7 specification. API-Since: 4.0
-
CGPDFContextSetURLForRect
public static void CGPDFContextSetURLForRect(@Nullable @Nullable CGContextRef context, @NotNull @NotNull CFURLRef url, CGRect rect)Set the URL associated with `rect' to `url' in the PDF context `context'. API-Since: 2.0
-
CGPDFContextAddDestinationAtPoint
public static void CGPDFContextAddDestinationAtPoint(@Nullable @Nullable CGContextRef context, @NotNull @NotNull CFStringRef name, CGPoint point)Create a PDF destination named `name' at `point' in the current page of the PDF context `context'. API-Since: 2.0
-
CGPDFContextSetDestinationForRect
public static void CGPDFContextSetDestinationForRect(@Nullable @Nullable CGContextRef context, @NotNull @NotNull CFStringRef name, CGRect rect)Specify a destination named `name' to jump to when clicking in `rect' of the current page of the PDF context `context'. API-Since: 2.0
-
CGPDFScannerCreate
@NotNull public static @NotNull CGPDFScannerRef CGPDFScannerCreate(@NotNull @NotNull CGPDFContentStreamRef cs, @Nullable @Nullable CGPDFOperatorTableRef table, @Nullable @Nullable org.moe.natj.general.ptr.VoidPtr info)
Create a scanner. API-Since: 2.0
-
CGPDFScannerRetain
@Nullable public static @Nullable CGPDFScannerRef CGPDFScannerRetain(@Nullable @Nullable CGPDFScannerRef scanner)
Retain `scanner'. API-Since: 2.0
-
CGPDFScannerRelease
public static void CGPDFScannerRelease(@Nullable @Nullable CGPDFScannerRef scanner)Release `scanner'. API-Since: 2.0
-
CGPDFScannerScan
public static boolean CGPDFScannerScan(@Nullable @Nullable CGPDFScannerRef scanner)Scan the content stream of `scanner'. Returns true if the entire stream was scanned successfully; false if scanning failed for some reason (for example, if the stream's data is corrupted). API-Since: 2.0
-
CGPDFScannerGetContentStream
@NotNull public static @NotNull CGPDFContentStreamRef CGPDFScannerGetContentStream(@NotNull @NotNull CGPDFScannerRef scanner)
Return the content stream associated with `scanner'. API-Since: 2.0
-
CGPDFScannerPopObject
public static boolean CGPDFScannerPopObject(@NotNull @NotNull CGPDFScannerRef scanner, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<CGPDFObjectRef> value)Pop an object from the stack of `scanner' and return it in `value'. API-Since: 2.0
-
CGPDFScannerPopBoolean
public static boolean CGPDFScannerPopBoolean(@NotNull @NotNull CGPDFScannerRef scanner, @Nullable @Nullable org.moe.natj.general.ptr.BytePtr value)Pop an object from the stack of `scanner' and, if it's a boolean, return it in `value'. Return false if the top of the stack isn't a boolean. API-Since: 2.0
-
CGPDFScannerPopInteger
public static boolean CGPDFScannerPopInteger(@NotNull @NotNull CGPDFScannerRef scanner, @Nullable @Nullable org.moe.natj.general.ptr.NIntPtr value)Pop an object from the stack of `scanner' and, if it's an integer, return it in `value'. Return false if the top of the stack isn't an integer. API-Since: 2.0
-
CGPDFScannerPopNumber
public static boolean CGPDFScannerPopNumber(@NotNull @NotNull CGPDFScannerRef scanner, @Nullable @Nullable org.moe.natj.general.ptr.NFloatPtr value)Pop an object from the stack of `scanner' and, if it's a number, return it in `value'. Return false if the top of the stack isn't a number. API-Since: 2.0
-
CGPDFScannerPopName
public static boolean CGPDFScannerPopName(@NotNull @NotNull CGPDFScannerRef scanner, @Nullable @Nullable java.lang.String[] value)Pop an object from the stack of `scanner' and, if it's a name, return it in `value'. Return false if the top of the stack isn't a name. API-Since: 2.0
-
CGPDFScannerPopString
public static boolean CGPDFScannerPopString(@NotNull @NotNull CGPDFScannerRef scanner, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<CGPDFStringRef> value)Pop an object from the stack of `scanner' and, if it's a string, return it in `value'. Return false if the top of the stack isn't a string. API-Since: 2.0
-
CGPDFScannerPopArray
public static boolean CGPDFScannerPopArray(@NotNull @NotNull CGPDFScannerRef scanner, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<CGPDFArrayRef> value)Pop an object from the stack of `scanner' and, if it's an array, return it in `value'. Return false if the top of the stack isn't an array. API-Since: 2.0
-
CGPDFScannerPopDictionary
public static boolean CGPDFScannerPopDictionary(@NotNull @NotNull CGPDFScannerRef scanner, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<CGPDFDictionaryRef> value)Pop an object from the stack of `scanner' and, if it's a dictionary, return it in `value'. Return false if the top of the stack isn't a dictionary. API-Since: 2.0
-
CGPDFScannerPopStream
public static boolean CGPDFScannerPopStream(@NotNull @NotNull CGPDFScannerRef scanner, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<CGPDFStreamRef> value)Pop an object from the stack of `scanner' and, if it's a stream, return it in `value'. Return false if the top of the stack isn't a stream. API-Since: 2.0
-
CGPDFOperatorTableCreate
@Nullable public static @Nullable CGPDFOperatorTableRef CGPDFOperatorTableCreate()
Return an empty operator table. API-Since: 2.0
-
CGPDFOperatorTableRetain
@Nullable public static @Nullable CGPDFOperatorTableRef CGPDFOperatorTableRetain(@Nullable @Nullable CGPDFOperatorTableRef table)
Increment the retain count of `table'. API-Since: 2.0
-
CGPDFOperatorTableRelease
public static void CGPDFOperatorTableRelease(@Nullable @Nullable CGPDFOperatorTableRef table)Decrement the retain count of `table'. API-Since: 2.0
-
CGPDFOperatorTableSetCallback
public static void CGPDFOperatorTableSetCallback(@Nullable @Nullable CGPDFOperatorTableRef table, @Nullable @Nullable java.lang.String name, @Nullable @Nullable CoreGraphics.Function_CGPDFOperatorTableSetCallback callback)Set the callback for the operator named `name' to `callback' API-Since: 2.0
-
CGPointZero
public static CGPoint CGPointZero()
The "zero" point -- equivalent to CGPointMake(0, 0). API-Since: 2.0
-
CGSizeZero
public static CGSize CGSizeZero()
The "zero" size -- equivalent to CGSizeMake(0, 0). API-Since: 2.0
-
CGRectZero
public static CGRect CGRectZero()
The "zero" rectangle -- equivalent to CGRectMake(0, 0, 0, 0). API-Since: 2.0
-
CGRectNull
public static CGRect CGRectNull()
The "empty" rect. This is the rectangle returned when, for example, we intersect two disjoint rectangles. Note that the null rect is not the same as the zero rect. API-Since: 2.0
-
CGRectInfinite
public static CGRect CGRectInfinite()
The infinite rectangle. API-Since: 2.0
-
CGAffineTransformIdentity
public static CGAffineTransform CGAffineTransformIdentity()
The identity transform: [ 1 0 0 1 0 0 ]. API-Since: 2.0
-
kCGColorSpaceGenericGray
@NotNull public static @NotNull CFStringRef kCGColorSpaceGenericGray()
The name of the "Generic" Gray color space. It is a legacy color space so use it only if you definitely know that you need it. If you need just a reasonable monochrome color space, please use Generic Gray Gamma 2.2, i.e. use kCGColorSpaceGenericGrayGamma2_2 name instead of kCGColorSpaceGenericGray. API-Since: 9.0
-
kCGColorSpaceGenericRGB
@NotNull public static @NotNull CFStringRef kCGColorSpaceGenericRGB()
The name of the "Generic" RGB color space. It is a legacy color space so use it only if you definitely know that you need it. If you need just a reasonable RGB color space, please use sRGB, i.e. use kCGColorSpaceSRGB name instead of kCGColorSpaceGenericRGB. API-Since: 9.0
-
kCGColorSpaceGenericCMYK
@NotNull public static @NotNull CFStringRef kCGColorSpaceGenericCMYK()
The name of the "Generic" CMYK color space. API-Since: 9.0
-
kCGColorSpaceDisplayP3
@NotNull public static @NotNull CFStringRef kCGColorSpaceDisplayP3()
API-Since: 9.3
-
kCGColorSpaceGenericRGBLinear
@NotNull public static @NotNull CFStringRef kCGColorSpaceGenericRGBLinear()
The name of the "Generic" linear RGB color space. This is the same as `kCGColorSpaceGenericRGB' but with a 1.0 gamma. API-Since: 9.0
-
kCGColorSpaceAdobeRGB1998
@NotNull public static @NotNull CFStringRef kCGColorSpaceAdobeRGB1998()
The name of the Adobe RGB (1998) color space. For more information, see "Adobe RGB (1998) Color Image Encoding", Version 2005-05, Adobe Systems Inc. (http://www.adobe.com). API-Since: 9.0
-
kCGColorSpaceSRGB
@NotNull public static @NotNull CFStringRef kCGColorSpaceSRGB()
The name of the sRGB color space. The capitalization in the name, while strictly inaccurate, avoids interpretational ambiguity. For more information, see IEC 61966-2-1 (1999-10): "Multimedia systems and equipment - Colour measurement and management - Part 2-1: Colour management - Default RGB colour space - sRGB". API-Since: 9.0
-
kCGColorSpaceGenericGrayGamma2_2
@NotNull public static @NotNull CFStringRef kCGColorSpaceGenericGrayGamma2_2()
The "Generic" gray color space with γ = 2.2. API-Since: 9.0
-
kCGColorSpaceGenericXYZ
@NotNull public static @NotNull CFStringRef kCGColorSpaceGenericXYZ()
API-Since: 9.0
-
kCGColorSpaceACESCGLinear
@NotNull public static @NotNull CFStringRef kCGColorSpaceACESCGLinear()
API-Since: 9.0
-
kCGColorSpaceITUR_709
@NotNull public static @NotNull CFStringRef kCGColorSpaceITUR_709()
API-Since: 9.0
-
kCGColorSpaceITUR_2020
@NotNull public static @NotNull CFStringRef kCGColorSpaceITUR_2020()
API-Since: 9.0
-
kCGColorSpaceROMMRGB
@NotNull public static @NotNull CFStringRef kCGColorSpaceROMMRGB()
API-Since: 9.0
-
kCGColorSpaceDCIP3
@NotNull public static @NotNull CFStringRef kCGColorSpaceDCIP3()
API-Since: 9.0
-
kCGColorSpaceExtendedSRGB
@NotNull public static @NotNull CFStringRef kCGColorSpaceExtendedSRGB()
The name of the extended sRGB color space. The extended sRGB color space allows to specify colors beyond the range of [0.0, 1.0], while still preserving the colorimetry and encoding of sRGB (see above for more details). The negative values will be encoded as the signed reflection of original encoding functions, i.e. y(x) = sign(x)*f(abs(x)) where f(x) represents the encoding function. The capitalization in the name is for avoiding interpretational ambiguity. API-Since: 10.0
-
kCGColorSpaceLinearSRGB
@NotNull public static @NotNull CFStringRef kCGColorSpaceLinearSRGB()
The name of the sRGB color space variant with linear gamma API-Since: 10.0
-
kCGColorSpaceExtendedLinearSRGB
@NotNull public static @NotNull CFStringRef kCGColorSpaceExtendedLinearSRGB()
The name of the extended sRGB color space variant with linear gamma API-Since: 10.0
-
kCGColorSpaceExtendedGray
@NotNull public static @NotNull CFStringRef kCGColorSpaceExtendedGray()
The name of the extended Gray color space. This color space has the same colorimetry as Generic Gray 2.2. The negative values will be encoded as the signed reflection of original encoding functions, i.e. y(x) = sign(x)*f(abs(x)) where f(x) represents the encoding function. API-Since: 10.0
-
kCGColorSpaceLinearGray
@NotNull public static @NotNull CFStringRef kCGColorSpaceLinearGray()
The name of the Generic Gray 2.2 color space variant with linear gamma API-Since: 10.0
-
kCGColorSpaceExtendedLinearGray
@NotNull public static @NotNull CFStringRef kCGColorSpaceExtendedLinearGray()
The name of the extended Generic Gray 2.2 color space variant with linear gamma API-Since: 10.0
-
kCGFontVariationAxisName
@NotNull public static @NotNull CFStringRef kCGFontVariationAxisName()
The key used to obtain the variation axis name from a variation axis dictionary. The value obtained with this key is a CFStringRef specifying the name of the variation axis. API-Since: 2.0
-
kCGFontVariationAxisMinValue
@NotNull public static @NotNull CFStringRef kCGFontVariationAxisMinValue()
The key used to obtain the minimum variation axis value from a variation axis dictionary. The value obtained with this key is a CFNumberRef specifying the minimum value of the variation axis. API-Since: 2.0
-
kCGFontVariationAxisMaxValue
@NotNull public static @NotNull CFStringRef kCGFontVariationAxisMaxValue()
The key used to obtain the maximum variation axis value from a variation axis dictionary. The value obtained with this key is a CFNumberRef specifying the maximum value of the variation axis. API-Since: 2.0
-
kCGFontVariationAxisDefaultValue
@NotNull public static @NotNull CFStringRef kCGFontVariationAxisDefaultValue()
The key used to obtain the default variation axis value from a variation axis dictionary. The value obtained with this key is a CFNumberRef specifying the default value of the variation axis. API-Since: 2.0
-
kCGColorConversionBlackPointCompensation
@NotNull public static @NotNull CFStringRef kCGColorConversionBlackPointCompensation()
CFBooleanRef which can be used as option to create CGColorConversionInfoRef, when Black Point Compensation is desired API-Since: 10.0
-
kCGPDFContextMediaBox
@NotNull public static @NotNull CFStringRef kCGPDFContextMediaBox()
The media box for the document or for a given page. Optional; if present, the value of this key must be a CFData containing a CGRect (stored by value, not by reference). API-Since: 2.0
-
kCGPDFContextCropBox
@NotNull public static @NotNull CFStringRef kCGPDFContextCropBox()
The crop box for the document or for a given page. Optional; if present, the value of this key must be a CFData containing a CGRect (stored by value, not by reference). API-Since: 2.0
-
kCGPDFContextBleedBox
@NotNull public static @NotNull CFStringRef kCGPDFContextBleedBox()
The bleed box for the document or for a given page. Optional; if present, the value of this key must be a CFData containing a CGRect (stored by value, not by reference). API-Since: 2.0
-
kCGPDFContextTrimBox
@NotNull public static @NotNull CFStringRef kCGPDFContextTrimBox()
The trim box for the document or for a given page. Optional; if present, the value of this key must be a CFData containing a CGRect (stored by value, not by reference). API-Since: 2.0
-
kCGPDFContextArtBox
@NotNull public static @NotNull CFStringRef kCGPDFContextArtBox()
The art box for the document or for a given page. Optional; if present, the value of this key must be a CFData containing a CGRect (stored by value, not by reference). API-Since: 2.0
-
kCGPDFContextTitle
@NotNull public static @NotNull CFStringRef kCGPDFContextTitle()
The document's title. Optional; if present, the value of this key must be a CFString. API-Since: 2.0
-
kCGPDFContextAuthor
@NotNull public static @NotNull CFStringRef kCGPDFContextAuthor()
The name of the person who created this document. Optional; if present, the value of this key must be a CFString. API-Since: 2.0
-
kCGPDFContextSubject
@NotNull public static @NotNull CFStringRef kCGPDFContextSubject()
The subject of a document. Optional; if present, the value of this key must be a CFString. API-Since: 2.0
-
kCGPDFContextKeywords
@NotNull public static @NotNull CFStringRef kCGPDFContextKeywords()
The keywords for this document. This key is optional. If the value of this key is a CFString, the /Keywords entry will be the specified string. If the value of this key is a CFArray, then it must be an array of CFStrings. The /Keywords entry will in this case be the concatenation of the specified strings separated by commas (","). In addition, an entry with the key "/AAPL:Keywords" will be stored in the document information dictionary; its value is an array consisting of each of the specified strings. The value of this key must be in one of the above forms; otherwise, this key is ignored. API-Since: 2.0
-
kCGPDFContextCreator
@NotNull public static @NotNull CFStringRef kCGPDFContextCreator()
The name of the application that created the original data used to create this document. Optional; if present, the value of this key must be a CFString. API-Since: 2.0
-
kCGPDFContextOwnerPassword
@NotNull public static @NotNull CFStringRef kCGPDFContextOwnerPassword()
The "owner password" of the PDF document. If this key is specified, the document will be encrypted using the value as the owner password; otherwise, the document will not be encrypted. The value of this key must be a CFStringRef which can be represented in ASCII encoding; only the first 32 bytes will be used for the password. There is no default value for this key. If the value of this key cannot be represented in ASCII, the document will not be created and the creation function will return NULL. API-Since: 2.0
-
kCGPDFContextUserPassword
@NotNull public static @NotNull CFStringRef kCGPDFContextUserPassword()
The "user password" of the PDF document. If the document is encrypted, then the value of this key will be the user password for the document; if unspecified, the user password will be the empty string. The value of this key must be a CFStringRef which can be represented in ASCII encoding; only the first 32 bytes will be used for the password. If the value of this key cannot be represented in ASCII, the document will not be created and the creation function will return NULL. API-Since: 2.0
-
kCGPDFContextEncryptionKeyLength
@NotNull public static @NotNull CFStringRef kCGPDFContextEncryptionKeyLength()
Specifies the encryption key length in bits; see Table 3.18 "Entries common to all encryption dictionaries", PDF Reference: Adobe PDF version 1.5 (4th ed.) for more info. Optional; if present, the value of this key must be a CFNumber with value which is a multiple of 8 between 40 and 128, inclusive. If this key is absent or invalid, the encryption key length defaults to 40 bits. API-Since: 2.0
-
kCGPDFContextAllowsPrinting
@NotNull public static @NotNull CFStringRef kCGPDFContextAllowsPrinting()
Used to specify whether the document allows printing when unlocked with the user password. The value of this key must be a CFBooleanRef. The default value of this key is "kCFBooleanTrue". API-Since: 2.0
-
kCGPDFContextAllowsCopying
@NotNull public static @NotNull CFStringRef kCGPDFContextAllowsCopying()
Used to specify whether the document allows copying when unlocked with the user password. The value of this key must be a CFBooleanRef. The default value of this key is "kCFBooleanTrue". API-Since: 2.0
-
CGDataProviderGetInfo
@Nullable public static @Nullable org.moe.natj.general.ptr.VoidPtr CGDataProviderGetInfo(@Nullable @Nullable CGDataProviderRef provider)API-Since: 11.0
-
CGColorSpaceCreateWithICCData
@Nullable public static @Nullable CGColorSpaceRef CGColorSpaceCreateWithICCData(@Nullable @Nullable org.moe.natj.general.ptr.ConstVoidPtr data)
Create an ICC-based color space using the ICC profile raw data specified by `data' which can be either CFDataRef or CGDataProviderRef API-Since: 10.0
-
CGColorSpaceGetName
@Nullable public static @Nullable CFStringRef CGColorSpaceGetName(@Nullable @Nullable CGColorSpaceRef space)
Return the system name of the color space. This applies to all color spaces created using `CGColorSpaceCreateWithName' as well as to ICC-based colorspaces created using `CGColorSpaceCreateWithICCData' or `CGColorSpaceCreateICCBased' if they are equivalent to respective named system color spaces. Device color spaces also return unique names. This function will return NULL for other color spaces. Example: CGColorSpaceRef space = CGColorSpaceCreateWithICCData(icc_data); CFStringRef name = CGColorSpaceGetName(space); if (name != NULL && CFEqual(name, kCGColorSpaceDisplayP3)) { // your color space is Display P3 ... } API-Since: 11.0
-
CGPathApplyWithBlock
public static void CGPathApplyWithBlock(@NotNull @NotNull CGPathRef path, @NotNull @NotNull CoreGraphics.Block_CGPathApplyWithBlock block)API-Since: 11.0
-
CGPDFDocumentGetOutline
@Nullable public static @Nullable CFDictionaryRef CGPDFDocumentGetOutline(@NotNull @NotNull CGPDFDocumentRef document)
Return the document outline in the form of a CFDictionary tree containing the kCGPDFOutline keys. API-Since: 11.0
-
CGPDFDocumentGetAccessPermissions
public static int CGPDFDocumentGetAccessPermissions(@NotNull @NotNull CGPDFDocumentRef document)Return the document access permissions. API-Since: 11.0
-
CGContextResetClip
public static void CGContextResetClip(@NotNull @NotNull CGContextRef c)Reset the current clip of `c' to the default value.
-
CGColorConversionInfoCreateFromListWithArguments
@Nullable public static @Nullable CGColorConversionInfoRef CGColorConversionInfoCreateFromListWithArguments(@Nullable @Nullable CFDictionaryRef options, @Nullable @Nullable CGColorSpaceRef arg2, int arg3, int arg4, org.moe.natj.general.ptr.BytePtr arg5)
API-Since: 11.0
-
CGPDFContextSetOutline
public static void CGPDFContextSetOutline(@NotNull @NotNull CGContextRef context, @Nullable @Nullable CFDictionaryRef outline)Set the outline in the PDF created by a CGPDFContext (no effect in other types of CGContexts). API-Since: 11.0
-
kCGColorSpaceGenericLab
@NotNull public static @NotNull CFStringRef kCGColorSpaceGenericLab()
The name of the "Generic" L*a*b* color space. This is the same as L*a*b* colorspace created by `CGColorSpaceCreateLab' with white_point[0.9642, 1.0, 0.8249] (i.e. D50), black_point[0.0, 0.0, 0.0] and range [-128, 128, -128, 128]. API-Since: 11.0
-
kCGPDFOutlineTitle
@NotNull public static @NotNull CFStringRef kCGPDFOutlineTitle()
Key: kCGPDFOutlineTitle Value: CFString API-Since: 11.0
-
kCGPDFOutlineChildren
@NotNull public static @NotNull CFStringRef kCGPDFOutlineChildren()
Key: kCGPDFOutlineChildren Value: CFArray of CFDictionaries API-Since: 11.0
-
kCGPDFOutlineDestination
@NotNull public static @NotNull CFStringRef kCGPDFOutlineDestination()
Key: kCGPDFOutlineDestination Value: CFNumber (for a one-indexed page number) or CFURL API-Since: 11.0
-
kCGPDFOutlineDestinationRect
@NotNull public static @NotNull CFStringRef kCGPDFOutlineDestinationRect()
Key: kCGPDFOutlineDestinationRect Value: CFDictionary from CGRectCreateDictionaryRepresentation. Only valid when the destination is a page number. API-Since: 11.0
-
kCGColorConversionTRCSize
@NotNull public static @NotNull CFStringRef kCGColorConversionTRCSize()
API-Since: 11.0
-
kCGPDFContextAccessPermissions
@NotNull public static @NotNull CFStringRef kCGPDFContextAccessPermissions()
The document's access permissions, expressed as a CFNumber. The number is defined by ORing together the desired CGPDFAccessPermissions values. API-Since: 11.0
-
CGColorSpaceIsHDR
@Deprecated public static boolean CGColorSpaceIsHDR(@NotNull @NotNull CGColorSpaceRef arg1)Deprecated.Return true if color space uses transfer functions defined in ITU Rec.2100 Please use CGColorSpaceUsesITUR_2100TF instead API-Since: 13.0 Deprecated-Since: 13.4 Deprecated-Message: No longer supported
-
CGColorSpaceCopyPropertyList
@Nullable public static @Nullable org.moe.natj.general.ptr.ConstVoidPtr CGColorSpaceCopyPropertyList(@NotNull @NotNull CGColorSpaceRef space)CGColorSpaceCopyPropertyList will return NULL for special color spaces (e.g. kCGColorSpaceDeviceN or kCGColorSpacePattern), except Indexed Color Space API-Since: 10.0
-
CGColorSpaceCreateWithPropertyList
@Nullable public static @Nullable CGColorSpaceRef CGColorSpaceCreateWithPropertyList(@NotNull @NotNull org.moe.natj.general.ptr.ConstVoidPtr plist)
API-Since: 10.0
-
CGColorCreateGenericGrayGamma2_2
@NotNull public static @NotNull CGColorRef CGColorCreateGenericGrayGamma2_2(double gray, double alpha)
Create a color in the "Generic Gray Gamma 2.2 color space. API-Since: 13.0
-
CGColorCreateSRGB
@NotNull public static @NotNull CGColorRef CGColorCreateSRGB(double red, double green, double blue, double alpha)
Create a color in sRGB color space. API-Since: 13.0
-
CGImageGetByteOrderInfo
public static int CGImageGetByteOrderInfo(@Nullable @Nullable CGImageRef image)Return the byte order info of `image'. API-Since: 12.0
-
CGImageGetPixelFormatInfo
public static int CGImageGetPixelFormatInfo(@Nullable @Nullable CGImageRef image)Return the pixel format of `image'. API-Since: 12.0
-
CGPDFArrayApplyBlock
public static void CGPDFArrayApplyBlock(@Nullable @Nullable CGPDFArrayRef array, @Nullable @Nullable CoreGraphics.Block_CGPDFArrayApplyBlock block, @Nullable @Nullable org.moe.natj.general.ptr.VoidPtr info)Enumerate all of the objects in `array', calling the block-function `block' once for each value in the array. Passes the current iterator index, the current value, and `info' to `block'. If `block' returns true, iteration will continue over all values. If `block' returns false, iteration will stop and return early. API-Since: 12.0
-
CGPDFDictionaryApplyBlock
public static void CGPDFDictionaryApplyBlock(@Nullable @Nullable CGPDFDictionaryRef dict, @Nullable @Nullable CoreGraphics.Block_CGPDFDictionaryApplyBlock block, @Nullable @Nullable org.moe.natj.general.ptr.VoidPtr info)Enumerate all of the keys in `dict', calling the block-function `block' once for each key/value pair. Passes the current key, the associated value, and `info' to `block'. If `block' returns true, iteration will continue over all key/value pairs. If `block' returns false, iteration will stop and return early. API-Since: 12.0
-
CGColorConversionInfoCreateWithOptions
@Nullable public static @Nullable CGColorConversionInfoRef CGColorConversionInfoCreateWithOptions(@NotNull @NotNull CGColorSpaceRef src, @NotNull @NotNull CGColorSpaceRef dst, @Nullable @Nullable CFDictionaryRef options)
API-Since: 13.0
-
CGPDFTagTypeGetName
@Nullable public static @Nullable java.lang.String CGPDFTagTypeGetName(int tagType)
For a given CGPDFTagType, return a C-string that matches the names defined in section 10.7.3: Standard Structure Types. These are defined on pages 899 - 912. Returns NULL for an unknown value. API-Since: 13.0
-
CGPDFContextBeginTag
public static void CGPDFContextBeginTag(@NotNull @NotNull CGContextRef context, int tagType, @Nullable @Nullable CFDictionaryRef tagProperties)Sets the current tag to the given tagType with an associated tagProperties dictionary. The previous tag will be pushed to a tag-stack. The previous tag can be restored through CGPDFContextEndTag(...). This new tag will record any future drawing commands to the given context as part of itself, unless another tag is pushed or the tag is popped. When the PDF context is serialized to a PDF file, these tags will create marked content sequences around the associated draw commands around the page's content stream. Note that tagProperties is an optional dictionary that allows you to specificy additional properties of the marked content: content may want to re-declare how text should be extracted, any alt text for figures, or explicitly declare what language the text is in. All child-tags (tags pushed on top of other tags) will inherit their parent tag's properties. API-Since: 13.0
-
CGPDFContextEndTag
public static void CGPDFContextEndTag(@NotNull @NotNull CGContextRef context)Pop the current tag. Sets the current tag to the previous tag on the tag-stack. If there was no previous tag, then the current tag will be set to the root document tag (of type CGPDFTagTypeDocument). API-Since: 13.0
-
kCGColorSpaceExtendedLinearITUR_2020
@NotNull public static @NotNull CFStringRef kCGColorSpaceExtendedLinearITUR_2020()
API-Since: 12.3
-
kCGColorSpaceExtendedLinearDisplayP3
@NotNull public static @NotNull CFStringRef kCGColorSpaceExtendedLinearDisplayP3()
API-Since: 12.3
-
kCGColorSpaceITUR_2020_PQ_EOTF
@NotNull @Deprecated public static @NotNull CFStringRef kCGColorSpaceITUR_2020_PQ_EOTF()
Deprecated.API-Since: 12.6 Deprecated-Since: 13.4 Deprecated-Message: No longer supported
-
kCGColorSpaceDisplayP3_PQ_EOTF
@NotNull @Deprecated public static @NotNull CFStringRef kCGColorSpaceDisplayP3_PQ_EOTF()
Deprecated.API-Since: 12.6 Deprecated-Since: 13.4 Deprecated-Message: No longer supported
-
kCGColorSpaceDisplayP3_HLG
@NotNull public static @NotNull CFStringRef kCGColorSpaceDisplayP3_HLG()
API-Since: 12.6
-
kCGColorSpaceITUR_2020_HLG
@NotNull @Deprecated public static @NotNull CFStringRef kCGColorSpaceITUR_2020_HLG()
Deprecated.API-Since: 12.6 Deprecated-Since: 14.0 Deprecated-Message: No longer supported
-
kCGPDFTagPropertyActualText
@NotNull public static @NotNull CFStringRef kCGPDFTagPropertyActualText()
Actual text, defined on page 860: "Text that is an exact replacement for the structure element and its children..." "...useful when extracting the document’s contents in support of accessibility..." This can be used to more precisely control what string is extracted by a user when they copy and paste from a document. API-Since: 13.0
-
kCGPDFTagPropertyAlternativeText
@NotNull public static @NotNull CFStringRef kCGPDFTagPropertyAlternativeText()
Alternative text, defined on page 860: "An alternate description of the structure element and its children in human-readable form". This is typically used for graphical content, like an image. API-Since: 13.0
-
kCGPDFTagPropertyTitleText
@NotNull public static @NotNull CFStringRef kCGPDFTagPropertyTitleText()
Title, defined on page 859: Title of the node in a human-readable form. This should *not* be used for accessibility, but can be useful when presenting the structure of a tagged node tree. API-Since: 13.0
-
kCGPDFTagPropertyLanguageText
@NotNull public static @NotNull CFStringRef kCGPDFTagPropertyLanguageText()
Language of text content, defined on page 860: Typically you should use the document's catalog to get its language, but if a section of text is not the same language as the document, this may be set and allow you to look at what language it is hinting at. API-Since: 13.0
-
kCGColorSpaceITUR_2020_PQ
@NotNull @Deprecated public static @NotNull CFStringRef kCGColorSpaceITUR_2020_PQ()
Deprecated.API-Since: 13.4 Deprecated-Since: 14.0 Deprecated-Message: No longer supported
-
kCGColorSpaceDisplayP3_PQ
@NotNull public static @NotNull CFStringRef kCGColorSpaceDisplayP3_PQ()
API-Since: 13.4
-
CGColorSpaceUsesExtendedRange
public static boolean CGColorSpaceUsesExtendedRange(@NotNull @NotNull CGColorSpaceRef space)Return true if `space' uses extended range [-Inf, +Inf]; false otherwise. API-Since: 10.0
-
CGColorCreateGenericGray
@NotNull public static @NotNull CGColorRef CGColorCreateGenericGray(double gray, double alpha)
Create a color in the "Generic" gray color space. API-Since: 13.0
-
CGColorCreateGenericRGB
@NotNull public static @NotNull CGColorRef CGColorCreateGenericRGB(double red, double green, double blue, double alpha)
Create a color in the "Generic" RGB color space. API-Since: 13.0
-
CGColorCreateGenericCMYK
@NotNull public static @NotNull CGColorRef CGColorCreateGenericCMYK(double cyan, double magenta, double yellow, double black, double alpha)
Create a color in the "Generic" CMYK color space. API-Since: 13.0
-
CGColorGetConstantColor
@Nullable public static @Nullable CGColorRef CGColorGetConstantColor(@Nullable @Nullable CFStringRef colorName)
Return a constant color. As `CGColorGetConstantColor' is not a "Copy" or "Create" function, it does not necessarily return a new reference each time it's called. As a consequence, you should not release the returned value. However, colors returned from `CGColorGetConstantColor' can be retained and released in a properly nested fashion, just like any other CF type. API-Since: 14.0
-
kCGColorSpaceITUR_2100_PQ
@NotNull public static @NotNull CFStringRef kCGColorSpaceITUR_2100_PQ()
API-Since: 14.0
-
kCGColorSpaceITUR_2100_HLG
@NotNull public static @NotNull CFStringRef kCGColorSpaceITUR_2100_HLG()
API-Since: 14.0
-
kCGColorWhite
@NotNull public static @NotNull CFStringRef kCGColorWhite()
Colors in the "Generic" gray color space. API-Since: 14.0
-
kCGColorBlack
@NotNull public static @NotNull CFStringRef kCGColorBlack()
API-Since: 14.0
-
kCGColorClear
@NotNull public static @NotNull CFStringRef kCGColorClear()
API-Since: 14.0
-
kCGPDFContextOutputIntent
@NotNull public static @NotNull CFStringRef kCGPDFContextOutputIntent()
The document's PDF/X output intent. Optional; if present, the value of this key must be a CFDictionaryRef. The dictionary is added to the /OutputIntents entry in the PDF file's document catalog. The keys and values contained in the dictionary must match those specified in section 9.10.4 of the PDF 1.4 specification, ISO/DIS 15930-3 document published by ISO/TC 130, and Adobe Technical Note #5413. API-Since: 14.0
-
kCGPDFXOutputIntentSubtype
@NotNull public static @NotNull CFStringRef kCGPDFXOutputIntentSubtype()
The following keys are supported in the output intent dictionary: kCGPDFXOutputIntentSubtype ("S"): The output intent subtype. This key is required; the value of this key must be a CFString equal to "GTS_PDFX"; otherwise, the dictionary is ignored. API-Since: 14.0
-
kCGPDFXOutputConditionIdentifier
@NotNull public static @NotNull CFStringRef kCGPDFXOutputConditionIdentifier()
kCGPDFXOutputConditionIdentifier ("OutputConditionIdentifier"): A string identifying the intended output device or production condition in a human- or machine-readable form. This key is required; the value of this key must be a CFString. For best results, the string should be representable losslessly in ASCII encoding. API-Since: 14.0
-
kCGPDFXOutputCondition
@NotNull public static @NotNull CFStringRef kCGPDFXOutputCondition()
kCGPDFXOutputCondition ("OutputCondition"): A text string identifying the intended output device or production condition in a human-readable form. This key is optional; if present, the value of this key must be a CFString. API-Since: 14.0
-
kCGPDFXRegistryName
@NotNull public static @NotNull CFStringRef kCGPDFXRegistryName()
kCGPDFXRegistryName ("RegistryName"): A string identifying the registry in which the condition designated by `kCGPDFXOutputConditionIdentifier' is defined. This key is optional; if present, the value of this key must be a CFString. For best results, the string should be representable losslessly in ASCII encoding. API-Since: 14.0
-
kCGPDFXInfo
@NotNull public static @NotNull CFStringRef kCGPDFXInfo()
kCGPDFXInfo ("Info"): A human-readable text string containing additional information about the intended target device or production condition. This key is required if the value of `kCGPDFXOutputConditionIdentifier' does not specify a standard production condition; it is optional otherwise. If present, the value of this key must be a CFString. API-Since: 14.0
-
kCGPDFXDestinationOutputProfile
@NotNull public static @NotNull CFStringRef kCGPDFXDestinationOutputProfile()
kCGPDFXDestinationOutputProfile ("DestOutputProfile"): An ICC profile stream defining the transformation from the PDF document's source colors to output device colorants. This key is required if the value of `kCGPDFXOutputConditionIdentifier' does not specify a standard production condition; it is optional otherwise. If present, the value of this key must be a ICC-based CGColorSpaceRef. API-Since: 14.0
-
kCGPDFContextOutputIntents
@NotNull public static @NotNull CFStringRef kCGPDFContextOutputIntents()
The document's output intents. Optional; if present, the value must be a CFArrayRef containing one or more CFDictionaryRefs. The array is added to the PDF document in the /OutputIntents entry in the PDF file's document catalog. Each dictionary in the array must be of form specified above for the `kCGPDFContextOutputIntent' key, except that only the first dictionary in the array may contain the `kCGPDFXOutputIntentSubtype' ("S") key with a value of "GTS_PDFX". If both `kCGPDFContextOutputIntent' and `kCGPDFContextOutputIntents' keys are specified, the former is ignored. API-Since: 14.0
-
kCGPDFContextCreateLinearizedPDF
@NotNull public static @NotNull CFStringRef kCGPDFContextCreateLinearizedPDF()
Output a linearized PDF API-Since: 14.0
-
kCGPDFContextCreatePDFA
@NotNull public static @NotNull CFStringRef kCGPDFContextCreatePDFA()
Output a PDF that conforms to PDF/A-2u (ISO 19005-2). The value of this key must be a CFBooleanRef. The default value of this key is "kCFBooleanFalse". API-Since: 14.0
-
CGColorSpaceUsesITUR_2100TF
public static boolean CGColorSpaceUsesITUR_2100TF(@NotNull @NotNull CGColorSpaceRef arg1)Return true if color space uses transfer functions defined in ITU Rec.2100 API-Since: 14.0
-
CGColorSpaceCreateLinearized
@Nullable public static @Nullable CGColorSpaceRef CGColorSpaceCreateLinearized(@NotNull @NotNull CGColorSpaceRef space)
Create a linearized copy of the color space if the color space is matrix based. Return NULL if otherwise API-Since: 14.0
-
CGColorSpaceCreateExtended
@Nullable public static @Nullable CGColorSpaceRef CGColorSpaceCreateExtended(@NotNull @NotNull CGColorSpaceRef space)
Create a copy of the color space which uses extended range [-Inf, +Inf] if the color space is matrix based. Return NULL if otherwise API-Since: 14.0
-
CGColorSpaceCreateExtendedLinearized
@Nullable public static @Nullable CGColorSpaceRef CGColorSpaceCreateExtendedLinearized(@NotNull @NotNull CGColorSpaceRef space)
Create a linearized copy of the color space which uses extended range [-Inf, +Inf] if the color space is matrix based. Return NULL if otherwise API-Since: 14.0
-
kCGColorSpaceExtendedITUR_2020
@NotNull public static @NotNull CFStringRef kCGColorSpaceExtendedITUR_2020()
API-Since: 14.0
-
kCGColorSpaceExtendedDisplayP3
@NotNull public static @NotNull CFStringRef kCGColorSpaceExtendedDisplayP3()
API-Since: 14.0
-
CGColorSpaceCreateWithColorSyncProfile
@Nullable public static @Nullable CGColorSpaceRef CGColorSpaceCreateWithColorSyncProfile(@Nullable @Nullable ColorSyncProfileRef arg1, @Nullable @Nullable CFDictionaryRef options)
Create a color space using ColorSyncProfileRef. To create an extended color space include kCGColorSpaceExtendedRange/kCFBooleanTrue key/value pair in `options' dictionary. API-Since: 15.0
-
CGColorSpaceIsPQBased
public static boolean CGColorSpaceIsPQBased(@NotNull @NotNull CGColorSpaceRef s)API-Since: 15.0
-
CGColorSpaceIsHLGBased
public static boolean CGColorSpaceIsHLGBased(@NotNull @NotNull CGColorSpaceRef s)API-Since: 15.0
-
CGConvertColorDataWithFormat
public static boolean CGConvertColorDataWithFormat(long width, long height, org.moe.natj.general.ptr.VoidPtr dst_data, CGColorDataFormat dst_format, org.moe.natj.general.ptr.VoidPtr src_data, CGColorDataFormat src_format, CFDictionaryRef options)
-
CGErrorSetCallback
public static void CGErrorSetCallback(CoreGraphics.Function_CGErrorSetCallback callback)
Set a callback for easier detection of error conditions causing CoreGraphics to raise an error. Pass NULL to reset the callback.
-
kCGColorSpaceLinearITUR_2020
@NotNull public static @NotNull CFStringRef kCGColorSpaceLinearITUR_2020()
API-Since: 15.0
-
kCGColorSpaceLinearDisplayP3
@NotNull public static @NotNull CFStringRef kCGColorSpaceLinearDisplayP3()
API-Since: 15.0
-
kCGColorSpaceExtendedRange
@NotNull public static @NotNull CFStringRef kCGColorSpaceExtendedRange()
-
kCGColorSpaceITUR_709_PQ
@NotNull public static @NotNull CFStringRef kCGColorSpaceITUR_709_PQ()
API-Since: 15.1
-
kCGColorSpaceITUR_2020_sRGBGamma
@NotNull public static @NotNull CFStringRef kCGColorSpaceITUR_2020_sRGBGamma()
API-Since: 15.1
-
CGAffineTransformDecompose
public static CGAffineTransformComponents CGAffineTransformDecompose(CGAffineTransform transform)
Decompose a CGAffineTransform into a scale * shear * rotation * translation This decomposition method may be used to provide insight into what a arbitrary CGAffineTransform does. This may be necessary, for example, because an algorithm would like to know what the scaling portion of a transform is before rotation, or perhaps because some part of a transform is undesired and your application would like to replace a portion of it with a different transformation. Since there are many ways to make a affine transform out of other affine transforms this method can not tell us the ordering of geometric steps used to create the original CGAffineTransform. It tells us what the transform does, not how it was made.- Parameters:
transform- The CGAffineTransform to decompose- Returns:
- A decomposed set of geometric operations, the product of which is the CGAffineTransform. API-Since: 16.0
-
CGAffineTransformMakeWithComponents
public static CGAffineTransform CGAffineTransformMakeWithComponents(CGAffineTransformComponents components)
Create CGAffineTransform from scale * shear * rotation * translation CGAffineTransformComponents- Parameters:
components- The set of CGAffineTransformComponents to use to create a new CGAffineTransform- Returns:
- A new CGAffineTransform built from the provided components API-Since: 16.0
-
CGColorSpaceCreateCopyWithStandardRange
@NotNull public static @NotNull CGColorSpaceRef CGColorSpaceCreateCopyWithStandardRange(@NotNull @NotNull CGColorSpaceRef s)
Create a copy of the color space which uses standard range [0.0, 1.0]. API-Since: 16.0
-
CGPathCreateCopyByNormalizing
@Nullable public static @Nullable CGPathRef CGPathCreateCopyByNormalizing(@Nullable @Nullable CGPathRef path, boolean evenOddFillRule)
Returns a new weakly-simple path without self-intersections and with a normalized orientation. Filling the resulting path using even-odd or non-zero filling is identical. API-Since: 16.0
-
CGPathCreateCopyByUnioningPath
@Nullable public static @Nullable CGPathRef CGPathCreateCopyByUnioningPath(@Nullable @Nullable CGPathRef path, @Nullable @Nullable CGPathRef maskPath, boolean evenOddFillRule)
Returns a new path created by unioning `path` and `maskPath`. Any unclosed subpaths in either path are assumed to be closed. The resulting path is suitable for either even-odd or non-zero filling. API-Since: 16.0
-
CGPathCreateCopyByIntersectingPath
@Nullable public static @Nullable CGPathRef CGPathCreateCopyByIntersectingPath(@Nullable @Nullable CGPathRef path, @Nullable @Nullable CGPathRef maskPath, boolean evenOddFillRule)
Returns a new path created by intersecting `path` and `maskPath`. Any unclosed subpaths in either path are assumed to be closed. The resulting path is suitable for either even-odd or non-zero filling. API-Since: 16.0
-
CGPathCreateCopyBySubtractingPath
@Nullable public static @Nullable CGPathRef CGPathCreateCopyBySubtractingPath(@Nullable @Nullable CGPathRef path, @Nullable @Nullable CGPathRef maskPath, boolean evenOddFillRule)
Returns a new path created by subtracting `maskPath` from `path`. Any unclosed subpaths in either path are assumed to be closed. The resulting path is suitable for either even-odd or non-zero filling. API-Since: 16.0
-
CGPathCreateCopyBySymmetricDifferenceOfPath
@Nullable public static @Nullable CGPathRef CGPathCreateCopyBySymmetricDifferenceOfPath(@Nullable @Nullable CGPathRef path, @Nullable @Nullable CGPathRef maskPath, boolean evenOddFillRule)
Returns a new path created by exclusive or-ing `path` and `maskPath`. Any unclosed subpaths in either path are assumed to be closed. The resulting path is suitable for either even-odd or non-zero filling. API-Since: 16.0
-
CGPathCreateCopyOfLineBySubtractingPath
@Nullable public static @Nullable CGPathRef CGPathCreateCopyOfLineBySubtractingPath(@Nullable @Nullable CGPathRef path, @Nullable @Nullable CGPathRef maskPath, boolean evenOddFillRule)
Returns a new path created by subtracting the `maskPath` from the line of `path` with the fill of `maskPath`. This returns a potentially open path. API-Since: 16.0
-
CGPathCreateCopyOfLineByIntersectingPath
@Nullable public static @Nullable CGPathRef CGPathCreateCopyOfLineByIntersectingPath(@Nullable @Nullable CGPathRef path, @Nullable @Nullable CGPathRef maskPath, boolean evenOddFillRule)
Returns a new path created by intersecting the line of `path` and the fill of `maskPath`. This returns a potentially open path. API-Since: 16.0
-
CGPathCreateSeparateComponents
@Nullable public static @Nullable CFArrayRef CGPathCreateSeparateComponents(@Nullable @Nullable CGPathRef path, boolean evenOddFillRule)
Return an array of the visually separated components of a path. API-Since: 16.0
-
CGPathCreateCopyByFlattening
@Nullable public static @Nullable CGPathRef CGPathCreateCopyByFlattening(@Nullable @Nullable CGPathRef path, double flatteningThreshold)
Returns a new path that is flattened, converting all curved line segments into straight line approximations. The granularity of the approximations is controlled by `flatteningThreshold` the maximum error tolerance (measured in points) for curves. API-Since: 16.0
-
CGPathIntersectsPath
public static boolean CGPathIntersectsPath(@Nullable @Nullable CGPathRef path1, @Nullable @Nullable CGPathRef path2, boolean evenOddFillRule)Returns true if path1 and path2 overlap. API-Since: 16.0
-
CGPDFScannerStop
public static void CGPDFScannerStop(@NotNull @NotNull CGPDFScannerRef s)Cleanly stop the scanner on the current operator, releasing any temporary resources.
-
kCGColorSpaceITUR_709_HLG
@NotNull public static @NotNull CFStringRef kCGColorSpaceITUR_709_HLG()
API-Since: 15.1
-
CGContextDrawConicGradient
public static void CGContextDrawConicGradient(@NotNull @NotNull CGContextRef c, @Nullable @Nullable CGGradientRef gradient, CGPoint center, double angle)Fill the current clipping region of `context' with a conic gradient defined by the center point and rotation angle. The location 0 of `gradient' corresponds to a initial rotation angle; the location 1 of `gradient' corresponds to 360 degrees rotation from rotation angle; colors are linearly interpolated over the full angle based on the values of the gradient's locations. The 0 angle corresponds to positive x axis. The angle increases towards positive y axis. API-Since: 17.0
-
-