DrawKit
Vector and illustration framework for Mac OS X
|
generic interface and simple quantizer which performs uniform quantization. More...
Instance Methods | |
(void) | - analyse: |
(NSColor *) | - colourForIndex: |
(NSArray *) | - colourTable |
(NSUInteger) | - indexForRGB: |
(id) | - initWithBitmapImageRep:maxColours:colourBits: |
(NSInteger) | - numberOfColours |
![]() | |
(NSString *) | - address |
(DKStyleRegistry *) | - applicationWillReturnStyleRegistry |
(BOOL) | - canBeUsedWithSelectionTool |
(id) | - categoryManager:shouldReplaceObject:withObject: |
(Class) | - classForCoder |
(NSColor *) | - colorValue |
(NSColor *) | - colourValue |
(id) | - copy |
(void) | - dealloc |
(id) | - deepCopy |
(NSDictionary *) | - dimensionValuesForArrowStroke: |
(CGFloat) | - drawing:convertDistanceToExternalCoordinates: |
(NSPoint) | - drawing:convertLocationToExternalCoordinates: |
(void) | - drawing:didDrawRect:inView: |
(void) | - drawing:willDrawRect:inView: |
(NSString *) | - drawing:willReturnAbbreviationForUnit: |
(NSString *) | - drawing:willReturnFormattedCoordinateForDistance: |
(CGFloat) | - drawingWillReturnUnitToPointsConversonFactor: |
(void) | - finalize |
(NSString *) | - hexString |
(void) | - hotspot:didEndTrackingWithEvent:inView: |
(void) | - hotspot:isTrackingWithEvent:inView: |
(void) | - hotspot:willBeginTrackingWithEvent:inView: |
(NSData *) | - imageData |
(NSImage *) | - imageResourceNamed: |
(id) | - init |
(id) | - initWithExpression: |
(id) | - instantiateObjectWithShortName:parameters: |
(BOOL) | - isLiteralValue |
(void) | - layoutManager:willPlaceGlyphAtIndex:atLocation:pathAngle:yOffset: |
(void) | - menuItem:wasAddedForObject:inCategory: |
(BOOL) | - moveObjectTo:position:slope:userInfo: |
(id) | - mutableCopy |
(void) | - oneShotComplete |
(void) | - oneShotHasReached: |
(void) | - oneShotWillBegin |
(void) | - path:elementIndex:type:points:subPathIndex:subPathClosed:contextInfo: |
(id) | - placeLinkFromPoint:toPoint:onPath:linkNumber:userInfo: |
(id) | - placeObjectAtPoint:onPath:position:slope:userInfo: |
(NSPoint) | - point |
(NSPoint) | - pointForTextLayout |
(DKStyle *) | - registry:shouldReplaceStyle:withStyle: |
(NSBezierPath *) | - renderer:willRenderPath: |
(void) | - routeFinder:progressHasReached: |
(void) | - setValue:forNumericParameter: |
(NSString *) | - stringValue |
(CGFloat) | - taperFactorAtDistance:onPath:ofLength: |
(void) | - toolDidPerformUndoableAction: |
(void) | - toolWillPerformUndoableAction: |
(NSURL *) | - url |
![]() | |
(NSString *) | - description |
(NSUInteger) | - hash |
(BOOL) | - isEqual: |
![]() | |
(void) | - bind:toObject:withKeyPath:options: |
(NSArray *) | - exposedBindings |
(NSDictionary *) | - infoForBinding: |
(NSArray *) | - optionDescriptionsForBinding: |
(void) | - unbind: |
(Class) | - valueClassForBinding: |
Protected Attributes | |
NSMutableArray * | m_cTable |
NSSize | m_imageSize |
NSUInteger | m_maxColours |
NSUInteger | m_nBits |
Additional Inherited Members | |
![]() | |
(id) | + alloc |
(Class) | + class |
(void) | + initialize |
(void) | + load |
(id) | + new |
![]() | |
(void) | + exposeBinding: |
generic interface and simple quantizer which performs uniform quantization.
s Results with this quantizer are generally only barely acceptable - colours may be mapped to something grossly different from the original since this does not take any notice of the pixels actually used in the image, only the basic size of the RGB colour space it is given.
- (void) analyse: | (NSBitmapImageRep *) | rep |
- (NSColor*) colourForIndex: | (NSUInteger) | index |
- (NSArray*) colourTable |
- (NSUInteger) indexForRGB: | (NSUInteger[]) | rgb |
- (id) initWithBitmapImageRep: | (NSBitmapImageRep *) | rep | |
maxColours: | (NSUInteger) | maxColours | |
colourBits: | (NSUInteger) | nBits | |
- (NSInteger) numberOfColours |
|
protected |
|
protected |
|
protected |
|
protected |