Home | History | Annotate | Download | only in graphics

Lines Matching refs:Config

71      * pushing down this preference for every config change.
204 * Config}, without affecting the underlying allocation backing the bitmap.
225 * new config, just that the allocation is reused. Additionally, the view
249 * @see #setConfig(Config)
251 public void reconfigure(int width, int height, Config config) {
263 nativeReconfigure(mNativePtr, width, height, config.nativeInt,
270 * <p>Convenience method for calling {@link #reconfigure(int, int, Config)}
271 * with the current height and config.</p>
274 * the view system, see {@link #reconfigure(int, int, Config)} for more
277 * @see #reconfigure(int, int, Config)
279 * @see #setConfig(Config)
286 * <p>Convenience method for calling {@link #reconfigure(int, int, Config)}
287 * with the current width and config.</p>
290 * the view system, see {@link #reconfigure(int, int, Config)} for more
293 * @see #reconfigure(int, int, Config)
295 * @see #setConfig(Config)
302 * <p>Convenience method for calling {@link #reconfigure(int, int, Config)}
306 * the view system, see {@link #reconfigure(int, int, Config)} for more
309 * @see #reconfigure(int, int, Config)
313 public void setConfig(Config config) {
314 reconfigure(getWidth(), getHeight(), config);
422 public enum Config {
483 private static Config sConfigs[] = {
487 Config(int ni) {
491 static Config nativeToConfig(int ni) {
580 * setting the new bitmap's config to the one specified, and then copying
585 * @param config The desired config for the resulting bitmap
590 public Bitmap copy(Config config, boolean isMutable) {
592 Bitmap b = nativeCopy(mNativePtr, config.nativeInt, isMutable);
622 public Bitmap createAshmemBitmap(Config config) {
624 Bitmap b = nativeCopyAshmemConfig(mNativePtr, config.nativeInt);
755 Config newConfig = Config.ARGB_8888;
756 final Config config = source.getConfig();
758 if (config != null) {
759 switch (config) {
761 newConfig = Config.RGB_565;
764 newConfig = Config.ALPHA_8;
770 newConfig = Config.ARGB_8888;
787 bitmap = createBitmap(neww, newh, transformed ? Config.ARGB_8888 : newConfig,
819 * @param config The bitmap config to create.
822 public static Bitmap createBitmap(int width, int height, Config config) {
823 return createBitmap(width, height, config, true);
834 * @param config The bitmap config to create.
838 int height, Config config) {
839 return createBitmap(display, width, height, config, true);
848 * @param config The bitmap config to create.
855 private static Bitmap createBitmap(int width, int height, Config config, boolean hasAlpha) {
856 return createBitmap(null, width, height, config, hasAlpha);
867 * @param config The bitmap config to create.
875 Configconfig, boolean hasAlpha) {
879 Bitmap bm = nativeCreate(null, 0, width, width, height, config.nativeInt, true);
884 if (config == Config.ARGB_8888 && !hasAlpha) {
905 * @param config The bitmap config to create. If the config does not
912 int width, int height, Config config) {
913 return createBitmap(null, colors, offset, stride, width, height, config);
930 * @param config The bitmap config to create. If the config does not
937 int offset, int stride, int width, int height, Config config) {
953 config.nativeInt, false);
969 * @param config The bitmap config to create. If the config does not
975 public static Bitmap createBitmap(int colors[], int width, int height, Config config) {
976 return createBitmap(null, colors, 0, width, width, height, config);
990 * @param config The bitmap config to create. If the config does not
997 int width, int height, Config config) {
998 return createBitmap(display, colors, 0, width, width, height, config);
1096 * {@link Bitmap.Config#RGB_565}.</p>
1099 * {@link Bitmap.Config#ALPHA_8}.</p>
1266 * #reconfigure(int, int, Config)}, {@link #setWidth(int)}, {@link #setHeight(int)}, {@link
1267 * #setConfig(Bitmap.Config)}, and {@link BitmapFactory.Options#inBitmap
1273 * @see #reconfigure(int, int, Config)
1285 * If the bitmap's internal config is in one of the public formats, return
1286 * that config, otherwise return null.
1288 public final Config getConfig() {
1292 return Config.nativeToConfig(nativeConfig(mNativePtr));
1295 /** Returns true if the bitmap's config supports per-pixel alpha, and
1300 * also return false. If a config such as ARGB_8888 is not so flagged,
1644 * Given another bitmap, return true if it has the same dimensions, config,
1698 int config, int allocSize,