Byte ownScaleImage = image.getOwnScaleImage();
if (ownScaleImage != null)
{
return ownScaleImage.byteValue();
}
JRStyle baseStyle = getBaseStyle(image);
if (baseStyle != null)
{
Byte scaleImage = baseStyle.getScaleImage();
if (scaleImage != null)
{
return scaleImage.byteValue();
}
}