Class StackWriteAttributesFactory
Object
StackWriteAttributesFactory
Creates
StackWriteAttributes to describe certain attributes.- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic StackWriteAttributesbinaryChannel(boolean always2D) AStackWriteAttributeswhich is always a binary-channel, and depending on a flag, may be guaranteed to be 2D.static StackWriteAttributesThe options that narrowly describe a stack as possible.static StackWriteAttributesmaybeAlways2D(boolean always2D) AStackWriteAttributeswhich, depending on a flag, may be guaranteed to be 2D.static StackWriteAttributesmaybeRGB(boolean rgb, boolean always2D, boolean plusAlpha) AStackWriteAttributeswhich depending on a flags, may be RGB/RGBA or not, may be guaranteed to be 2D or not.static StackWriteAttributesmaybeRGBWithoutAlpha(boolean rgb) AStackWriteAttributeswhich depending on a flags, may be RGB or not.static StackWriteAttributesrgb(boolean always2D, boolean plusAlpha) AStackWriteAttributeswhich is always RGB, and depending on a flag, may be guaranteed to be 2D.static StackWriteAttributesrgbMaybe3D(boolean plusAlpha) AStackWriteAttributeswhich is always RGB/RGBA, and is not guaranteed to be 2D.static StackWriteAttributessingleChannelMaybe3D(boolean always2D) AStackWriteAttributeswhich is always a single-channel, and depending on a flag, may be guaranteed to be 2D.
-
Method Details
-
maybeAlways2D
AStackWriteAttributeswhich, depending on a flag, may be guaranteed to be 2D.- Parameters:
always2D- when true, this indicates that the stack is guaranteed to be always 2D.- Returns:
- a newly created
StackWriteAttributes.
-
rgbMaybe3D
AStackWriteAttributeswhich is always RGB/RGBA, and is not guaranteed to be 2D.- Parameters:
plusAlpha- when true, this indicates RGBA. when false, RGB.- Returns:
- a newly created
StackWriteAttributes.
-
binaryChannel
AStackWriteAttributeswhich is always a binary-channel, and depending on a flag, may be guaranteed to be 2D.- Parameters:
always2D- when true, this indicates that the stack is guaranteed to be always 2D.- Returns:
- a newly created
StackWriteAttributes.
-
singleChannelMaybe3D
AStackWriteAttributeswhich is always a single-channel, and depending on a flag, may be guaranteed to be 2D.- Parameters:
always2D- when true, this indicates that the stack is guaranteed to be always 2D.- Returns:
- a newly created
StackWriteAttributes.
-
maybeRGB
AStackWriteAttributeswhich depending on a flags, may be RGB/RGBA or not, may be guaranteed to be 2D or not.- Parameters:
rgb- when true, this indicates RGB or RGBA image.always2D- when true, this indicates that the stack is guaranteed to be always 2D.plusAlpha- when true, this indicates RGBA. when false, RGB. Only relevant whenrgb==true.- Returns:
- a newly created
StackWriteAttributes.
-
maybeRGBWithoutAlpha
AStackWriteAttributeswhich depending on a flags, may be RGB or not.- Parameters:
rgb- when true, this indicates an RGB image (but never RGBA).- Returns:
- a newly created
StackWriteAttributes.
-
rgb
AStackWriteAttributeswhich is always RGB, and depending on a flag, may be guaranteed to be 2D.- Parameters:
always2D- when true, this indicates that the stack is guaranteed to be always 2D.plusAlpha- when true, this indicates RGBA. when false, RGB.- Returns:
- a newly created
StackWriteAttributes.
-
from
The options that narrowly describe a stack as possible.- Parameters:
stack- the stack to derive options from.- Returns:
- options that narrowly describe
stack.
-