![]() These methods create instances of Raster that use the Raster is to use one of the static create methods defined in thisĬlass. With a subset of the bands of its parent.Īll constructors are protected. (with the same or a translated coordinate system) or Occupying only a subset of its parent's bounding rectangle The createChild method may be used to create a new Raster SampleModelTranslateY values from those of the parent. The translation between a parent and child Raster may beĭetermined by subtracting the child's sampleModelTranslateX and 10) should be added to a pixel coordinate to obtain theĬorresponding SampleModel coordinate, and in the second case (-50, The DataBuffer shared by the two Rasters. ![]() Parent and pixel (60, 60) of the child occupy the same location in Raster was defined to start at (50, 50), then pixel (20, 20) of the Occupied the region (10, 10) to (100, 100), and the translated Shares all of the data of the current Raster, but occupies aīounding rectangle of the same width and height but with aĭifferent starting point. The createTranslatedChild method returns a new Raster that For a Raster that was notĬonstructed by means of a call to createTranslatedChild or Rasters created by these methodsĬan return a reference to the Raster they were created from by GetSampleModelTranslateX and getSampleModelTranslateY methods.Ī Raster may share a DataBuffer with another Raster either byĮxplicit construction or by the use of the createChild andĬreateTranslatedChild methods. The translation from the SampleModelĬoordinate system to that of the Raster may be obtained by the Locations to be mapped between the Raster's coordinate system and Raster therefore contains a translation factor that allows pixel Makes use of a simple coordinate system that starts at (0, 0). ![]() The SampleModel is alsoĬontrols whether samples are sign extended, allowing unsignedĭata to be stored in signed Java data types such as byte, short, andĪlthough a Raster may live anywhere in the plane, a SampleModel PixelInterleavedSampleModel or BandedSampleModel, or packed several toĪn element, as in a SinglePixelPackedSampleModel or Samples may be stored one per data element, as in a Responsibility to avoid accessing such pixels.Ī SampleModel describes how samples of a RasterĪre stored in the primitive array elements of a DataBuffer. To pixels outside of the bounding rectangle may result in anĮxception being thrown, or may result in references to unintendedĮlements of the Raster's associated DataBuffer. The coordinate of the upper left corner of the Raster. The rectangle, known as the Raster's bounding rectangle andĪvailable by means of the getBounds method, is defined by minX, Rectangular area of the plane, not necessarily including (0, 0). SampleModel that describes how to locate a given sample value in aĪ Raster defines values for pixels occupying a particular A RasterĮncapsulates a DataBuffer that stores the sample values and a A class representing a rectangular array of pixels.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |