Package javax.media.jai

Examples of javax.media.jai.ComponentSampleModelJAI


                                                      (int[])in.readObject(),
                                                      (int[])in.readObject());
            break;
        case TYPE_COMPONENT_JAI:
            sampleModel =
                new ComponentSampleModelJAI(in.readInt(),
                                            in.readInt(),
                                            in.readInt(),
                                            in.readInt(),
                                            in.readInt(),
                                            (int[])in.readObject(),
View Full Code Here


                                                      (int[])in.readObject(),
                                                      (int[])in.readObject());
            break;
        case TYPE_COMPONENT_JAI:
            sampleModel =
                new ComponentSampleModelJAI(in.readInt(),
                                            in.readInt(),
                                            in.readInt(),
                                            in.readInt(),
                                            in.readInt(),
                                            (int[])in.readObject(),
View Full Code Here

/*     */     case 1:
/* 176 */       this.sampleModel = RasterFactory.createBandedSampleModel(in.readInt(), in.readInt(), in.readInt(), in.readInt(), (int[])in.readObject(), (int[])in.readObject());
/*     */
/* 183 */       break;
/*     */     case 5:
/* 185 */       this.sampleModel = new ComponentSampleModelJAI(in.readInt(), in.readInt(), in.readInt(), in.readInt(), in.readInt(), (int[])in.readObject(), (int[])in.readObject());
/*     */
/* 193 */       break;
/*     */     case 6:
/* 195 */       this.sampleModel = new ComponentSampleModel(in.readInt(), in.readInt(), in.readInt(), in.readInt(), in.readInt(), (int[])in.readObject(), (int[])in.readObject());
/*     */
View Full Code Here

        rasterMapWidth = activeReadRegion.getCols();
        rasterMapHeight = activeReadRegion.getRows();
        if (sampleModel == null) {
            if (numberOfBytesPerValue == 8) {
                if (!castDoubleToFloating) {
                    sampleModel = new ComponentSampleModelJAI(DataBuffer.TYPE_DOUBLE,
                            rasterMapWidth, rasterMapHeight, 1, rasterMapWidth, bands, bandOffsets);
                } else {
                    sampleModel = new ComponentSampleModelJAI(DataBuffer.TYPE_FLOAT,
                            rasterMapWidth, rasterMapHeight, 1, rasterMapWidth, bands, bandOffsets);
                }
            } else if (numberOfBytesPerValue == 4 && readerMapType < 0) {
                sampleModel = new ComponentSampleModelJAI(DataBuffer.TYPE_FLOAT, rasterMapWidth,
                        rasterMapHeight, 1, rasterMapWidth, bands, bandOffsets);
            } else if (readerMapType > -1) {
                sampleModel = new ComponentSampleModelJAI(DataBuffer.TYPE_INT, rasterMapWidth,
                        rasterMapHeight, 1, rasterMapWidth, bands, bandOffsets);
            }
        }
        return sampleModel;
    }
View Full Code Here

              cm.getColorSpace(),
              false,
              false,
              cm.getTransparency(),
              dataType);
          final SampleModel newSm = new ComponentSampleModelJAI(
              dataType,
              sm.getWidth(),
              sm.getHeight(),
              ((ComponentSampleModel)sm).getPixelStride(),
              ((ComponentSampleModel)sm).getScanlineStride(),
View Full Code Here

                final int numComponents = getNumComponents();
                final int[] bandOffsets = new int[numComponents];
                for (int i=0; i<numComponents; i++) {
                    bandOffsets[i] = i;
                }
                return new ComponentSampleModelJAI(transferType, w, h, numComponents,
                                                   w*numComponents, bandOffsets);
            }
        }
    }
View Full Code Here

TOP

Related Classes of javax.media.jai.ComponentSampleModelJAI

Copyright © 2018 www.massapicom. 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.