Examples of FloatDoubleColorModel


Examples of com.sun.media.jai.codecimpl.util.FloatDoubleColorModel

/*     */
/*     */     }
/*     */
/* 794 */     if ((type == 4) && (bands >= 1) && (bands <= 4))
/*     */     {
/* 796 */       cm = new FloatDoubleColorModel(cp, hasAlpha, false, transparency, 4);
/*     */     }
/*     */     else
/*     */     {
/* 800 */       cm = new ComponentColorModel(cp, bits, hasAlpha, false, transparency, transferType);
/*     */     }
View Full Code Here

Examples of com.sun.media.jai.codecimpl.util.FloatDoubleColorModel

                    dataType);
        case DataBuffer.TYPE_INT:
            return new ComponentColorModel(cs, bits, useAlpha, premultiplied, transparency,
                    dataType);
        case DataBuffer.TYPE_FLOAT:
            return new FloatDoubleColorModel(cs, useAlpha, premultiplied, transparency, dataType);
        case DataBuffer.TYPE_DOUBLE:
            return new FloatDoubleColorModel(cs, useAlpha, premultiplied, transparency, dataType);
        default:
            throw new IllegalArgumentException("Wrong data type used");
        }
    }
View Full Code Here

Examples of com.sun.media.jai.codecimpl.util.FloatDoubleColorModel

                    dataType);
        case DataBuffer.TYPE_INT:
            return new ComponentColorModel(cs, bits, useAlpha, premultiplied, transparency,
                    dataType);
        case DataBuffer.TYPE_FLOAT:
            return new FloatDoubleColorModel(cs, useAlpha, premultiplied, transparency, dataType);
        case DataBuffer.TYPE_DOUBLE:
            return new FloatDoubleColorModel(cs, useAlpha, premultiplied, transparency, dataType);
        default:
            throw new IllegalArgumentException("Wrong data type used");
        }
    }
View Full Code Here

Examples of javax.media.jai.FloatDoubleColorModel

            if((cs = deserializeColorSpace(in)) == null) {
                colorModel = null;
                return;
            }
            colorModel =
                new FloatDoubleColorModel(cs,
                                          in.readBoolean(),
                                          in.readBoolean(),
                                          in.readInt(), in.readInt());
            break;
        case COLORMODEL_COMPONENT:
View Full Code Here

Examples of javax.media.jai.FloatDoubleColorModel

            if((cs = deserializeColorSpace(in)) == null) {
                colorModel = null;
                return;
            }
            colorModel =
                new FloatDoubleColorModel(cs,
                                          in.readBoolean(),
                                          in.readBoolean(),
                                          in.readInt(), in.readInt());
            break;
        case COLORMODEL_COMPONENT:
View Full Code Here

Examples of javax.media.jai.FloatDoubleColorModel

            if (false) {
                // This is the JAI implementation of color model. This implementation work with
                // JAI's RectIter and should in theory support float and double data buffer.
                // Unfortunatly, it seems to completly ignore our custom ColorSpace. We end
                // up basically with all-black or all-white images.
                return new FloatDoubleColorModel(colors, false, false, transparency, type);
            }
            if (false) {
                // Our patched color model extends J2SE's ComponentColorModel (which work correctly
                // with our custom ColorSpace), but create JAI's SampleModel instead of J2SE's one.
                // It make RectIter happy and display colors correctly.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.