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_CGPathApplystatic interfaceCoreGraphics.Function_CGPDFDictionaryApplyFunctionstatic interfaceCoreGraphics.Function_CGPDFOperatorTableSetCallback
-
Field Summary
Fields Modifier and Type Field Description static 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 functionsstatic 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 * t2static 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 ]static CGAffineTransformCGAffineTransformMakeScale(double sx, double sy)Return a transform which scales by `(sx, sy)': t' = [ sx 0 0 sy 0 0 ]static CGAffineTransformCGAffineTransformMakeTranslation(double tx, double ty)Return a transform which translates by `(tx, ty)': t' = [ 1 0 0 1 tx ty ]static 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 ] * tstatic CGAffineTransformCGAffineTransformScale(CGAffineTransform t, double sx, double sy)Scale `t' by `(sx, sy)' and return the result: t' = [ sx 0 0 sy 0 0 ] * tstatic CGAffineTransformCGAffineTransformTranslate(CGAffineTransform t, double tx, double ty)Translate `t' by `(tx, ty)' and return the result: t' = [ 1 0 0 1 tx ty ] * tstatic CGContextRefCGBitmapContextCreate(org.moe.natj.general.ptr.VoidPtr data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpaceRef space, int bitmapInfo)Create a bitmap context.static CGImageRefCGBitmapContextCreateImage(CGContextRef context)Return an image containing a snapshot of the bitmap context `context'.static CGContextRefCGBitmapContextCreateWithData(org.moe.natj.general.ptr.VoidPtr data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpaceRef space, int bitmapInfo, CoreGraphics.Function_CGBitmapContextCreateWithData releaseCallback, org.moe.natj.general.ptr.VoidPtr releaseInfo)Create a bitmap context.static intCGBitmapContextGetAlphaInfo(CGContextRef context)Return the alpha info of the bitmap context `context', or "kCGImageAlphaNone" if `context' is not a bitmap context.static intCGBitmapContextGetBitmapInfo(CGContextRef context)Return the bitmap info of the bitmap context `context', or 0 if `context' is not a bitmap context.static longCGBitmapContextGetBitsPerComponent(CGContextRef context)Return the bits per component of the bitmap context `context', or 0 if `context' is not a bitmap context.static longCGBitmapContextGetBitsPerPixel(CGContextRef context)Return the bits per pixel of the bitmap context `context', or 0 if `context' is not a bitmap context.static longCGBitmapContextGetBytesPerRow(CGContextRef context)Return the bytes per row of the bitmap context `context', or 0 if `context' is not a bitmap context.static CGColorSpaceRefCGBitmapContextGetColorSpace(CGContextRef context)Return the color space of the bitmap context `context', or NULL if `context' is not a bitmap context.static org.moe.natj.general.ptr.VoidPtrCGBitmapContextGetData(CGContextRef context)Return the data associated with the bitmap context `context', or NULL if `context' is not a bitmap context.static longCGBitmapContextGetHeight(CGContextRef context)Return the height of the bitmap context `context', or 0 if `context' is not a bitmap context.static longCGBitmapContextGetWidth(CGContextRef context)Return the width of the bitmap context `context', or 0 if `context' is not a bitmap context.static CGColorConversionInfoRefCGColorConversionInfoCreate(CGColorSpaceRef src, CGColorSpaceRef dst)Create CGColorConversionInfoRef for converting color from `src' color space to `dst' color space using kCGRenderingIntentDefault rendering intent.static CGColorConversionInfoRefCGColorConversionInfoCreateFromList(CFDictionaryRef options, 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 CGColorConversionInfoRefCGColorConversionInfoCreateFromListWithArguments(CFDictionaryRef options, CGColorSpaceRef arg2, int arg3, int arg4, org.moe.natj.general.ptr.BytePtr arg5)static CGColorConversionInfoRefCGColorConversionInfoCreateWithOptions(CGColorSpaceRef src, CGColorSpaceRef dst, CFDictionaryRef options)static longCGColorConversionInfoGetTypeID()static CGColorRefCGColorCreate(CGColorSpaceRef space, org.moe.natj.general.ptr.ConstNFloatPtr components)Create a color in the color space `space' with color components (including alpha) specified by `components'.static CGColorRefCGColorCreateCopy(CGColorRef color)Create a copy of `color'.static CGColorRefCGColorCreateCopyByMatchingToColorSpace(CGColorSpaceRef arg1, int intent, CGColorRef color, CFDictionaryRef options)Create a copy of `color' by matching existing color to destination color space.static CGColorRefCGColorCreateCopyWithAlpha(CGColorRef color, double alpha)Create a copy of `color' with alpha set to `alpha'.static CGColorRefCGColorCreateGenericCMYK(double cyan, double magenta, double yellow, double black, double alpha)Create a color in the "Generic" CMYK color space.static CGColorRefCGColorCreateGenericGray(double gray, double alpha)Create a color in the "Generic" gray color space.static CGColorRefCGColorCreateGenericGrayGamma2_2(double gray, double alpha)Create a color in the "Generic Gray Gamma 2.2 color space.static CGColorRefCGColorCreateGenericRGB(double red, double green, double blue, double alpha)Create a color in the "Generic" RGB color space.static CGColorRefCGColorCreateSRGB(double red, double green, double blue, double alpha)Create a color in sRGB color space.static CGColorRefCGColorCreateWithPattern(CGColorSpaceRef space, CGPatternRef pattern, org.moe.natj.general.ptr.ConstNFloatPtr components)Create a color in color space `space' with pattern `pattern' and components `components'.static booleanCGColorEqualToColor(CGColorRef color1, CGColorRef color2)Return true if `color1' is equal to `color2'; false otherwise.static doubleCGColorGetAlpha(CGColorRef color)Return the alpha component associated with `color'.static CGColorSpaceRefCGColorGetColorSpace(CGColorRef color)Return the color space associated with `color'.static org.moe.natj.general.ptr.ConstNFloatPtrCGColorGetComponents(CGColorRef color)Return the color components (including alpha) associated with `color'.static CGColorRefCGColorGetConstantColor(CFStringRef colorName)Return a constant color.static longCGColorGetNumberOfComponents(CGColorRef color)Return the number of color components (including alpha) associated with `color'.static CGPatternRefCGColorGetPattern(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(CGColorRef color)Equivalent to `CFRelease(color)', except it doesn't crash (as CFRelease does) if `color' is NULL.static CGColorRefCGColorRetain(CGColorRef color)Equivalent to `CFRetain(color)', except it doesn't crash (as CFRetain does) if `color' is NULL.static CFDataRefCGColorSpaceCopyICCData(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 CFDataRefCGColorSpaceCopyICCProfile(CGColorSpaceRef space)Please use `CGColorSpaceCopyICCData'static CFStringRefCGColorSpaceCopyName(CGColorSpaceRef space)Same as `CGColorSpaceGetName' but with ownership released to the caller.static org.moe.natj.general.ptr.ConstVoidPtrCGColorSpaceCopyPropertyList(CGColorSpaceRef space)static CGColorSpaceRefCGColorSpaceCreateDeviceCMYK()Create a DeviceCMYK color space.static CGColorSpaceRefCGColorSpaceCreateDeviceGray()Create a DeviceGray color space.static CGColorSpaceRefCGColorSpaceCreateDeviceRGB()Create a DeviceRGB color space.static CGColorSpaceRefCGColorSpaceCreateExtended(CGColorSpaceRef space)Create a copy of the color space which uses extended range [-Inf, +Inf] if the color space is matrix based.static CGColorSpaceRefCGColorSpaceCreateExtendedLinearized(CGColorSpaceRef space)Create a linearized copy of the color space which uses extended range [-Inf, +Inf] if the color space is matrix based.static CGColorSpaceRefCGColorSpaceCreateICCBased(long nComponents, org.moe.natj.general.ptr.ConstNFloatPtr range, CGDataProviderRef profile, CGColorSpaceRef alternate)Create an ICC-based color space.static CGColorSpaceRefCGColorSpaceCreateIndexed(CGColorSpaceRef baseSpace, long lastIndex, java.lang.String colorTable)Create an indexed color space.static CGColorSpaceRefCGColorSpaceCreateLinearized(CGColorSpaceRef space)Create a linearized copy of the color space if the color space is matrix based.static CGColorSpaceRefCGColorSpaceCreatePattern(CGColorSpaceRef baseSpace)Create a pattern color space.static CGColorSpaceRefCGColorSpaceCreateWithICCData(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 CGDataProviderRefstatic CGColorSpaceRefCGColorSpaceCreateWithICCProfile(CFDataRef data)Please use `CGColorSpaceCreateWithICCData'static CGColorSpaceRefCGColorSpaceCreateWithName(CFStringRef name)Create a color space using `name' as the identifier for the color space.static CGColorSpaceRefCGColorSpaceCreateWithPlatformColorSpace(org.moe.natj.general.ptr.ConstVoidPtr ref)Create a color space using `ref', a platform-specific color space reference.static CGColorSpaceRefCGColorSpaceCreateWithPropertyList(org.moe.natj.general.ptr.ConstVoidPtr plist)static CGColorSpaceRefCGColorSpaceGetBaseColorSpace(CGColorSpaceRef space)Return the base color space of `space' if `space' is a pattern or indexed color space; otherwise, return NULL.static voidCGColorSpaceGetColorTable(CGColorSpaceRef space, 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(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(CGColorSpaceRef space)Return the color space model of `space'.static CFStringRefCGColorSpaceGetName(CGColorSpaceRef space)Return the system name of the color space.static longCGColorSpaceGetNumberOfComponents(CGColorSpaceRef space)Return the number of color components in the color space `space'.static longCGColorSpaceGetTypeID()Return the CFTypeID for CGColorSpaces.static booleanCGColorSpaceIsHDR(CGColorSpaceRef arg1)Return true if color space uses transfer functions defined in ITU Rec.2100 Please use CGColorSpaceUsesITUR_2100TF insteadstatic booleanCGColorSpaceIsWideGamutRGB(CGColorSpaceRef arg1)Return true if gamut of the RGB color space is greater than 85% of NTSC gamutstatic voidCGColorSpaceRelease(CGColorSpaceRef space)Equivalent to `CFRelease(space)', except it doesn't crash (as CFRelease does) if `space' is NULL.static CGColorSpaceRefCGColorSpaceRetain(CGColorSpaceRef space)Equivalent to `CFRetain(space)', except it doesn't crash (as CFRetain does) if `space' is NULL.static booleanCGColorSpaceSupportsOutput(CGColorSpaceRef space)Return true if `space' can be used as a destination color space; false otherwise.static booleanCGColorSpaceUsesExtendedRange(CGColorSpaceRef space)Return true if `space' uses extended range [-Inf, +Inf]; false otherwise.static booleanCGColorSpaceUsesITUR_2100TF(CGColorSpaceRef arg1)Return true if color space uses transfer functions defined in ITU Rec.2100static voidCGContextAddArc(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(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(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(CGContextRef c, CGRect rect)Add an ellipse inside `rect' to the current path of `context'.static voidCGContextAddLines(CGContextRef c, CGPoint points, long count)Add a set of lines to the context's path.static voidCGContextAddLineToPoint(CGContextRef c, double x, double y)Append a straight line segment from the current point to `(x, y)'.static voidCGContextAddPath(CGContextRef c, CGPathRef path)Add `path' to the path of context.static voidCGContextAddQuadCurveToPoint(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(CGContextRef c, CGRect rect)Add a single rect to the context's path.static voidCGContextAddRects(CGContextRef c, CGRect rects, long count)Add a set of rects to the context's path.static voidCGContextBeginPage(CGContextRef c, CGRect mediaBox)Begin a new page.static voidCGContextBeginPath(CGContextRef c)Begin a new path.static voidCGContextBeginTransparencyLayer(CGContextRef c, CFDictionaryRef auxiliaryInfo)Begin a transparency layer in `context'.static voidCGContextBeginTransparencyLayerWithRect(CGContextRef c, CGRect rect, CFDictionaryRef auxInfo)Begin a transparency layer in `context'.static voidCGContextClearRect(CGContextRef c, CGRect rect)Clear `rect' (that is, set the region within the rect to transparent).static voidCGContextClip(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(CGContextRef c, CGRect rect, CGImageRef mask)Add `mask' transformed to `rect' to the clipping area of `context'.static voidCGContextClipToRect(CGContextRef c, CGRect rect)Intersect the current clipping path with `rect'.static voidCGContextClipToRects(CGContextRef c, 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(CGContextRef c)Close the current subpath of the context's path.static voidCGContextConcatCTM(CGContextRef c, CGAffineTransform transform)Concatenate the current graphics state's transformation matrix (the CTM) with the affine transform `transform'.static CGPointCGContextConvertPointToDeviceSpace(CGContextRef c, CGPoint point)Transform `point' from the user space of `context' to device space.static CGPointCGContextConvertPointToUserSpace(CGContextRef c, CGPoint point)Transform `point' from device space to the user space of `context'.static CGRectCGContextConvertRectToDeviceSpace(CGContextRef c, CGRect rect)Transform `rect' from the user space of `context' to device space.static CGRectCGContextConvertRectToUserSpace(CGContextRef c, CGRect rect)Transform `rect' from device space to the user space of `context'.static CGSizeCGContextConvertSizeToDeviceSpace(CGContextRef c, CGSize size)Transform `size' from the user space of `context' to device space.static CGSizeCGContextConvertSizeToUserSpace(CGContextRef c, CGSize size)Transform `size' from device space to the user space of `context'.static CGPathRefCGContextCopyPath(CGContextRef c)Return a copy of the path of `context'.static voidCGContextDrawImage(CGContextRef c, CGRect rect, CGImageRef image)Draw `image' in the rectangular area specified by `rect' in the context `c'.static voidCGContextDrawLayerAtPoint(CGContextRef context, CGPoint point, CGLayerRef layer)Draw the contents of `layer' at `point' in `context'.static voidCGContextDrawLayerInRect(CGContextRef context, CGRect rect, CGLayerRef layer)Draw the contents of `layer' into `rect' of `context'.static voidCGContextDrawLinearGradient(CGContextRef c, 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(CGContextRef c, int mode)Draw the context's path using drawing mode `mode'.static voidCGContextDrawPDFPage(CGContextRef c, CGPDFPageRef page)Draw `page' in the current user space of the context `c'.static voidCGContextDrawRadialGradient(CGContextRef c, 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(CGContextRef c, CGShadingRef shading)Fill the current clipping region of `context' with `shading'.static voidCGContextDrawTiledImage(CGContextRef c, CGRect rect, CGImageRef image)Draw `image' tiled in the context `c'.static voidCGContextEndPage(CGContextRef c)End the current page.static voidCGContextEndTransparencyLayer(CGContextRef c)End a tranparency layer.static voidCGContextEOClip(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(CGContextRef c)Fill the context's path using the even-odd fill rule.static voidCGContextFillEllipseInRect(CGContextRef c, CGRect rect)Fill an ellipse (an oval) inside `rect'.static voidCGContextFillPath(CGContextRef c)Fill the context's path using the winding-number fill rule.static voidCGContextFillRect(CGContextRef c, CGRect rect)Fill `rect' with the current fill color.static voidCGContextFillRects(CGContextRef c, CGRect rects, long count)Fill `rects', an array of `count' CGRects, with the current fill color.static voidCGContextFlush(CGContextRef c)Flush all drawing to the destination.static CGRectCGContextGetClipBoundingBox(CGContextRef c)Return the bounding box of the clip path of `c' in user space.static CGAffineTransformCGContextGetCTM(CGContextRef c)Return the current graphics state's transformation matrix.static intCGContextGetInterpolationQuality(CGContextRef c)Return the interpolation quality for image rendering of `context'.static CGRectCGContextGetPathBoundingBox(CGContextRef c)Return the bounding box of the path of `context'.static CGPointCGContextGetPathCurrentPoint(CGContextRef c)Return the current point of the current subpath of the path of `context'.static CGAffineTransformCGContextGetTextMatrix(CGContextRef c)Return the text matrix in the context `c'.static CGPointCGContextGetTextPosition(CGContextRef c)Return the user-space point at which text will be drawn in `context'.static longCGContextGetTypeID()Return the CFTypeID for CGContextRefs.static CGAffineTransformCGContextGetUserSpaceToDeviceSpaceTransform(CGContextRef c)Return the affine transform mapping the user space (abstract coordinates) of `context' to device space (pixels).static booleanCGContextIsPathEmpty(CGContextRef c)Return true if the path of `context' contains no elements, false otherwise.static voidCGContextMoveToPoint(CGContextRef c, double x, double y)Start a new subpath at point `(x, y)' in the context's path.static booleanCGContextPathContainsPoint(CGContextRef c, CGPoint point, int mode)Return true if `point' is contained in the current path of `context'.static voidCGContextRelease(CGContextRef c)Equivalent to `CFRelease(c)'.static voidCGContextReplacePathWithStrokedPath(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(CGContextRef c)Reset the current clip of `c' to the default value.static voidCGContextRestoreGState(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 CGContextRefCGContextRetain(CGContextRef c)Equivalent to `CFRetain(c)'.static voidCGContextRotateCTM(CGContextRef c, double angle)Rotate the current graphics state's transformation matrix (the CTM) by `angle' radians.static voidCGContextSaveGState(CGContextRef c)Push a copy of the current graphics state onto the graphics state stack.static voidCGContextScaleCTM(CGContextRef c, double sx, double sy)Scale the current graphics state's transformation matrix (the CTM) by `(sx, sy)'.static voidCGContextSelectFont(CGContextRef c, java.lang.String name, double size, int textEncoding)Deprecated.static voidCGContextSetAllowsAntialiasing(CGContextRef c, boolean allowsAntialiasing)Allow antialiasing in `context' if `allowsAntialiasing' is true; don't allow it otherwise.static voidCGContextSetAllowsFontSmoothing(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(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(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(CGContextRef c, double alpha)Set the alpha value in the current graphics state of `c' to `alpha'.static voidCGContextSetBlendMode(CGContextRef c, int mode)Set the blend mode of `context' to `mode'.static voidCGContextSetCharacterSpacing(CGContextRef c, double spacing)Set the current character spacing in `context' to `spacing'.static voidCGContextSetCMYKFillColor(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(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(CGContextRef c, 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(CGContextRef c, CGColorSpaceRef space)Set the current fill color space in `context' to `space'.static voidCGContextSetFillColorWithColor(CGContextRef c, CGColorRef color)Set the current fill color in the context `c' to `color'.static voidCGContextSetFillPattern(CGContextRef c, CGPatternRef pattern, 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(CGContextRef c, double flatness)Set the path flatness parameter in the current graphics state of `c' to `flatness'.static voidCGContextSetFont(CGContextRef c, CGFontRef font)Set the font in the current graphics state of the context `c' to `font'.static voidCGContextSetFontSize(CGContextRef c, double size)Set the font size in the current graphics state of the context `c' to `size'.static voidCGContextSetGrayFillColor(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(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(CGContextRef c, int quality)Set the interpolation quality of `context' to `quality'.static voidCGContextSetLineCap(CGContextRef c, int cap)Set the line cap in the current graphics state to `cap'.static voidCGContextSetLineDash(CGContextRef c, double phase, org.moe.natj.general.ptr.ConstNFloatPtr lengths, long count)Set the line dash patttern in the current graphics state of `c'.static voidCGContextSetLineJoin(CGContextRef c, int join)Set the line join in the current graphics state to `join'.static voidCGContextSetLineWidth(CGContextRef c, double width)Set the line width in the current graphics state to `width'.static voidCGContextSetMiterLimit(CGContextRef c, double limit)Set the miter limit in the current graphics state to `limit'.static voidCGContextSetPatternPhase(CGContextRef c, CGSize phase)Set the pattern phase in the current graphics state of `context' to `phase'.static voidCGContextSetRenderingIntent(CGContextRef c, int intent)Set the rendering intent in the current graphics state of `context' to `intent'.static voidCGContextSetRGBFillColor(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(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(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(CGContextRef c, CGSize offset, double blur, CGColorRef color)Set the shadow parameters in `context'.static voidCGContextSetShouldAntialias(CGContextRef c, boolean shouldAntialias)Turn on antialiasing if `shouldAntialias' is true; turn it off otherwise.static voidCGContextSetShouldSmoothFonts(CGContextRef c, boolean shouldSmoothFonts)Turn on font smoothing if `shouldSmoothFonts' is true; turn it off otherwise.static voidCGContextSetShouldSubpixelPositionFonts(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(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(CGContextRef c, 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(CGContextRef c, CGColorSpaceRef space)Set the current stroke color space in `context' to `space'.static voidCGContextSetStrokeColorWithColor(CGContextRef c, CGColorRef color)Set the current stroke color in the context `c' to `color'.static voidCGContextSetStrokePattern(CGContextRef c, CGPatternRef pattern, 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(CGContextRef c, int mode)Set the text drawing mode in the current graphics state of the context `c' to `mode'.static voidCGContextSetTextMatrix(CGContextRef c, CGAffineTransform t)Set the text matrix in the context `c' to `t'.static voidCGContextSetTextPosition(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(CGContextRef c, org.moe.natj.general.ptr.ConstCharPtr g, long count)Deprecated.static voidCGContextShowGlyphsAtPoint(CGContextRef c, double x, double y, org.moe.natj.general.ptr.ConstCharPtr glyphs, long count)Deprecated.static voidCGContextShowGlyphsAtPositions(CGContextRef c, org.moe.natj.general.ptr.ConstCharPtr glyphs, CGPoint Lpositions, long count)Draw `glyphs', an array of `count' CGGlyphs, at the points specified by `positions'.static voidCGContextShowGlyphsWithAdvances(CGContextRef c, org.moe.natj.general.ptr.ConstCharPtr glyphs, CGSize advances, long count)Deprecated.static voidCGContextShowText(CGContextRef c, java.lang.String string, long length)Deprecated.static voidCGContextShowTextAtPoint(CGContextRef c, double x, double y, java.lang.String string, long length)Deprecated.static voidCGContextStrokeEllipseInRect(CGContextRef c, CGRect rect)Stroke an ellipse (an oval) inside `rect'.static voidCGContextStrokeLineSegments(CGContextRef c, CGPoint points, long count)Stroke a sequence of line segments one after another in `context'.static voidCGContextStrokePath(CGContextRef c)Stroke the context's path.static voidCGContextStrokeRect(CGContextRef c, CGRect rect)Stroke `rect' with the current stroke color and the current linewidth.static voidCGContextStrokeRectWithWidth(CGContextRef c, CGRect rect, double width)Stroke `rect' with the current stroke color, using `width' as the the line width.static voidCGContextSynchronize(CGContextRef c)Synchronized drawing.static voidCGContextTranslateCTM(CGContextRef c, double tx, double ty)Translate the current graphics state's transformation matrix (the CTM) by `(tx, ty)'.static CGDataConsumerRefCGDataConsumerCreate(org.moe.natj.general.ptr.VoidPtr info, CGDataConsumerCallbacks cbks)Create a data consumer using `callbacks' to handle the data.static CGDataConsumerRefCGDataConsumerCreateWithCFData(CFMutableDataRef data)Create a data consumer which writes to `data'.static CGDataConsumerRefCGDataConsumerCreateWithURL(CFURLRef url)Create a data consumer which writes data to `url'.static longCGDataConsumerGetTypeID()Return the CFTypeID for CGDataConsumerRefs.static voidCGDataConsumerRelease(CGDataConsumerRef consumer)Equivalent to `CFRelease(consumer)'.static CGDataConsumerRefCGDataConsumerRetain(CGDataConsumerRef consumer)Equivalent to `CFRetain(consumer)'.static CFDataRefCGDataProviderCopyData(CGDataProviderRef provider)Return a copy of the data specified by provider.static CGDataProviderRefCGDataProviderCreateDirect(org.moe.natj.general.ptr.VoidPtr info, long size, CGDataProviderDirectCallbacks callbacks)Create a direct-access data provider using `callbacks' to supply `size' bytes of data.static CGDataProviderRefCGDataProviderCreateSequential(org.moe.natj.general.ptr.VoidPtr info, CGDataProviderSequentialCallbacks callbacks)Create a sequential-access data provider using `callbacks' to provide the data.static CGDataProviderRefCGDataProviderCreateWithCFData(CFDataRef data)Create a direct-access data provider which reads from `data'.static CGDataProviderRefCGDataProviderCreateWithData(org.moe.natj.general.ptr.VoidPtr info, org.moe.natj.general.ptr.ConstVoidPtr data, long size, CoreGraphics.Function_CGDataProviderCreateWithData releaseData)Create a direct-access data provider using `data', an array of `size' bytes.static CGDataProviderRefCGDataProviderCreateWithFilename(java.lang.String filename)Create a data provider reading from `filename'.static CGDataProviderRefCGDataProviderCreateWithURL(CFURLRef url)Create a data provider reading from `url'.static org.moe.natj.general.ptr.VoidPtrCGDataProviderGetInfo(CGDataProviderRef provider)static longCGDataProviderGetTypeID()Return the CFTypeID for CGDataProviderRefs.static voidCGDataProviderRelease(CGDataProviderRef provider)Equivalent to `CFRelease(provider)', but doesn't crash (as CFRelease does) if `provider' is NULL.static CGDataProviderRefCGDataProviderRetain(CGDataProviderRef provider)Equivalent to `CFRetain(provider)', but doesn't crash (as CFRetain does) if `provider' is NULL.static booleanCGFontCanCreatePostScriptSubset(CGFontRef font, int format)Return true if a subset in the PostScript format `format' can be created for `font'; false otherwise.static CFStringRefCGFontCopyFullName(CGFontRef font)Return the "full name" of `font'.static CFStringRefCGFontCopyGlyphNameForGlyph(CGFontRef font, char glyph)Return the glyph name of `glyph' in `font', or NULL if `glyph' does not appear in `font'.static CFStringRefCGFontCopyPostScriptName(CGFontRef font)Return the PostScript name of `font'.static CFDataRefCGFontCopyTableForTag(CGFontRef font, int tag)Return the table in `font' corresponding to `tag', or NULL if no such table exists.static CFArrayRefCGFontCopyTableTags(CGFontRef font)Return an array of font table tags in `font'.static CFArrayRefCGFontCopyVariationAxes(CGFontRef font)Return an array of the variation axis dictionaries for `font'.static CFDictionaryRefCGFontCopyVariations(CGFontRef font)Return the variation specification dictionary from `font'.static CGFontRefCGFontCreateCopyWithVariations(CGFontRef font, CFDictionaryRef variations)Return a font based on `font' with the variation specification dictionary `variations' applied to `font'.static CGFontRefCGFontCreateWithDataProvider(CGDataProviderRef provider)Return the font defined by the data provided by `provider', or NULL if the font can't be created.static CGFontRefCGFontCreateWithFontName(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(CGFontRef font)Return the ascent of `font'.static intCGFontGetCapHeight(CGFontRef font)Return the cap height of `font'.static intCGFontGetDescent(CGFontRef font)Return the descent of `font'.static CGRectCGFontGetFontBBox(CGFontRef font)Return the font bounding box of `font'.static booleanCGFontGetGlyphAdvances(CGFontRef font, org.moe.natj.general.ptr.ConstCharPtr glyphs, long count, 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(CGFontRef font, org.moe.natj.general.ptr.ConstCharPtr glyphs, long count, 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(CGFontRef font, CFStringRef name)Return the glyph associated with `name' in `font'.static doubleCGFontGetItalicAngle(CGFontRef font)Return the italic angle of `font', measured in degrees counter-clockwise from the vertical.static intCGFontGetLeading(CGFontRef font)Return the leading of `font'.static longCGFontGetNumberOfGlyphs(CGFontRef font)Return the number of glyphs in `font'.static doubleCGFontGetStemV(CGFontRef font)Return the thickness of the dominant vertical stems of glyphs in `font'.static longCGFontGetTypeID()Return the CFTypeID for CGFontRefs.static intCGFontGetUnitsPerEm(CGFontRef font)Return the glyph space units/em for `font'.static intCGFontGetXHeight(CGFontRef font)Return the x-height of `font'.static voidCGFontRelease(CGFontRef font)Equivalent to `CFRelease(font)', except it doesn't crash (as CFRelease does) if `font' is NULL.static CGFontRefCGFontRetain(CGFontRef font)Equivalent to `CFRetain(font)', except it doesn't crash (as CFRetain does) if `font' is NULL.static CGFunctionRefCGFunctionCreate(org.moe.natj.general.ptr.VoidPtr info, long domainDimension, org.moe.natj.general.ptr.ConstNFloatPtr domain, long rangeDimension, org.moe.natj.general.ptr.ConstNFloatPtr range, CGFunctionCallbacks callbacks)Create a CGFunction using `callbacks' to evaluate the function.static longCGFunctionGetTypeID()Return the CFTypeID for CGFunctionRefs.static voidCGFunctionRelease(CGFunctionRef function)Equivalent to `CFRelease(function)', except it doesn't crash (as CFRelease does) if `function' is NULL.static CGFunctionRefCGFunctionRetain(CGFunctionRef function)Equivalent to `CFRetain(function)', except it doesn't crash (as CFRetain does) if `function' is NULL.static CGGradientRefCGGradientCreateWithColorComponents(CGColorSpaceRef space, org.moe.natj.general.ptr.ConstNFloatPtr components, 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 CGGradientRefCGGradientCreateWithColors(CGColorSpaceRef space, CFArrayRef colors, 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(CGGradientRef gradient)Equivalent to `CFRelease' except that it doesn't crash (as `CFRelease' does) if `gradient' is NULL.static CGGradientRefCGGradientRetain(CGGradientRef gradient)Equivalent to `CFRetain' except that it doesn't crash (as `CFRetain' does) if `gradient' is NULL.static CGImageRefCGImageCreate(long width, long height, long bitsPerComponent, long bitsPerPixel, long bytesPerRow, CGColorSpaceRef space, int bitmapInfo, CGDataProviderRef provider, org.moe.natj.general.ptr.ConstNFloatPtr decode, boolean shouldInterpolate, int intent)Create an image.static CGImageRefCGImageCreateCopy(CGImageRef image)Return a copy of `image'.static CGImageRefCGImageCreateCopyWithColorSpace(CGImageRef image, CGColorSpaceRef space)Create a copy of `image', replacing the image's color space with `space'.static CGImageRefCGImageCreateWithImageInRect(CGImageRef image, CGRect rect)Create an image using the data contained within the subrectangle `rect' of `image'.static CGImageRefCGImageCreateWithJPEGDataProvider(CGDataProviderRef source, org.moe.natj.general.ptr.ConstNFloatPtr decode, boolean shouldInterpolate, int intent)Create an image from `source', a data provider of JPEG-encoded data.static CGImageRefCGImageCreateWithMask(CGImageRef image, CGImageRef mask)Create a new image from `image' masked by `mask', which may be an image mask or an image.static CGImageRefCGImageCreateWithMaskingColors(CGImageRef image, 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'.static CGImageRefCGImageCreateWithPNGDataProvider(CGDataProviderRef source, 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(CGImageRef image)Return the alpha info of `image'.static intCGImageGetBitmapInfo(CGImageRef image)Return the bitmap info of `image'.static longCGImageGetBitsPerComponent(CGImageRef image)Return the number of bits/component of `image'.static longCGImageGetBitsPerPixel(CGImageRef image)Return the number of bits/pixel of `image'.static intCGImageGetByteOrderInfo(CGImageRef image)Return the byte order info of `image'.static longCGImageGetBytesPerRow(CGImageRef image)Return the number of bytes/row of `image'.static CGColorSpaceRefCGImageGetColorSpace(CGImageRef image)Return the color space of `image', or NULL if `image' is an image mask.static CGDataProviderRefCGImageGetDataProvider(CGImageRef image)Return the data provider of `image'.static org.moe.natj.general.ptr.ConstNFloatPtrCGImageGetDecode(CGImageRef image)Return the decode array of `image'.static longCGImageGetHeight(CGImageRef image)Return the height of `image'.static intCGImageGetPixelFormatInfo(CGImageRef image)Return the pixel format of `image'.static intCGImageGetRenderingIntent(CGImageRef image)Return the rendering intent of `image'.static booleanCGImageGetShouldInterpolate(CGImageRef image)Return the interpolation parameter of `image'.static longCGImageGetTypeID()Return the CFTypeID for CGImageRefs.static CFStringRefCGImageGetUTType(CGImageRef image)Return the UTType of `image'.static longCGImageGetWidth(CGImageRef image)Return the width of `image'.static booleanCGImageIsMask(CGImageRef image)Return true if `image' is an image mask, false otherwise.static CGImageRefCGImageMaskCreate(long width, long height, long bitsPerComponent, long bitsPerPixel, long bytesPerRow, CGDataProviderRef provider, org.moe.natj.general.ptr.ConstNFloatPtr decode, boolean shouldInterpolate)Create an image mask.static voidCGImageRelease(CGImageRef image)Equivalent to `CFRelease(image)'.static CGImageRefCGImageRetain(CGImageRef image)Equivalent to `CFRetain(image)'.static CGLayerRefCGLayerCreateWithContext(CGContextRef context, CGSize size, CFDictionaryRef auxiliaryInfo)Create a layer of size `size' relative to the context `context'.static CGContextRefCGLayerGetContext(CGLayerRef layer)Return the context of `layer'.static CGSizeCGLayerGetSize(CGLayerRef layer)Return the size of the layer `layer'.static longCGLayerGetTypeID()Return the CFTypeID for CGLayerRefs.static voidCGLayerRelease(CGLayerRef layer)Equivalent to `CFRelease(layer)', except it doesn't crash (as CFRelease does) if `layer' is NULL.static CGLayerRefCGLayerRetain(CGLayerRef layer)Equivalent to `CFRetain(layer)', except it doesn't crash (as CFRetain does) if `layer' is NULL.static voidCGPathAddArc(CGMutablePathRef path, 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(CGMutablePathRef path, 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(CGMutablePathRef path, 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(CGMutablePathRef path, CGAffineTransform m, CGRect rect)Add an ellipse (an oval) inside `rect' to `path'.static voidCGPathAddLines(CGMutablePathRef path, CGAffineTransform m, 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(CGMutablePathRef path, 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(CGMutablePathRef path1, CGAffineTransform m, CGPathRef path2)Add `path2' to `path1'.static voidCGPathAddQuadCurveToPoint(CGMutablePathRef path, 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(CGMutablePathRef path, CGAffineTransform m, CGRect rect)Add `rect' to `path'.static voidCGPathAddRects(CGMutablePathRef path, CGAffineTransform m, CGRect rects, long count)Add each rectangle specified by `rects', an array of `count' CGRects, to `path'.static voidCGPathAddRelativeArc(CGMutablePathRef path, 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(CGMutablePathRef path, CGAffineTransform transform, CGRect rect, double cornerWidth, double cornerHeight)Add a rounded rectangle to `path'.static voidCGPathApply(CGPathRef path, org.moe.natj.general.ptr.VoidPtr info, CoreGraphics.Function_CGPathApply function)For element of `path', call `function', passing it the path element and `info'.static voidCGPathApplyWithBlock(CGPathRef path, CoreGraphics.Block_CGPathApplyWithBlock block)static voidCGPathCloseSubpath(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(CGPathRef path, CGAffineTransform m, CGPoint point, boolean eoFill)Return true if `point' is contained in `path'; false otherwise.static CGPathRefCGPathCreateCopy(CGPathRef path)Create a copy of `path'.static CGPathRefCGPathCreateCopyByDashingPath(CGPathRef path, CGAffineTransform transform, double phase, org.moe.natj.general.ptr.ConstNFloatPtr lengths, long count)Create a dashed path from `path'.static CGPathRefCGPathCreateCopyByStrokingPath(CGPathRef path, CGAffineTransform transform, double lineWidth, int lineCap, int lineJoin, double miterLimit)Create a stroked path from `path'.static CGPathRefCGPathCreateCopyByTransformingPath(CGPathRef path, CGAffineTransform transform)Create a copy of `path' transformed by `transform'.static CGMutablePathRefCGPathCreateMutable()Create a mutable path.static CGMutablePathRefCGPathCreateMutableCopy(CGPathRef path)Create a mutable copy of `path'.static CGMutablePathRefCGPathCreateMutableCopyByTransformingPath(CGPathRef path, CGAffineTransform transform)Create a mutable copy of `path' transformed by `transform'.static CGPathRefCGPathCreateWithEllipseInRect(CGRect rect, CGAffineTransform transform)Return a path representing an ellipse bounded by `rect'.static CGPathRefCGPathCreateWithRect(CGRect rect, CGAffineTransform transform)Return a path representing a rectangle bounded by `rect'.static CGPathRefCGPathCreateWithRoundedRect(CGRect rect, double cornerWidth, double cornerHeight, CGAffineTransform transform)Return a path representing a rounded rectangle.static booleanCGPathEqualToPath(CGPathRef path1, CGPathRef path2)Return true if `path1' is equal to `path2'; false otherwise.static CGRectCGPathGetBoundingBox(CGPathRef path)Return the bounding box of `path'.static CGPointCGPathGetCurrentPoint(CGPathRef path)Return the current point of the current subpath of `path'.static CGRectCGPathGetPathBoundingBox(CGPathRef path)Return the path bounding box of `path'.static longCGPathGetTypeID()Return the CFTypeID for CGPathRefs.static booleanCGPathIsEmpty(CGPathRef path)Return true if `path' contains no elements, false otherwise.static booleanCGPathIsRect(CGPathRef path, CGRect rect)Return true if `path' represents a rectangle, false otherwise.static voidCGPathMoveToPoint(CGMutablePathRef path, CGAffineTransform m, double x, double y)Move the current point to `(x, y)' in `path' and begin a new subpath.static voidCGPathRelease(CGPathRef path)Equivalent to `CFRelease(path)', except it doesn't crash (as CFRelease does) if `path' is NULL.static CGPathRefCGPathRetain(CGPathRef path)Equivalent to `CFRetain(path)', except it doesn't crash (as CFRetain does) if `path' is NULL.static CGPatternRefCGPatternCreate(org.moe.natj.general.ptr.VoidPtr info, CGRect bounds, CGAffineTransform matrix, double xStep, double yStep, int tiling, boolean isColored, CGPatternCallbacks callbacks)Create a pattern.static longCGPatternGetTypeID()Return the CFTypeID for CGPatternRefs.static voidCGPatternRelease(CGPatternRef pattern)Equivalent to `CFRelease(pattern)', except it doesn't crash (as CF does) if `pattern' is NULL.static CGPatternRefCGPatternRetain(CGPatternRef pattern)Equivalent to `CFRetain(pattern)', except it doesn't crash (as CF does) if `pattern' is NULL.static voidCGPDFArrayApplyBlock(CGPDFArrayRef array, CoreGraphics.Block_CGPDFArrayApplyBlock block, 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(CGPDFArrayRef array, long index, 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(CGPDFArrayRef array, long index, 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(CGPDFArrayRef array)static booleanCGPDFArrayGetDictionary(CGPDFArrayRef array, long index, 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(CGPDFArrayRef array, long index, 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(CGPDFArrayRef array, long index, 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(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(CGPDFArrayRef array, long index, 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(CGPDFArrayRef array, long index, org.moe.natj.general.ptr.Ptr<CGPDFObjectRef> value)Look up the object at `index' in `array' and return the result in `value'.static booleanCGPDFArrayGetStream(CGPDFArrayRef array, long index, 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(CGPDFArrayRef array, long index, 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 CGPDFContentStreamRefCGPDFContentStreamCreateWithPage(CGPDFPageRef page)Create a content stream from `page'.static CGPDFContentStreamRefCGPDFContentStreamCreateWithStream(CGPDFStreamRef stream, CGPDFDictionaryRef streamResources, CGPDFContentStreamRef parent)Create a content stream from `stream'.static CGPDFObjectRefCGPDFContentStreamGetResource(CGPDFContentStreamRef cs, java.lang.String category, java.lang.String name)Return the resource named `name' in category `category' of the resource dictionaries of `cs'.static CFArrayRefCGPDFContentStreamGetStreams(CGPDFContentStreamRef cs)Return the array of CGPDFStreamRefs comprising the entire content stream of `cs'.static voidCGPDFContentStreamRelease(CGPDFContentStreamRef cs)Decrement the retain count of `cs'.static CGPDFContentStreamRefCGPDFContentStreamRetain(CGPDFContentStreamRef cs)Increment the retain count of `cs'.static voidCGPDFContextAddDestinationAtPoint(CGContextRef context, CFStringRef name, CGPoint point)Create a PDF destination named `name' at `point' in the current page of the PDF context `context'.static voidCGPDFContextAddDocumentMetadata(CGContextRef context, 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(CGContextRef context, CFDictionaryRef pageInfo)Begin a new page in the PDF context `context'.static voidCGPDFContextBeginTag(CGContextRef context, int tagType, CFDictionaryRef tagProperties)Sets the current tag to the given tagType with an associated tagProperties dictionary.static voidCGPDFContextClose(CGContextRef context)Close a PDF context.static CGContextRefCGPDFContextCreate(CGDataConsumerRef consumer, CGRect mediaBox, CFDictionaryRef auxiliaryInfo)Create a PDF context, using `consumer' for output.static CGContextRefCGPDFContextCreateWithURL(CFURLRef url, CGRect mediaBox, CFDictionaryRef auxiliaryInfo)Create a PDF context for writing to `url'.static voidCGPDFContextEndPage(CGContextRef context)End the current page in the PDF context `context'.static voidCGPDFContextEndTag(CGContextRef context)Pop the current tag.static voidCGPDFContextSetDestinationForRect(CGContextRef context, 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(CGContextRef context, CFDictionaryRef outline)Set the outline in the PDF created by a CGPDFContext (no effect in other types of CGContexts).static voidCGPDFContextSetURLForRect(CGContextRef context, CFURLRef url, CGRect rect)Set the URL associated with `rect' to `url' in the PDF context `context'.static voidCGPDFDictionaryApplyBlock(CGPDFDictionaryRef dict, CoreGraphics.Block_CGPDFDictionaryApplyBlock block, 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(CGPDFDictionaryRef dict, CoreGraphics.Function_CGPDFDictionaryApplyFunction function, org.moe.natj.general.ptr.VoidPtr info)Enumerate all of the keys in `dict', calling `function' once for each key/value pair.static booleanCGPDFDictionaryGetArray(CGPDFDictionaryRef dict, java.lang.String key, 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(CGPDFDictionaryRef dict, java.lang.String key, 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(CGPDFDictionaryRef dict)Return the number of entries in `dictionary'.static booleanCGPDFDictionaryGetDictionary(CGPDFDictionaryRef dict, java.lang.String key, 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(CGPDFDictionaryRef dict, java.lang.String key, 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(CGPDFDictionaryRef dict, java.lang.String key, 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(CGPDFDictionaryRef dict, java.lang.String key, 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(CGPDFDictionaryRef dict, java.lang.String key, 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(CGPDFDictionaryRef dict, java.lang.String key, 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(CGPDFDictionaryRef dict, java.lang.String key, 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(CGPDFDocumentRef document)Return true if `document' allows copying; false otherwise.static booleanCGPDFDocumentAllowsPrinting(CGPDFDocumentRef document)Return true if `document' allows printing; false otherwise.static CGPDFDocumentRefCGPDFDocumentCreateWithProvider(CGDataProviderRef provider)Create a PDF document, using `provider' to obtain the document's data.static CGPDFDocumentRefCGPDFDocumentCreateWithURL(CFURLRef url)Create a PDF document from `url'.static intCGPDFDocumentGetAccessPermissions(CGPDFDocumentRef document)Return the document access permissions.static CGPDFDictionaryRefCGPDFDocumentGetCatalog(CGPDFDocumentRef document)Return the document catalog of `document'.static CGPDFArrayRefCGPDFDocumentGetID(CGPDFDocumentRef document)Return the "file identifier" array of `document'.static CGPDFDictionaryRefCGPDFDocumentGetInfo(CGPDFDocumentRef document)Return the info dictionary of `document'.static longCGPDFDocumentGetNumberOfPages(CGPDFDocumentRef document)Return the number of pages in `document'.static CFDictionaryRefCGPDFDocumentGetOutline(CGPDFDocumentRef document)Return the document outline in the form of a CFDictionary tree containing the kCGPDFOutline keys.static CGPDFPageRefCGPDFDocumentGetPage(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(CGPDFDocumentRef document, org.moe.natj.general.ptr.IntPtr majorVersion, org.moe.natj.general.ptr.IntPtr minorVersion)Return the major and minor version numbers of `document'.static booleanCGPDFDocumentIsEncrypted(CGPDFDocumentRef document)Return true if the PDF file associated with `document' is encrypted; false otherwise.static booleanCGPDFDocumentIsUnlocked(CGPDFDocumentRef document)Return true if `document' is unlocked; false otherwise.static voidCGPDFDocumentRelease(CGPDFDocumentRef document)Equivalent to `CFRelease(document)', except it doesn't crash (as CFRelease does) if `document' is NULL.static CGPDFDocumentRefCGPDFDocumentRetain(CGPDFDocumentRef document)Equivalent to `CFRetain(document)', except it doesn't crash (as CFRetain does) if `document' is NULL.static booleanCGPDFDocumentUnlockWithPassword(CGPDFDocumentRef document, java.lang.String password)Use `password' to decrypt `document' and grant permission for certain operations.static intCGPDFObjectGetType(CGPDFObjectRef object)Return the type of `object'.static booleanCGPDFObjectGetValue(CGPDFObjectRef object, int type, org.moe.natj.general.ptr.VoidPtr value)Get the value of `object'.static CGPDFOperatorTableRefCGPDFOperatorTableCreate()Return an empty operator table.static voidCGPDFOperatorTableRelease(CGPDFOperatorTableRef table)Decrement the retain count of `table'.static CGPDFOperatorTableRefCGPDFOperatorTableRetain(CGPDFOperatorTableRef table)Increment the retain count of `table'.static voidCGPDFOperatorTableSetCallback(CGPDFOperatorTableRef table, java.lang.String name, CoreGraphics.Function_CGPDFOperatorTableSetCallback callback)Set the callback for the operator named `name' to `callback'static CGRectCGPDFPageGetBoxRect(CGPDFPageRef page, int box)Return the rectangle associated with `box' in `page'.static CGPDFDictionaryRefCGPDFPageGetDictionary(CGPDFPageRef page)Return the dictionary of `page'.static CGPDFDocumentRefCGPDFPageGetDocument(CGPDFPageRef page)Return the document of `page'.static CGAffineTransformCGPDFPageGetDrawingTransform(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 pagestatic longCGPDFPageGetPageNumber(CGPDFPageRef page)Return the page number of `page'.static intCGPDFPageGetRotationAngle(CGPDFPageRef page)Return the rotation angle (in degrees) of `page'.static longCGPDFPageGetTypeID()Return the CFTypeID for CGPDFPageRefs.static voidCGPDFPageRelease(CGPDFPageRef page)Equivalent to `CFRelease(page)', except it doesn't crash (as CFRelease does) if `page' is NULL.static CGPDFPageRefCGPDFPageRetain(CGPDFPageRef page)Equivalent to `CFRetain(page)', except it doesn't crash (as CFRetain does) if `page' is NULL.static CGPDFScannerRefCGPDFScannerCreate(CGPDFContentStreamRef cs, CGPDFOperatorTableRef table, org.moe.natj.general.ptr.VoidPtr info)Create a scanner.static CGPDFContentStreamRefCGPDFScannerGetContentStream(CGPDFScannerRef scanner)Return the content stream associated with `scanner'.static booleanCGPDFScannerPopArray(CGPDFScannerRef scanner, 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(CGPDFScannerRef scanner, 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(CGPDFScannerRef scanner, 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(CGPDFScannerRef scanner, 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(CGPDFScannerRef scanner, java.lang.String[] value)Pop an object from the stack of `scanner' and, if it's a name, return it in `value'.static booleanCGPDFScannerPopNumber(CGPDFScannerRef scanner, 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(CGPDFScannerRef scanner, org.moe.natj.general.ptr.Ptr<CGPDFObjectRef> value)Pop an object from the stack of `scanner' and return it in `value'.static booleanCGPDFScannerPopStream(CGPDFScannerRef scanner, 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(CGPDFScannerRef scanner, 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(CGPDFScannerRef scanner)Release `scanner'.static CGPDFScannerRefCGPDFScannerRetain(CGPDFScannerRef scanner)Retain `scanner'.static booleanCGPDFScannerScan(CGPDFScannerRef scanner)Scan the content stream of `scanner'.static CFDataRefCGPDFStreamCopyData(CGPDFStreamRef stream, org.moe.natj.general.ptr.IntPtr format)Return the data of `stream'.static CGPDFDictionaryRefCGPDFStreamGetDictionary(CGPDFStreamRef stream)Return the dictionary of `stream'.static CFDateRefCGPDFStringCopyDate(CGPDFStringRef string)Convert `string' to a CFDate.static CFStringRefCGPDFStringCopyTextString(CGPDFStringRef string)Return a CFString representing `string' as a "text string".static java.lang.StringCGPDFStringGetBytePtr(CGPDFStringRef string)Return a pointer to the bytes of `string'.static longCGPDFStringGetLength(CGPDFStringRef string)Return the length of `string'.static 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 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(CFDictionaryRef dict, 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 CFDictionaryRefCGRectCreateDictionaryRepresentation(CGRect arg1)Return a dictionary representation of `rect'.static voidCGRectDivide(CGRect rect, CGRect slice, 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 topmost 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 bottommost 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(CFDictionaryRef dict, 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 CGShadingRefCGShadingCreateAxial(CGColorSpaceRef space, CGPoint start, CGPoint end, 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 CGShadingRefCGShadingCreateRadial(CGColorSpaceRef space, CGPoint start, double startRadius, CGPoint end, double endRadius, 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(CGShadingRef shading)Equivalent to `CFRelease(shading)', except it doesn't crash (as CFRelease does) if `shading' is NULL.static CGShadingRefCGShadingRetain(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 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(CFDictionaryRef dict, 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 CFStringRefkCGColorBlack()static CFStringRefkCGColorClear()static CFStringRefkCGColorConversionBlackPointCompensation()CFBooleanRef which can be used as option to create CGColorConversionInfoRef, when Black Point Compensation is desiredstatic CFStringRefkCGColorConversionTRCSize()static CFStringRefkCGColorSpaceACESCGLinear()static CFStringRefkCGColorSpaceAdobeRGB1998()The name of the Adobe RGB (1998) color space.static CFStringRefkCGColorSpaceDCIP3()static CFStringRefkCGColorSpaceDisplayP3()static CFStringRefkCGColorSpaceDisplayP3_HLG()static CFStringRefkCGColorSpaceDisplayP3_PQ()static CFStringRefkCGColorSpaceDisplayP3_PQ_EOTF()static CFStringRefkCGColorSpaceExtendedDisplayP3()static CFStringRefkCGColorSpaceExtendedGray()The name of the extended Gray color space.static CFStringRefkCGColorSpaceExtendedITUR_2020()static CFStringRefkCGColorSpaceExtendedLinearDisplayP3()static CFStringRefkCGColorSpaceExtendedLinearGray()The name of the extended Generic Gray 2.2 color space variant with linear gammastatic CFStringRefkCGColorSpaceExtendedLinearITUR_2020()static CFStringRefkCGColorSpaceExtendedLinearSRGB()The name of the extended sRGB color space variant with linear gammastatic CFStringRefkCGColorSpaceExtendedSRGB()The name of the extended sRGB color space.static CFStringRefkCGColorSpaceGenericCMYK()The name of the "Generic" CMYK color space.static CFStringRefkCGColorSpaceGenericGray()The name of the "Generic" Gray color space.static CFStringRefkCGColorSpaceGenericGrayGamma2_2()The "Generic" gray color space with γ = 2.2.static CFStringRefkCGColorSpaceGenericLab()The name of the "Generic" L*a*b* color space.static CFStringRefkCGColorSpaceGenericRGB()The name of the "Generic" RGB color space.static CFStringRefkCGColorSpaceGenericRGBLinear()The name of the "Generic" linear RGB color space.static CFStringRefkCGColorSpaceGenericXYZ()static CFStringRefkCGColorSpaceITUR_2020()static CFStringRefkCGColorSpaceITUR_2020_HLG()static CFStringRefkCGColorSpaceITUR_2020_PQ()static CFStringRefkCGColorSpaceITUR_2020_PQ_EOTF()static CFStringRefkCGColorSpaceITUR_2100_HLG()static CFStringRefkCGColorSpaceITUR_2100_PQ()static CFStringRefkCGColorSpaceITUR_709()static CFStringRefkCGColorSpaceLinearGray()The name of the Generic Gray 2.2 color space variant with linear gammastatic CFStringRefkCGColorSpaceLinearSRGB()The name of the sRGB color space variant with linear gammastatic CFStringRefkCGColorSpaceROMMRGB()static CFStringRefkCGColorSpaceSRGB()The name of the sRGB color space.static CFStringRefkCGColorWhite()Colors in the "Generic" gray color space.static CFStringRefkCGFontVariationAxisDefaultValue()The key used to obtain the default variation axis value from a variation axis dictionary.static CFStringRefkCGFontVariationAxisMaxValue()The key used to obtain the maximum variation axis value from a variation axis dictionary.static CFStringRefkCGFontVariationAxisMinValue()The key used to obtain the minimum variation axis value from a variation axis dictionary.static CFStringRefkCGFontVariationAxisName()The key used to obtain the variation axis name from a variation axis dictionary.static CFStringRefkCGPDFContextAccessPermissions()The document's access permissions, expressed as a CFNumber.static CFStringRefkCGPDFContextAllowsCopying()Used to specify whether the document allows copying when unlocked with the user password.static CFStringRefkCGPDFContextAllowsPrinting()Used to specify whether the document allows printing when unlocked with the user password.static CFStringRefkCGPDFContextArtBox()The art box for the document or for a given page.static CFStringRefkCGPDFContextAuthor()The name of the person who created this document.static CFStringRefkCGPDFContextBleedBox()The bleed box for the document or for a given page.static CFStringRefkCGPDFContextCreateLinearizedPDF()Output a linearized PDFstatic CFStringRefkCGPDFContextCreatePDFA()Output a PDF that conforms to PDF/A-2u (ISO 19005-2).static CFStringRefkCGPDFContextCreator()The name of the application that created the original data used to create this document.static CFStringRefkCGPDFContextCropBox()The crop box for the document or for a given page.static 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 CFStringRefkCGPDFContextKeywords()The keywords for this document.static CFStringRefkCGPDFContextMediaBox()The media box for the document or for a given page.static CFStringRefkCGPDFContextOutputIntent()The document's PDF/X output intent.static CFStringRefkCGPDFContextOutputIntents()The document's output intents.static CFStringRefkCGPDFContextOwnerPassword()The "owner password" of the PDF document.static CFStringRefkCGPDFContextSubject()The subject of a document.static CFStringRefkCGPDFContextTitle()The document's title.static CFStringRefkCGPDFContextTrimBox()The trim box for the document or for a given page.static CFStringRefkCGPDFContextUserPassword()The "user password" of the PDF document.static CFStringRefkCGPDFOutlineChildren()Key: kCGPDFOutlineChildren Value: CFArray of CFDictionariesstatic CFStringRefkCGPDFOutlineDestination()Key: kCGPDFOutlineDestination Value: CFNumber (for a one-indexed page number) or CFURLstatic CFStringRefkCGPDFOutlineDestinationRect()Key: kCGPDFOutlineDestinationRect Value: CFDictionary from CGRectCreateDictionaryRepresentation.static CFStringRefkCGPDFOutlineTitle()Key: kCGPDFOutlineTitle Value: CFStringstatic CFStringRefkCGPDFTagPropertyActualText()Actual text, defined on page 860: "Text that is an exact replacement for the structure element and its childrenstatic CFStringRefkCGPDFTagPropertyAlternativeText()Alternative text, defined on page 860: "An alternate description of the structure element and its children in human-readable form".static 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 CFStringRefkCGPDFTagPropertyTitleText()Title, defined on page 859: Title of the node in a human-readable form.static CFStringRefkCGPDFXDestinationOutputProfile()kCGPDFXDestinationOutputProfile ("DestOutputProfile"): An ICC profile stream defining the transformation from the PDF document's source colors to output device colorants.static CFStringRefkCGPDFXInfo()kCGPDFXInfo ("Info"): A human-readable text string containing additional information about the intended target device or production condition.static CFStringRefkCGPDFXOutputCondition()kCGPDFXOutputCondition ("OutputCondition"): A text string identifying the intended output device or production condition in a human-readable form.static CFStringRefkCGPDFXOutputConditionIdentifier()kCGPDFXOutputConditionIdentifier ("OutputConditionIdentifier"): A string identifying the intended output device or production condition in a human- or machine-readable form.static CFStringRefkCGPDFXOutputIntentSubtype()The following keys are supported in the output intent dictionary: kCGPDFXOutputIntentSubtype ("S"): The output intent subtype.static 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
-
-
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'.
-
CGRectGetMidX
public static double CGRectGetMidX(CGRect rect)
Return the midpoint x-value of `rect'.
-
CGRectGetMaxX
public static double CGRectGetMaxX(CGRect rect)
Return the rightmost x-value of `rect'.
-
CGRectGetMinY
public static double CGRectGetMinY(CGRect rect)
Return the bottommost y-value of `rect'.
-
CGRectGetMidY
public static double CGRectGetMidY(CGRect rect)
Return the midpoint y-value of `rect'.
-
CGRectGetMaxY
public static double CGRectGetMaxY(CGRect rect)
Return the topmost y-value of `rect'.
-
CGRectGetWidth
public static double CGRectGetWidth(CGRect rect)
Return the width of `rect'.
-
CGRectGetHeight
public static double CGRectGetHeight(CGRect rect)
Return the height of `rect'.
-
CGPointEqualToPoint
public static boolean CGPointEqualToPoint(CGPoint point1, CGPoint point2)
Return true if `point1' and `point2' are the same, false otherwise.
-
CGSizeEqualToSize
public static boolean CGSizeEqualToSize(CGSize size1, CGSize size2)
Return true if `size1' and `size2' are the same, false otherwise.
-
CGRectEqualToRect
public static boolean CGRectEqualToRect(CGRect rect1, CGRect rect2)
Return true if `rect1' and `rect2' are the same, false otherwise.
-
CGRectStandardize
public static CGRect CGRectStandardize(CGRect rect)
Standardize `rect' -- i.e., convert it to an equivalent rect which has positive width and height.
-
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.
-
CGRectIsNull
public static boolean CGRectIsNull(CGRect rect)
Return true if `rect' is the null rectangle, false otherwise.
-
CGRectIsInfinite
public static boolean CGRectIsInfinite(CGRect rect)
Return true if `rect' is the infinite rectangle, false otherwise.
-
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)'.
-
CGRectIntegral
public static CGRect CGRectIntegral(CGRect rect)
Expand `rect' to the smallest rect containing it with integral origin and size.
-
CGRectUnion
public static CGRect CGRectUnion(CGRect r1, CGRect r2)
Return the union of `r1' and `r2'.
-
CGRectIntersection
public static CGRect CGRectIntersection(CGRect r1, CGRect r2)
Return the intersection of `r1' and `r2'. This may return a null rect.
-
CGRectOffset
public static CGRect CGRectOffset(CGRect rect, double dx, double dy)
Offset `rect' by `(dx, dy)'.
-
CGRectDivide
public static void CGRectDivide(CGRect rect, CGRect slice, 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.
-
CGRectContainsPoint
public static boolean CGRectContainsPoint(CGRect rect, CGPoint point)
Return true if `point' is contained in `rect', false otherwise.
-
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'.
-
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.
-
CGPointCreateDictionaryRepresentation
public static CFDictionaryRef CGPointCreateDictionaryRepresentation(CGPoint point)
Return a dictionary representation of `point'.
-
CGPointMakeWithDictionaryRepresentation
public static boolean CGPointMakeWithDictionaryRepresentation(CFDictionaryRef dict, 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.
-
CGSizeCreateDictionaryRepresentation
public static CFDictionaryRef CGSizeCreateDictionaryRepresentation(CGSize size)
Return a dictionary representation of `size'.
-
CGSizeMakeWithDictionaryRepresentation
public static boolean CGSizeMakeWithDictionaryRepresentation(CFDictionaryRef dict, 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.
-
CGRectCreateDictionaryRepresentation
public static CFDictionaryRef CGRectCreateDictionaryRepresentation(CGRect arg1)
Return a dictionary representation of `rect'.
-
CGRectMakeWithDictionaryRepresentation
public static boolean CGRectMakeWithDictionaryRepresentation(CFDictionaryRef dict, 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.
-
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 ].
-
CGAffineTransformMakeTranslation
public static CGAffineTransform CGAffineTransformMakeTranslation(double tx, double ty)
Return a transform which translates by `(tx, ty)': t' = [ 1 0 0 1 tx ty ]
-
CGAffineTransformMakeScale
public static CGAffineTransform CGAffineTransformMakeScale(double sx, double sy)
Return a transform which scales by `(sx, sy)': t' = [ sx 0 0 sy 0 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 ]
-
CGAffineTransformIsIdentity
public static boolean CGAffineTransformIsIdentity(CGAffineTransform t)
Return true if `t' is the identity transform, false otherwise.
-
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
-
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
-
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
-
CGAffineTransformInvert
public static CGAffineTransform CGAffineTransformInvert(CGAffineTransform t)
Invert `t' and return the result. If `t' has zero determinant, then `t' is returned unchanged.
-
CGAffineTransformConcat
public static CGAffineTransform CGAffineTransformConcat(CGAffineTransform t1, CGAffineTransform t2)
Concatenate `t2' to `t1' and return the result: t' = t1 * t2
-
CGAffineTransformEqualToTransform
public static boolean CGAffineTransformEqualToTransform(CGAffineTransform t1, CGAffineTransform t2)
Return true if `t1' and `t2' are equal, false otherwise.
-
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 ].
-
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 ].
-
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.
-
__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.
-
CGDataProviderCreateSequential
public static CGDataProviderRef CGDataProviderCreateSequential(org.moe.natj.general.ptr.VoidPtr info, CGDataProviderSequentialCallbacks callbacks)
Create a sequential-access data provider using `callbacks' to provide the data. `info' is passed to each of the callback functions.
-
CGDataProviderCreateDirect
public static CGDataProviderRef CGDataProviderCreateDirect(org.moe.natj.general.ptr.VoidPtr info, long size, 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.
-
CGDataProviderCreateWithData
public static CGDataProviderRef CGDataProviderCreateWithData(org.moe.natj.general.ptr.VoidPtr info, org.moe.natj.general.ptr.ConstVoidPtr data, long size, 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.
-
CGDataProviderCreateWithCFData
public static CGDataProviderRef CGDataProviderCreateWithCFData(CFDataRef data)
Create a direct-access data provider which reads from `data'.
-
CGDataProviderCreateWithURL
public static CGDataProviderRef CGDataProviderCreateWithURL(CFURLRef url)
Create a data provider reading from `url'.
-
CGDataProviderCreateWithFilename
public static CGDataProviderRef CGDataProviderCreateWithFilename(java.lang.String filename)
Create a data provider reading from `filename'.
-
CGDataProviderRetain
public static CGDataProviderRef CGDataProviderRetain(CGDataProviderRef provider)
Equivalent to `CFRetain(provider)', but doesn't crash (as CFRetain does) if `provider' is NULL.
-
CGDataProviderRelease
public static void CGDataProviderRelease(CGDataProviderRef provider)
Equivalent to `CFRelease(provider)', but doesn't crash (as CFRelease does) if `provider' is NULL.
-
CGDataProviderCopyData
public static CFDataRef CGDataProviderCopyData(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).
-
CGColorSpaceCreateDeviceGray
public static CGColorSpaceRef CGColorSpaceCreateDeviceGray()
Create a DeviceGray color space.
-
CGColorSpaceCreateDeviceRGB
public static CGColorSpaceRef CGColorSpaceCreateDeviceRGB()
Create a DeviceRGB color space.
-
CGColorSpaceCreateDeviceCMYK
public static CGColorSpaceRef CGColorSpaceCreateDeviceCMYK()
Create a DeviceCMYK color space.
-
CGColorSpaceCreateWithICCProfile
public static CGColorSpaceRef CGColorSpaceCreateWithICCProfile(CFDataRef data)
Please use `CGColorSpaceCreateWithICCData'
-
CGColorSpaceCreateICCBased
public static CGColorSpaceRef CGColorSpaceCreateICCBased(long nComponents, org.moe.natj.general.ptr.ConstNFloatPtr range, CGDataProviderRef profile, 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.
-
CGColorSpaceCreateIndexed
public static CGColorSpaceRef CGColorSpaceCreateIndexed(CGColorSpaceRef baseSpace, long lastIndex, 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.
-
CGColorSpaceCreatePattern
public static CGColorSpaceRef CGColorSpaceCreatePattern(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.
-
CGColorSpaceCreateWithPlatformColorSpace
public static CGColorSpaceRef CGColorSpaceCreateWithPlatformColorSpace(org.moe.natj.general.ptr.ConstVoidPtr ref)
Create a color space using `ref', a platform-specific color space reference. For MacOS X, `ref' should be a ColorSyncProfileRef.
-
CGColorSpaceCreateWithName
public static CGColorSpaceRef CGColorSpaceCreateWithName(CFStringRef name)
Create a color space using `name' as the identifier for the color space.
-
CGColorSpaceRetain
public static CGColorSpaceRef CGColorSpaceRetain(CGColorSpaceRef space)
Equivalent to `CFRetain(space)', except it doesn't crash (as CFRetain does) if `space' is NULL.
-
CGColorSpaceRelease
public static void CGColorSpaceRelease(CGColorSpaceRef space)
Equivalent to `CFRelease(space)', except it doesn't crash (as CFRelease does) if `space' is NULL.
-
CGColorSpaceCopyName
public static CFStringRef CGColorSpaceCopyName(CGColorSpaceRef space)
Same as `CGColorSpaceGetName' but with ownership released to the caller.
-
CGColorSpaceGetTypeID
public static long CGColorSpaceGetTypeID()
Return the CFTypeID for CGColorSpaces.
-
CGColorSpaceGetNumberOfComponents
public static long CGColorSpaceGetNumberOfComponents(CGColorSpaceRef space)
Return the number of color components in the color space `space'.
-
CGColorSpaceGetModel
public static int CGColorSpaceGetModel(CGColorSpaceRef space)
Return the color space model of `space'.
-
CGColorSpaceGetBaseColorSpace
public static CGColorSpaceRef CGColorSpaceGetBaseColorSpace(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'.
-
CGColorSpaceGetColorTableCount
public static long CGColorSpaceGetColorTableCount(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'.
-
CGColorSpaceGetColorTable
public static void CGColorSpaceGetColorTable(CGColorSpaceRef space, 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'.
-
CGColorSpaceCopyICCProfile
public static CFDataRef CGColorSpaceCopyICCProfile(CGColorSpaceRef space)
Please use `CGColorSpaceCopyICCData'
-
CGColorSpaceCopyICCData
public static CFDataRef CGColorSpaceCopyICCData(CGColorSpaceRef space)
Return a copy of the ICC profile data of `space', or NULL if the color space doesn't have an ICC profile.
-
CGColorSpaceIsWideGamutRGB
public static boolean CGColorSpaceIsWideGamutRGB(CGColorSpaceRef arg1)
Return true if gamut of the RGB color space is greater than 85% of NTSC gamut
-
CGColorSpaceSupportsOutput
public static boolean CGColorSpaceSupportsOutput(CGColorSpaceRef space)
Return true if `space' can be used as a destination color space; false otherwise.
-
CGPatternGetTypeID
public static long CGPatternGetTypeID()
Return the CFTypeID for CGPatternRefs.
-
CGPatternCreate
public static CGPatternRef CGPatternCreate(org.moe.natj.general.ptr.VoidPtr info, CGRect bounds, CGAffineTransform matrix, double xStep, double yStep, int tiling, boolean isColored, CGPatternCallbacks callbacks)
Create a pattern.
-
CGPatternRetain
public static CGPatternRef CGPatternRetain(CGPatternRef pattern)
Equivalent to `CFRetain(pattern)', except it doesn't crash (as CF does) if `pattern' is NULL.
-
CGPatternRelease
public static void CGPatternRelease(CGPatternRef pattern)
Equivalent to `CFRelease(pattern)', except it doesn't crash (as CF does) if `pattern' is NULL.
-
CGColorCreate
public static CGColorRef CGColorCreate(CGColorSpaceRef space, 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.
-
CGColorCreateWithPattern
public static CGColorRef CGColorCreateWithPattern(CGColorSpaceRef space, CGPatternRef pattern, 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.
-
CGColorCreateCopy
public static CGColorRef CGColorCreateCopy(CGColorRef color)
Create a copy of `color'.
-
CGColorCreateCopyWithAlpha
public static CGColorRef CGColorCreateCopyWithAlpha(CGColorRef color, double alpha)
Create a copy of `color' with alpha set to `alpha'.
-
CGColorCreateCopyByMatchingToColorSpace
public static CGColorRef CGColorCreateCopyByMatchingToColorSpace(CGColorSpaceRef arg1, int intent, CGColorRef color, CFDictionaryRef options)
Create a copy of `color' by matching existing color to destination color space.
-
CGColorRetain
public static CGColorRef CGColorRetain(CGColorRef color)
Equivalent to `CFRetain(color)', except it doesn't crash (as CFRetain does) if `color' is NULL.
-
CGColorRelease
public static void CGColorRelease(CGColorRef color)
Equivalent to `CFRelease(color)', except it doesn't crash (as CFRelease does) if `color' is NULL.
-
CGColorEqualToColor
public static boolean CGColorEqualToColor(CGColorRef color1, CGColorRef color2)
Return true if `color1' is equal to `color2'; false otherwise.
-
CGColorGetNumberOfComponents
public static long CGColorGetNumberOfComponents(CGColorRef color)
Return the number of color components (including alpha) associated with `color'.
-
CGColorGetComponents
public static org.moe.natj.general.ptr.ConstNFloatPtr CGColorGetComponents(CGColorRef color)
Return the color components (including alpha) associated with `color'.
-
CGColorGetAlpha
public static double CGColorGetAlpha(CGColorRef color)
Return the alpha component associated with `color'.
-
CGColorGetColorSpace
public static CGColorSpaceRef CGColorGetColorSpace(CGColorRef color)
Return the color space associated with `color'.
-
CGColorGetPattern
public static CGPatternRef CGColorGetPattern(CGColorRef color)
Return the pattern associated with `color', if it's a color in a pattern color space; NULL otherwise.
-
CGColorGetTypeID
public static long CGColorGetTypeID()
Return the CFTypeID for CGColors.
-
CGFontGetTypeID
public static long CGFontGetTypeID()
Return the CFTypeID for CGFontRefs.
-
CGFontCreateWithDataProvider
public static CGFontRef CGFontCreateWithDataProvider(CGDataProviderRef provider)
Return the font defined by the data provided by `provider', or NULL if the font can't be created.
-
CGFontCreateWithFontName
public static CGFontRef CGFontCreateWithFontName(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.
-
CGFontCreateCopyWithVariations
public static CGFontRef CGFontCreateCopyWithVariations(CGFontRef font, 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.
-
CGFontRetain
public static CGFontRef CGFontRetain(CGFontRef font)
Equivalent to `CFRetain(font)', except it doesn't crash (as CFRetain does) if `font' is NULL.
-
CGFontRelease
public static void CGFontRelease(CGFontRef font)
Equivalent to `CFRelease(font)', except it doesn't crash (as CFRelease does) if `font' is NULL.
-
CGFontGetNumberOfGlyphs
public static long CGFontGetNumberOfGlyphs(CGFontRef font)
Return the number of glyphs in `font'.
-
CGFontGetUnitsPerEm
public static int CGFontGetUnitsPerEm(CGFontRef font)
Return the glyph space units/em for `font'.
-
CGFontCopyPostScriptName
public static CFStringRef CGFontCopyPostScriptName(CGFontRef font)
Return the PostScript name of `font'.
-
CGFontCopyFullName
public static CFStringRef CGFontCopyFullName(CGFontRef font)
Return the "full name" of `font'.
-
CGFontGetAscent
public static int CGFontGetAscent(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.
-
CGFontGetDescent
public static int CGFontGetDescent(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.
-
CGFontGetLeading
public static int CGFontGetLeading(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.
-
CGFontGetCapHeight
public static int CGFontGetCapHeight(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.
-
CGFontGetXHeight
public static int CGFontGetXHeight(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.
-
CGFontGetFontBBox
public static CGRect CGFontGetFontBBox(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.
-
CGFontGetItalicAngle
public static double CGFontGetItalicAngle(CGFontRef font)
Return the italic angle of `font', measured in degrees counter-clockwise from the vertical.
-
CGFontGetStemV
public static double CGFontGetStemV(CGFontRef font)
Return the thickness of the dominant vertical stems of glyphs in `font'. The value is specified in glyph space units.
-
CGFontCopyVariationAxes
public static CFArrayRef CGFontCopyVariationAxes(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.
-
CGFontCopyVariations
public static CFDictionaryRef CGFontCopyVariations(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.
-
CGFontGetGlyphAdvances
public static boolean CGFontGetGlyphAdvances(CGFontRef font, org.moe.natj.general.ptr.ConstCharPtr glyphs, long count, 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.
-
CGFontGetGlyphBBoxes
public static boolean CGFontGetGlyphBBoxes(CGFontRef font, org.moe.natj.general.ptr.ConstCharPtr glyphs, long count, 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.
-
CGFontGetGlyphWithGlyphName
public static char CGFontGetGlyphWithGlyphName(CGFontRef font, CFStringRef name)
Return the glyph associated with `name' in `font'. If `name' isn't found in the font, return 0.
-
CGFontCopyGlyphNameForGlyph
public static CFStringRef CGFontCopyGlyphNameForGlyph(CGFontRef font, char glyph)
Return the glyph name of `glyph' in `font', or NULL if `glyph' does not appear in `font'.
-
CGFontCanCreatePostScriptSubset
public static boolean CGFontCanCreatePostScriptSubset(CGFontRef font, int format)
Return true if a subset in the PostScript format `format' can be created for `font'; false otherwise.
-
CGFontCopyTableTags
public static CFArrayRef CGFontCopyTableTags(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.
-
CGFontCopyTableForTag
public static CFDataRef CGFontCopyTableForTag(CGFontRef font, int tag)
Return the table in `font' corresponding to `tag', or NULL if no such table exists.
-
CGGradientGetTypeID
public static long CGGradientGetTypeID()
Return the CFTypeID for CGGradients.
-
CGGradientCreateWithColorComponents
public static CGGradientRef CGGradientCreateWithColorComponents(CGColorSpaceRef space, org.moe.natj.general.ptr.ConstNFloatPtr components, 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 be a pattern or indexed color space). 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.
-
CGGradientCreateWithColors
public static CGGradientRef CGGradientCreateWithColors(CGColorSpaceRef space, CFArrayRef colors, 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 or indexed color space. If `space' is non-NULL, 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 `space' is specified, it may not be a pattern or indexed 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.
-
CGGradientRetain
public static CGGradientRef CGGradientRetain(CGGradientRef gradient)
Equivalent to `CFRetain' except that it doesn't crash (as `CFRetain' does) if `gradient' is NULL.
-
CGGradientRelease
public static void CGGradientRelease(CGGradientRef gradient)
Equivalent to `CFRelease' except that it doesn't crash (as `CFRelease' does) if `gradient' is NULL.
-
CGImageGetTypeID
public static long CGImageGetTypeID()
Return the CFTypeID for CGImageRefs.
-
CGImageCreate
public static CGImageRef CGImageCreate(long width, long height, long bitsPerComponent, long bitsPerPixel, long bytesPerRow, CGColorSpaceRef space, int bitmapInfo, CGDataProviderRef provider, org.moe.natj.general.ptr.ConstNFloatPtr decode, boolean shouldInterpolate, int intent)
Create an image.
-
CGImageMaskCreate
public static CGImageRef CGImageMaskCreate(long width, long height, long bitsPerComponent, long bitsPerPixel, long bytesPerRow, CGDataProviderRef provider, 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.
-
CGImageCreateCopy
public static CGImageRef CGImageCreateCopy(CGImageRef image)
Return a copy of `image'. Only the image structure itself is copied; the underlying data is not.
-
CGImageCreateWithJPEGDataProvider
public static CGImageRef CGImageCreateWithJPEGDataProvider(CGDataProviderRef source, org.moe.natj.general.ptr.ConstNFloatPtr decode, boolean shouldInterpolate, int intent)
Create an image from `source', a data provider of JPEG-encoded data.
-
CGImageCreateWithPNGDataProvider
public static CGImageRef CGImageCreateWithPNGDataProvider(CGDataProviderRef source, org.moe.natj.general.ptr.ConstNFloatPtr decode, boolean shouldInterpolate, int intent)
Create an image using `source', a data provider for PNG-encoded data.
-
CGImageCreateWithImageInRect
public static CGImageRef CGImageCreateWithImageInRect(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.
-
CGImageCreateWithMask
public static CGImageRef CGImageCreateWithMask(CGImageRef image, 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.
-
CGImageCreateWithMaskingColors
public static CGImageRef CGImageCreateWithMaskingColors(CGImageRef image, 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.
-
CGImageCreateCopyWithColorSpace
public static CGImageRef CGImageCreateCopyWithColorSpace(CGImageRef image, 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'.
-
CGImageRetain
public static CGImageRef CGImageRetain(CGImageRef image)
Equivalent to `CFRetain(image)'.
-
CGImageRelease
public static void CGImageRelease(CGImageRef image)
Equivalent to `CFRelease(image)'.
-
CGImageIsMask
public static boolean CGImageIsMask(CGImageRef image)
Return true if `image' is an image mask, false otherwise.
-
CGImageGetWidth
public static long CGImageGetWidth(CGImageRef image)
Return the width of `image'.
-
CGImageGetHeight
public static long CGImageGetHeight(CGImageRef image)
Return the height of `image'.
-
CGImageGetBitsPerComponent
public static long CGImageGetBitsPerComponent(CGImageRef image)
Return the number of bits/component of `image'.
-
CGImageGetBitsPerPixel
public static long CGImageGetBitsPerPixel(CGImageRef image)
Return the number of bits/pixel of `image'.
-
CGImageGetBytesPerRow
public static long CGImageGetBytesPerRow(CGImageRef image)
Return the number of bytes/row of `image'.
-
CGImageGetColorSpace
public static CGColorSpaceRef CGImageGetColorSpace(CGImageRef image)
Return the color space of `image', or NULL if `image' is an image mask.
-
CGImageGetAlphaInfo
public static int CGImageGetAlphaInfo(CGImageRef image)
Return the alpha info of `image'.
-
CGImageGetDataProvider
public static CGDataProviderRef CGImageGetDataProvider(CGImageRef image)
Return the data provider of `image'.
-
CGImageGetDecode
public static org.moe.natj.general.ptr.ConstNFloatPtr CGImageGetDecode(CGImageRef image)
Return the decode array of `image'.
-
CGImageGetShouldInterpolate
public static boolean CGImageGetShouldInterpolate(CGImageRef image)
Return the interpolation parameter of `image'.
-
CGImageGetRenderingIntent
public static int CGImageGetRenderingIntent(CGImageRef image)
Return the rendering intent of `image'.
-
CGImageGetBitmapInfo
public static int CGImageGetBitmapInfo(CGImageRef image)
Return the bitmap info of `image'.
-
CGImageGetUTType
public static CFStringRef CGImageGetUTType(CGImageRef image)
Return the UTType of `image'.
-
CGPathGetTypeID
public static long CGPathGetTypeID()
Return the CFTypeID for CGPathRefs.
-
CGPathCreateMutable
public static CGMutablePathRef CGPathCreateMutable()
Create a mutable path.
-
CGPathCreateCopyByTransformingPath
public static CGPathRef CGPathCreateCopyByTransformingPath(CGPathRef path, CGAffineTransform transform)
Create a copy of `path' transformed by `transform'.
-
CGPathCreateMutableCopy
public static CGMutablePathRef CGPathCreateMutableCopy(CGPathRef path)
Create a mutable copy of `path'.
-
CGPathCreateMutableCopyByTransformingPath
public static CGMutablePathRef CGPathCreateMutableCopyByTransformingPath(CGPathRef path, CGAffineTransform transform)
Create a mutable copy of `path' transformed by `transform'.
-
CGPathCreateWithRect
public static CGPathRef CGPathCreateWithRect(CGRect rect, 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.
-
CGPathCreateWithEllipseInRect
public static CGPathRef CGPathCreateWithEllipseInRect(CGRect rect, 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.
-
CGPathCreateWithRoundedRect
public static CGPathRef CGPathCreateWithRoundedRect(CGRect rect, double cornerWidth, double cornerHeight, 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.
-
CGPathAddRoundedRect
public static void CGPathAddRoundedRect(CGMutablePathRef path, 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.
-
CGPathCreateCopyByDashingPath
public static CGPathRef CGPathCreateCopyByDashingPath(CGPathRef path, CGAffineTransform transform, double phase, 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.
-
CGPathCreateCopyByStrokingPath
public static CGPathRef CGPathCreateCopyByStrokingPath(CGPathRef path, 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.
-
CGPathRetain
public static CGPathRef CGPathRetain(CGPathRef path)
Equivalent to `CFRetain(path)', except it doesn't crash (as CFRetain does) if `path' is NULL.
-
CGPathRelease
public static void CGPathRelease(CGPathRef path)
Equivalent to `CFRelease(path)', except it doesn't crash (as CFRelease does) if `path' is NULL.
-
CGPathEqualToPath
public static boolean CGPathEqualToPath(CGPathRef path1, CGPathRef path2)
Return true if `path1' is equal to `path2'; false otherwise.
-
CGPathMoveToPoint
public static void CGPathMoveToPoint(CGMutablePathRef path, 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.
-
CGPathAddLineToPoint
public static void CGPathAddLineToPoint(CGMutablePathRef path, 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.
-
CGPathAddQuadCurveToPoint
public static void CGPathAddQuadCurveToPoint(CGMutablePathRef path, 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.
-
CGPathAddCurveToPoint
public static void CGPathAddCurveToPoint(CGMutablePathRef path, 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.
-
CGPathCloseSubpath
public static void CGPathCloseSubpath(CGMutablePathRef path)
Append a line from the current point to the starting point of the current subpath of `path' and end the subpath.
-
CGPathAddRect
public static void CGPathAddRect(CGMutablePathRef path, CGAffineTransform m, CGRect rect)
Add `rect' to `path'. If `m' is non-NULL, then first transform `rect' by `m' before adding it to `path'.
-
CGPathAddRects
public static void CGPathAddRects(CGMutablePathRef path, CGAffineTransform m, 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'.
-
CGPathAddLines
public static void CGPathAddLines(CGMutablePathRef path, CGAffineTransform m, 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'.
-
CGPathAddEllipseInRect
public static void CGPathAddEllipseInRect(CGMutablePathRef path, 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'.
-
CGPathAddRelativeArc
public static void CGPathAddRelativeArc(CGMutablePathRef path, 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.
-
CGPathAddArc
public static void CGPathAddArc(CGMutablePathRef path, 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.
-
CGPathAddArcToPoint
public static void CGPathAddArcToPoint(CGMutablePathRef path, 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'.
-
CGPathAddPath
public static void CGPathAddPath(CGMutablePathRef path1, CGAffineTransform m, 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'.
-
CGPathIsEmpty
public static boolean CGPathIsEmpty(CGPathRef path)
Return true if `path' contains no elements, false otherwise.
-
CGPathIsRect
public static boolean CGPathIsRect(CGPathRef path, CGRect rect)
Return true if `path' represents a rectangle, false otherwise.
-
CGPathGetCurrentPoint
public static CGPoint CGPathGetCurrentPoint(CGPathRef path)
Return the current point of the current subpath of `path'. If there is no current point, then return CGPointZero.
-
CGPathGetBoundingBox
public static CGRect CGPathGetBoundingBox(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'.
-
CGPathGetPathBoundingBox
public static CGRect CGPathGetPathBoundingBox(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'.
-
CGPathContainsPoint
public static boolean CGPathContainsPoint(CGPathRef path, 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.
-
CGPathApply
public static void CGPathApply(CGPathRef path, org.moe.natj.general.ptr.VoidPtr info, CoreGraphics.Function_CGPathApply function)
For element of `path', call `function', passing it the path element and `info'.
-
CGPDFObjectGetType
public static int CGPDFObjectGetType(CGPDFObjectRef object)
Return the type of `object'.
-
CGPDFObjectGetValue
public static boolean CGPDFObjectGetValue(CGPDFObjectRef object, int type, 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.
-
CGPDFStreamGetDictionary
public static CGPDFDictionaryRef CGPDFStreamGetDictionary(CGPDFStreamRef stream)
Return the dictionary of `stream'.
-
CGPDFStreamCopyData
public static CFDataRef CGPDFStreamCopyData(CGPDFStreamRef stream, org.moe.natj.general.ptr.IntPtr format)
Return the data of `stream'.
-
CGPDFStringGetLength
public static long CGPDFStringGetLength(CGPDFStringRef string)
Return the length of `string'.
-
CGPDFStringGetBytePtr
public static java.lang.String CGPDFStringGetBytePtr(CGPDFStringRef string)
Return a pointer to the bytes of `string'.
-
CGPDFStringCopyTextString
public static CFStringRef CGPDFStringCopyTextString(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.
-
CGPDFStringCopyDate
public static CFDateRef CGPDFStringCopyDate(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.
-
CGPDFArrayGetCount
public static long CGPDFArrayGetCount(CGPDFArrayRef array)
-
CGPDFArrayGetObject
public static boolean CGPDFArrayGetObject(CGPDFArrayRef array, long index, 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.
-
CGPDFArrayGetNull
public static boolean CGPDFArrayGetNull(CGPDFArrayRef array, long index)
Look up the object at `index' in `array' and, if it's a null, return true; otherwise, return false.
-
CGPDFArrayGetBoolean
public static boolean CGPDFArrayGetBoolean(CGPDFArrayRef array, long index, 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.
-
CGPDFArrayGetInteger
public static boolean CGPDFArrayGetInteger(CGPDFArrayRef array, long index, 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.
-
CGPDFArrayGetNumber
public static boolean CGPDFArrayGetNumber(CGPDFArrayRef array, long index, 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.
-
CGPDFArrayGetName
public static boolean CGPDFArrayGetName(CGPDFArrayRef array, long index, 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.
-
CGPDFArrayGetString
public static boolean CGPDFArrayGetString(CGPDFArrayRef array, long index, 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.
-
CGPDFArrayGetArray
public static boolean CGPDFArrayGetArray(CGPDFArrayRef array, long index, 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.
-
CGPDFArrayGetDictionary
public static boolean CGPDFArrayGetDictionary(CGPDFArrayRef array, long index, 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.
-
CGPDFArrayGetStream
public static boolean CGPDFArrayGetStream(CGPDFArrayRef array, long index, 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.
-
CGPDFDictionaryGetCount
public static long CGPDFDictionaryGetCount(CGPDFDictionaryRef dict)
Return the number of entries in `dictionary'.
-
CGPDFDictionaryGetObject
public static boolean CGPDFDictionaryGetObject(CGPDFDictionaryRef dict, java.lang.String key, 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.
-
CGPDFDictionaryGetBoolean
public static boolean CGPDFDictionaryGetBoolean(CGPDFDictionaryRef dict, java.lang.String key, 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.
-
CGPDFDictionaryGetInteger
public static boolean CGPDFDictionaryGetInteger(CGPDFDictionaryRef dict, java.lang.String key, 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.
-
CGPDFDictionaryGetNumber
public static boolean CGPDFDictionaryGetNumber(CGPDFDictionaryRef dict, java.lang.String key, 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.
-
CGPDFDictionaryGetName
public static boolean CGPDFDictionaryGetName(CGPDFDictionaryRef dict, java.lang.String key, 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.
-
CGPDFDictionaryGetString
public static boolean CGPDFDictionaryGetString(CGPDFDictionaryRef dict, java.lang.String key, 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.
-
CGPDFDictionaryGetArray
public static boolean CGPDFDictionaryGetArray(CGPDFDictionaryRef dict, java.lang.String key, 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.
-
CGPDFDictionaryGetDictionary
public static boolean CGPDFDictionaryGetDictionary(CGPDFDictionaryRef dict, java.lang.String key, 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.
-
CGPDFDictionaryGetStream
public static boolean CGPDFDictionaryGetStream(CGPDFDictionaryRef dict, java.lang.String key, 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.
-
CGPDFDictionaryApplyFunction
public static void CGPDFDictionaryApplyFunction(CGPDFDictionaryRef dict, CoreGraphics.Function_CGPDFDictionaryApplyFunction function, 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'.
-
CGPDFPageRetain
public static CGPDFPageRef CGPDFPageRetain(CGPDFPageRef page)
Equivalent to `CFRetain(page)', except it doesn't crash (as CFRetain does) if `page' is NULL.
-
CGPDFPageRelease
public static void CGPDFPageRelease(CGPDFPageRef page)
Equivalent to `CFRelease(page)', except it doesn't crash (as CFRelease does) if `page' is NULL.
-
CGPDFPageGetDocument
public static CGPDFDocumentRef CGPDFPageGetDocument(CGPDFPageRef page)
Return the document of `page'.
-
CGPDFPageGetPageNumber
public static long CGPDFPageGetPageNumber(CGPDFPageRef page)
Return the page number of `page'.
-
CGPDFPageGetBoxRect
public static CGRect CGPDFPageGetBoxRect(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.
-
CGPDFPageGetRotationAngle
public static int CGPDFPageGetRotationAngle(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.
-
CGPDFPageGetDrawingTransform
public static CGAffineTransform CGPDFPageGetDrawingTransform(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.
-
CGPDFPageGetDictionary
public static CGPDFDictionaryRef CGPDFPageGetDictionary(CGPDFPageRef page)
Return the dictionary of `page'.
-
CGPDFPageGetTypeID
public static long CGPDFPageGetTypeID()
Return the CFTypeID for CGPDFPageRefs.
-
CGPDFDocumentCreateWithProvider
public static CGPDFDocumentRef CGPDFDocumentCreateWithProvider(CGDataProviderRef provider)
Create a PDF document, using `provider' to obtain the document's data.
-
CGPDFDocumentCreateWithURL
public static CGPDFDocumentRef CGPDFDocumentCreateWithURL(CFURLRef url)
Create a PDF document from `url'.
-
CGPDFDocumentRetain
public static CGPDFDocumentRef CGPDFDocumentRetain(CGPDFDocumentRef document)
Equivalent to `CFRetain(document)', except it doesn't crash (as CFRetain does) if `document' is NULL.
-
CGPDFDocumentRelease
public static void CGPDFDocumentRelease(CGPDFDocumentRef document)
Equivalent to `CFRelease(document)', except it doesn't crash (as CFRelease does) if `document' is NULL.
-
CGPDFDocumentGetVersion
public static void CGPDFDocumentGetVersion(CGPDFDocumentRef document, org.moe.natj.general.ptr.IntPtr majorVersion, org.moe.natj.general.ptr.IntPtr minorVersion)
Return the major and minor version numbers of `document'.
-
CGPDFDocumentIsEncrypted
public static boolean CGPDFDocumentIsEncrypted(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.
-
CGPDFDocumentUnlockWithPassword
public static boolean CGPDFDocumentUnlockWithPassword(CGPDFDocumentRef document, 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.
-
CGPDFDocumentIsUnlocked
public static boolean CGPDFDocumentIsUnlocked(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'.
-
CGPDFDocumentAllowsPrinting
public static boolean CGPDFDocumentAllowsPrinting(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.
-
CGPDFDocumentAllowsCopying
public static boolean CGPDFDocumentAllowsCopying(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.
-
CGPDFDocumentGetNumberOfPages
public static long CGPDFDocumentGetNumberOfPages(CGPDFDocumentRef document)
Return the number of pages in `document'.
-
CGPDFDocumentGetPage
public static CGPDFPageRef CGPDFDocumentGetPage(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.
-
CGPDFDocumentGetCatalog
public static CGPDFDictionaryRef CGPDFDocumentGetCatalog(CGPDFDocumentRef document)
Return the document catalog of `document'.
-
CGPDFDocumentGetInfo
public static CGPDFDictionaryRef CGPDFDocumentGetInfo(CGPDFDocumentRef document)
Return the info dictionary of `document'.
-
CGPDFDocumentGetID
public static CGPDFArrayRef CGPDFDocumentGetID(CGPDFDocumentRef document)
Return the "file identifier" array of `document'.
-
CGPDFDocumentGetTypeID
public static long CGPDFDocumentGetTypeID()
Return the CFTypeID for CGPDFDocumentRefs.
-
CGFunctionGetTypeID
public static long CGFunctionGetTypeID()
Return the CFTypeID for CGFunctionRefs.
-
CGFunctionCreate
public static CGFunctionRef CGFunctionCreate(org.moe.natj.general.ptr.VoidPtr info, long domainDimension, org.moe.natj.general.ptr.ConstNFloatPtr domain, long rangeDimension, org.moe.natj.general.ptr.ConstNFloatPtr range, 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.
-
CGFunctionRetain
public static CGFunctionRef CGFunctionRetain(CGFunctionRef function)
Equivalent to `CFRetain(function)', except it doesn't crash (as CFRetain does) if `function' is NULL.
-
CGFunctionRelease
public static void CGFunctionRelease(CGFunctionRef function)
Equivalent to `CFRelease(function)', except it doesn't crash (as CFRelease does) if `function' is NULL.
-
CGShadingGetTypeID
public static long CGShadingGetTypeID()
Return the CFTypeID for CGShadingRefs.
-
CGShadingCreateAxial
public static CGShadingRef CGShadingCreateAxial(CGColorSpaceRef space, CGPoint start, CGPoint end, 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.
-
CGShadingCreateRadial
public static CGShadingRef CGShadingCreateRadial(CGColorSpaceRef space, CGPoint start, double startRadius, CGPoint end, double endRadius, 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.
-
CGShadingRetain
public static CGShadingRef CGShadingRetain(CGShadingRef shading)
Equivalent to `CFRetain(shading)', except it doesn't crash (as CFRetain does) if `shading' is NULL.
-
CGShadingRelease
public static void CGShadingRelease(CGShadingRef shading)
Equivalent to `CFRelease(shading)', except it doesn't crash (as CFRelease does) if `shading' is NULL.
-
CGContextGetTypeID
public static long CGContextGetTypeID()
Return the CFTypeID for CGContextRefs.
-
CGContextSaveGState
public static void CGContextSaveGState(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.
-
CGContextRestoreGState
public static void CGContextRestoreGState(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.
-
CGContextScaleCTM
public static void CGContextScaleCTM(CGContextRef c, double sx, double sy)
Scale the current graphics state's transformation matrix (the CTM) by `(sx, sy)'.
-
CGContextTranslateCTM
public static void CGContextTranslateCTM(CGContextRef c, double tx, double ty)
Translate the current graphics state's transformation matrix (the CTM) by `(tx, ty)'.
-
CGContextRotateCTM
public static void CGContextRotateCTM(CGContextRef c, double angle)
Rotate the current graphics state's transformation matrix (the CTM) by `angle' radians.
-
CGContextConcatCTM
public static void CGContextConcatCTM(CGContextRef c, CGAffineTransform transform)
Concatenate the current graphics state's transformation matrix (the CTM) with the affine transform `transform'.
-
CGContextGetCTM
public static CGAffineTransform CGContextGetCTM(CGContextRef c)
Return the current graphics state's transformation matrix. Returns CGAffineTransformIdentity in case of inavlid context.
-
CGContextSetLineWidth
public static void CGContextSetLineWidth(CGContextRef c, double width)
Set the line width in the current graphics state to `width'.
-
CGContextSetLineCap
public static void CGContextSetLineCap(CGContextRef c, int cap)
Set the line cap in the current graphics state to `cap'.
-
CGContextSetLineJoin
public static void CGContextSetLineJoin(CGContextRef c, int join)
Set the line join in the current graphics state to `join'.
-
CGContextSetMiterLimit
public static void CGContextSetMiterLimit(CGContextRef c, double limit)
Set the miter limit in the current graphics state to `limit'.
-
CGContextSetLineDash
public static void CGContextSetLineDash(CGContextRef c, double phase, org.moe.natj.general.ptr.ConstNFloatPtr lengths, long count)
Set the line dash patttern in the current graphics state of `c'.
-
CGContextSetFlatness
public static void CGContextSetFlatness(CGContextRef c, double flatness)
Set the path flatness parameter in the current graphics state of `c' to `flatness'.
-
CGContextSetAlpha
public static void CGContextSetAlpha(CGContextRef c, double alpha)
Set the alpha value in the current graphics state of `c' to `alpha'.
-
CGContextSetBlendMode
public static void CGContextSetBlendMode(CGContextRef c, int mode)
Set the blend mode of `context' to `mode'.
-
CGContextBeginPath
public static void CGContextBeginPath(CGContextRef c)
Begin a new path. The old path is discarded.
-
CGContextMoveToPoint
public static void CGContextMoveToPoint(CGContextRef c, double x, double y)
Start a new subpath at point `(x, y)' in the context's path.
-
CGContextAddLineToPoint
public static void CGContextAddLineToPoint(CGContextRef c, double x, double y)
Append a straight line segment from the current point to `(x, y)'.
-
CGContextAddCurveToPoint
public static void CGContextAddCurveToPoint(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)'.
-
CGContextAddQuadCurveToPoint
public static void CGContextAddQuadCurveToPoint(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)'.
-
CGContextClosePath
public static void CGContextClosePath(CGContextRef c)
Close the current subpath of the context's path.
-
CGContextAddRect
public static void CGContextAddRect(CGContextRef c, CGRect rect)
Add a single rect to the context's path.
-
CGContextAddRects
public static void CGContextAddRects(CGContextRef c, CGRect rects, long count)
Add a set of rects to the context's path.
-
CGContextAddLines
public static void CGContextAddLines(CGContextRef c, CGPoint points, long count)
Add a set of lines to the context's path.
-
CGContextAddEllipseInRect
public static void CGContextAddEllipseInRect(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.
-
CGContextAddArc
public static void CGContextAddArc(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.
-
CGContextAddArcToPoint
public static void CGContextAddArcToPoint(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)'.
-
CGContextAddPath
public static void CGContextAddPath(CGContextRef c, CGPathRef path)
Add `path' to the path of context. The points in `path' are transformed by the CTM of context before they are added.
-
CGContextReplacePathWithStrokedPath
public static void CGContextReplacePathWithStrokedPath(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".
-
CGContextIsPathEmpty
public static boolean CGContextIsPathEmpty(CGContextRef c)
Return true if the path of `context' contains no elements, false otherwise.
-
CGContextGetPathCurrentPoint
public static CGPoint CGContextGetPathCurrentPoint(CGContextRef c)
Return the current point of the current subpath of the path of `context'.
-
CGContextGetPathBoundingBox
public static CGRect CGContextGetPathBoundingBox(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.
-
CGContextCopyPath
public static CGPathRef CGContextCopyPath(CGContextRef c)
Return a copy of the path of `context'. The returned path is specified in the current user space of `context'.
-
CGContextPathContainsPoint
public static boolean CGContextPathContainsPoint(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.
-
CGContextDrawPath
public static void CGContextDrawPath(CGContextRef c, int mode)
Draw the context's path using drawing mode `mode'.
-
CGContextFillPath
public static void CGContextFillPath(CGContextRef c)
Fill the context's path using the winding-number fill rule. Any open subpath of the path is implicitly closed.
-
CGContextEOFillPath
public static void CGContextEOFillPath(CGContextRef c)
Fill the context's path using the even-odd fill rule. Any open subpath of the path is implicitly closed.
-
CGContextStrokePath
public static void CGContextStrokePath(CGContextRef c)
Stroke the context's path.
-
CGContextFillRect
public static void CGContextFillRect(CGContextRef c, CGRect rect)
Fill `rect' with the current fill color.
-
CGContextFillRects
public static void CGContextFillRects(CGContextRef c, CGRect rects, long count)
Fill `rects', an array of `count' CGRects, with the current fill color.
-
CGContextStrokeRect
public static void CGContextStrokeRect(CGContextRef c, CGRect rect)
Stroke `rect' with the current stroke color and the current linewidth.
-
CGContextStrokeRectWithWidth
public static void CGContextStrokeRectWithWidth(CGContextRef c, CGRect rect, double width)
Stroke `rect' with the current stroke color, using `width' as the the line width.
-
CGContextClearRect
public static void CGContextClearRect(CGContextRef c, CGRect rect)
Clear `rect' (that is, set the region within the rect to transparent).
-
CGContextFillEllipseInRect
public static void CGContextFillEllipseInRect(CGContextRef c, CGRect rect)
Fill an ellipse (an oval) inside `rect'.
-
CGContextStrokeEllipseInRect
public static void CGContextStrokeEllipseInRect(CGContextRef c, CGRect rect)
Stroke an ellipse (an oval) inside `rect'.
-
CGContextStrokeLineSegments
public static void CGContextStrokeLineSegments(CGContextRef c, 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);
-
CGContextClip
public static void CGContextClip(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.
-
CGContextEOClip
public static void CGContextEOClip(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.
-
CGContextClipToMask
public static void CGContextClipToMask(CGContextRef c, CGRect rect, 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.
-
CGContextGetClipBoundingBox
public static CGRect CGContextGetClipBoundingBox(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.
-
CGContextClipToRect
public static void CGContextClipToRect(CGContextRef c, CGRect rect)
Intersect the current clipping path with `rect'. Note that this function resets the context's path to the empty path.
-
CGContextClipToRects
public static void CGContextClipToRects(CGContextRef c, 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.
-
CGContextSetFillColorWithColor
public static void CGContextSetFillColorWithColor(CGContextRef c, CGColorRef color)
Set the current fill color in the context `c' to `color'.
-
CGContextSetStrokeColorWithColor
public static void CGContextSetStrokeColorWithColor(CGContextRef c, CGColorRef color)
Set the current stroke color in the context `c' to `color'.
-
CGContextSetFillColorSpace
public static void CGContextSetFillColorSpace(CGContextRef c, 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.
-
CGContextSetStrokeColorSpace
public static void CGContextSetStrokeColorSpace(CGContextRef c, 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.
-
CGContextSetFillColor
public static void CGContextSetFillColor(CGContextRef c, 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.
-
CGContextSetStrokeColor
public static void CGContextSetStrokeColor(CGContextRef c, 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.
-
CGContextSetFillPattern
public static void CGContextSetFillPattern(CGContextRef c, CGPatternRef pattern, 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.
-
CGContextSetStrokePattern
public static void CGContextSetStrokePattern(CGContextRef c, CGPatternRef pattern, 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.
-
CGContextSetPatternPhase
public static void CGContextSetPatternPhase(CGContextRef c, CGSize phase)
Set the pattern phase in the current graphics state of `context' to `phase'.
-
CGContextSetGrayFillColor
public static void CGContextSetGrayFillColor(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)'.
-
CGContextSetGrayStrokeColor
public static void CGContextSetGrayStrokeColor(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)'.
-
CGContextSetRGBFillColor
public static void CGContextSetRGBFillColor(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)'.
-
CGContextSetRGBStrokeColor
public static void CGContextSetRGBStrokeColor(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)'.
-
CGContextSetCMYKFillColor
public static void CGContextSetCMYKFillColor(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)'.
-
CGContextSetCMYKStrokeColor
public static void CGContextSetCMYKStrokeColor(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)'.
-
CGContextSetRenderingIntent
public static void CGContextSetRenderingIntent(CGContextRef c, int intent)
Set the rendering intent in the current graphics state of `context' to `intent'.
-
CGContextDrawImage
public static void CGContextDrawImage(CGContextRef c, CGRect rect, 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'.
-
CGContextDrawTiledImage
public static void CGContextDrawTiledImage(CGContextRef c, CGRect rect, 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.
-
CGContextGetInterpolationQuality
public static int CGContextGetInterpolationQuality(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.
-
CGContextSetInterpolationQuality
public static void CGContextSetInterpolationQuality(CGContextRef c, int quality)
Set the interpolation quality of `context' to `quality'.
-
CGContextSetShadowWithColor
public static void CGContextSetShadowWithColor(CGContextRef c, CGSize offset, double blur, 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.
-
CGContextSetShadow
public static void CGContextSetShadow(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.
-
CGContextDrawLinearGradient
public static void CGContextDrawLinearGradient(CGContextRef c, 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.
-
CGContextDrawRadialGradient
public static void CGContextDrawRadialGradient(CGContextRef c, 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.
-
CGContextDrawShading
public static void CGContextDrawShading(CGContextRef c, CGShadingRef shading)
Fill the current clipping region of `context' with `shading'.
-
CGContextSetCharacterSpacing
public static void CGContextSetCharacterSpacing(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.
-
CGContextSetTextPosition
public static void CGContextSetTextPosition(CGContextRef c, double x, double y)
Set the user-space point at which text will be drawn in the context `c' to `(x, y)'.
-
CGContextGetTextPosition
public static CGPoint CGContextGetTextPosition(CGContextRef c)
Return the user-space point at which text will be drawn in `context'.
-
CGContextSetTextMatrix
public static void CGContextSetTextMatrix(CGContextRef c, CGAffineTransform t)
Set the text matrix in the context `c' to `t'.
-
CGContextGetTextMatrix
public static CGAffineTransform CGContextGetTextMatrix(CGContextRef c)
Return the text matrix in the context `c'. Returns CGAffineTransformIdentity if `c' is not a valid context.
-
CGContextSetTextDrawingMode
public static void CGContextSetTextDrawingMode(CGContextRef c, int mode)
Set the text drawing mode in the current graphics state of the context `c' to `mode'.
-
CGContextSetFont
public static void CGContextSetFont(CGContextRef c, CGFontRef font)
Set the font in the current graphics state of the context `c' to `font'.
-
CGContextSetFontSize
public static void CGContextSetFontSize(CGContextRef c, double size)
Set the font size in the current graphics state of the context `c' to `size'.
-
CGContextShowGlyphsAtPositions
public static void CGContextShowGlyphsAtPositions(CGContextRef c, org.moe.natj.general.ptr.ConstCharPtr glyphs, 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.
-
CGContextDrawPDFPage
public static void CGContextDrawPDFPage(CGContextRef c, CGPDFPageRef page)
Draw `page' in the current user space of the context `c'.
-
CGContextBeginPage
public static void CGContextBeginPage(CGContextRef c, CGRect mediaBox)
Begin a new page.
-
CGContextEndPage
public static void CGContextEndPage(CGContextRef c)
End the current page.
-
CGContextRetain
public static CGContextRef CGContextRetain(CGContextRef c)
Equivalent to `CFRetain(c)'.
-
CGContextRelease
public static void CGContextRelease(CGContextRef c)
Equivalent to `CFRelease(c)'.
-
CGContextFlush
public static void CGContextFlush(CGContextRef c)
Flush all drawing to the destination.
-
CGContextSynchronize
public static void CGContextSynchronize(CGContextRef c)
Synchronized drawing.
-
CGContextSetShouldAntialias
public static void CGContextSetShouldAntialias(CGContextRef c, boolean shouldAntialias)
Turn on antialiasing if `shouldAntialias' is true; turn it off otherwise. This parameter is part of the graphics state.
-
CGContextSetAllowsAntialiasing
public static void CGContextSetAllowsAntialiasing(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.
-
CGContextSetShouldSmoothFonts
public static void CGContextSetShouldSmoothFonts(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.
-
CGContextSetAllowsFontSmoothing
public static void CGContextSetAllowsFontSmoothing(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.
-
CGContextSetShouldSubpixelPositionFonts
public static void CGContextSetShouldSubpixelPositionFonts(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.
-
CGContextSetAllowsFontSubpixelPositioning
public static void CGContextSetAllowsFontSubpixelPositioning(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.
-
CGContextSetShouldSubpixelQuantizeFonts
public static void CGContextSetShouldSubpixelQuantizeFonts(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.
-
CGContextSetAllowsFontSubpixelQuantization
public static void CGContextSetAllowsFontSubpixelQuantization(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.
-
CGContextBeginTransparencyLayer
public static void CGContextBeginTransparencyLayer(CGContextRef c, 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.
-
CGContextBeginTransparencyLayerWithRect
public static void CGContextBeginTransparencyLayerWithRect(CGContextRef c, CGRect rect, 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).
-
CGContextEndTransparencyLayer
public static void CGContextEndTransparencyLayer(CGContextRef c)
End a tranparency layer.
-
CGContextGetUserSpaceToDeviceSpaceTransform
public static CGAffineTransform CGContextGetUserSpaceToDeviceSpaceTransform(CGContextRef c)
Return the affine transform mapping the user space (abstract coordinates) of `context' to device space (pixels).
-
CGContextConvertPointToDeviceSpace
public static CGPoint CGContextConvertPointToDeviceSpace(CGContextRef c, CGPoint point)
Transform `point' from the user space of `context' to device space.
-
CGContextConvertPointToUserSpace
public static CGPoint CGContextConvertPointToUserSpace(CGContextRef c, CGPoint point)
Transform `point' from device space to the user space of `context'.
-
CGContextConvertSizeToDeviceSpace
public static CGSize CGContextConvertSizeToDeviceSpace(CGContextRef c, CGSize size)
Transform `size' from the user space of `context' to device space.
-
CGContextConvertSizeToUserSpace
public static CGSize CGContextConvertSizeToUserSpace(CGContextRef c, CGSize size)
Transform `size' from device space to the user space of `context'.
-
CGContextConvertRectToDeviceSpace
public static CGRect CGContextConvertRectToDeviceSpace(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'.
-
CGContextConvertRectToUserSpace
public static CGRect CGContextConvertRectToUserSpace(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'.
-
CGContextSelectFont
@Deprecated public static void CGContextSelectFont(CGContextRef c, java.lang.String name, double size, int textEncoding)
Deprecated.DEPRECATED; use the CoreText API instead.
-
CGContextShowText
@Deprecated public static void CGContextShowText(CGContextRef c, java.lang.String string, long length)
Deprecated.DEPRECATED; use the CoreText API instead.
-
CGContextShowTextAtPoint
@Deprecated public static void CGContextShowTextAtPoint(CGContextRef c, double x, double y, java.lang.String string, long length)
Deprecated.DEPRECATED; use the CoreText API instead.
-
CGContextShowGlyphs
@Deprecated public static void CGContextShowGlyphs(CGContextRef c, org.moe.natj.general.ptr.ConstCharPtr g, long count)
Deprecated.DEPRECATED; use the CoreText API instead.
-
CGContextShowGlyphsAtPoint
@Deprecated public static void CGContextShowGlyphsAtPoint(CGContextRef c, double x, double y, org.moe.natj.general.ptr.ConstCharPtr glyphs, long count)
Deprecated.DEPRECATED; use the CoreText API instead.
-
CGContextShowGlyphsWithAdvances
@Deprecated public static void CGContextShowGlyphsWithAdvances(CGContextRef c, org.moe.natj.general.ptr.ConstCharPtr glyphs, CGSize advances, long count)
Deprecated.DEPRECATED; use the CoreText API instead.
-
CGBitmapContextCreateWithData
public static CGContextRef CGBitmapContextCreateWithData(org.moe.natj.general.ptr.VoidPtr data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpaceRef space, int bitmapInfo, CoreGraphics.Function_CGBitmapContextCreateWithData releaseCallback, 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.
-
CGBitmapContextCreate
public static CGContextRef CGBitmapContextCreate(org.moe.natj.general.ptr.VoidPtr data, long width, long height, long bitsPerComponent, long bytesPerRow, 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.
-
CGBitmapContextGetData
public static org.moe.natj.general.ptr.VoidPtr CGBitmapContextGetData(CGContextRef context)
Return the data associated with the bitmap context `context', or NULL if `context' is not a bitmap context.
-
CGBitmapContextGetWidth
public static long CGBitmapContextGetWidth(CGContextRef context)
Return the width of the bitmap context `context', or 0 if `context' is not a bitmap context.
-
CGBitmapContextGetHeight
public static long CGBitmapContextGetHeight(CGContextRef context)
Return the height of the bitmap context `context', or 0 if `context' is not a bitmap context.
-
CGBitmapContextGetBitsPerComponent
public static long CGBitmapContextGetBitsPerComponent(CGContextRef context)
Return the bits per component of the bitmap context `context', or 0 if `context' is not a bitmap context.
-
CGBitmapContextGetBitsPerPixel
public static long CGBitmapContextGetBitsPerPixel(CGContextRef context)
Return the bits per pixel of the bitmap context `context', or 0 if `context' is not a bitmap context.
-
CGBitmapContextGetBytesPerRow
public static long CGBitmapContextGetBytesPerRow(CGContextRef context)
Return the bytes per row of the bitmap context `context', or 0 if `context' is not a bitmap context.
-
CGBitmapContextGetColorSpace
public static CGColorSpaceRef CGBitmapContextGetColorSpace(CGContextRef context)
Return the color space of the bitmap context `context', or NULL if `context' is not a bitmap context.
-
CGBitmapContextGetAlphaInfo
public static int CGBitmapContextGetAlphaInfo(CGContextRef context)
Return the alpha info of the bitmap context `context', or "kCGImageAlphaNone" if `context' is not a bitmap context.
-
CGBitmapContextGetBitmapInfo
public static int CGBitmapContextGetBitmapInfo(CGContextRef context)
Return the bitmap info of the bitmap context `context', or 0 if `context' is not a bitmap context.
-
CGBitmapContextCreateImage
public static CGImageRef CGBitmapContextCreateImage(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.
-
CGColorConversionInfoGetTypeID
public static long CGColorConversionInfoGetTypeID()
-
CGColorConversionInfoCreate
public static CGColorConversionInfoRef CGColorConversionInfoCreate(CGColorSpaceRef src, 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).
-
CGColorConversionInfoCreateFromList
public static CGColorConversionInfoRef CGColorConversionInfoCreateFromList(CFDictionaryRef options, 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).
-
CGDataConsumerGetTypeID
public static long CGDataConsumerGetTypeID()
Return the CFTypeID for CGDataConsumerRefs.
-
CGDataConsumerCreate
public static CGDataConsumerRef CGDataConsumerCreate(org.moe.natj.general.ptr.VoidPtr info, CGDataConsumerCallbacks cbks)
Create a data consumer using `callbacks' to handle the data. `info' is passed to each of the callback functions.
-
CGDataConsumerCreateWithURL
public static CGDataConsumerRef CGDataConsumerCreateWithURL(CFURLRef url)
Create a data consumer which writes data to `url'.
-
CGDataConsumerCreateWithCFData
public static CGDataConsumerRef CGDataConsumerCreateWithCFData(CFMutableDataRef data)
Create a data consumer which writes to `data'.
-
CGDataConsumerRetain
public static CGDataConsumerRef CGDataConsumerRetain(CGDataConsumerRef consumer)
Equivalent to `CFRetain(consumer)'.
-
CGDataConsumerRelease
public static void CGDataConsumerRelease(CGDataConsumerRef consumer)
Equivalent to `CFRelease(consumer)'.
-
CGLayerCreateWithContext
public static CGLayerRef CGLayerCreateWithContext(CGContextRef context, CGSize size, 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.
-
CGLayerRetain
public static CGLayerRef CGLayerRetain(CGLayerRef layer)
Equivalent to `CFRetain(layer)', except it doesn't crash (as CFRetain does) if `layer' is NULL.
-
CGLayerRelease
public static void CGLayerRelease(CGLayerRef layer)
Equivalent to `CFRelease(layer)', except it doesn't crash (as CFRelease does) if `layer' is NULL.
-
CGLayerGetSize
public static CGSize CGLayerGetSize(CGLayerRef layer)
Return the size of the layer `layer'. CGSizeZero if invalid `layer'.
-
CGLayerGetContext
public static CGContextRef CGLayerGetContext(CGLayerRef layer)
Return the context of `layer'.
-
CGContextDrawLayerInRect
public static void CGContextDrawLayerInRect(CGContextRef context, CGRect rect, 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.
-
CGContextDrawLayerAtPoint
public static void CGContextDrawLayerAtPoint(CGContextRef context, CGPoint point, 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'.
-
CGLayerGetTypeID
public static long CGLayerGetTypeID()
Return the CFTypeID for CGLayerRefs.
-
CGPDFContentStreamCreateWithPage
public static CGPDFContentStreamRef CGPDFContentStreamCreateWithPage(CGPDFPageRef page)
Create a content stream from `page'.
-
CGPDFContentStreamCreateWithStream
public static CGPDFContentStreamRef CGPDFContentStreamCreateWithStream(CGPDFStreamRef stream, CGPDFDictionaryRef streamResources, CGPDFContentStreamRef parent)
Create a content stream from `stream'.
-
CGPDFContentStreamRetain
public static CGPDFContentStreamRef CGPDFContentStreamRetain(CGPDFContentStreamRef cs)
Increment the retain count of `cs'.
-
CGPDFContentStreamRelease
public static void CGPDFContentStreamRelease(CGPDFContentStreamRef cs)
Decrement the retain count of `cs'.
-
CGPDFContentStreamGetStreams
public static CFArrayRef CGPDFContentStreamGetStreams(CGPDFContentStreamRef cs)
Return the array of CGPDFStreamRefs comprising the entire content stream of `cs'.
-
CGPDFContentStreamGetResource
public static CGPDFObjectRef CGPDFContentStreamGetResource(CGPDFContentStreamRef cs, java.lang.String category, java.lang.String name)
Return the resource named `name' in category `category' of the resource dictionaries of `cs'.
-
CGPDFContextCreate
public static CGContextRef CGPDFContextCreate(CGDataConsumerRef consumer, CGRect mediaBox, 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.
-
CGPDFContextCreateWithURL
public static CGContextRef CGPDFContextCreateWithURL(CFURLRef url, CGRect mediaBox, 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'.
-
CGPDFContextClose
public static void CGPDFContextClose(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.
-
CGPDFContextBeginPage
public static void CGPDFContextBeginPage(CGContextRef context, CFDictionaryRef pageInfo)
Begin a new page in the PDF context `context'.
-
CGPDFContextEndPage
public static void CGPDFContextEndPage(CGContextRef context)
End the current page in the PDF context `context'.
-
CGPDFContextAddDocumentMetadata
public static void CGPDFContextAddDocumentMetadata(CGContextRef context, 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.
-
CGPDFContextSetURLForRect
public static void CGPDFContextSetURLForRect(CGContextRef context, CFURLRef url, CGRect rect)
Set the URL associated with `rect' to `url' in the PDF context `context'.
-
CGPDFContextAddDestinationAtPoint
public static void CGPDFContextAddDestinationAtPoint(CGContextRef context, CFStringRef name, CGPoint point)
Create a PDF destination named `name' at `point' in the current page of the PDF context `context'.
-
CGPDFContextSetDestinationForRect
public static void CGPDFContextSetDestinationForRect(CGContextRef context, 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'.
-
CGPDFScannerCreate
public static CGPDFScannerRef CGPDFScannerCreate(CGPDFContentStreamRef cs, CGPDFOperatorTableRef table, org.moe.natj.general.ptr.VoidPtr info)
Create a scanner.
-
CGPDFScannerRetain
public static CGPDFScannerRef CGPDFScannerRetain(CGPDFScannerRef scanner)
Retain `scanner'.
-
CGPDFScannerRelease
public static void CGPDFScannerRelease(CGPDFScannerRef scanner)
Release `scanner'.
-
CGPDFScannerScan
public static boolean CGPDFScannerScan(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).
-
CGPDFScannerGetContentStream
public static CGPDFContentStreamRef CGPDFScannerGetContentStream(CGPDFScannerRef scanner)
Return the content stream associated with `scanner'.
-
CGPDFScannerPopObject
public static boolean CGPDFScannerPopObject(CGPDFScannerRef scanner, org.moe.natj.general.ptr.Ptr<CGPDFObjectRef> value)
Pop an object from the stack of `scanner' and return it in `value'.
-
CGPDFScannerPopBoolean
public static boolean CGPDFScannerPopBoolean(CGPDFScannerRef scanner, 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.
-
CGPDFScannerPopInteger
public static boolean CGPDFScannerPopInteger(CGPDFScannerRef scanner, 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.
-
CGPDFScannerPopNumber
public static boolean CGPDFScannerPopNumber(CGPDFScannerRef scanner, 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.
-
CGPDFScannerPopName
public static boolean CGPDFScannerPopName(CGPDFScannerRef scanner, 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.
-
CGPDFScannerPopString
public static boolean CGPDFScannerPopString(CGPDFScannerRef scanner, 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.
-
CGPDFScannerPopArray
public static boolean CGPDFScannerPopArray(CGPDFScannerRef scanner, 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.
-
CGPDFScannerPopDictionary
public static boolean CGPDFScannerPopDictionary(CGPDFScannerRef scanner, 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.
-
CGPDFScannerPopStream
public static boolean CGPDFScannerPopStream(CGPDFScannerRef scanner, 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.
-
CGPDFOperatorTableCreate
public static CGPDFOperatorTableRef CGPDFOperatorTableCreate()
Return an empty operator table.
-
CGPDFOperatorTableRetain
public static CGPDFOperatorTableRef CGPDFOperatorTableRetain(CGPDFOperatorTableRef table)
Increment the retain count of `table'.
-
CGPDFOperatorTableRelease
public static void CGPDFOperatorTableRelease(CGPDFOperatorTableRef table)
Decrement the retain count of `table'.
-
CGPDFOperatorTableSetCallback
public static void CGPDFOperatorTableSetCallback(CGPDFOperatorTableRef table, java.lang.String name, CoreGraphics.Function_CGPDFOperatorTableSetCallback callback)
Set the callback for the operator named `name' to `callback'
-
CGPointZero
public static CGPoint CGPointZero()
The "zero" point -- equivalent to CGPointMake(0, 0).
-
CGSizeZero
public static CGSize CGSizeZero()
The "zero" size -- equivalent to CGSizeMake(0, 0).
-
CGRectZero
public static CGRect CGRectZero()
The "zero" rectangle -- equivalent to CGRectMake(0, 0, 0, 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.
-
CGRectInfinite
public static CGRect CGRectInfinite()
The infinite rectangle.
-
CGAffineTransformIdentity
public static CGAffineTransform CGAffineTransformIdentity()
The identity transform: [ 1 0 0 1 0 0 ].
-
kCGColorSpaceGenericGray
public static 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.
-
kCGColorSpaceGenericRGB
public static 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.
-
kCGColorSpaceGenericCMYK
public static CFStringRef kCGColorSpaceGenericCMYK()
The name of the "Generic" CMYK color space.
-
kCGColorSpaceDisplayP3
public static CFStringRef kCGColorSpaceDisplayP3()
-
kCGColorSpaceGenericRGBLinear
public static CFStringRef kCGColorSpaceGenericRGBLinear()
The name of the "Generic" linear RGB color space. This is the same as `kCGColorSpaceGenericRGB' but with a 1.0 gamma.
-
kCGColorSpaceAdobeRGB1998
public static 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).
-
kCGColorSpaceSRGB
public static 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".
-
kCGColorSpaceGenericGrayGamma2_2
public static CFStringRef kCGColorSpaceGenericGrayGamma2_2()
The "Generic" gray color space with γ = 2.2.
-
kCGColorSpaceGenericXYZ
public static CFStringRef kCGColorSpaceGenericXYZ()
-
kCGColorSpaceACESCGLinear
public static CFStringRef kCGColorSpaceACESCGLinear()
-
kCGColorSpaceITUR_709
public static CFStringRef kCGColorSpaceITUR_709()
-
kCGColorSpaceITUR_2020
public static CFStringRef kCGColorSpaceITUR_2020()
-
kCGColorSpaceROMMRGB
public static CFStringRef kCGColorSpaceROMMRGB()
-
kCGColorSpaceDCIP3
public static CFStringRef kCGColorSpaceDCIP3()
-
kCGColorSpaceExtendedSRGB
public static 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.
-
kCGColorSpaceLinearSRGB
public static CFStringRef kCGColorSpaceLinearSRGB()
The name of the sRGB color space variant with linear gamma
-
kCGColorSpaceExtendedLinearSRGB
public static CFStringRef kCGColorSpaceExtendedLinearSRGB()
The name of the extended sRGB color space variant with linear gamma
-
kCGColorSpaceExtendedGray
public static 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.
-
kCGColorSpaceLinearGray
public static CFStringRef kCGColorSpaceLinearGray()
The name of the Generic Gray 2.2 color space variant with linear gamma
-
kCGColorSpaceExtendedLinearGray
public static CFStringRef kCGColorSpaceExtendedLinearGray()
The name of the extended Generic Gray 2.2 color space variant with linear gamma
-
kCGFontVariationAxisName
public static 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.
-
kCGFontVariationAxisMinValue
public static 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.
-
kCGFontVariationAxisMaxValue
public static 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.
-
kCGFontVariationAxisDefaultValue
public static 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.
-
kCGColorConversionBlackPointCompensation
public static CFStringRef kCGColorConversionBlackPointCompensation()
CFBooleanRef which can be used as option to create CGColorConversionInfoRef, when Black Point Compensation is desired
-
kCGPDFContextMediaBox
public static 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).
-
kCGPDFContextCropBox
public static 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).
-
kCGPDFContextBleedBox
public static 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).
-
kCGPDFContextTrimBox
public static 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).
-
kCGPDFContextArtBox
public static 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).
-
kCGPDFContextTitle
public static CFStringRef kCGPDFContextTitle()
The document's title. Optional; if present, the value of this key must be a CFString.
-
kCGPDFContextAuthor
public static CFStringRef kCGPDFContextAuthor()
The name of the person who created this document. Optional; if present, the value of this key must be a CFString.
-
kCGPDFContextSubject
public static CFStringRef kCGPDFContextSubject()
The subject of a document. Optional; if present, the value of this key must be a CFString.
-
kCGPDFContextKeywords
public static 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.
-
kCGPDFContextCreator
public static 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.
-
kCGPDFContextOwnerPassword
public static 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.
-
kCGPDFContextUserPassword
public static 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.
-
kCGPDFContextEncryptionKeyLength
public static 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.
-
kCGPDFContextAllowsPrinting
public static 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".
-
kCGPDFContextAllowsCopying
public static 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".
-
CGDataProviderGetInfo
public static org.moe.natj.general.ptr.VoidPtr CGDataProviderGetInfo(CGDataProviderRef provider)
-
CGColorSpaceCreateWithICCData
public static CGColorSpaceRef CGColorSpaceCreateWithICCData(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
-
CGColorSpaceGetName
public static CFStringRef CGColorSpaceGetName(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 ... }
-
CGPathApplyWithBlock
public static void CGPathApplyWithBlock(CGPathRef path, CoreGraphics.Block_CGPathApplyWithBlock block)
-
CGPDFDocumentGetOutline
public static CFDictionaryRef CGPDFDocumentGetOutline(CGPDFDocumentRef document)
Return the document outline in the form of a CFDictionary tree containing the kCGPDFOutline keys.
-
CGPDFDocumentGetAccessPermissions
public static int CGPDFDocumentGetAccessPermissions(CGPDFDocumentRef document)
Return the document access permissions.
-
CGContextResetClip
public static void CGContextResetClip(CGContextRef c)
Reset the current clip of `c' to the default value.
-
CGColorConversionInfoCreateFromListWithArguments
public static CGColorConversionInfoRef CGColorConversionInfoCreateFromListWithArguments(CFDictionaryRef options, CGColorSpaceRef arg2, int arg3, int arg4, org.moe.natj.general.ptr.BytePtr arg5)
-
CGPDFContextSetOutline
public static void CGPDFContextSetOutline(CGContextRef context, CFDictionaryRef outline)
Set the outline in the PDF created by a CGPDFContext (no effect in other types of CGContexts).
-
kCGColorSpaceGenericLab
public static 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].
-
kCGPDFOutlineTitle
public static CFStringRef kCGPDFOutlineTitle()
Key: kCGPDFOutlineTitle Value: CFString
-
kCGPDFOutlineChildren
public static CFStringRef kCGPDFOutlineChildren()
Key: kCGPDFOutlineChildren Value: CFArray of CFDictionaries
-
kCGPDFOutlineDestination
public static CFStringRef kCGPDFOutlineDestination()
Key: kCGPDFOutlineDestination Value: CFNumber (for a one-indexed page number) or CFURL
-
kCGPDFOutlineDestinationRect
public static CFStringRef kCGPDFOutlineDestinationRect()
Key: kCGPDFOutlineDestinationRect Value: CFDictionary from CGRectCreateDictionaryRepresentation. Only valid when the destination is a page number.
-
kCGColorConversionTRCSize
public static CFStringRef kCGColorConversionTRCSize()
-
kCGPDFContextAccessPermissions
public static CFStringRef kCGPDFContextAccessPermissions()
The document's access permissions, expressed as a CFNumber. The number is defined by ORing together the desired CGPDFAccessPermissions values.
-
CGColorSpaceIsHDR
public static boolean CGColorSpaceIsHDR(CGColorSpaceRef arg1)
Return true if color space uses transfer functions defined in ITU Rec.2100 Please use CGColorSpaceUsesITUR_2100TF instead
-
CGColorSpaceCopyPropertyList
public static org.moe.natj.general.ptr.ConstVoidPtr CGColorSpaceCopyPropertyList(CGColorSpaceRef space)
-
CGColorSpaceCreateWithPropertyList
public static CGColorSpaceRef CGColorSpaceCreateWithPropertyList(org.moe.natj.general.ptr.ConstVoidPtr plist)
-
CGColorCreateGenericGrayGamma2_2
public static CGColorRef CGColorCreateGenericGrayGamma2_2(double gray, double alpha)
Create a color in the "Generic Gray Gamma 2.2 color space.
-
CGColorCreateSRGB
public static CGColorRef CGColorCreateSRGB(double red, double green, double blue, double alpha)
Create a color in sRGB color space.
-
CGImageGetByteOrderInfo
public static int CGImageGetByteOrderInfo(CGImageRef image)
Return the byte order info of `image'.
-
CGImageGetPixelFormatInfo
public static int CGImageGetPixelFormatInfo(CGImageRef image)
Return the pixel format of `image'.
-
CGPDFArrayApplyBlock
public static void CGPDFArrayApplyBlock(CGPDFArrayRef array, CoreGraphics.Block_CGPDFArrayApplyBlock block, 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.
-
CGPDFDictionaryApplyBlock
public static void CGPDFDictionaryApplyBlock(CGPDFDictionaryRef dict, CoreGraphics.Block_CGPDFDictionaryApplyBlock block, 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.
-
CGColorConversionInfoCreateWithOptions
public static CGColorConversionInfoRef CGColorConversionInfoCreateWithOptions(CGColorSpaceRef src, CGColorSpaceRef dst, CFDictionaryRef options)
-
CGPDFTagTypeGetName
public static 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.
-
CGPDFContextBeginTag
public static void CGPDFContextBeginTag(CGContextRef context, int tagType, 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.
-
CGPDFContextEndTag
public static void CGPDFContextEndTag(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).
-
kCGColorSpaceExtendedLinearITUR_2020
public static CFStringRef kCGColorSpaceExtendedLinearITUR_2020()
-
kCGColorSpaceExtendedLinearDisplayP3
public static CFStringRef kCGColorSpaceExtendedLinearDisplayP3()
-
kCGColorSpaceITUR_2020_PQ_EOTF
public static CFStringRef kCGColorSpaceITUR_2020_PQ_EOTF()
-
kCGColorSpaceDisplayP3_PQ_EOTF
public static CFStringRef kCGColorSpaceDisplayP3_PQ_EOTF()
-
kCGColorSpaceDisplayP3_HLG
public static CFStringRef kCGColorSpaceDisplayP3_HLG()
-
kCGColorSpaceITUR_2020_HLG
public static CFStringRef kCGColorSpaceITUR_2020_HLG()
-
kCGPDFTagPropertyActualText
public static 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.
-
kCGPDFTagPropertyAlternativeText
public static 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.
-
kCGPDFTagPropertyTitleText
public static 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.
-
kCGPDFTagPropertyLanguageText
public static 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.
-
kCGColorSpaceITUR_2020_PQ
public static CFStringRef kCGColorSpaceITUR_2020_PQ()
-
kCGColorSpaceDisplayP3_PQ
public static CFStringRef kCGColorSpaceDisplayP3_PQ()
-
CGColorSpaceUsesExtendedRange
public static boolean CGColorSpaceUsesExtendedRange(CGColorSpaceRef space)
Return true if `space' uses extended range [-Inf, +Inf]; false otherwise.
-
CGColorCreateGenericGray
public static CGColorRef CGColorCreateGenericGray(double gray, double alpha)
Create a color in the "Generic" gray color space.
-
CGColorCreateGenericRGB
public static CGColorRef CGColorCreateGenericRGB(double red, double green, double blue, double alpha)
Create a color in the "Generic" RGB color space.
-
CGColorCreateGenericCMYK
public static CGColorRef CGColorCreateGenericCMYK(double cyan, double magenta, double yellow, double black, double alpha)
Create a color in the "Generic" CMYK color space.
-
CGColorGetConstantColor
public static CGColorRef CGColorGetConstantColor(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.
-
kCGColorSpaceITUR_2100_PQ
public static CFStringRef kCGColorSpaceITUR_2100_PQ()
-
kCGColorSpaceITUR_2100_HLG
public static CFStringRef kCGColorSpaceITUR_2100_HLG()
-
kCGColorWhite
public static CFStringRef kCGColorWhite()
Colors in the "Generic" gray color space.
-
kCGColorBlack
public static CFStringRef kCGColorBlack()
-
kCGColorClear
public static CFStringRef kCGColorClear()
-
kCGPDFContextOutputIntent
public static 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.
-
kCGPDFXOutputIntentSubtype
public static 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.
-
kCGPDFXOutputConditionIdentifier
public static 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.
-
kCGPDFXOutputCondition
public static 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.
-
kCGPDFXRegistryName
public static 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.
-
kCGPDFXInfo
public static 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.
-
kCGPDFXDestinationOutputProfile
public static 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.
-
kCGPDFContextOutputIntents
public static 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.
-
kCGPDFContextCreateLinearizedPDF
public static CFStringRef kCGPDFContextCreateLinearizedPDF()
Output a linearized PDF
-
kCGPDFContextCreatePDFA
public static 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".
-
CGColorSpaceUsesITUR_2100TF
public static boolean CGColorSpaceUsesITUR_2100TF(CGColorSpaceRef arg1)
Return true if color space uses transfer functions defined in ITU Rec.2100
-
CGColorSpaceCreateLinearized
public static CGColorSpaceRef CGColorSpaceCreateLinearized(CGColorSpaceRef space)
Create a linearized copy of the color space if the color space is matrix based. Return NULL if otherwise
-
CGColorSpaceCreateExtended
public static CGColorSpaceRef CGColorSpaceCreateExtended(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
-
CGColorSpaceCreateExtendedLinearized
public static CGColorSpaceRef CGColorSpaceCreateExtendedLinearized(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
-
kCGColorSpaceExtendedITUR_2020
public static CFStringRef kCGColorSpaceExtendedITUR_2020()
-
kCGColorSpaceExtendedDisplayP3
public static CFStringRef kCGColorSpaceExtendedDisplayP3()
-
-