Update HiResImage.java

This commit is contained in:
Denis Molony 2019-11-27 14:00:02 +10:00
parent c70850646d
commit 7fa5eb6a00

View File

@ -71,6 +71,10 @@ public abstract class HiResImage extends AbstractFile
// packed unpacked // packed unpacked
// $06.3200 1 // $06.3200 1
// $06.3201 . // $06.3201 .
// $08 0000 .
// $08 4000 .
// $08 4001 .
// $08 8066 .
// $C0 0000 1 // $C0 0000 1
// $C0 0001 $C1 0000 2 1 // $C0 0001 $C1 0000 2 1
// $C0 0002 1 // $C0 0002 1
@ -148,13 +152,15 @@ public abstract class HiResImage extends AbstractFile
protected void createImage () protected void createImage ()
// ---------------------------------------------------------------------------------// // ---------------------------------------------------------------------------------//
{ {
if (failureReason.isEmpty ()) if (!failureReason.isEmpty ())
if (isGif (buffer) || isPng (buffer) || isBmp (buffer) || isTiff (buffer)) return;
makeImage ();
else if (monochrome) if (isGif (buffer) || isPng (buffer) || isBmp (buffer) || isTiff (buffer))
createMonochromeImage (); makeImage ();
else else if (monochrome)
createColourImage (); createMonochromeImage ();
else
createColourImage ();
} }
// ---------------------------------------------------------------------------------// // ---------------------------------------------------------------------------------//