Ignore:
Timestamp:
07/31/19 15:51:04 (5 years ago)
Author:
bln4
Message:

Implemented surrogates for images. When you add an encryption label to a picture, the default is a on-the-fly generated image of noise. This generated image has the same size specifications as the primary image.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/items/Picture.java

    r1420 r1426  
    6262public class Picture extends XRayable {
    6363       
     64        public static final String REDACTED_IMAGE_NAME = "redacted.png";
     65       
    6466        private static final float CROPPING_COMPOSITE_ALPHA = 0.5f;
    6567
     
    146148                parseSize();
    147149        }
     150       
     151        public boolean isNoise() {
     152                return _fileName.equals(REDACTED_IMAGE_NAME);
     153        }
     154       
     155       
    148156
    149157        protected String getImageSize() {
     
    788796                }
    789797*/
    790                 _image = Image.getImage(_path);
     798               
     799                if (isNoise()) {
     800                        _image = Image.getNoise();
     801                } else {
     802                        _image = Image.getImage(_path);
     803                }
     804               
    791805                return true;
    792806        }
Note: See TracChangeset for help on using the changeset viewer.