/** * Changes flag to enable upsampling for small images. * If true and the image is smaller than the requested size * the image is resized to a larger image. Default is false. * * @param allowUpsampling set to true if you want to enlarge small images * @return this SettingsBuilder */ public SettingsBuilder withUpsampling(boolean allowUpsampling) { settings.setAllowUpsampling(allowUpsampling); return this; }
/** * Constructor with all settings set to default values */ public LoaderSettings() { this.setExpirationPeriod(DEFAULT_EXPIRATION_PERIOD); this.setQueryIncludedInHash(DEFAULT_INCLUDE_QUERY_IN_HASH); this.setConnectionTimeout(DEFAULT_CONNECTION_TIMEOUT); this.setReadTimeout(DEFAULT_READ_TIMEOUT); this.setDisconnectOnEveryCall(DEFAULT_DISCONNECT_ON_EVERY_CALL); this.setUseAsyncTasks(DEFAULT_USE_ASYNC_TASKS); this.setAllowUpsampling(DEFAULT_ALLOW_UPSAMPLING); this.setAlwaysUseOriginalSize(DEFAULT_ALWAYS_USE_ORIGINAL_SIZE); }