I'm exporting an list of people where the first column is a photo.
But regarless of changing the width/height the file size stays the same. Is there a way to reduce resolution ?
foreach
(DataRow _dr
in
DS.Tables[
"PHOTO"
].Rows)
{
FloatingImage image =
new
FloatingImage(sheet,
new
CellIndex(startRow, 0), 0, 0)
{
ImageSource =
new
ImageSource((
byte
[])_dr[
"FOTO_EMPREGADO"
],
"jpg"
),
Width = 65,
Height = 70
};
sheet.Shapes.Add(image);
startRow++;
}