Examples of FloatDoubleColorModel


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

        default:
            throw new IllegalArgumentException();
        }

        if(dataType == DataBuffer.TYPE_FLOAT) {
            ccm = new FloatDoubleColorModel(cs,
                                            true,
                                            isAlphaPremultiplied,
                                            transparency,
                                            dataType);
        } else { // all other types
View Full Code Here

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

                   bands >= 1 && bands <= 4) {
            ColorSpace cs = bands <= 2 ?
                ColorSpace.getInstance(ColorSpace.CS_GRAY) :
                ColorSpace.getInstance(ColorSpace.CS_sRGB);
            boolean hasAlpha = bands % 2 == 0;
            cm = new FloatDoubleColorModel(cs, hasAlpha, false,
                                           hasAlpha ?
                                           Transparency.TRANSLUCENT :
                                           Transparency.OPAQUE,
                                           DataBuffer.TYPE_FLOAT);
        }
View Full Code Here

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

            }
        }

        if (type == DataBuffer.TYPE_FLOAT &&
                   bands >= 1 && bands <= 4) {
            cm = new FloatDoubleColorModel(cp, hasAlpha, false,
                                           transparency,
                                           DataBuffer.TYPE_FLOAT);
        } else {
            cm = new ComponentColorModel(cp, bits, hasAlpha,
                                         false, transparency, transferType);
View Full Code Here

Examples of com.lightcrafts.mediax.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 com.lightcrafts.mediax.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 com.sun.media.jai.codecimpl.util.FloatDoubleColorModel

        default:
            throw new IllegalArgumentException();
        }

        if(dataType == DataBuffer.TYPE_FLOAT) {
            ccm = new FloatDoubleColorModel(cs,
                                            true,
                                            isAlphaPremultiplied,
                                            transparency,
                                            dataType);
        } else { // all other types
View Full Code Here

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

                   bands >= 1 && bands <= 4) {
            ColorSpace cs = bands <= 2 ?
                ColorSpace.getInstance(ColorSpace.CS_GRAY) :
                ColorSpace.getInstance(ColorSpace.CS_sRGB);
            boolean hasAlpha = bands % 2 == 0;
            cm = new FloatDoubleColorModel(cs, hasAlpha, false,
                                           hasAlpha ?
                                           Transparency.TRANSLUCENT :
                                           Transparency.OPAQUE,
                                           DataBuffer.TYPE_FLOAT);
        }
View Full Code Here

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

            }
        }

        if (type == DataBuffer.TYPE_FLOAT &&
                   bands >= 1 && bands <= 4) {
            cm = new FloatDoubleColorModel(cp, hasAlpha, false,
                                           transparency,
                                           DataBuffer.TYPE_FLOAT);
        } else {
            cm = new ComponentColorModel(cp, bits, hasAlpha,
                                         false, transparency, transferType);
View Full Code Here

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

/*      */     default:
/* 2022 */       throw new IllegalArgumentException();
/*      */     }
/*      */
/* 2025 */     if (dataType == 4) {
/* 2026 */       ccm = new FloatDoubleColorModel(cs, true, isAlphaPremultiplied, transparency, dataType);
/*      */     }
/*      */     else
/*      */     {
/* 2032 */       int componentSize = 0;
/* 2033 */       switch (dataType) {
View Full Code Here

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

/* 704 */     else if ((type == 4) && (bands >= 1) && (bands <= 4))
/*     */     {
/* 706 */       ColorSpace cs = bands <= 2 ? ColorSpace.getInstance(1003) : ColorSpace.getInstance(1000);
/*     */
/* 709 */       boolean hasAlpha = bands % 2 == 0;
/* 710 */       cm = new FloatDoubleColorModel(cs, hasAlpha, false, hasAlpha ? 3 : 1, 4);
/*     */     }
/*     */
/* 717 */     return cm;
/*     */   }
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.