Platforms to show: All Mac Windows Linux Cross-Platform

NSGraphicsMBS.NSCompositeClear=0
Type Topic Plugin Version
const Cocoa Drawing MBS MacCocoa Plugin 7.7
Function: Transparent. (R = 0)

Feedback, Comments & Corrections

NSGraphicsMBS.NSCompositeCopy=1
Type Topic Plugin Version
const Cocoa Drawing MBS MacCocoa Plugin 7.7
Function: Source image. (R = S)

Feedback, Comments & Corrections

NSGraphicsMBS.NSCompositeDestinationAtop=9
Type Topic Plugin Version
const Cocoa Drawing MBS MacCocoa Plugin 7.7
Function: Destination image wherever both images are opaque, source image wherever source image is opaque but destination image is transparent, and transparent elsewhere. (R = S*(1 - Da) + D*Sa)

Feedback, Comments & Corrections

NSGraphicsMBS.NSCompositeDestinationIn=7
Type Topic Plugin Version
const Cocoa Drawing MBS MacCocoa Plugin 7.7
Function: Destination image wherever both images are opaque, and transparent elsewhere. (R = D*Sa)

Feedback, Comments & Corrections

NSGraphicsMBS.NSCompositeDestinationOut=8
Type Topic Plugin Version
const Cocoa Drawing MBS MacCocoa Plugin 7.7
Function: Destination image wherever destination image is opaque but source image is transparent, and transparent elsewhere. (R = D*(1 - Sa))

Feedback, Comments & Corrections

NSGraphicsMBS.NSCompositeDestinationOver=6
Type Topic Plugin Version
const Cocoa Drawing MBS MacCocoa Plugin 7.7
Function: Destination image wherever destination image is opaque, and source image elsewhere. (R = S*(1 - Da) + D)

Feedback, Comments & Corrections

NSGraphicsMBS.NSCompositeHighlight=12
Type Topic Plugin Version
const Cocoa Drawing MBS MacCocoa Plugin 7.7
Function: Source image wherever source image is opaque, and destination image elsewhere. (Deprecated. Mapped to NSCompositeSourceOver.)

Feedback, Comments & Corrections

NSGraphicsMBS.NSCompositePlusDarker=11
Type Topic Plugin Version
const Cocoa Drawing MBS MacCocoa Plugin 7.7
Function: Sum of source and destination images, with color values approaching 0 as a limit. (R = MAX(0, (1 - D) + (1 - S)))

Feedback, Comments & Corrections

NSGraphicsMBS.NSCompositePlusLighter=13
Type Topic Plugin Version
const Cocoa Drawing MBS MacCocoa Plugin 7.7
Function: Sum of source and destination images, with color values approaching 1 as a limit. (R = MIN(1, S + D))

Feedback, Comments & Corrections

NSGraphicsMBS.NSCompositeSourceAtop=5
Type Topic Plugin Version
const Cocoa Drawing MBS MacCocoa Plugin 7.7
Function: Source image wherever both images are opaque, destination image wherever destination image is opaque but source image is transparent, and transparent elsewhere. (R = S*Da + D*(1 - Sa))

Feedback, Comments & Corrections

NSGraphicsMBS.NSCompositeSourceIn=3
Type Topic Plugin Version
const Cocoa Drawing MBS MacCocoa Plugin 7.7
Function: Source image wherever both images are opaque, and transparent elsewhere. (R = S*Da)

Feedback, Comments & Corrections

NSGraphicsMBS.NSCompositeSourceOut=4
Type Topic Plugin Version
const Cocoa Drawing MBS MacCocoa Plugin 7.7
Function: Source image wherever source image is opaque but destination image is transparent, and transparent elsewhere. (R = S*(1 - Da))

Feedback, Comments & Corrections

NSGraphicsMBS.NSCompositeSourceOver=2
Type Topic Plugin Version
const Cocoa Drawing MBS MacCocoa Plugin 7.7
Function: Source image wherever source image is opaque, and destination image elsewhere. (R = S + D*(1 - Sa))

Feedback, Comments & Corrections

NSGraphicsMBS.NSCompositeXOR=10
Type Topic Plugin Version
const Cocoa Drawing MBS MacCocoa Plugin 7.7
Function: Exclusive OR of source and destination images. (R = S*(1 - Da) + D*(1 - Sa))
Notes: Works only with black and white images and is not recommended for color contexts.

Feedback, Comments & Corrections

