Does it currently support changing the content of text layers?
zhenzi0322 opened this issue · comments
Is there any way to update the contents of a TypeLayer layer?
You can, but it's not easy.
Because this package does not focus on saving PSD files, so there is no convenient mechanism for updating them.
And it is not easy to write a drawing process that can be used universally, since color formats such as RGB and CMYK and bit depths must be handled appropriately.
Layer.Channel contains raw data for each component of color(such as R, G, B, C, M, Y, K, etc.), you can be changed directly.
However, this data is saved in various layouts based on color bit depth.
Channel.Picker can be used to read pixel data.
This Picker is generated by findGrayPicker, so the code around it will give you an idea of how to access each piece of data.