Back to project page AndroidImageCache.
The source code is released under:
Przemys?aw Jakubczyk Polidea Sp. z o.o. Copyright (c) 2012 All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the follo...
If you think the Android project AndroidImageCache listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package pl.polidea.webimageview.processor; // ww w . j av a2 s .co m /** * @author Mateusz Grzechoci?ski <mateusz.grzechocinski@pl.polidea.pl> */ class BothWidthAndHeightFixed extends AbstractBitmapProcessorCreationChain { private final int height; private final int width; public BothWidthAndHeightFixed(int height, int width) { this.height = height; this.width = width; } @Override public AbstractBitmapProcessorCreationChain next() { return new OnlyHeightFixed(height, width); } @Override protected Processor create() { if (width * height > 0) { return new Processor(Processor.ProcessorType.FIX_BOTH, width, height); } return NOT_CREATED_PROCESSOR; } }