NSGraphicsMBS.NSImageInterpolationDefault=0
Type Topic Plugin Version
const Cocoa Drawing MBS MacCocoa Plugin 10.3
Function: One of the interpolation contants.
Notes: Use the context's default interpolation.

Feedback, Comments & Corrections

NSGraphicsMBS.NSImageInterpolationHigh=3
Type Topic Plugin Version
const Cocoa Drawing MBS MacCocoa Plugin 10.3
Function: One of the interpolation contants.
Notes: Slower, higher-quality interpolation.

Feedback, Comments & Corrections

NSGraphicsMBS.NSImageInterpolationLow=2
Type Topic Plugin Version
const Cocoa Drawing MBS MacCocoa Plugin 10.3
Function: One of the interpolation contants.
Notes: Fast, low-quality interpolation.

Feedback, Comments & Corrections

NSGraphicsMBS.NSImageInterpolationMedium=4
Type Topic Plugin Version
const Cocoa Drawing MBS MacCocoa Plugin 10.3
Function: One of the interpolation contants.
Notes:
Medium quality, slower than NSImageInterpolationLow.
Available in Mac OS X v10.6 and later.

Feedback, Comments & Corrections

NSGraphicsMBS.NSImageInterpolationNone=1
Type Topic Plugin Version
const Cocoa Drawing MBS MacCocoa Plugin 10.3
Function: One of the interpolation contants.
Notes: No interpolation.

Feedback, Comments & Corrections

NSGraphicsMBS.NSStringDrawingDisableScreenFontSubstitution = 4
Type Topic Plugin Version
const Cocoa Drawing MBS MacCocoa Plugin 11.3
Function: One of the drawing option constants.
Notes: Disable screen font substitution (equivalent to NSLayoutManager.setUsesScreenFonts(false)).

Feedback, Comments & Corrections

NSGraphicsMBS.NSStringDrawingOneShot = 16
Type Topic Plugin Version
const Cocoa Drawing MBS MacCocoa Plugin 11.3
Function: One of the drawing option constants.
Notes: Suppresses caching layout information.

Feedback, Comments & Corrections

NSGraphicsMBS.NSStringDrawingTruncatesLastVisibleLine = 32
Type Topic Plugin Version
const Cocoa Drawing MBS MacCocoa Plugin 11.3
Function: One of the drawing option constants.
Notes:
Truncates and adds the ellipsis character to the last visible line if the text doesn't fit into the bounds specified.
This option is ignored if NSStringDrawingUsesLineFragmentOrigin is not also set. In addition, the line break mode must be either NSLineBreakByWordWrapping or NSLineBreakByCharWrapping for this option to take effect. The line break mode can be specified in a paragraph style passed in the attributes dictionary argument of the drawing methods.
Available in Mac OS X v10.5 and later.

Feedback, Comments & Corrections

NSGraphicsMBS.NSStringDrawingUsesDeviceMetrics = 8
Type Topic Plugin Version
const Cocoa Drawing MBS MacCocoa Plugin 11.3
Function: One of the drawing option constants.
Notes: Uses image glyph bounds instead of typographic bounds.

Feedback, Comments & Corrections

NSGraphicsMBS.NSStringDrawingUsesFontLeading = 2
Type Topic Plugin Version
const Cocoa Drawing MBS MacCocoa Plugin 11.3
Function: One of the drawing option constants.
Notes: Uses the font leading for calculating line heights.

Feedback, Comments & Corrections

NSGraphicsMBS.NSStringDrawingUsesLineFragmentOrigin = 1
Type Topic Plugin Version
const Cocoa Drawing MBS MacCocoa Plugin 11.3
Function: One of the drawing option constants.
Example:
// create Hello World in red
dim a as NSAttributedStringMBS = NSAttributedStringMBS.attributedStringWithString("Hello World")
dim m as NSMutableAttributedStringMBS = a.mutableCopy

m.addAttribute(a.NSForegroundColorAttributeName, NSColorMBS.redColor, new NSRangeMBS(0, m.length))

// put it in a textarea
TextArea1.NSTextViewMBS.textStorage.setAttributedString m

// draw in Canvas
dim g as new NSGraphicsMBS(Canvas1.NSViewMBS)

g.drawWithRect m, new NSRectMBS(20,20, 100, 100), g.NSStringDrawingUsesLineFragmentOrigin
Notes: The specified origin is the line fragment origin, not the baseline origin.

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS MacCocoa Plugin.

The biggest plugin in space...




Links
MBS FileMaker Plugins