PsBlackAndWhite class final
Black-and-white conversion settings, stored as an Action Descriptor.
The descriptor is kept whole, so unknown items round-trip; the getters read the documented ones.
- Inheritance
-
- Object
- PsAdjustmentSettings
- PsBlackAndWhite
Constructors
- PsBlackAndWhite({required PsDescriptor descriptor, int version = 16, Uint8List? trailingData})
-
Wraps a decoded settings
descriptor. - PsBlackAndWhite.create({int red = 40, int yellow = 60, int green = 40, int cyan = 60, int blue = 20, int magenta = 80, bool useTint = false, PsColor? tintColor, int presetKind = 2, String presetFileName = ''})
-
Creates settings the way Photoshop's dialog writes them.
factory
Properties
- blue → int
-
Contribution of blues, in percent.
no setter
- cyan → int
-
Contribution of cyans, in percent.
no setter
- descriptor → PsDescriptor
-
Complete settings descriptor.
final
- green → int
-
Contribution of greens, in percent.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- magenta → int
-
Contribution of magentas, in percent.
no setter
- presetFileName → String?
-
File the settings were loaded from, when stored.
no setter
- presetKind → int?
-
Photoshop's
bwPresetKind, when stored.no setter - red → int
-
Contribution of reds to the gray value, in percent.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tintColor → PsColor?
-
Tint colour, when stored.
no setter
- trailingData → Uint8List
-
Uninterpreted bytes following the descriptor.
final
- useTint → bool
-
Whether the result is tinted with tintColor.
no setter
- version → int
-
Action Descriptor version, normally 16.
final
- yellow → int
-
Contribution of yellows, in percent.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited