Passing Bitmapdata to report
Passing Bitmapdata to report
I create new image in report. How to transfer bitmap data from application code into report image variable?
Passing Bitmapdata to report
Hello,
Please try to use the following code:
Thank you.
Please try to use the following code:
Code: Select all
// Some BitmapData
var bitmapData: BitmapData;
var png: PNGEncoder = new PNGEncoder();
var bytes: ByteArray = png.encode(bitmapData);
// Get Image component by name from report
var img: StiImage = report.getComponentByName("Image1");
img.image = StiTypeConverter.byteArrayToBase64(bytes);
Passing Bitmapdata to report
This code work fine with simple modification:
var img: StiImage = report.getComponentByName("Image1") as StiImage;
var img: StiImage = report.getComponentByName("Image1") as StiImage;
Passing Bitmapdata to report
Hello,
Yes, you're right.
Let us know if you need any additional help.
Thank you.
Yes, you're right.
Let us know if you need any additional help.
Thank you.