public class StackWriteAttributesFactory extends Object
StackWriteAttributes
to describe certain attributes.Modifier and Type | Method and Description |
---|---|
static StackWriteAttributes |
binaryChannel(boolean always2D)
A
StackWriteAttributes which is always a binary-channel, and depending on a
flag, may be guaranteed to be 2D. |
static StackWriteAttributes |
from(Stack stack)
The options that narrowly describe a stack as possible.
|
static StackWriteAttributes |
maybeAlways2D(boolean always2D)
A
StackWriteAttributes which, depending on a flag, may be guaranteed to be 2D. |
static StackWriteAttributes |
maybeRGB(boolean rgb,
boolean always2D,
boolean plusAlpha)
A
StackWriteAttributes which depending on a flags, may be RGB/RGBA or not, may be
guaranteed to be 2D or not. |
static StackWriteAttributes |
maybeRGBWithoutAlpha(boolean rgb)
A
StackWriteAttributes which depending on a flags, may be RGB or not. |
static StackWriteAttributes |
rgb(boolean always2D,
boolean plusAlpha)
A
StackWriteAttributes which is always RGB, and depending on a flag, may be
guaranteed to be 2D. |
static StackWriteAttributes |
rgbMaybe3D(boolean plusAlpha)
A
StackWriteAttributes which is always RGB/RGBA, and is not guaranteed
to be 2D. |
static StackWriteAttributes |
singleChannelMaybe3D(boolean always2D)
A
StackWriteAttributes which is always a single-channel, and depending on a
flag, may be guaranteed to be 2D. |
public static StackWriteAttributes maybeAlways2D(boolean always2D)
StackWriteAttributes
which, depending on a flag, may be guaranteed to be 2D.always2D
- when true, this indicates that the stack is guaranteed to be always 2D.StackWriteAttributes
.public static StackWriteAttributes rgbMaybe3D(boolean plusAlpha)
StackWriteAttributes
which is always RGB/RGBA, and is not guaranteed
to be 2D.plusAlpha
- when true, this indicates RGBA. when false, RGB.StackWriteAttributes
.public static StackWriteAttributes binaryChannel(boolean always2D)
StackWriteAttributes
which is always a binary-channel, and depending on a
flag, may be guaranteed to be 2D.always2D
- when true, this indicates that the stack is guaranteed to be always 2D.StackWriteAttributes
.public static StackWriteAttributes singleChannelMaybe3D(boolean always2D)
StackWriteAttributes
which is always a single-channel, and depending on a
flag, may be guaranteed to be 2D.always2D
- when true, this indicates that the stack is guaranteed to be always 2D.StackWriteAttributes
.public static StackWriteAttributes maybeRGB(boolean rgb, boolean always2D, boolean plusAlpha)
StackWriteAttributes
which depending on a flags, may be RGB/RGBA or not, may be
guaranteed to be 2D or not.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 when rgb==true
.StackWriteAttributes
.public static StackWriteAttributes maybeRGBWithoutAlpha(boolean rgb)
StackWriteAttributes
which depending on a flags, may be RGB or not.rgb
- when true, this indicates an RGB image (but never RGBA).StackWriteAttributes
.public static StackWriteAttributes rgb(boolean always2D, boolean plusAlpha)
StackWriteAttributes
which is always RGB, and depending on a flag, may be
guaranteed to be 2D.always2D
- when true, this indicates that the stack is guaranteed to be always 2D.plusAlpha
- when true, this indicates RGBA. when false, RGB.StackWriteAttributes
.public static StackWriteAttributes from(Stack stack)
stack
- the stack to derive options from.stack
.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.