70002031 Trasparency is lost when altering imagedef

Article 70002031
Type Bug
Product Engine
Version 9001
Date Added 8/19/2021
Fixed 9.9002.0.7 (8/23/2021)
Submitted by Zhilong Wang

Summary

Trasparency is lost when altering imagedef

Solution

Fixed in 9002. Embedded images are being saved internally as png in order to support transparency.
In order to embed an image instead of calling
InternalSetBytes(InternalGetBytes());
You should call the method like below
InternalSetBytes(new ByteArray(ImageBind.GetImageBytes(this.Image.Image, System.Drawing.Imaging.ImageFormat.Png)));

Send comments on this topic.