Section Divider Structure#
Note
The Photoshop File format stores this layer to mark the end of a grouped section as outlined below. This Layer is created automatically on conversion and creating one manually is considered undefined behaviour
Group
.…
SectionDivider
-
template<typename T>
struct SectionDividerLayer : public Layer<T># Public Functions
-
SectionDividerLayer() = default#
-
virtual std::tuple<LayerRecord, ChannelImageData> toPhotoshop(const Enum::ColorMode colorMode, const bool doCopy, const FileHeader &header) override#
Function for creating a PhotoshopFile from the layer.
In the future, the intention is to make this a pure virtual function. However, due to the presence of multiple miscellaneous layers not yet implemented for the initial release, this function is provided. It generates a tuple containing LayerRecord and ChannelImageData based on the specified ColorMode, copying data if required, and using the provided FileHeader.
- Parameters:
colorMode – The desired ColorMode for the PhotoshopFile.
doCopy – A flag indicating whether to perform a copy of the layer data.
header – The FileHeader providing overall file information.
- Returns:
A tuple containing LayerRecord and ChannelImageData representing the layer in the PhotoshopFile.
-
SectionDividerLayer() = default#