public final class CoreGraphics
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
CoreGraphics.Block_CGPathApplyWithBlock |
static interface |
CoreGraphics.Block_CGPDFArrayApplyBlock |
static interface |
CoreGraphics.Block_CGPDFDictionaryApplyBlock |
static interface |
CoreGraphics.Function_CGBitmapContextCreateWithData |
static interface |
CoreGraphics.Function_CGDataProviderCreateWithData |
static interface |
CoreGraphics.Function_CGErrorSetCallback |
static interface |
CoreGraphics.Function_CGPathApply |
static interface |
CoreGraphics.Function_CGPDFDictionaryApplyFunction |
static interface |
CoreGraphics.Function_CGPDFOperatorTableSetCallback |
| Modifier and Type | Field and Description |
|---|---|
static char |
kCGFontIndexInvalid
A value representing an invalid CGFontIndex.
|
static char |
kCGFontIndexMax
The maximum allowed value of a CGFontIndex.
|
static char |
kCGGlyphMax
The maximum allowed value of a CGGlyph.
|
| Modifier and Type | Method and Description |
|---|---|
static CGAffineTransform |
__CGAffineTransformMake(double a,
double b,
double c,
double d,
double tx,
double ty)
Definitions of inline functions.
|
static CGPoint |
__CGPointApplyAffineTransform(CGPoint point,
CGAffineTransform t) |
static boolean |
__CGPointEqualToPoint(CGPoint point1,
CGPoint point2) |
static CGSize |
__CGSizeApplyAffineTransform(CGSize size,
CGAffineTransform t) |
static boolean |
__CGSizeEqualToSize(CGSize size1,
CGSize size2) |
static CGAffineTransform |
CGAffineTransformConcat(CGAffineTransform t1,
CGAffineTransform t2)
Concatenate `t2' to `t1' and return the result:
t' = t1 * t2
|
static boolean |
CGAffineTransformEqualToTransform(CGAffineTransform t1,
CGAffineTransform t2)
Return true if `t1' and `t2' are equal, false otherwise.
|
static CGAffineTransform |
CGAffineTransformIdentity()
The identity transform: [ 1 0 0 1 0 0 ].
|
static CGAffineTransform |
CGAffineTransformInvert(CGAffineTransform t)
Invert `t' and return the result.
|
static boolean |
CGAffineTransformIsIdentity(CGAffineTransform t)
Return true if `t' is the identity transform, false otherwise.
|
static CGAffineTransform |
CGAffineTransformMake(double a,
double b,
double c,
double d,
double tx,
double ty)
Return the transform [ a b c d tx ty ].
|
static CGAffineTransform |
CGAffineTransformMakeRotation(double angle)
Return a transform which rotates by `angle' radians:
t' = [ cos(angle) sin(angle) -sin(angle) cos(angle) 0 0 ]
|
static CGAffineTransform |
CGAffineTransformMakeScale(double sx,
double sy)
Return a transform which scales by `(sx, sy)':
t' = [ sx 0 0 sy 0 0 ]
|
static CGAffineTransform |
CGAffineTransformMakeTranslation(double tx,
double ty)
Return a transform which translates by `(tx, ty)':
t' = [ 1 0 0 1 tx ty ]
|
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
|
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
|
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
|
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.
|
static CGImageRef |
CGBitmapContextCreateImage(CGContextRef context)
Return an image containing a snapshot of the bitmap context `context'.
|
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.
|
static int |
CGBitmapContextGetAlphaInfo(CGContextRef context)
Return the alpha info of the bitmap context `context', or
"kCGImageAlphaNone" if `context' is not a bitmap context.
|
static int |
CGBitmapContextGetBitmapInfo(CGContextRef context)
Return the bitmap info of the bitmap context `context', or 0 if `context'
is not a bitmap context.
|
static long |
CGBitmapContextGetBitsPerComponent(CGContextRef context)
Return the bits per component of the bitmap context `context', or 0 if
`context' is not a bitmap context.
|
static long |
CGBitmapContextGetBitsPerPixel(CGContextRef context)
Return the bits per pixel of the bitmap context `context', or 0 if
`context' is not a bitmap context.
|
static long |
CGBitmapContextGetBytesPerRow(CGContextRef context)
Return the bytes per row of the bitmap context `context', or 0 if
`context' is not a bitmap context.
|
static CGColorSpaceRef |
CGBitmapContextGetColorSpace(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.VoidPtr |
CGBitmapContextGetData(CGContextRef context)
Return the data associated with the bitmap context `context', or NULL if
`context' is not a bitmap context.
|
static long |
CGBitmapContextGetHeight(CGContextRef context)
Return the height of the bitmap context `context', or 0 if `context' is
not a bitmap context.
|
static long |
CGBitmapContextGetWidth(CGContextRef context)
Return the width of the bitmap context `context', or 0 if `context' is
not a bitmap context.
|
static CGColorConversionInfoRef |
CGColorConversionInfoCreate(CGColorSpaceRef src,
CGColorSpaceRef dst)
Create CGColorConversionInfoRef for converting color from `src' color space to `dst' color space
using kCGRenderingIntentDefault rendering intent.
|
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.
|
static CGColorConversionInfoRef |
CGColorConversionInfoCreateFromListWithArguments(CFDictionaryRef options,
CGColorSpaceRef arg2,
int arg3,
int arg4,
org.moe.natj.general.ptr.BytePtr arg5) |
static CGColorConversionInfoRef |
CGColorConversionInfoCreateWithOptions(CGColorSpaceRef src,
CGColorSpaceRef dst,
CFDictionaryRef options) |
static long |
CGColorConversionInfoGetTypeID() |
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'.
|
static CGColorRef |
CGColorCreateCopy(CGColorRef color)
Create a copy of `color'.
|
static CGColorRef |
CGColorCreateCopyByMatchingToColorSpace(CGColorSpaceRef arg1,
int intent,
CGColorRef color,
CFDictionaryRef options)
Create a copy of `color' by matching existing color to destination color space.
|
static CGColorRef |
CGColorCreateCopyWithAlpha(CGColorRef color,
double alpha)
Create a copy of `color' with alpha set to `alpha'.
|
static CGColorRef |
CGColorCreateGenericCMYK(double cyan,
double magenta,
double yellow,
double black,
double alpha)
Create a color in the "Generic" CMYK color space.
|
static CGColorRef |
CGColorCreateGenericGray(double gray,
double alpha)
Create a color in the "Generic" gray color space.
|
static CGColorRef |
CGColorCreateGenericGrayGamma2_2(double gray,
double alpha)
Create a color in the "Generic Gray Gamma 2.2 color space.
|
static CGColorRef |
CGColorCreateGenericRGB(double red,
double green,
double blue,
double alpha)
Create a color in the "Generic" RGB color space.
|
static CGColorRef |
CGColorCreateSRGB(double red,
double green,
double blue,
double alpha)
Create a color in sRGB color space.
|
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'.
|
static boolean |
CGColorEqualToColor(CGColorRef color1,
CGColorRef color2)
Return true if `color1' is equal to `color2'; false otherwise.
|
static double |
CGColorGetAlpha(CGColorRef color)
Return the alpha component associated with `color'.
|
static CGColorSpaceRef |
CGColorGetColorSpace(CGColorRef color)
Return the color space associated with `color'.
|
static org.moe.natj.general.ptr.ConstNFloatPtr |
CGColorGetComponents(CGColorRef color)
Return the color components (including alpha) associated with `color'.
|
static CGColorRef |
CGColorGetConstantColor(CFStringRef colorName)
Return a constant color.
|
static long |
CGColorGetNumberOfComponents(CGColorRef color)
Return the number of color components (including alpha) associated with
`color'.
|
static CGPatternRef |
CGColorGetPattern(CGColorRef color)
Return the pattern associated with `color', if it's a color in a pattern
color space; NULL otherwise.
|
static long |
CGColorGetTypeID()
Return the CFTypeID for CGColors.
|
static void |
CGColorRelease(CGColorRef color)
Equivalent to `CFRelease(color)', except it doesn't crash (as CFRelease
does) if `color' is NULL.
|
static CGColorRef |
CGColorRetain(CGColorRef color)
Equivalent to `CFRetain(color)', except it doesn't crash (as CFRetain
does) if `color' is NULL.
|
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.
|
static CFDataRef |
CGColorSpaceCopyICCProfile(CGColorSpaceRef space)
Please use `CGColorSpaceCopyICCData'
|
static CFStringRef |
CGColorSpaceCopyName(CGColorSpaceRef space)
Same as `CGColorSpaceGetName' but with ownership released to the caller.
|
static org.moe.natj.general.ptr.ConstVoidPtr |
CGColorSpaceCopyPropertyList(CGColorSpaceRef space) |
static CGColorSpaceRef |
CGColorSpaceCreateDeviceCMYK()
Create a DeviceCMYK color space.
|
static CGColorSpaceRef |
CGColorSpaceCreateDeviceGray()
Create a DeviceGray color space.
|
static CGColorSpaceRef |
CGColorSpaceCreateDeviceRGB()
Create a DeviceRGB color space.
|
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.
|
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.
|
static CGColorSpaceRef |
CGColorSpaceCreateICCBased(long nComponents,
org.moe.natj.general.ptr.ConstNFloatPtr range,
CGDataProviderRef profile,
CGColorSpaceRef alternate)
Create an ICC-based color space.
|
static CGColorSpaceRef |
CGColorSpaceCreateIndexed(CGColorSpaceRef baseSpace,
long lastIndex,
java.lang.String colorTable)
Create an indexed color space.
|
static CGColorSpaceRef |
CGColorSpaceCreateLinearized(CGColorSpaceRef space)
Create a linearized copy of the color space if the color space is matrix based.
|
static CGColorSpaceRef |
CGColorSpaceCreatePattern(CGColorSpaceRef baseSpace)
Create a pattern color space.
|
static CGColorSpaceRef |
CGColorSpaceCreateWithColorSyncProfile(ColorSyncProfileRef arg1,
CFDictionaryRef options)
Create a color space using ColorSyncProfileRef.
|
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
|
static CGColorSpaceRef |
CGColorSpaceCreateWithICCProfile(CFDataRef data)
Please use `CGColorSpaceCreateWithICCData'
|
static CGColorSpaceRef |
CGColorSpaceCreateWithName(CFStringRef name)
Create a color space using `name' as the identifier for the color
space.
|
static CGColorSpaceRef |
CGColorSpaceCreateWithPlatformColorSpace(org.moe.natj.general.ptr.ConstVoidPtr ref)
Please use `CGColorSpaceCreateWithColorSyncProfile'
|
static CGColorSpaceRef |
CGColorSpaceCreateWithPropertyList(org.moe.natj.general.ptr.ConstVoidPtr plist) |
static CGColorSpaceRef |
CGColorSpaceGetBaseColorSpace(CGColorSpaceRef space)
Return the base color space of `space' if `space' is a pattern or indexed
color space; otherwise, return NULL.
|
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.
|
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.
|
static int |
CGColorSpaceGetModel(CGColorSpaceRef space)
Return the color space model of `space'.
|
static CFStringRef |
CGColorSpaceGetName(CGColorSpaceRef space)
Return the system name of the color space.
|
static long |
CGColorSpaceGetNumberOfComponents(CGColorSpaceRef space)
Return the number of color components in the color space `space'.
|
static long |
CGColorSpaceGetTypeID()
Return the CFTypeID for CGColorSpaces.
|
static boolean |
CGColorSpaceIsHDR(CGColorSpaceRef arg1)
Return true if color space uses transfer functions defined in ITU Rec.2100
Please use CGColorSpaceUsesITUR_2100TF instead
|
static boolean |
CGColorSpaceIsHLGBased(CGColorSpaceRef s) |
static boolean |
CGColorSpaceIsPQBased(CGColorSpaceRef s) |
static boolean |
CGColorSpaceIsWideGamutRGB(CGColorSpaceRef arg1)
Return true if gamut of the RGB color space is greater than 85% of NTSC gamut
|
static void |
CGColorSpaceRelease(CGColorSpaceRef space)
Equivalent to `CFRelease(space)', except it doesn't crash (as CFRelease
does) if `space' is NULL.
|
static CGColorSpaceRef |
CGColorSpaceRetain(CGColorSpaceRef space)
Equivalent to `CFRetain(space)', except it doesn't crash (as CFRetain
does) if `space' is NULL.
|
static boolean |
CGColorSpaceSupportsOutput(CGColorSpaceRef space)
Return true if `space' can be used as a destination color space; false
otherwise.
|
static boolean |
CGColorSpaceUsesExtendedRange(CGColorSpaceRef space)
Return true if `space' uses extended range [-Inf, +Inf]; false
otherwise.
|
static boolean |
CGColorSpaceUsesITUR_2100TF(CGColorSpaceRef arg1)
Return true if color space uses transfer functions defined in ITU Rec.2100
|
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.
|
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.
|
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)'.
|
static void |
CGContextAddEllipseInRect(CGContextRef c,
CGRect rect)
Add an ellipse inside `rect' to the current path of `context'.
|
static void |
CGContextAddLines(CGContextRef c,
CGPoint points,
long count)
Add a set of lines to the context's path.
|
static void |
CGContextAddLineToPoint(CGContextRef c,
double x,
double y)
Append a straight line segment from the current point to `(x, y)'.
|
static void |
CGContextAddPath(CGContextRef c,
CGPathRef path)
Add `path' to the path of context.
|
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)'.
|
static void |
CGContextAddRect(CGContextRef c,
CGRect rect)
Add a single rect to the context's path.
|
static void |
CGContextAddRects(CGContextRef c,
CGRect rects,
long count)
Add a set of rects to the context's path.
|
static void |
CGContextBeginPage(CGContextRef c,
CGRect mediaBox)
Begin a new page.
|
static void |
CGContextBeginPath(CGContextRef c)
Begin a new path.
|
static void |
CGContextBeginTransparencyLayer(CGContextRef c,
CFDictionaryRef auxiliaryInfo)
Begin a transparency layer in `context'.
|
static void |
CGContextBeginTransparencyLayerWithRect(CGContextRef c,
CGRect rect,
CFDictionaryRef auxInfo)
Begin a transparency layer in `context'.
|
static void |
CGContextClearRect(CGContextRef c,
CGRect rect)
Clear `rect' (that is, set the region within the rect to transparent).
|
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.
|
static void |
CGContextClipToMask(CGContextRef c,
CGRect rect,
CGImageRef mask)
Add `mask' transformed to `rect' to the clipping area of `context'.
|
static void |
CGContextClipToRect(CGContextRef c,
CGRect rect)
Intersect the current clipping path with `rect'.
|
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'.
|
static void |
CGContextClosePath(CGContextRef c)
Close the current subpath of the context's path.
|
static void |
CGContextConcatCTM(CGContextRef c,
CGAffineTransform transform)
Concatenate the current graphics state's transformation matrix (the CTM)
with the affine transform `transform'.
|
static CGPoint |
CGContextConvertPointToDeviceSpace(CGContextRef c,
CGPoint point)
Transform `point' from the user space of `context' to device space.
|
static CGPoint |
CGContextConvertPointToUserSpace(CGContextRef c,
CGPoint point)
Transform `point' from device space to the user space of `context'.
|
static CGRect |
CGContextConvertRectToDeviceSpace(CGContextRef c,
CGRect rect)
Transform `rect' from the user space of `context' to device space.
|
static CGRect |
CGContextConvertRectToUserSpace(CGContextRef c,
CGRect rect)
Transform `rect' from device space to the user space of `context'.
|
static CGSize |
CGContextConvertSizeToDeviceSpace(CGContextRef c,
CGSize size)
Transform `size' from the user space of `context' to device space.
|
static CGSize |
CGContextConvertSizeToUserSpace(CGContextRef c,
CGSize size)
Transform `size' from device space to the user space of `context'.
|
static CGPathRef |
CGContextCopyPath(CGContextRef c)
Return a copy of the path of `context'.
|
static void |
CGContextDrawImage(CGContextRef c,
CGRect rect,
CGImageRef image)
Draw `image' in the rectangular area specified by `rect' in the context
`c'.
|
static void |
CGContextDrawLayerAtPoint(CGContextRef context,
CGPoint point,
CGLayerRef layer)
Draw the contents of `layer' at `point' in `context'.
|
static void |
CGContextDrawLayerInRect(CGContextRef context,
CGRect rect,
CGLayerRef layer)
Draw the contents of `layer' into `rect' of `context'.
|
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'.
|
static void |
CGContextDrawPath(CGContextRef c,
int mode)
Draw the context's path using drawing mode `mode'.
|
static void |
CGContextDrawPDFPage(CGContextRef c,
CGPDFPageRef page)
Draw `page' in the current user space of the context `c'.
|
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.
|
static void |
CGContextDrawShading(CGContextRef c,
CGShadingRef shading)
Fill the current clipping region of `context' with `shading'.
|
static void |
CGContextDrawTiledImage(CGContextRef c,
CGRect rect,
CGImageRef image)
Draw `image' tiled in the context `c'.
|
static void |
CGContextEndPage(CGContextRef c)
End the current page.
|
static void |
CGContextEndTransparencyLayer(CGContextRef c)
End a tranparency layer.
|
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.
|
static void |
CGContextEOFillPath(CGContextRef c)
Fill the context's path using the even-odd fill rule.
|
static void |
CGContextFillEllipseInRect(CGContextRef c,
CGRect rect)
Fill an ellipse (an oval) inside `rect'.
|
static void |
CGContextFillPath(CGContextRef c)
Fill the context's path using the winding-number fill rule.
|
static void |
CGContextFillRect(CGContextRef c,
CGRect rect)
Fill `rect' with the current fill color.
|
static void |
CGContextFillRects(CGContextRef c,
CGRect rects,
long count)
Fill `rects', an array of `count' CGRects, with the current fill
color.
|
static void |
CGContextFlush(CGContextRef c)
Flush all drawing to the destination.
|
static CGRect |
CGContextGetClipBoundingBox(CGContextRef c)
Return the bounding box of the clip path of `c' in user space.
|
static CGAffineTransform |
CGContextGetCTM(CGContextRef c)
Return the current graphics state's transformation matrix.
|
static int |
CGContextGetInterpolationQuality(CGContextRef c)
Return the interpolation quality for image rendering of `context'.
|
static CGRect |
CGContextGetPathBoundingBox(CGContextRef c)
Return the bounding box of the path of `context'.
|
static CGPoint |
CGContextGetPathCurrentPoint(CGContextRef c)
Return the current point of the current subpath of the path of
`context'.
|
static CGAffineTransform |
CGContextGetTextMatrix(CGContextRef c)
Return the text matrix in the context `c'.
|
static CGPoint |
CGContextGetTextPosition(CGContextRef c)
Return the user-space point at which text will be drawn in `context'.
|
static long |
CGContextGetTypeID()
Return the CFTypeID for CGContextRefs.
|
static CGAffineTransform |
CGContextGetUserSpaceToDeviceSpaceTransform(CGContextRef c)
Return the affine transform mapping the user space (abstract coordinates)
of `context' to device space (pixels).
|
static boolean |
CGContextIsPathEmpty(CGContextRef c)
Return true if the path of `context' contains no elements, false
otherwise.
|
static void |
CGContextMoveToPoint(CGContextRef c,
double x,
double y)
Start a new subpath at point `(x, y)' in the context's path.
|
static boolean |
CGContextPathContainsPoint(CGContextRef c,
CGPoint point,
int mode)
Return true if `point' is contained in the current path of `context'.
|
static void |
CGContextRelease(CGContextRef c)
Equivalent to `CFRelease(c)'.
|
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.
|
static void |
CGContextResetClip(CGContextRef c)
Reset the current clip of `c' to the default value.
|
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.
|
static CGContextRef |
CGContextRetain(CGContextRef c)
Equivalent to `CFRetain(c)'.
|
static void |
CGContextRotateCTM(CGContextRef c,
double angle)
Rotate the current graphics state's transformation matrix (the CTM) by
`angle' radians.
|
static void |
CGContextSaveGState(CGContextRef c)
Push a copy of the current graphics state onto the graphics state stack.
|
static void |
CGContextScaleCTM(CGContextRef c,
double sx,
double sy)
Scale the current graphics state's transformation matrix (the CTM) by
`(sx, sy)'.
|
static void |
CGContextSelectFont(CGContextRef c,
java.lang.String name,
double size,
int textEncoding)
Deprecated.
|
static void |
CGContextSetAllowsAntialiasing(CGContextRef c,
boolean allowsAntialiasing)
Allow antialiasing in `context' if `allowsAntialiasing' is true; don't
allow it otherwise.
|
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.
|
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.
|
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.
|
static void |
CGContextSetAlpha(CGContextRef c,
double alpha)
Set the alpha value in the current graphics state of `c' to `alpha'.
|
static void |
CGContextSetBlendMode(CGContextRef c,
int mode)
Set the blend mode of `context' to `mode'.
|
static void |
CGContextSetCharacterSpacing(CGContextRef c,
double spacing)
Set the current character spacing in `context' to `spacing'.
|
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)'.
|
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)'.
|
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'.
|
static void |
CGContextSetFillColorSpace(CGContextRef c,
CGColorSpaceRef space)
Set the current fill color space in `context' to `space'.
|
static void |
CGContextSetFillColorWithColor(CGContextRef c,
CGColorRef color)
Set the current fill color in the context `c' to `color'.
|
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'.
|
static void |
CGContextSetFlatness(CGContextRef c,
double flatness)
Set the path flatness parameter in the current graphics state of `c' to
`flatness'.
|
static void |
CGContextSetFont(CGContextRef c,
CGFontRef font)
Set the font in the current graphics state of the context `c' to
`font'.
|
static void |
CGContextSetFontSize(CGContextRef c,
double size)
Set the font size in the current graphics state of the context `c' to
`size'.
|
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)'.
|
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)'.
|
static void |
CGContextSetInterpolationQuality(CGContextRef c,
int quality)
Set the interpolation quality of `context' to `quality'.
|
static void |
CGContextSetLineCap(CGContextRef c,
int cap)
Set the line cap in the current graphics state to `cap'.
|
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'.
|
static void |
CGContextSetLineJoin(CGContextRef c,
int join)
Set the line join in the current graphics state to `join'.
|
static void |
CGContextSetLineWidth(CGContextRef c,
double width)
Set the line width in the current graphics state to `width'.
|
static void |
CGContextSetMiterLimit(CGContextRef c,
double limit)
Set the miter limit in the current graphics state to `limit'.
|
static void |
CGContextSetPatternPhase(CGContextRef c,
CGSize phase)
Set the pattern phase in the current graphics state of `context' to
`phase'.
|
static void |
CGContextSetRenderingIntent(CGContextRef c,
int intent)
Set the rendering intent in the current graphics state of `context' to
`intent'.
|
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)'.
|
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)'.
|
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.
|
static void |
CGContextSetShadowWithColor(CGContextRef c,
CGSize offset,
double blur,
CGColorRef color)
Set the shadow parameters in `context'.
|
static void |
CGContextSetShouldAntialias(CGContextRef c,
boolean shouldAntialias)
Turn on antialiasing if `shouldAntialias' is true; turn it off otherwise.
|
static void |
CGContextSetShouldSmoothFonts(CGContextRef c,
boolean shouldSmoothFonts)
Turn on font smoothing if `shouldSmoothFonts' is true; turn it off
otherwise.
|
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.
|
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.
|
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'.
|
static void |
CGContextSetStrokeColorSpace(CGContextRef c,
CGColorSpaceRef space)
Set the current stroke color space in `context' to `space'.
|
static void |
CGContextSetStrokeColorWithColor(CGContextRef c,
CGColorRef color)
Set the current stroke color in the context `c' to `color'.
|
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'.
|
static void |
CGContextSetTextDrawingMode(CGContextRef c,
int mode)
Set the text drawing mode in the current graphics state of the context
`c' to `mode'.
|
static void |
CGContextSetTextMatrix(CGContextRef c,
CGAffineTransform t)
Set the text matrix in the context `c' to `t'.
|
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)'.
|
static void |
CGContextShowGlyphs(CGContextRef c,
org.moe.natj.general.ptr.ConstCharPtr g,
long count)
Deprecated.
|
static void |
CGContextShowGlyphsAtPoint(CGContextRef c,
double x,
double y,
org.moe.natj.general.ptr.ConstCharPtr glyphs,
long count)
Deprecated.
|
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'.
|
static void |
CGContextShowGlyphsWithAdvances(CGContextRef c,
org.moe.natj.general.ptr.ConstCharPtr glyphs,
CGSize advances,
long count)
Deprecated.
|
static void |
CGContextShowText(CGContextRef c,
java.lang.String string,
long length)
Deprecated.
|
static void |
CGContextShowTextAtPoint(CGContextRef c,
double x,
double y,
java.lang.String string,
long length)
Deprecated.
|
static void |
CGContextStrokeEllipseInRect(CGContextRef c,
CGRect rect)
Stroke an ellipse (an oval) inside `rect'.
|
static void |
CGContextStrokeLineSegments(CGContextRef c,
CGPoint points,
long count)
Stroke a sequence of line segments one after another in `context'.
|
static void |
CGContextStrokePath(CGContextRef c)
Stroke the context's path.
|
static void |
CGContextStrokeRect(CGContextRef c,
CGRect rect)
Stroke `rect' with the current stroke color and the current linewidth.
|
static void |
CGContextStrokeRectWithWidth(CGContextRef c,
CGRect rect,
double width)
Stroke `rect' with the current stroke color, using `width' as the the
line width.
|
static void |
CGContextSynchronize(CGContextRef c)
Synchronized drawing.
|
static void |
CGContextTranslateCTM(CGContextRef c,
double tx,
double ty)
Translate the current graphics state's transformation matrix (the CTM) by
`(tx, ty)'.
|
static boolean |
CGConvertColorDataWithFormat(long width,
long height,
org.moe.natj.general.ptr.VoidPtr dst_data,
CGColorDataFormat dst_format,
org.moe.natj.general.ptr.VoidPtr src_data,
CGColorDataFormat src_format,
CFDictionaryRef options) |
static CGDataConsumerRef |
CGDataConsumerCreate(org.moe.natj.general.ptr.VoidPtr info,
CGDataConsumerCallbacks cbks)
Create a data consumer using `callbacks' to handle the data.
|
static CGDataConsumerRef |
CGDataConsumerCreateWithCFData(CFMutableDataRef data)
Create a data consumer which writes to `data'.
|
static CGDataConsumerRef |
CGDataConsumerCreateWithURL(CFURLRef url)
Create a data consumer which writes data to `url'.
|
static long |
CGDataConsumerGetTypeID()
Return the CFTypeID for CGDataConsumerRefs.
|
static void |
CGDataConsumerRelease(CGDataConsumerRef consumer)
Equivalent to `CFRelease(consumer)'.
|
static CGDataConsumerRef |
CGDataConsumerRetain(CGDataConsumerRef consumer)
Equivalent to `CFRetain(consumer)'.
|
static CFDataRef |
CGDataProviderCopyData(CGDataProviderRef provider)
Return a copy of the data specified by provider.
|
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.
|
static CGDataProviderRef |
CGDataProviderCreateSequential(org.moe.natj.general.ptr.VoidPtr info,
CGDataProviderSequentialCallbacks callbacks)
Create a sequential-access data provider using `callbacks' to provide the
data.
|
static CGDataProviderRef |
CGDataProviderCreateWithCFData(CFDataRef data)
Create a direct-access data provider which reads from `data'.
|
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.
|
static CGDataProviderRef |
CGDataProviderCreateWithFilename(java.lang.String filename)
Create a data provider reading from `filename'.
|
static CGDataProviderRef |
CGDataProviderCreateWithURL(CFURLRef url)
Create a data provider reading from `url'.
|
static org.moe.natj.general.ptr.VoidPtr |
CGDataProviderGetInfo(CGDataProviderRef provider) |
static long |
CGDataProviderGetTypeID()
Return the CFTypeID for CGDataProviderRefs.
|
static void |
CGDataProviderRelease(CGDataProviderRef provider)
Equivalent to `CFRelease(provider)', but doesn't crash (as CFRelease
does) if `provider' is NULL.
|
static CGDataProviderRef |
CGDataProviderRetain(CGDataProviderRef provider)
Equivalent to `CFRetain(provider)', but doesn't crash (as CFRetain does)
if `provider' is NULL.
|
static void |
CGErrorSetCallback(CoreGraphics.Function_CGErrorSetCallback callback)
Set a callback for easier detection of error conditions
causing CoreGraphics to raise an error.
|
static boolean |
CGFontCanCreatePostScriptSubset(CGFontRef font,
int format)
Return true if a subset in the PostScript format `format' can be created
for `font'; false otherwise.
|
static CFStringRef |
CGFontCopyFullName(CGFontRef font)
Return the "full name" of `font'.
|
static CFStringRef |
CGFontCopyGlyphNameForGlyph(CGFontRef font,
char glyph)
Return the glyph name of `glyph' in `font', or NULL if `glyph' does not
appear in `font'.
|
static CFStringRef |
CGFontCopyPostScriptName(CGFontRef font)
Return the PostScript name of `font'.
|
static CFDataRef |
CGFontCopyTableForTag(CGFontRef font,
int tag)
Return the table in `font' corresponding to `tag', or NULL if no such
table exists.
|
static CFArrayRef |
CGFontCopyTableTags(CGFontRef font)
Return an array of font table tags in `font'.
|
static CFArrayRef |
CGFontCopyVariationAxes(CGFontRef font)
Return an array of the variation axis dictionaries for `font'.
|
static CFDictionaryRef |
CGFontCopyVariations(CGFontRef font)
Return the variation specification dictionary from `font'.
|
static CGFontRef |
CGFontCreateCopyWithVariations(CGFontRef font,
CFDictionaryRef variations)
Return a font based on `font' with the variation specification dictionary
`variations' applied to `font'.
|
static CGFontRef |
CGFontCreateWithDataProvider(CGDataProviderRef provider)
Return the font defined by the data provided by `provider', or NULL if
the font can't be created.
|
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.
|
static int |
CGFontGetAscent(CGFontRef font)
Return the ascent of `font'.
|
static int |
CGFontGetCapHeight(CGFontRef font)
Return the cap height of `font'.
|
static int |
CGFontGetDescent(CGFontRef font)
Return the descent of `font'.
|
static CGRect |
CGFontGetFontBBox(CGFontRef font)
Return the font bounding box of `font'.
|
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.
|
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.
|
static char |
CGFontGetGlyphWithGlyphName(CGFontRef font,
CFStringRef name)
Return the glyph associated with `name' in `font'.
|
static double |
CGFontGetItalicAngle(CGFontRef font)
Return the italic angle of `font', measured in degrees counter-clockwise
from the vertical.
|
static int |
CGFontGetLeading(CGFontRef font)
Return the leading of `font'.
|
static long |
CGFontGetNumberOfGlyphs(CGFontRef font)
Return the number of glyphs in `font'.
|
static double |
CGFontGetStemV(CGFontRef font)
Return the thickness of the dominant vertical stems of glyphs in `font'.
|
static long |
CGFontGetTypeID()
Return the CFTypeID for CGFontRefs.
|
static int |
CGFontGetUnitsPerEm(CGFontRef font)
Return the glyph space units/em for `font'.
|
static int |
CGFontGetXHeight(CGFontRef font)
Return the x-height of `font'.
|
static void |
CGFontRelease(CGFontRef font)
Equivalent to `CFRelease(font)', except it doesn't crash (as CFRelease
does) if `font' is NULL.
|
static CGFontRef |
CGFontRetain(CGFontRef font)
Equivalent to `CFRetain(font)', except it doesn't crash (as CFRetain
does) if `font' is NULL.
|
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.
|
static long |
CGFunctionGetTypeID()
Return the CFTypeID for CGFunctionRefs.
|
static void |
CGFunctionRelease(CGFunctionRef function)
Equivalent to `CFRelease(function)', except it doesn't crash (as
CFRelease does) if `function' is NULL.
|
static CGFunctionRef |
CGFunctionRetain(CGFunctionRef function)
Equivalent to `CFRetain(function)', except it doesn't crash (as CFRetain
does) if `function' is NULL.
|
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'.
|
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'.
|
static long |
CGGradientGetTypeID()
Return the CFTypeID for CGGradients.
|
static void |
CGGradientRelease(CGGradientRef gradient)
Equivalent to `CFRelease' except that it doesn't crash (as `CFRelease'
does) if `gradient' is NULL.
|
static CGGradientRef |
CGGradientRetain(CGGradientRef gradient)
Equivalent to `CFRetain' except that it doesn't crash (as `CFRetain'
does) if `gradient' is NULL.
|
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.
|
static CGImageRef |
CGImageCreateCopy(CGImageRef image)
Return a copy of `image'.
|
static CGImageRef |
CGImageCreateCopyWithColorSpace(CGImageRef image,
CGColorSpaceRef space)
Create a copy of `image', replacing the image's color space with `space'.
|
static CGImageRef |
CGImageCreateWithImageInRect(CGImageRef image,
CGRect rect)
Create an image using the data contained within the subrectangle `rect'
of `image'.
|
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.
|
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.
|
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], ...
|
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.
|
static int |
CGImageGetAlphaInfo(CGImageRef image)
Return the alpha info of `image'.
|
static int |
CGImageGetBitmapInfo(CGImageRef image)
Return the bitmap info of `image'.
|
static long |
CGImageGetBitsPerComponent(CGImageRef image)
Return the number of bits/component of `image'.
|
static long |
CGImageGetBitsPerPixel(CGImageRef image)
Return the number of bits/pixel of `image'.
|
static int |
CGImageGetByteOrderInfo(CGImageRef image)
Return the byte order info of `image'.
|
static long |
CGImageGetBytesPerRow(CGImageRef image)
Return the number of bytes/row of `image'.
|
static CGColorSpaceRef |
CGImageGetColorSpace(CGImageRef image)
Return the color space of `image', or NULL if `image' is an image
mask.
|
static CGDataProviderRef |
CGImageGetDataProvider(CGImageRef image)
Return the data provider of `image'.
|
static org.moe.natj.general.ptr.ConstNFloatPtr |
CGImageGetDecode(CGImageRef image)
Return the decode array of `image'.
|
static long |
CGImageGetHeight(CGImageRef image)
Return the height of `image'.
|
static int |
CGImageGetPixelFormatInfo(CGImageRef image)
Return the pixel format of `image'.
|
static int |
CGImageGetRenderingIntent(CGImageRef image)
Return the rendering intent of `image'.
|
static boolean |
CGImageGetShouldInterpolate(CGImageRef image)
Return the interpolation parameter of `image'.
|
static long |
CGImageGetTypeID()
Return the CFTypeID for CGImageRefs.
|
static CFStringRef |
CGImageGetUTType(CGImageRef image)
Return the UTType of `image'.
|
static long |
CGImageGetWidth(CGImageRef image)
Return the width of `image'.
|
static boolean |
CGImageIsMask(CGImageRef image)
Return true if `image' is an image mask, false otherwise.
|
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.
|
static void |
CGImageRelease(CGImageRef image)
Equivalent to `CFRelease(image)'.
|
static CGImageRef |
CGImageRetain(CGImageRef image)
Equivalent to `CFRetain(image)'.
|
static CGLayerRef |
CGLayerCreateWithContext(CGContextRef context,
CGSize size,
CFDictionaryRef auxiliaryInfo)
Create a layer of size `size' relative to the context `context'.
|
static CGContextRef |
CGLayerGetContext(CGLayerRef layer)
Return the context of `layer'.
|
static CGSize |
CGLayerGetSize(CGLayerRef layer)
Return the size of the layer `layer'.
|
static long |
CGLayerGetTypeID()
Return the CFTypeID for CGLayerRefs.
|
static void |
CGLayerRelease(CGLayerRef layer)
Equivalent to `CFRelease(layer)', except it doesn't crash (as CFRelease
does) if `layer' is NULL.
|
static CGLayerRef |
CGLayerRetain(CGLayerRef layer)
Equivalent to `CFRetain(layer)', except it doesn't crash (as CFRetain
does) if `layer' is NULL.
|
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.
|
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.
|
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)'.
|
static void |
CGPathAddEllipseInRect(CGMutablePathRef path,
CGAffineTransform m,
CGRect rect)
Add an ellipse (an oval) inside `rect' to `path'.
|
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'.
|
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)'.
|
static void |
CGPathAddPath(CGMutablePathRef path1,
CGAffineTransform m,
CGPathRef path2)
Add `path2' to `path1'.
|
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)'.
|
static void |
CGPathAddRect(CGMutablePathRef path,
CGAffineTransform m,
CGRect rect)
Add `rect' to `path'.
|
static void |
CGPathAddRects(CGMutablePathRef path,
CGAffineTransform m,
CGRect rects,
long count)
Add each rectangle specified by `rects', an array of `count' CGRects, to
`path'.
|
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.
|
static void |
CGPathAddRoundedRect(CGMutablePathRef path,
CGAffineTransform transform,
CGRect rect,
double cornerWidth,
double cornerHeight)
Add a rounded rectangle to `path'.
|
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'.
|
static void |
CGPathApplyWithBlock(CGPathRef path,
CoreGraphics.Block_CGPathApplyWithBlock block) |
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.
|
static boolean |
CGPathContainsPoint(CGPathRef path,
CGAffineTransform m,
CGPoint point,
boolean eoFill)
Return true if `point' is contained in `path'; false otherwise.
|
static CGPathRef |
CGPathCreateCopy(CGPathRef path)
Create a copy of `path'.
|
static CGPathRef |
CGPathCreateCopyByDashingPath(CGPathRef path,
CGAffineTransform transform,
double phase,
org.moe.natj.general.ptr.ConstNFloatPtr lengths,
long count)
Create a dashed path from `path'.
|
static CGPathRef |
CGPathCreateCopyByStrokingPath(CGPathRef path,
CGAffineTransform transform,
double lineWidth,
int lineCap,
int lineJoin,
double miterLimit)
Create a stroked path from `path'.
|
static CGPathRef |
CGPathCreateCopyByTransformingPath(CGPathRef path,
CGAffineTransform transform)
Create a copy of `path' transformed by `transform'.
|
static CGMutablePathRef |
CGPathCreateMutable()
Create a mutable path.
|
static CGMutablePathRef |
CGPathCreateMutableCopy(CGPathRef path)
Create a mutable copy of `path'.
|
static CGMutablePathRef |
CGPathCreateMutableCopyByTransformingPath(CGPathRef path,
CGAffineTransform transform)
Create a mutable copy of `path' transformed by `transform'.
|
static CGPathRef |
CGPathCreateWithEllipseInRect(CGRect rect,
CGAffineTransform transform)
Return a path representing an ellipse bounded by `rect'.
|
static CGPathRef |
CGPathCreateWithRect(CGRect rect,
CGAffineTransform transform)
Return a path representing a rectangle bounded by `rect'.
|
static CGPathRef |
CGPathCreateWithRoundedRect(CGRect rect,
double cornerWidth,
double cornerHeight,
CGAffineTransform transform)
Return a path representing a rounded rectangle.
|
static boolean |
CGPathEqualToPath(CGPathRef path1,
CGPathRef path2)
Return true if `path1' is equal to `path2'; false otherwise.
|
static CGRect |
CGPathGetBoundingBox(CGPathRef path)
Return the bounding box of `path'.
|
static CGPoint |
CGPathGetCurrentPoint(CGPathRef path)
Return the current point of the current subpath of `path'.
|
static CGRect |
CGPathGetPathBoundingBox(CGPathRef path)
Return the path bounding box of `path'.
|
static long |
CGPathGetTypeID()
Return the CFTypeID for CGPathRefs.
|
static boolean |
CGPathIsEmpty(CGPathRef path)
Return true if `path' contains no elements, false otherwise.
|
static boolean |
CGPathIsRect(CGPathRef path,
CGRect rect)
Return true if `path' represents a rectangle, false otherwise.
|
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.
|
static void |
CGPathRelease(CGPathRef path)
Equivalent to `CFRelease(path)', except it doesn't crash (as CFRelease
does) if `path' is NULL.
|
static CGPathRef |
CGPathRetain(CGPathRef path)
Equivalent to `CFRetain(path)', except it doesn't crash (as CFRetain
does) if `path' is NULL.
|
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.
|
static long |
CGPatternGetTypeID()
Return the CFTypeID for CGPatternRefs.
|
static void |
CGPatternRelease(CGPatternRef pattern)
Equivalent to `CFRelease(pattern)', except it doesn't crash (as CF does)
if `pattern' is NULL.
|
static CGPatternRef |
CGPatternRetain(CGPatternRef pattern)
Equivalent to `CFRetain(pattern)', except it doesn't crash (as CF does)
if `pattern' is NULL.
|
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.
|
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'.
|
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'.
|
static long |
CGPDFArrayGetCount(CGPDFArrayRef array) |
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'.
|
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'.
|
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'.
|
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.
|
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'.
|
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'.
|
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'.
|
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'.
|
static CGPDFContentStreamRef |
CGPDFContentStreamCreateWithPage(CGPDFPageRef page)
Create a content stream from `page'.
|
static CGPDFContentStreamRef |
CGPDFContentStreamCreateWithStream(CGPDFStreamRef stream,
CGPDFDictionaryRef streamResources,
CGPDFContentStreamRef parent)
Create a content stream from `stream'.
|
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'.
|
static CFArrayRef |
CGPDFContentStreamGetStreams(CGPDFContentStreamRef cs)
Return the array of CGPDFStreamRefs comprising the entire content stream
of `cs'.
|
static void |
CGPDFContentStreamRelease(CGPDFContentStreamRef cs)
Decrement the retain count of `cs'.
|
static CGPDFContentStreamRef |
CGPDFContentStreamRetain(CGPDFContentStreamRef cs)
Increment the retain count of `cs'.
|
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'.
|
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.
|
static void |
CGPDFContextBeginPage(CGContextRef context,
CFDictionaryRef pageInfo)
Begin a new page in the PDF context `context'.
|
static void |
CGPDFContextBeginTag(CGContextRef context,
int tagType,
CFDictionaryRef tagProperties)
Sets the current tag to the given tagType with an associated tagProperties dictionary.
|
static void |
CGPDFContextClose(CGContextRef context)
Close a PDF context.
|
static CGContextRef |
CGPDFContextCreate(CGDataConsumerRef consumer,
CGRect mediaBox,
CFDictionaryRef auxiliaryInfo)
Create a PDF context, using `consumer' for output.
|
static CGContextRef |
CGPDFContextCreateWithURL(CFURLRef url,
CGRect mediaBox,
CFDictionaryRef auxiliaryInfo)
Create a PDF context for writing to `url'.
|
static void |
CGPDFContextEndPage(CGContextRef context)
End the current page in the PDF context `context'.
|
static void |
CGPDFContextEndTag(CGContextRef context)
Pop the current tag.
|
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'.
|
static void |
CGPDFContextSetOutline(CGContextRef context,
CFDictionaryRef outline)
Set the outline in the PDF created by a CGPDFContext (no effect in other types of CGContexts).
|
static void |
CGPDFContextSetURLForRect(CGContextRef context,
CFURLRef url,
CGRect rect)
Set the URL associated with `rect' to `url' in the PDF context
`context'.
|
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.
|
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.
|
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'.
|
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'.
|
static long |
CGPDFDictionaryGetCount(CGPDFDictionaryRef dict)
Return the number of entries in `dictionary'.
|
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'.
|
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'.
|
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'.
|
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'.
|
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'.
|
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'.
|
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'.
|
static boolean |
CGPDFDocumentAllowsCopying(CGPDFDocumentRef document)
Return true if `document' allows copying; false otherwise.
|
static boolean |
CGPDFDocumentAllowsPrinting(CGPDFDocumentRef document)
Return true if `document' allows printing; false otherwise.
|
static CGPDFDocumentRef |
CGPDFDocumentCreateWithProvider(CGDataProviderRef provider)
Create a PDF document, using `provider' to obtain the document's data.
|
static CGPDFDocumentRef |
CGPDFDocumentCreateWithURL(CFURLRef url)
Create a PDF document from `url'.
|
static int |
CGPDFDocumentGetAccessPermissions(CGPDFDocumentRef document)
Return the document access permissions.
|
static CGPDFDictionaryRef |
CGPDFDocumentGetCatalog(CGPDFDocumentRef document)
Return the document catalog of `document'.
|
static CGPDFArrayRef |
CGPDFDocumentGetID(CGPDFDocumentRef document)
Return the "file identifier" array of `document'.
|
static CGPDFDictionaryRef |
CGPDFDocumentGetInfo(CGPDFDocumentRef document)
Return the info dictionary of `document'.
|
static long |
CGPDFDocumentGetNumberOfPages(CGPDFDocumentRef document)
Return the number of pages in `document'.
|
static CFDictionaryRef |
CGPDFDocumentGetOutline(CGPDFDocumentRef document)
Return the document outline in the form of a CFDictionary tree containing the kCGPDFOutline keys.
|
static CGPDFPageRef |
CGPDFDocumentGetPage(CGPDFDocumentRef document,
long pageNumber)
Return the page corresponding to `pageNumber', or NULL if no such page
exists in the document.
|
static long |
CGPDFDocumentGetTypeID()
Return the CFTypeID for CGPDFDocumentRefs.
|
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'.
|
static boolean |
CGPDFDocumentIsEncrypted(CGPDFDocumentRef document)
Return true if the PDF file associated with `document' is encrypted;
false otherwise.
|
static boolean |
CGPDFDocumentIsUnlocked(CGPDFDocumentRef document)
Return true if `document' is unlocked; false otherwise.
|
static void |
CGPDFDocumentRelease(CGPDFDocumentRef document)
Equivalent to `CFRelease(document)', except it doesn't crash (as
CFRelease does) if `document' is NULL.
|
static CGPDFDocumentRef |
CGPDFDocumentRetain(CGPDFDocumentRef document)
Equivalent to `CFRetain(document)', except it doesn't crash (as CFRetain
does) if `document' is NULL.
|
static boolean |
CGPDFDocumentUnlockWithPassword(CGPDFDocumentRef document,
java.lang.String password)
Use `password' to decrypt `document' and grant permission for certain
operations.
|
static int |
CGPDFObjectGetType(CGPDFObjectRef object)
Return the type of `object'.
|
static boolean |
CGPDFObjectGetValue(CGPDFObjectRef object,
int type,
org.moe.natj.general.ptr.VoidPtr value)
Get the value of `object'.
|
static CGPDFOperatorTableRef |
CGPDFOperatorTableCreate()
Return an empty operator table.
|
static void |
CGPDFOperatorTableRelease(CGPDFOperatorTableRef table)
Decrement the retain count of `table'.
|
static CGPDFOperatorTableRef |
CGPDFOperatorTableRetain(CGPDFOperatorTableRef table)
Increment the retain count of `table'.
|
static void |
CGPDFOperatorTableSetCallback(CGPDFOperatorTableRef table,
java.lang.String name,
CoreGraphics.Function_CGPDFOperatorTableSetCallback callback)
Set the callback for the operator named `name' to `callback'
|
static CGRect |
CGPDFPageGetBoxRect(CGPDFPageRef page,
int box)
Return the rectangle associated with `box' in `page'.
|
static CGPDFDictionaryRef |
CGPDFPageGetDictionary(CGPDFPageRef page)
Return the dictionary of `page'.
|
static CGPDFDocumentRef |
CGPDFPageGetDocument(CGPDFPageRef page)
Return the document of `page'.
|
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.
|
static long |
CGPDFPageGetPageNumber(CGPDFPageRef page)
Return the page number of `page'.
|
static int |
CGPDFPageGetRotationAngle(CGPDFPageRef page)
Return the rotation angle (in degrees) of `page'.
|
static long |
CGPDFPageGetTypeID()
Return the CFTypeID for CGPDFPageRefs.
|
static void |
CGPDFPageRelease(CGPDFPageRef page)
Equivalent to `CFRelease(page)', except it doesn't crash (as CFRelease
does) if `page' is NULL.
|
static CGPDFPageRef |
CGPDFPageRetain(CGPDFPageRef page)
Equivalent to `CFRetain(page)', except it doesn't crash (as CFRetain
does) if `page' is NULL.
|
static CGPDFScannerRef |
CGPDFScannerCreate(CGPDFContentStreamRef cs,
CGPDFOperatorTableRef table,
org.moe.natj.general.ptr.VoidPtr info)
Create a scanner.
|
static CGPDFContentStreamRef |
CGPDFScannerGetContentStream(CGPDFScannerRef scanner)
Return the content stream associated with `scanner'.
|
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'.
|
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'.
|
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'.
|
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'.
|
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'.
|
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'.
|
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'.
|
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'.
|
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'.
|
static void |
CGPDFScannerRelease(CGPDFScannerRef scanner)
Release `scanner'.
|
static CGPDFScannerRef |
CGPDFScannerRetain(CGPDFScannerRef scanner)
Retain `scanner'.
|
static boolean |
CGPDFScannerScan(CGPDFScannerRef scanner)
Scan the content stream of `scanner'.
|
static CFDataRef |
CGPDFStreamCopyData(CGPDFStreamRef stream,
org.moe.natj.general.ptr.IntPtr format)
Return the data of `stream'.
|
static CGPDFDictionaryRef |
CGPDFStreamGetDictionary(CGPDFStreamRef stream)
Return the dictionary of `stream'.
|
static CFDateRef |
CGPDFStringCopyDate(CGPDFStringRef string)
Convert `string' to a CFDate.
|
static CFStringRef |
CGPDFStringCopyTextString(CGPDFStringRef string)
Return a CFString representing `string' as a "text string".
|
static java.lang.String |
CGPDFStringGetBytePtr(CGPDFStringRef string)
Return a pointer to the bytes of `string'.
|
static long |
CGPDFStringGetLength(CGPDFStringRef string)
Return the length of `string'.
|
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.
|
static CGPoint |
CGPointApplyAffineTransform(CGPoint point,
CGAffineTransform t)
Transform `point' by `t' and return the result:
p' = p * t
where p = [ x y 1 ].
|
static CFDictionaryRef |
CGPointCreateDictionaryRepresentation(CGPoint point)
Return a dictionary representation of `point'.
|
static boolean |
CGPointEqualToPoint(CGPoint point1,
CGPoint point2)
Return true if `point1' and `point2' are the same, false otherwise.
|
static CGPoint |
CGPointMake(double x,
double y)
Make a point from `(x, y)'.
|
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'.
|
static CGPoint |
CGPointZero()
The "zero" point -- equivalent to CGPointMake(0, 0).
|
static CGRect |
CGRectApplyAffineTransform(CGRect rect,
CGAffineTransform t)
Transform `rect' by `t' and return the result.
|
static boolean |
CGRectContainsPoint(CGRect rect,
CGPoint point)
Return true if `point' is contained in `rect', false otherwise.
|
static boolean |
CGRectContainsRect(CGRect rect1,
CGRect rect2)
Return true if `rect2' is contained in `rect1', false otherwise.
|
static CFDictionaryRef |
CGRectCreateDictionaryRepresentation(CGRect arg1)
Return a dictionary representation of `rect'.
|
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'.
|
static boolean |
CGRectEqualToRect(CGRect rect1,
CGRect rect2)
Return true if `rect1' and `rect2' are the same, false otherwise.
|
static double |
CGRectGetHeight(CGRect rect)
Return the height of `rect'.
|
static double |
CGRectGetMaxX(CGRect rect)
Return the rightmost x-value of `rect'.
|
static double |
CGRectGetMaxY(CGRect rect)
Return the topmost y-value of `rect'.
|
static double |
CGRectGetMidX(CGRect rect)
Return the midpoint x-value of `rect'.
|
static double |
CGRectGetMidY(CGRect rect)
Return the midpoint y-value of `rect'.
|
static double |
CGRectGetMinX(CGRect rect)
Return the leftmost x-value of `rect'.
|
static double |
CGRectGetMinY(CGRect rect)
Return the bottommost y-value of `rect'.
|
static double |
CGRectGetWidth(CGRect rect)
Return the width of `rect'.
|
static CGRect |
CGRectInfinite()
The infinite rectangle.
|
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)'.
|
static CGRect |
CGRectIntegral(CGRect rect)
Expand `rect' to the smallest rect containing it with integral origin and
size.
|
static CGRect |
CGRectIntersection(CGRect r1,
CGRect r2)
Return the intersection of `r1' and `r2'.
|
static boolean |
CGRectIntersectsRect(CGRect rect1,
CGRect rect2)
Return true if `rect1' intersects `rect2', false otherwise.
|
static boolean |
CGRectIsEmpty(CGRect rect)
Return true if `rect' is empty (that is, if it has zero width or height),
false otherwise.
|
static boolean |
CGRectIsInfinite(CGRect rect)
Return true if `rect' is the infinite rectangle, false otherwise.
|
static boolean |
CGRectIsNull(CGRect rect)
Return true if `rect' is the null rectangle, false otherwise.
|
static CGRect |
CGRectMake(double x,
double y,
double width,
double height)
Make a rect from `(x, y; width, height)'.
|
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'.
|
static CGRect |
CGRectNull()
The "empty" rect.
|
static CGRect |
CGRectOffset(CGRect rect,
double dx,
double dy)
Offset `rect' by `(dx, dy)'.
|
static CGRect |
CGRectStandardize(CGRect rect)
Standardize `rect' -- i.e., convert it to an equivalent rect which has
positive width and height.
|
static CGRect |
CGRectUnion(CGRect r1,
CGRect r2)
Return the union of `r1' and `r2'.
|
static CGRect |
CGRectZero()
The "zero" rectangle -- equivalent to CGRectMake(0, 0, 0, 0).
|
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.
|
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.
|
static long |
CGShadingGetTypeID()
Return the CFTypeID for CGShadingRefs.
|
static void |
CGShadingRelease(CGShadingRef shading)
Equivalent to `CFRelease(shading)', except it doesn't crash (as CFRelease
does) if `shading' is NULL.
|
static CGShadingRef |
CGShadingRetain(CGShadingRef shading)
Equivalent to `CFRetain(shading)', except it doesn't crash (as CFRetain
does) if `shading' is NULL.
|
static CGSize |
CGSizeApplyAffineTransform(CGSize size,
CGAffineTransform t)
Transform `size' by `t' and return the result:
s' = s * t
where s = [ width height 0 ].
|
static CFDictionaryRef |
CGSizeCreateDictionaryRepresentation(CGSize size)
Return a dictionary representation of `size'.
|
static boolean |
CGSizeEqualToSize(CGSize size1,
CGSize size2)
Return true if `size1' and `size2' are the same, false otherwise.
|
static CGSize |
CGSizeMake(double width,
double height)
Make a size from `(width, height)'.
|
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'.
|
static CGSize |
CGSizeZero()
The "zero" size -- equivalent to CGSizeMake(0, 0).
|
static CGVector |
CGVectorMake(double dx,
double dy)
Make a vector from `(dx, dy)'.
|
static CFStringRef |
kCGColorBlack() |
static CFStringRef |
kCGColorClear() |
static CFStringRef |
kCGColorConversionBlackPointCompensation()
CFBooleanRef which can be used as option to create CGColorConversionInfoRef, when Black Point Compensation is desired
|
static CFStringRef |
kCGColorConversionTRCSize() |
static CFStringRef |
kCGColorSpaceACESCGLinear() |
static CFStringRef |
kCGColorSpaceAdobeRGB1998()
The name of the Adobe RGB (1998) color space.
|
static CFStringRef |
kCGColorSpaceDCIP3() |
static CFStringRef |
kCGColorSpaceDisplayP3_HLG() |
static CFStringRef |
kCGColorSpaceDisplayP3_PQ_EOTF() |
static CFStringRef |
kCGColorSpaceDisplayP3_PQ() |
static CFStringRef |
kCGColorSpaceDisplayP3() |
static CFStringRef |
kCGColorSpaceExtendedDisplayP3() |
static CFStringRef |
kCGColorSpaceExtendedGray()
The name of the extended Gray color space.
|
static CFStringRef |
kCGColorSpaceExtendedITUR_2020() |
static CFStringRef |
kCGColorSpaceExtendedLinearDisplayP3() |
static CFStringRef |
kCGColorSpaceExtendedLinearGray()
The name of the extended Generic Gray 2.2 color space variant with linear gamma
|
static CFStringRef |
kCGColorSpaceExtendedLinearITUR_2020() |
static CFStringRef |
kCGColorSpaceExtendedLinearSRGB()
The name of the extended sRGB color space variant with linear gamma
|
static CFStringRef |
kCGColorSpaceExtendedRange() |
static CFStringRef |
kCGColorSpaceExtendedSRGB()
The name of the extended sRGB color space.
|
static CFStringRef |
kCGColorSpaceGenericCMYK()
The name of the "Generic" CMYK color space.
|
static CFStringRef |
kCGColorSpaceGenericGray()
The name of the "Generic" Gray color space.
|
static CFStringRef |
kCGColorSpaceGenericGrayGamma2_2()
The "Generic" gray color space with γ = 2.2.
|
static CFStringRef |
kCGColorSpaceGenericLab()
The name of the "Generic" L*a*b* color space.
|
static CFStringRef |
kCGColorSpaceGenericRGB()
The name of the "Generic" RGB color space.
|
static CFStringRef |
kCGColorSpaceGenericRGBLinear()
The name of the "Generic" linear RGB color space.
|
static CFStringRef |
kCGColorSpaceGenericXYZ() |
static CFStringRef |
kCGColorSpaceITUR_2020_HLG() |
static CFStringRef |
kCGColorSpaceITUR_2020_PQ_EOTF() |
static CFStringRef |
kCGColorSpaceITUR_2020_PQ() |
static CFStringRef |
kCGColorSpaceITUR_2020_sRGBGamma() |
static CFStringRef |
kCGColorSpaceITUR_2020() |
static CFStringRef |
kCGColorSpaceITUR_2100_HLG() |
static CFStringRef |
kCGColorSpaceITUR_2100_PQ() |
static CFStringRef |
kCGColorSpaceITUR_709_PQ() |
static CFStringRef |
kCGColorSpaceITUR_709() |
static CFStringRef |
kCGColorSpaceLinearDisplayP3() |
static CFStringRef |
kCGColorSpaceLinearGray()
The name of the Generic Gray 2.2 color space variant with linear gamma
|
static CFStringRef |
kCGColorSpaceLinearITUR_2020() |
static CFStringRef |
kCGColorSpaceLinearSRGB()
The name of the sRGB color space variant with linear gamma
|
static CFStringRef |
kCGColorSpaceROMMRGB() |
static CFStringRef |
kCGColorSpaceSRGB()
The name of the sRGB color space.
|
static CFStringRef |
kCGColorWhite()
Colors in the "Generic" gray color space.
|
static CFStringRef |
kCGFontVariationAxisDefaultValue()
The key used to obtain the default variation axis value from a variation
axis dictionary.
|
static CFStringRef |
kCGFontVariationAxisMaxValue()
The key used to obtain the maximum variation axis value from a variation
axis dictionary.
|
static CFStringRef |
kCGFontVariationAxisMinValue()
The key used to obtain the minimum variation axis value from a variation
axis dictionary.
|
static CFStringRef |
kCGFontVariationAxisName()
The key used to obtain the variation axis name from a variation axis
dictionary.
|
static CFStringRef |
kCGPDFContextAccessPermissions()
The document's access permissions, expressed as a CFNumber.
|
static CFStringRef |
kCGPDFContextAllowsCopying()
Used to specify whether the document allows copying when unlocked with
the user password.
|
static CFStringRef |
kCGPDFContextAllowsPrinting()
Used to specify whether the document allows printing when unlocked with
the user password.
|
static CFStringRef |
kCGPDFContextArtBox()
The art box for the document or for a given page.
|
static CFStringRef |
kCGPDFContextAuthor()
The name of the person who created this document.
|
static CFStringRef |
kCGPDFContextBleedBox()
The bleed box for the document or for a given page.
|
static CFStringRef |
kCGPDFContextCreateLinearizedPDF()
Output a linearized PDF
|
static CFStringRef |
kCGPDFContextCreatePDFA()
Output a PDF that conforms to PDF/A-2u (ISO 19005-2).
|
static CFStringRef |
kCGPDFContextCreator()
The name of the application that created the original data used to create
this document.
|
static CFStringRef |
kCGPDFContextCropBox()
The crop box for the document or for a given page.
|
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.
|
static CFStringRef |
kCGPDFContextKeywords()
The keywords for this document.
|
static CFStringRef |
kCGPDFContextMediaBox()
The media box for the document or for a given page.
|
static CFStringRef |
kCGPDFContextOutputIntent()
The document's PDF/X output intent.
|
static CFStringRef |
kCGPDFContextOutputIntents()
The document's output intents.
|
static CFStringRef |
kCGPDFContextOwnerPassword()
The "owner password" of the PDF document.
|
static CFStringRef |
kCGPDFContextSubject()
The subject of a document.
|
static CFStringRef |
kCGPDFContextTitle()
The document's title.
|
static CFStringRef |
kCGPDFContextTrimBox()
The trim box for the document or for a given page.
|
static CFStringRef |
kCGPDFContextUserPassword()
The "user password" of the PDF document.
|
static CFStringRef |
kCGPDFOutlineChildren()
Key: kCGPDFOutlineChildren
Value: CFArray of CFDictionaries
|
static CFStringRef |
kCGPDFOutlineDestination()
Key: kCGPDFOutlineDestination
Value: CFNumber (for a one-indexed page number) or CFURL
|
static CFStringRef |
kCGPDFOutlineDestinationRect()
Key: kCGPDFOutlineDestinationRect
Value: CFDictionary from CGRectCreateDictionaryRepresentation.
|
static CFStringRef |
kCGPDFOutlineTitle()
Key: kCGPDFOutlineTitle
Value: CFString
|
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.
|
static CFStringRef |
kCGPDFTagPropertyAlternativeText()
Alternative text, defined on page 860:
"An alternate description of the structure element and its children in human-readable form".
|
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.
|
static CFStringRef |
kCGPDFTagPropertyTitleText()
Title, defined on page 859:
Title of the node in a human-readable form.
|
static CFStringRef |
kCGPDFXDestinationOutputProfile()
kCGPDFXDestinationOutputProfile ("DestOutputProfile"): An ICC profile
stream defining the transformation from the PDF document's source colors
to output device colorants.
|
static CFStringRef |
kCGPDFXInfo()
kCGPDFXInfo ("Info"): A human-readable text string containing additional
information about the intended target device or production condition.
|
static CFStringRef |
kCGPDFXOutputCondition()
kCGPDFXOutputCondition ("OutputCondition"): A text string identifying the
intended output device or production condition in a human-readable form.
|
static CFStringRef |
kCGPDFXOutputConditionIdentifier()
kCGPDFXOutputConditionIdentifier ("OutputConditionIdentifier"): A string
identifying the intended output device or production condition in a
human- or machine-readable form.
|
static CFStringRef |
kCGPDFXOutputIntentSubtype()
The following keys are supported in the output intent dictionary:
|
static CFStringRef |
kCGPDFXRegistryName()
kCGPDFXRegistryName ("RegistryName"): A string identifying the registry
in which the condition designated by `kCGPDFXOutputConditionIdentifier'
is defined.
|
public static final char kCGFontIndexMax
public static final char kCGFontIndexInvalid
public static final char kCGGlyphMax
public static CGPoint CGPointMake(double x, double y)
public static CGSize CGSizeMake(double width, double height)
public static CGVector CGVectorMake(double dx, double dy)
public static CGRect CGRectMake(double x, double y, double width, double height)
public static double CGRectGetMinX(CGRect rect)
public static double CGRectGetMidX(CGRect rect)
public static double CGRectGetMaxX(CGRect rect)
public static double CGRectGetMinY(CGRect rect)
public static double CGRectGetMidY(CGRect rect)
public static double CGRectGetMaxY(CGRect rect)
public static double CGRectGetWidth(CGRect rect)
public static double CGRectGetHeight(CGRect rect)
public static boolean CGPointEqualToPoint(CGPoint point1, CGPoint point2)
public static boolean CGSizeEqualToSize(CGSize size1, CGSize size2)
public static boolean CGRectEqualToRect(CGRect rect1, CGRect rect2)
public static CGRect CGRectStandardize(CGRect rect)
public static boolean CGRectIsEmpty(CGRect rect)
public static boolean CGRectIsNull(CGRect rect)
public static boolean CGRectIsInfinite(CGRect rect)
public static CGRect CGRectInset(CGRect rect, double dx, double dy)
public static CGRect CGRectIntegral(CGRect rect)
public static CGRect CGRectUnion(CGRect r1, CGRect r2)
public static CGRect CGRectIntersection(CGRect r1, CGRect r2)
public static CGRect CGRectOffset(CGRect rect, double dx, double dy)
public static void CGRectDivide(CGRect rect, CGRect slice, CGRect remainder, double amount, int edge)
public static boolean CGRectContainsPoint(CGRect rect, CGPoint point)
public static boolean CGRectContainsRect(CGRect rect1, CGRect rect2)
public static boolean CGRectIntersectsRect(CGRect rect1, CGRect rect2)
public static CFDictionaryRef CGPointCreateDictionaryRepresentation(CGPoint point)
public static boolean CGPointMakeWithDictionaryRepresentation(CFDictionaryRef dict, CGPoint point)
public static CFDictionaryRef CGSizeCreateDictionaryRepresentation(CGSize size)
public static boolean CGSizeMakeWithDictionaryRepresentation(CFDictionaryRef dict, CGSize size)
public static CFDictionaryRef CGRectCreateDictionaryRepresentation(CGRect arg1)
public static boolean CGRectMakeWithDictionaryRepresentation(CFDictionaryRef dict, CGRect rect)
public static CGAffineTransform CGAffineTransformMake(double a, double b, double c, double d, double tx, double ty)
public static CGAffineTransform CGAffineTransformMakeTranslation(double tx, double ty)
public static CGAffineTransform CGAffineTransformMakeScale(double sx, double sy)
public static CGAffineTransform CGAffineTransformMakeRotation(double angle)
public static boolean CGAffineTransformIsIdentity(CGAffineTransform t)
public static CGAffineTransform CGAffineTransformTranslate(CGAffineTransform t, double tx, double ty)
public static CGAffineTransform CGAffineTransformScale(CGAffineTransform t, double sx, double sy)
public static CGAffineTransform CGAffineTransformRotate(CGAffineTransform t, double angle)
public static CGAffineTransform CGAffineTransformInvert(CGAffineTransform t)
public static CGAffineTransform CGAffineTransformConcat(CGAffineTransform t1, CGAffineTransform t2)
public static boolean CGAffineTransformEqualToTransform(CGAffineTransform t1, CGAffineTransform t2)
public static CGPoint CGPointApplyAffineTransform(CGPoint point, CGAffineTransform t)
public static CGSize CGSizeApplyAffineTransform(CGSize size, CGAffineTransform t)
public static CGRect CGRectApplyAffineTransform(CGRect rect, CGAffineTransform t)
public static CGAffineTransform __CGAffineTransformMake(double a, double b, double c, double d, double tx, double ty)
public static CGPoint __CGPointApplyAffineTransform(CGPoint point, CGAffineTransform t)
public static CGSize __CGSizeApplyAffineTransform(CGSize size, CGAffineTransform t)
public static long CGDataProviderGetTypeID()
public static CGDataProviderRef CGDataProviderCreateSequential(org.moe.natj.general.ptr.VoidPtr info, CGDataProviderSequentialCallbacks callbacks)
public static CGDataProviderRef CGDataProviderCreateDirect(org.moe.natj.general.ptr.VoidPtr info, long size, CGDataProviderDirectCallbacks callbacks)
public static CGDataProviderRef CGDataProviderCreateWithData(org.moe.natj.general.ptr.VoidPtr info, org.moe.natj.general.ptr.ConstVoidPtr data, long size, CoreGraphics.Function_CGDataProviderCreateWithData releaseData)
public static CGDataProviderRef CGDataProviderCreateWithCFData(CFDataRef data)
public static CGDataProviderRef CGDataProviderCreateWithURL(CFURLRef url)
public static CGDataProviderRef CGDataProviderCreateWithFilename(java.lang.String filename)
public static CGDataProviderRef CGDataProviderRetain(CGDataProviderRef provider)
public static void CGDataProviderRelease(CGDataProviderRef provider)
public static CFDataRef CGDataProviderCopyData(CGDataProviderRef provider)
public static CGColorSpaceRef CGColorSpaceCreateDeviceGray()
public static CGColorSpaceRef CGColorSpaceCreateDeviceRGB()
public static CGColorSpaceRef CGColorSpaceCreateDeviceCMYK()
public static CGColorSpaceRef CGColorSpaceCreateWithICCProfile(CFDataRef data)
public static CGColorSpaceRef CGColorSpaceCreateICCBased(long nComponents, org.moe.natj.general.ptr.ConstNFloatPtr range, CGDataProviderRef profile, CGColorSpaceRef alternate)
public static CGColorSpaceRef CGColorSpaceCreateIndexed(CGColorSpaceRef baseSpace, long lastIndex, java.lang.String colorTable)
public static CGColorSpaceRef CGColorSpaceCreatePattern(CGColorSpaceRef baseSpace)
public static CGColorSpaceRef CGColorSpaceCreateWithPlatformColorSpace(org.moe.natj.general.ptr.ConstVoidPtr ref)
public static CGColorSpaceRef CGColorSpaceCreateWithName(CFStringRef name)
public static CGColorSpaceRef CGColorSpaceRetain(CGColorSpaceRef space)
public static void CGColorSpaceRelease(CGColorSpaceRef space)
public static CFStringRef CGColorSpaceCopyName(CGColorSpaceRef space)
public static long CGColorSpaceGetTypeID()
public static long CGColorSpaceGetNumberOfComponents(CGColorSpaceRef space)
public static int CGColorSpaceGetModel(CGColorSpaceRef space)
public static CGColorSpaceRef CGColorSpaceGetBaseColorSpace(CGColorSpaceRef space)
public static long CGColorSpaceGetColorTableCount(CGColorSpaceRef space)
public static void CGColorSpaceGetColorTable(CGColorSpaceRef space, org.moe.natj.general.ptr.BytePtr table)
public static CFDataRef CGColorSpaceCopyICCProfile(CGColorSpaceRef space)
public static CFDataRef CGColorSpaceCopyICCData(CGColorSpaceRef space)
public static boolean CGColorSpaceIsWideGamutRGB(CGColorSpaceRef arg1)
public static boolean CGColorSpaceSupportsOutput(CGColorSpaceRef space)
public static long CGPatternGetTypeID()
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)
public static CGPatternRef CGPatternRetain(CGPatternRef pattern)
public static void CGPatternRelease(CGPatternRef pattern)
public static CGColorRef CGColorCreate(CGColorSpaceRef space, org.moe.natj.general.ptr.ConstNFloatPtr components)
public static CGColorRef CGColorCreateWithPattern(CGColorSpaceRef space, CGPatternRef pattern, org.moe.natj.general.ptr.ConstNFloatPtr components)
public static CGColorRef CGColorCreateCopy(CGColorRef color)
public static CGColorRef CGColorCreateCopyWithAlpha(CGColorRef color, double alpha)
public static CGColorRef CGColorCreateCopyByMatchingToColorSpace(CGColorSpaceRef arg1, int intent, CGColorRef color, CFDictionaryRef options)
public static CGColorRef CGColorRetain(CGColorRef color)
public static void CGColorRelease(CGColorRef color)
public static boolean CGColorEqualToColor(CGColorRef color1, CGColorRef color2)
public static long CGColorGetNumberOfComponents(CGColorRef color)
public static org.moe.natj.general.ptr.ConstNFloatPtr CGColorGetComponents(CGColorRef color)
public static double CGColorGetAlpha(CGColorRef color)
public static CGColorSpaceRef CGColorGetColorSpace(CGColorRef color)
public static CGPatternRef CGColorGetPattern(CGColorRef color)
public static long CGColorGetTypeID()
public static long CGFontGetTypeID()
public static CGFontRef CGFontCreateWithDataProvider(CGDataProviderRef provider)
public static CGFontRef CGFontCreateWithFontName(CFStringRef name)
public static CGFontRef CGFontCreateCopyWithVariations(CGFontRef font, CFDictionaryRef variations)
public static CGFontRef CGFontRetain(CGFontRef font)
public static void CGFontRelease(CGFontRef font)
public static long CGFontGetNumberOfGlyphs(CGFontRef font)
public static int CGFontGetUnitsPerEm(CGFontRef font)
public static CFStringRef CGFontCopyPostScriptName(CGFontRef font)
public static CFStringRef CGFontCopyFullName(CGFontRef font)
public static int CGFontGetAscent(CGFontRef font)
public static int CGFontGetDescent(CGFontRef font)
public static int CGFontGetLeading(CGFontRef font)
public static int CGFontGetCapHeight(CGFontRef font)
public static int CGFontGetXHeight(CGFontRef font)
public static CGRect CGFontGetFontBBox(CGFontRef font)
public static double CGFontGetItalicAngle(CGFontRef font)
public static double CGFontGetStemV(CGFontRef font)
public static CFArrayRef CGFontCopyVariationAxes(CGFontRef font)
public static CFDictionaryRef CGFontCopyVariations(CGFontRef font)
public static boolean CGFontGetGlyphAdvances(CGFontRef font, org.moe.natj.general.ptr.ConstCharPtr glyphs, long count, org.moe.natj.general.ptr.IntPtr advances)
public static boolean CGFontGetGlyphBBoxes(CGFontRef font, org.moe.natj.general.ptr.ConstCharPtr glyphs, long count, CGRect bboxes)
public static char CGFontGetGlyphWithGlyphName(CGFontRef font, CFStringRef name)
public static CFStringRef CGFontCopyGlyphNameForGlyph(CGFontRef font, char glyph)
public static boolean CGFontCanCreatePostScriptSubset(CGFontRef font, int format)
public static CFArrayRef CGFontCopyTableTags(CGFontRef font)
public static CFDataRef CGFontCopyTableForTag(CGFontRef font, int tag)
public static long CGGradientGetTypeID()
public static CGGradientRef CGGradientCreateWithColorComponents(CGColorSpaceRef space, org.moe.natj.general.ptr.ConstNFloatPtr components, org.moe.natj.general.ptr.ConstNFloatPtr locations, long count)
public static CGGradientRef CGGradientCreateWithColors(CGColorSpaceRef space, CFArrayRef colors, org.moe.natj.general.ptr.ConstNFloatPtr locations)
public static CGGradientRef CGGradientRetain(CGGradientRef gradient)
public static void CGGradientRelease(CGGradientRef gradient)
public static long CGImageGetTypeID()
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)
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)
public static CGImageRef CGImageCreateCopy(CGImageRef image)
public static CGImageRef CGImageCreateWithJPEGDataProvider(CGDataProviderRef source, org.moe.natj.general.ptr.ConstNFloatPtr decode, boolean shouldInterpolate, int intent)
public static CGImageRef CGImageCreateWithPNGDataProvider(CGDataProviderRef source, org.moe.natj.general.ptr.ConstNFloatPtr decode, boolean shouldInterpolate, int intent)
public static CGImageRef CGImageCreateWithImageInRect(CGImageRef image, CGRect rect)
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.
public static CGImageRef CGImageCreateWithMask(CGImageRef image, CGImageRef mask)
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.
public static CGImageRef CGImageCreateWithMaskingColors(CGImageRef image, org.moe.natj.general.ptr.ConstNFloatPtr components)
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.
public static CGImageRef CGImageCreateCopyWithColorSpace(CGImageRef image, CGColorSpaceRef space)
public static CGImageRef CGImageRetain(CGImageRef image)
public static void CGImageRelease(CGImageRef image)
public static boolean CGImageIsMask(CGImageRef image)
public static long CGImageGetWidth(CGImageRef image)
public static long CGImageGetHeight(CGImageRef image)
public static long CGImageGetBitsPerComponent(CGImageRef image)
public static long CGImageGetBitsPerPixel(CGImageRef image)
public static long CGImageGetBytesPerRow(CGImageRef image)
public static CGColorSpaceRef CGImageGetColorSpace(CGImageRef image)
public static int CGImageGetAlphaInfo(CGImageRef image)
public static CGDataProviderRef CGImageGetDataProvider(CGImageRef image)
public static org.moe.natj.general.ptr.ConstNFloatPtr CGImageGetDecode(CGImageRef image)
public static boolean CGImageGetShouldInterpolate(CGImageRef image)
public static int CGImageGetRenderingIntent(CGImageRef image)
public static int CGImageGetBitmapInfo(CGImageRef image)
public static CFStringRef CGImageGetUTType(CGImageRef image)
public static long CGPathGetTypeID()
public static CGMutablePathRef CGPathCreateMutable()
public static CGPathRef CGPathCreateCopyByTransformingPath(CGPathRef path, CGAffineTransform transform)
public static CGMutablePathRef CGPathCreateMutableCopy(CGPathRef path)
public static CGMutablePathRef CGPathCreateMutableCopyByTransformingPath(CGPathRef path, CGAffineTransform transform)
public static CGPathRef CGPathCreateWithRect(CGRect rect, CGAffineTransform transform)
public static CGPathRef CGPathCreateWithEllipseInRect(CGRect rect, CGAffineTransform transform)
public static CGPathRef CGPathCreateWithRoundedRect(CGRect rect, double cornerWidth, double cornerHeight, CGAffineTransform transform)
public static void CGPathAddRoundedRect(CGMutablePathRef path, CGAffineTransform transform, CGRect rect, double cornerWidth, double cornerHeight)
public static CGPathRef CGPathCreateCopyByDashingPath(CGPathRef path, CGAffineTransform transform, double phase, org.moe.natj.general.ptr.ConstNFloatPtr lengths, long count)
public static CGPathRef CGPathCreateCopyByStrokingPath(CGPathRef path, CGAffineTransform transform, double lineWidth, int lineCap, int lineJoin, double miterLimit)
public static CGPathRef CGPathRetain(CGPathRef path)
public static void CGPathRelease(CGPathRef path)
public static boolean CGPathEqualToPath(CGPathRef path1, CGPathRef path2)
public static void CGPathMoveToPoint(CGMutablePathRef path, CGAffineTransform m, double x, double y)
public static void CGPathAddLineToPoint(CGMutablePathRef path, CGAffineTransform m, double x, double y)
public static void CGPathAddQuadCurveToPoint(CGMutablePathRef path, CGAffineTransform m, double cpx, double cpy, double x, double y)
public static void CGPathAddCurveToPoint(CGMutablePathRef path, CGAffineTransform m, double cp1x, double cp1y, double cp2x, double cp2y, double x, double y)
public static void CGPathCloseSubpath(CGMutablePathRef path)
public static void CGPathAddRect(CGMutablePathRef path, CGAffineTransform m, CGRect rect)
public static void CGPathAddRects(CGMutablePathRef path, CGAffineTransform m, CGRect rects, long count)
public static void CGPathAddLines(CGMutablePathRef path, CGAffineTransform m, CGPoint points, long count)
public static void CGPathAddEllipseInRect(CGMutablePathRef path, CGAffineTransform m, CGRect rect)
public static void CGPathAddRelativeArc(CGMutablePathRef path, CGAffineTransform matrix, double x, double y, double radius, double startAngle, double delta)
public static void CGPathAddArc(CGMutablePathRef path, CGAffineTransform m, double x, double y, double radius, double startAngle, double endAngle, boolean clockwise)
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.
public static void CGPathAddArcToPoint(CGMutablePathRef path, CGAffineTransform m, double x1, double y1, double x2, double y2, double radius)
public static void CGPathAddPath(CGMutablePathRef path1, CGAffineTransform m, CGPathRef path2)
public static boolean CGPathIsEmpty(CGPathRef path)
public static boolean CGPathIsRect(CGPathRef path, CGRect rect)
public static CGPoint CGPathGetCurrentPoint(CGPathRef path)
public static CGRect CGPathGetBoundingBox(CGPathRef path)
public static CGRect CGPathGetPathBoundingBox(CGPathRef path)
public static boolean CGPathContainsPoint(CGPathRef path, CGAffineTransform m, CGPoint point, boolean eoFill)
public static void CGPathApply(CGPathRef path, org.moe.natj.general.ptr.VoidPtr info, CoreGraphics.Function_CGPathApply function)
public static int CGPDFObjectGetType(CGPDFObjectRef object)
public static boolean CGPDFObjectGetValue(CGPDFObjectRef object, int type, org.moe.natj.general.ptr.VoidPtr value)
public static CGPDFDictionaryRef CGPDFStreamGetDictionary(CGPDFStreamRef stream)
public static CFDataRef CGPDFStreamCopyData(CGPDFStreamRef stream, org.moe.natj.general.ptr.IntPtr format)
public static long CGPDFStringGetLength(CGPDFStringRef string)
public static java.lang.String CGPDFStringGetBytePtr(CGPDFStringRef string)
public static CFStringRef CGPDFStringCopyTextString(CGPDFStringRef string)
public static CFDateRef CGPDFStringCopyDate(CGPDFStringRef string)
public static long CGPDFArrayGetCount(CGPDFArrayRef array)
public static boolean CGPDFArrayGetObject(CGPDFArrayRef array, long index, org.moe.natj.general.ptr.Ptr<CGPDFObjectRef> value)
public static boolean CGPDFArrayGetNull(CGPDFArrayRef array, long index)
public static boolean CGPDFArrayGetBoolean(CGPDFArrayRef array, long index, org.moe.natj.general.ptr.BytePtr value)
public static boolean CGPDFArrayGetInteger(CGPDFArrayRef array, long index, org.moe.natj.general.ptr.NIntPtr value)
public static boolean CGPDFArrayGetNumber(CGPDFArrayRef array, long index, org.moe.natj.general.ptr.NFloatPtr value)
public static boolean CGPDFArrayGetName(CGPDFArrayRef array, long index, java.lang.String[] value)
public static boolean CGPDFArrayGetString(CGPDFArrayRef array, long index, org.moe.natj.general.ptr.Ptr<CGPDFStringRef> value)
public static boolean CGPDFArrayGetArray(CGPDFArrayRef array, long index, org.moe.natj.general.ptr.Ptr<CGPDFArrayRef> value)
public static boolean CGPDFArrayGetDictionary(CGPDFArrayRef array, long index, org.moe.natj.general.ptr.Ptr<CGPDFDictionaryRef> value)
public static boolean CGPDFArrayGetStream(CGPDFArrayRef array, long index, org.moe.natj.general.ptr.Ptr<CGPDFStreamRef> value)
public static long CGPDFDictionaryGetCount(CGPDFDictionaryRef dict)
public static boolean CGPDFDictionaryGetObject(CGPDFDictionaryRef dict, java.lang.String key, org.moe.natj.general.ptr.Ptr<CGPDFObjectRef> value)
public static boolean CGPDFDictionaryGetBoolean(CGPDFDictionaryRef dict, java.lang.String key, org.moe.natj.general.ptr.BytePtr value)
public static boolean CGPDFDictionaryGetInteger(CGPDFDictionaryRef dict, java.lang.String key, org.moe.natj.general.ptr.NIntPtr value)
public static boolean CGPDFDictionaryGetNumber(CGPDFDictionaryRef dict, java.lang.String key, org.moe.natj.general.ptr.NFloatPtr value)
public static boolean CGPDFDictionaryGetName(CGPDFDictionaryRef dict, java.lang.String key, java.lang.String[] value)
public static boolean CGPDFDictionaryGetString(CGPDFDictionaryRef dict, java.lang.String key, org.moe.natj.general.ptr.Ptr<CGPDFStringRef> value)
public static boolean CGPDFDictionaryGetArray(CGPDFDictionaryRef dict, java.lang.String key, org.moe.natj.general.ptr.Ptr<CGPDFArrayRef> value)
public static boolean CGPDFDictionaryGetDictionary(CGPDFDictionaryRef dict, java.lang.String key, org.moe.natj.general.ptr.Ptr<CGPDFDictionaryRef> value)
public static boolean CGPDFDictionaryGetStream(CGPDFDictionaryRef dict, java.lang.String key, org.moe.natj.general.ptr.Ptr<CGPDFStreamRef> value)
public static void CGPDFDictionaryApplyFunction(CGPDFDictionaryRef dict, CoreGraphics.Function_CGPDFDictionaryApplyFunction function, org.moe.natj.general.ptr.VoidPtr info)
public static CGPDFPageRef CGPDFPageRetain(CGPDFPageRef page)
public static void CGPDFPageRelease(CGPDFPageRef page)
public static CGPDFDocumentRef CGPDFPageGetDocument(CGPDFPageRef page)
public static long CGPDFPageGetPageNumber(CGPDFPageRef page)
public static CGRect CGPDFPageGetBoxRect(CGPDFPageRef page, int box)
public static int CGPDFPageGetRotationAngle(CGPDFPageRef page)
public static CGAffineTransform CGPDFPageGetDrawingTransform(CGPDFPageRef page, int box, CGRect rect, int rotate, boolean preserveAspectRatio)
public static CGPDFDictionaryRef CGPDFPageGetDictionary(CGPDFPageRef page)
public static long CGPDFPageGetTypeID()
public static CGPDFDocumentRef CGPDFDocumentCreateWithProvider(CGDataProviderRef provider)
public static CGPDFDocumentRef CGPDFDocumentCreateWithURL(CFURLRef url)
public static CGPDFDocumentRef CGPDFDocumentRetain(CGPDFDocumentRef document)
public static void CGPDFDocumentRelease(CGPDFDocumentRef document)
public static void CGPDFDocumentGetVersion(CGPDFDocumentRef document, org.moe.natj.general.ptr.IntPtr majorVersion, org.moe.natj.general.ptr.IntPtr minorVersion)
public static boolean CGPDFDocumentIsEncrypted(CGPDFDocumentRef document)
public static boolean CGPDFDocumentUnlockWithPassword(CGPDFDocumentRef document, java.lang.String password)
public static boolean CGPDFDocumentIsUnlocked(CGPDFDocumentRef document)
public static boolean CGPDFDocumentAllowsPrinting(CGPDFDocumentRef document)
public static boolean CGPDFDocumentAllowsCopying(CGPDFDocumentRef document)
public static long CGPDFDocumentGetNumberOfPages(CGPDFDocumentRef document)
public static CGPDFPageRef CGPDFDocumentGetPage(CGPDFDocumentRef document, long pageNumber)
public static CGPDFDictionaryRef CGPDFDocumentGetCatalog(CGPDFDocumentRef document)
public static CGPDFDictionaryRef CGPDFDocumentGetInfo(CGPDFDocumentRef document)
public static CGPDFArrayRef CGPDFDocumentGetID(CGPDFDocumentRef document)
public static long CGPDFDocumentGetTypeID()
public static long CGFunctionGetTypeID()
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)
`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.
public static CGFunctionRef CGFunctionRetain(CGFunctionRef function)
public static void CGFunctionRelease(CGFunctionRef function)
public static long CGShadingGetTypeID()
public static CGShadingRef CGShadingCreateAxial(CGColorSpaceRef space, CGPoint start, CGPoint end, CGFunctionRef function, boolean extendStart, boolean extendEnd)
public static CGShadingRef CGShadingCreateRadial(CGColorSpaceRef space, CGPoint start, double startRadius, CGPoint end, double endRadius, CGFunctionRef function, boolean extendStart, boolean extendEnd)
public static CGShadingRef CGShadingRetain(CGShadingRef shading)
public static void CGShadingRelease(CGShadingRef shading)
public static long CGContextGetTypeID()
public static void CGContextSaveGState(CGContextRef c)
public static void CGContextRestoreGState(CGContextRef c)
public static void CGContextScaleCTM(CGContextRef c, double sx, double sy)
public static void CGContextTranslateCTM(CGContextRef c, double tx, double ty)
public static void CGContextRotateCTM(CGContextRef c, double angle)
public static void CGContextConcatCTM(CGContextRef c, CGAffineTransform transform)
public static CGAffineTransform CGContextGetCTM(CGContextRef c)
public static void CGContextSetLineWidth(CGContextRef c, double width)
public static void CGContextSetLineCap(CGContextRef c, int cap)
public static void CGContextSetLineJoin(CGContextRef c, int join)
public static void CGContextSetMiterLimit(CGContextRef c, double limit)
public static void CGContextSetLineDash(CGContextRef c, double phase, org.moe.natj.general.ptr.ConstNFloatPtr lengths, long count)
public static void CGContextSetFlatness(CGContextRef c, double flatness)
public static void CGContextSetAlpha(CGContextRef c, double alpha)
public static void CGContextSetBlendMode(CGContextRef c, int mode)
public static void CGContextBeginPath(CGContextRef c)
public static void CGContextMoveToPoint(CGContextRef c, double x, double y)
public static void CGContextAddLineToPoint(CGContextRef c, double x, double y)
public static void CGContextAddCurveToPoint(CGContextRef c, double cp1x, double cp1y, double cp2x, double cp2y, double x, double y)
public static void CGContextAddQuadCurveToPoint(CGContextRef c, double cpx, double cpy, double x, double y)
public static void CGContextClosePath(CGContextRef c)
public static void CGContextAddRect(CGContextRef c, CGRect rect)
public static void CGContextAddRects(CGContextRef c, CGRect rects, long count)
public static void CGContextAddLines(CGContextRef c, CGPoint points, long count)
public static void CGContextAddEllipseInRect(CGContextRef c, CGRect rect)
public static void CGContextAddArc(CGContextRef c, double x, double y, double radius, double startAngle, double endAngle, int clockwise)
public static void CGContextAddArcToPoint(CGContextRef c, double x1, double y1, double x2, double y2, double radius)
public static void CGContextAddPath(CGContextRef c, CGPathRef path)
public static void CGContextReplacePathWithStrokedPath(CGContextRef c)
public static boolean CGContextIsPathEmpty(CGContextRef c)
public static CGPoint CGContextGetPathCurrentPoint(CGContextRef c)
public static CGRect CGContextGetPathBoundingBox(CGContextRef c)
public static CGPathRef CGContextCopyPath(CGContextRef c)
public static boolean CGContextPathContainsPoint(CGContextRef c, CGPoint point, int mode)
public static void CGContextDrawPath(CGContextRef c, int mode)
public static void CGContextFillPath(CGContextRef c)
public static void CGContextEOFillPath(CGContextRef c)
public static void CGContextStrokePath(CGContextRef c)
public static void CGContextFillRect(CGContextRef c, CGRect rect)
public static void CGContextFillRects(CGContextRef c, CGRect rects, long count)
public static void CGContextStrokeRect(CGContextRef c, CGRect rect)
public static void CGContextStrokeRectWithWidth(CGContextRef c, CGRect rect, double width)
public static void CGContextClearRect(CGContextRef c, CGRect rect)
public static void CGContextFillEllipseInRect(CGContextRef c, CGRect rect)
public static void CGContextStrokeEllipseInRect(CGContextRef c, CGRect rect)
public static void CGContextStrokeLineSegments(CGContextRef c, CGPoint points, long count)
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);
public static void CGContextClip(CGContextRef c)
public static void CGContextEOClip(CGContextRef c)
public static void CGContextClipToMask(CGContextRef c, CGRect rect, CGImageRef mask)
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.
public static CGRect CGContextGetClipBoundingBox(CGContextRef c)
public static void CGContextClipToRect(CGContextRef c, CGRect rect)
public static void CGContextClipToRects(CGContextRef c, CGRect rects, long count)
public static void CGContextSetFillColorWithColor(CGContextRef c, CGColorRef color)
public static void CGContextSetStrokeColorWithColor(CGContextRef c, CGColorRef color)
public static void CGContextSetFillColorSpace(CGContextRef c, CGColorSpaceRef space)
public static void CGContextSetStrokeColorSpace(CGContextRef c, CGColorSpaceRef space)
public static void CGContextSetFillColor(CGContextRef c, org.moe.natj.general.ptr.ConstNFloatPtr components)
public static void CGContextSetStrokeColor(CGContextRef c, org.moe.natj.general.ptr.ConstNFloatPtr components)
public static void CGContextSetFillPattern(CGContextRef c, CGPatternRef pattern, org.moe.natj.general.ptr.ConstNFloatPtr components)
public static void CGContextSetStrokePattern(CGContextRef c, CGPatternRef pattern, org.moe.natj.general.ptr.ConstNFloatPtr components)
public static void CGContextSetPatternPhase(CGContextRef c, CGSize phase)
public static void CGContextSetGrayFillColor(CGContextRef c, double gray, double alpha)
public static void CGContextSetGrayStrokeColor(CGContextRef c, double gray, double alpha)
public static void CGContextSetRGBFillColor(CGContextRef c, double red, double green, double blue, double alpha)
public static void CGContextSetRGBStrokeColor(CGContextRef c, double red, double green, double blue, double alpha)
public static void CGContextSetCMYKFillColor(CGContextRef c, double cyan, double magenta, double yellow, double black, double alpha)
public static void CGContextSetCMYKStrokeColor(CGContextRef c, double cyan, double magenta, double yellow, double black, double alpha)
public static void CGContextSetRenderingIntent(CGContextRef c, int intent)
public static void CGContextDrawImage(CGContextRef c, CGRect rect, CGImageRef image)
public static void CGContextDrawTiledImage(CGContextRef c, CGRect rect, CGImageRef image)
public static int CGContextGetInterpolationQuality(CGContextRef c)
public static void CGContextSetInterpolationQuality(CGContextRef c, int quality)
public static void CGContextSetShadowWithColor(CGContextRef c, CGSize offset, double blur, CGColorRef color)
public static void CGContextSetShadow(CGContextRef c, CGSize offset, double blur)
public static void CGContextDrawLinearGradient(CGContextRef c, CGGradientRef gradient, CGPoint startPoint, CGPoint endPoint, int options)
public static void CGContextDrawRadialGradient(CGContextRef c, CGGradientRef gradient, CGPoint startCenter, double startRadius, CGPoint endCenter, double endRadius, int options)
public static void CGContextDrawShading(CGContextRef c, CGShadingRef shading)
public static void CGContextSetCharacterSpacing(CGContextRef c, double spacing)
public static void CGContextSetTextPosition(CGContextRef c, double x, double y)
public static CGPoint CGContextGetTextPosition(CGContextRef c)
public static void CGContextSetTextMatrix(CGContextRef c, CGAffineTransform t)
public static CGAffineTransform CGContextGetTextMatrix(CGContextRef c)
public static void CGContextSetTextDrawingMode(CGContextRef c, int mode)
public static void CGContextSetFont(CGContextRef c, CGFontRef font)
public static void CGContextSetFontSize(CGContextRef c, double size)
public static void CGContextShowGlyphsAtPositions(CGContextRef c, org.moe.natj.general.ptr.ConstCharPtr glyphs, CGPoint Lpositions, long count)
public static void CGContextDrawPDFPage(CGContextRef c, CGPDFPageRef page)
public static void CGContextBeginPage(CGContextRef c, CGRect mediaBox)
public static void CGContextEndPage(CGContextRef c)
public static CGContextRef CGContextRetain(CGContextRef c)
public static void CGContextRelease(CGContextRef c)
public static void CGContextFlush(CGContextRef c)
public static void CGContextSynchronize(CGContextRef c)
public static void CGContextSetShouldAntialias(CGContextRef c, boolean shouldAntialias)
public static void CGContextSetAllowsAntialiasing(CGContextRef c, boolean allowsAntialiasing)
public static void CGContextSetShouldSmoothFonts(CGContextRef c, boolean shouldSmoothFonts)
public static void CGContextSetAllowsFontSmoothing(CGContextRef c, boolean allowsFontSmoothing)
public static void CGContextSetShouldSubpixelPositionFonts(CGContextRef c, boolean shouldSubpixelPositionFonts)
public static void CGContextSetAllowsFontSubpixelPositioning(CGContextRef c, boolean allowsFontSubpixelPositioning)
public static void CGContextSetShouldSubpixelQuantizeFonts(CGContextRef c, boolean shouldSubpixelQuantizeFonts)
public static void CGContextSetAllowsFontSubpixelQuantization(CGContextRef c, boolean allowsFontSubpixelQuantization)
public static void CGContextBeginTransparencyLayer(CGContextRef c, CFDictionaryRef auxiliaryInfo)
public static void CGContextBeginTransparencyLayerWithRect(CGContextRef c, CGRect rect, CFDictionaryRef auxInfo)
public static void CGContextEndTransparencyLayer(CGContextRef c)
public static CGAffineTransform CGContextGetUserSpaceToDeviceSpaceTransform(CGContextRef c)
public static CGPoint CGContextConvertPointToDeviceSpace(CGContextRef c, CGPoint point)
public static CGPoint CGContextConvertPointToUserSpace(CGContextRef c, CGPoint point)
public static CGSize CGContextConvertSizeToDeviceSpace(CGContextRef c, CGSize size)
public static CGSize CGContextConvertSizeToUserSpace(CGContextRef c, CGSize size)
public static CGRect CGContextConvertRectToDeviceSpace(CGContextRef c, CGRect rect)
public static CGRect CGContextConvertRectToUserSpace(CGContextRef c, CGRect rect)
@Deprecated public static void CGContextSelectFont(CGContextRef c, java.lang.String name, double size, int textEncoding)
@Deprecated public static void CGContextShowText(CGContextRef c, java.lang.String string, long length)
@Deprecated public static void CGContextShowTextAtPoint(CGContextRef c, double x, double y, java.lang.String string, long length)
@Deprecated public static void CGContextShowGlyphs(CGContextRef c, org.moe.natj.general.ptr.ConstCharPtr g, long count)
@Deprecated public static void CGContextShowGlyphsAtPoint(CGContextRef c, double x, double y, org.moe.natj.general.ptr.ConstCharPtr glyphs, long count)
@Deprecated public static void CGContextShowGlyphsWithAdvances(CGContextRef c, org.moe.natj.general.ptr.ConstCharPtr glyphs, CGSize advances, long count)
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)
public static CGContextRef CGBitmapContextCreate(org.moe.natj.general.ptr.VoidPtr data, long width, long height, long bitsPerComponent, long bytesPerRow, CGColorSpaceRef space, int bitmapInfo)
public static org.moe.natj.general.ptr.VoidPtr CGBitmapContextGetData(CGContextRef context)
public static long CGBitmapContextGetWidth(CGContextRef context)
public static long CGBitmapContextGetHeight(CGContextRef context)
public static long CGBitmapContextGetBitsPerComponent(CGContextRef context)
public static long CGBitmapContextGetBitsPerPixel(CGContextRef context)
public static long CGBitmapContextGetBytesPerRow(CGContextRef context)
public static CGColorSpaceRef CGBitmapContextGetColorSpace(CGContextRef context)
public static int CGBitmapContextGetAlphaInfo(CGContextRef context)
public static int CGBitmapContextGetBitmapInfo(CGContextRef context)
public static CGImageRef CGBitmapContextCreateImage(CGContextRef context)
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.
public static long CGColorConversionInfoGetTypeID()
public static CGColorConversionInfoRef CGColorConversionInfoCreate(CGColorSpaceRef src, CGColorSpaceRef dst)
public static CGColorConversionInfoRef CGColorConversionInfoCreateFromList(CFDictionaryRef options, CGColorSpaceRef arg2, int arg3, int arg4, java.lang.Object... varargs)
public static long CGDataConsumerGetTypeID()
public static CGDataConsumerRef CGDataConsumerCreate(org.moe.natj.general.ptr.VoidPtr info, CGDataConsumerCallbacks cbks)
public static CGDataConsumerRef CGDataConsumerCreateWithURL(CFURLRef url)
public static CGDataConsumerRef CGDataConsumerCreateWithCFData(CFMutableDataRef data)
public static CGDataConsumerRef CGDataConsumerRetain(CGDataConsumerRef consumer)
public static void CGDataConsumerRelease(CGDataConsumerRef consumer)
public static CGLayerRef CGLayerCreateWithContext(CGContextRef context, CGSize size, CFDictionaryRef auxiliaryInfo)
public static CGLayerRef CGLayerRetain(CGLayerRef layer)
public static void CGLayerRelease(CGLayerRef layer)
public static CGSize CGLayerGetSize(CGLayerRef layer)
public static CGContextRef CGLayerGetContext(CGLayerRef layer)
public static void CGContextDrawLayerInRect(CGContextRef context, CGRect rect, CGLayerRef layer)
public static void CGContextDrawLayerAtPoint(CGContextRef context, CGPoint point, CGLayerRef layer)
public static long CGLayerGetTypeID()
public static CGPDFContentStreamRef CGPDFContentStreamCreateWithPage(CGPDFPageRef page)
public static CGPDFContentStreamRef CGPDFContentStreamCreateWithStream(CGPDFStreamRef stream, CGPDFDictionaryRef streamResources, CGPDFContentStreamRef parent)
public static CGPDFContentStreamRef CGPDFContentStreamRetain(CGPDFContentStreamRef cs)
public static void CGPDFContentStreamRelease(CGPDFContentStreamRef cs)
public static CFArrayRef CGPDFContentStreamGetStreams(CGPDFContentStreamRef cs)
public static CGPDFObjectRef CGPDFContentStreamGetResource(CGPDFContentStreamRef cs, java.lang.String category, java.lang.String name)
public static CGContextRef CGPDFContextCreate(CGDataConsumerRef consumer, CGRect mediaBox, CFDictionaryRef auxiliaryInfo)
public static CGContextRef CGPDFContextCreateWithURL(CFURLRef url, CGRect mediaBox, CFDictionaryRef auxiliaryInfo)
public static void CGPDFContextClose(CGContextRef context)
public static void CGPDFContextBeginPage(CGContextRef context, CFDictionaryRef pageInfo)
public static void CGPDFContextEndPage(CGContextRef context)
public static void CGPDFContextAddDocumentMetadata(CGContextRef context, CFDataRef metadata)
public static void CGPDFContextSetURLForRect(CGContextRef context, CFURLRef url, CGRect rect)
public static void CGPDFContextAddDestinationAtPoint(CGContextRef context, CFStringRef name, CGPoint point)
public static void CGPDFContextSetDestinationForRect(CGContextRef context, CFStringRef name, CGRect rect)
public static CGPDFScannerRef CGPDFScannerCreate(CGPDFContentStreamRef cs, CGPDFOperatorTableRef table, org.moe.natj.general.ptr.VoidPtr info)
public static CGPDFScannerRef CGPDFScannerRetain(CGPDFScannerRef scanner)
public static void CGPDFScannerRelease(CGPDFScannerRef scanner)
public static boolean CGPDFScannerScan(CGPDFScannerRef scanner)
public static CGPDFContentStreamRef CGPDFScannerGetContentStream(CGPDFScannerRef scanner)
public static boolean CGPDFScannerPopObject(CGPDFScannerRef scanner, org.moe.natj.general.ptr.Ptr<CGPDFObjectRef> value)
public static boolean CGPDFScannerPopBoolean(CGPDFScannerRef scanner, org.moe.natj.general.ptr.BytePtr value)
public static boolean CGPDFScannerPopInteger(CGPDFScannerRef scanner, org.moe.natj.general.ptr.NIntPtr value)
public static boolean CGPDFScannerPopNumber(CGPDFScannerRef scanner, org.moe.natj.general.ptr.NFloatPtr value)
public static boolean CGPDFScannerPopName(CGPDFScannerRef scanner, java.lang.String[] value)
public static boolean CGPDFScannerPopString(CGPDFScannerRef scanner, org.moe.natj.general.ptr.Ptr<CGPDFStringRef> value)
public static boolean CGPDFScannerPopArray(CGPDFScannerRef scanner, org.moe.natj.general.ptr.Ptr<CGPDFArrayRef> value)
public static boolean CGPDFScannerPopDictionary(CGPDFScannerRef scanner, org.moe.natj.general.ptr.Ptr<CGPDFDictionaryRef> value)
public static boolean CGPDFScannerPopStream(CGPDFScannerRef scanner, org.moe.natj.general.ptr.Ptr<CGPDFStreamRef> value)
public static CGPDFOperatorTableRef CGPDFOperatorTableCreate()
public static CGPDFOperatorTableRef CGPDFOperatorTableRetain(CGPDFOperatorTableRef table)
public static void CGPDFOperatorTableRelease(CGPDFOperatorTableRef table)
public static void CGPDFOperatorTableSetCallback(CGPDFOperatorTableRef table, java.lang.String name, CoreGraphics.Function_CGPDFOperatorTableSetCallback callback)
public static CGPoint CGPointZero()
public static CGSize CGSizeZero()
public static CGRect CGRectZero()
public static CGRect CGRectNull()
public static CGRect CGRectInfinite()
public static CGAffineTransform CGAffineTransformIdentity()
public static CFStringRef kCGColorSpaceGenericGray()
public static CFStringRef kCGColorSpaceGenericRGB()
public static CFStringRef kCGColorSpaceGenericCMYK()
public static CFStringRef kCGColorSpaceDisplayP3()
public static CFStringRef kCGColorSpaceGenericRGBLinear()
public static CFStringRef kCGColorSpaceAdobeRGB1998()
public static CFStringRef kCGColorSpaceSRGB()
public static CFStringRef kCGColorSpaceGenericGrayGamma2_2()
public static CFStringRef kCGColorSpaceGenericXYZ()
public static CFStringRef kCGColorSpaceACESCGLinear()
public static CFStringRef kCGColorSpaceITUR_709()
public static CFStringRef kCGColorSpaceITUR_2020()
public static CFStringRef kCGColorSpaceROMMRGB()
public static CFStringRef kCGColorSpaceDCIP3()
public static CFStringRef kCGColorSpaceExtendedSRGB()
public static CFStringRef kCGColorSpaceLinearSRGB()
public static CFStringRef kCGColorSpaceExtendedLinearSRGB()
public static CFStringRef kCGColorSpaceExtendedGray()
public static CFStringRef kCGColorSpaceLinearGray()
public static CFStringRef kCGColorSpaceExtendedLinearGray()
public static CFStringRef kCGFontVariationAxisName()
public static CFStringRef kCGFontVariationAxisMinValue()
public static CFStringRef kCGFontVariationAxisMaxValue()
public static CFStringRef kCGFontVariationAxisDefaultValue()
public static CFStringRef kCGColorConversionBlackPointCompensation()
public static CFStringRef kCGPDFContextMediaBox()
public static CFStringRef kCGPDFContextCropBox()
public static CFStringRef kCGPDFContextBleedBox()
public static CFStringRef kCGPDFContextTrimBox()
public static CFStringRef kCGPDFContextArtBox()
public static CFStringRef kCGPDFContextTitle()
public static CFStringRef kCGPDFContextAuthor()
public static CFStringRef kCGPDFContextSubject()
public static CFStringRef kCGPDFContextKeywords()
public static CFStringRef kCGPDFContextCreator()
public static CFStringRef kCGPDFContextOwnerPassword()
If the value of this key cannot be represented in ASCII, the document will not be created and the creation function will return NULL.
public static CFStringRef kCGPDFContextUserPassword()
If the value of this key cannot be represented in ASCII, the document will not be created and the creation function will return NULL.
public static CFStringRef kCGPDFContextEncryptionKeyLength()
public static CFStringRef kCGPDFContextAllowsPrinting()
public static CFStringRef kCGPDFContextAllowsCopying()
public static org.moe.natj.general.ptr.VoidPtr CGDataProviderGetInfo(CGDataProviderRef provider)
public static CGColorSpaceRef CGColorSpaceCreateWithICCData(org.moe.natj.general.ptr.ConstVoidPtr data)
public static CFStringRef CGColorSpaceGetName(CGColorSpaceRef space)
public static void CGPathApplyWithBlock(CGPathRef path, CoreGraphics.Block_CGPathApplyWithBlock block)
public static CFDictionaryRef CGPDFDocumentGetOutline(CGPDFDocumentRef document)
public static int CGPDFDocumentGetAccessPermissions(CGPDFDocumentRef document)
public static void CGContextResetClip(CGContextRef c)
public static CGColorConversionInfoRef CGColorConversionInfoCreateFromListWithArguments(CFDictionaryRef options, CGColorSpaceRef arg2, int arg3, int arg4, org.moe.natj.general.ptr.BytePtr arg5)
public static void CGPDFContextSetOutline(CGContextRef context, CFDictionaryRef outline)
public static CFStringRef kCGColorSpaceGenericLab()
public static CFStringRef kCGPDFOutlineTitle()
public static CFStringRef kCGPDFOutlineChildren()
public static CFStringRef kCGPDFOutlineDestination()
public static CFStringRef kCGPDFOutlineDestinationRect()
public static CFStringRef kCGColorConversionTRCSize()
public static CFStringRef kCGPDFContextAccessPermissions()
public static boolean CGColorSpaceIsHDR(CGColorSpaceRef arg1)
public static org.moe.natj.general.ptr.ConstVoidPtr CGColorSpaceCopyPropertyList(CGColorSpaceRef space)
public static CGColorSpaceRef CGColorSpaceCreateWithPropertyList(org.moe.natj.general.ptr.ConstVoidPtr plist)
public static CGColorRef CGColorCreateGenericGrayGamma2_2(double gray, double alpha)
public static CGColorRef CGColorCreateSRGB(double red, double green, double blue, double alpha)
public static int CGImageGetByteOrderInfo(CGImageRef image)
public static int CGImageGetPixelFormatInfo(CGImageRef image)
public static void CGPDFArrayApplyBlock(CGPDFArrayRef array, CoreGraphics.Block_CGPDFArrayApplyBlock block, org.moe.natj.general.ptr.VoidPtr info)
public static void CGPDFDictionaryApplyBlock(CGPDFDictionaryRef dict, CoreGraphics.Block_CGPDFDictionaryApplyBlock block, org.moe.natj.general.ptr.VoidPtr info)
public static CGColorConversionInfoRef CGColorConversionInfoCreateWithOptions(CGColorSpaceRef src, CGColorSpaceRef dst, CFDictionaryRef options)
public static java.lang.String CGPDFTagTypeGetName(int tagType)
public static void CGPDFContextBeginTag(CGContextRef context, int tagType, CFDictionaryRef tagProperties)
public static void CGPDFContextEndTag(CGContextRef context)
public static CFStringRef kCGColorSpaceExtendedLinearITUR_2020()
public static CFStringRef kCGColorSpaceExtendedLinearDisplayP3()
public static CFStringRef kCGColorSpaceITUR_2020_PQ_EOTF()
public static CFStringRef kCGColorSpaceDisplayP3_PQ_EOTF()
public static CFStringRef kCGColorSpaceDisplayP3_HLG()
public static CFStringRef kCGColorSpaceITUR_2020_HLG()
public static CFStringRef kCGPDFTagPropertyActualText()
public static CFStringRef kCGPDFTagPropertyAlternativeText()
public static CFStringRef kCGPDFTagPropertyTitleText()
public static CFStringRef kCGPDFTagPropertyLanguageText()
public static CFStringRef kCGColorSpaceITUR_2020_PQ()
public static CFStringRef kCGColorSpaceDisplayP3_PQ()
public static boolean CGColorSpaceUsesExtendedRange(CGColorSpaceRef space)
public static CGColorRef CGColorCreateGenericGray(double gray, double alpha)
public static CGColorRef CGColorCreateGenericRGB(double red, double green, double blue, double alpha)
public static CGColorRef CGColorCreateGenericCMYK(double cyan, double magenta, double yellow, double black, double alpha)
public static CGColorRef CGColorGetConstantColor(CFStringRef colorName)
public static CFStringRef kCGColorSpaceITUR_2100_PQ()
public static CFStringRef kCGColorSpaceITUR_2100_HLG()
public static CFStringRef kCGColorWhite()
public static CFStringRef kCGColorBlack()
public static CFStringRef kCGColorClear()
public static CFStringRef kCGPDFContextOutputIntent()
public static CFStringRef kCGPDFXOutputIntentSubtype()
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.
public static CFStringRef kCGPDFXOutputConditionIdentifier()
public static CFStringRef kCGPDFXOutputCondition()
public static CFStringRef kCGPDFXRegistryName()
public static CFStringRef kCGPDFXInfo()
public static CFStringRef kCGPDFXDestinationOutputProfile()
public static CFStringRef kCGPDFContextOutputIntents()
public static CFStringRef kCGPDFContextCreateLinearizedPDF()
public static CFStringRef kCGPDFContextCreatePDFA()
public static boolean CGColorSpaceUsesITUR_2100TF(CGColorSpaceRef arg1)
public static CGColorSpaceRef CGColorSpaceCreateLinearized(CGColorSpaceRef space)
public static CGColorSpaceRef CGColorSpaceCreateExtended(CGColorSpaceRef space)
public static CGColorSpaceRef CGColorSpaceCreateExtendedLinearized(CGColorSpaceRef space)
public static CFStringRef kCGColorSpaceExtendedITUR_2020()
public static CFStringRef kCGColorSpaceExtendedDisplayP3()
public static CGColorSpaceRef CGColorSpaceCreateWithColorSyncProfile(ColorSyncProfileRef arg1, CFDictionaryRef options)
public static boolean CGColorSpaceIsPQBased(CGColorSpaceRef s)
public static boolean CGColorSpaceIsHLGBased(CGColorSpaceRef s)
public static boolean CGConvertColorDataWithFormat(long width,
long height,
org.moe.natj.general.ptr.VoidPtr dst_data,
CGColorDataFormat dst_format,
org.moe.natj.general.ptr.VoidPtr src_data,
CGColorDataFormat src_format,
CFDictionaryRef options)
public static void CGErrorSetCallback(CoreGraphics.Function_CGErrorSetCallback callback)
public static CFStringRef kCGColorSpaceLinearITUR_2020()
public static CFStringRef kCGColorSpaceLinearDisplayP3()
public static CFStringRef kCGColorSpaceExtendedRange()
public static CFStringRef kCGColorSpaceITUR_709_PQ()
public static CFStringRef kCGColorSpaceITUR_2020_sRGBGamma()