Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Tile/slice semantics in Get/SetRasterTile?

New Here ,
Jul 26, 2007 Jul 26, 2007
I'm trying to figure out how these two functions actually work. The documentation, as usual, is worthless. The sample code contains some useful utility functions, but no examples of them being called.

In particular, these two functions each accept two AISlice structures and an AITile, which contains an AISlice. I'm imagining that one of these slices defines the source area and one defines the destination, but I can't imagine what the third one might be. And, in fact, my imagination doesn't seem to agree with reality; no matter what I try, the "workSlice" doesn't seem to have any effect.

That said, I can't get these functions to do what I want, so clearly I'm not understanding how they work. Can anybody help me with this?

Thanks,
Aaron
TOPICS
SDK
836
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
New Here ,
Jul 26, 2007 Jul 26, 2007
I believe I've figured this out. The key is that the AITile structure is effectively an image object - it contains data and information about that data. Thus, the slice within the AITile describes its data, and the slices passed to the ...RasterTile functions are relative to this.

In GetRasterTile, the parameters really ought to be named something like "srcArt", "srcSlice", "dstTile", and "dstSlice". The "srcSlice" ("artSlice") parameter describes which piece of the source object to copy, and the "dstSlice" ("workSlice") parameter describes which piece of the tile to copy it into.

In SetRasterTile, the parameters should be named "dstArt", "dstSlice", "srcTile", and "srcSlice". The "dstSlice" ("artSlice") parameter describes which piece of the object to copy the data into, and the "srcSlice" ("workSlice") parameter describes which piece of the tile to copy it out of.

In both cases, the slice within the tile describes the data contained by the tile. Thus, the "workSlice" parameter to these functions always needs to be a subset of workTile->bounds, and the "artSlice" parameter needs to be a subset of the raster art object's bounds.

Hope this helps somebody,
Aaron
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 30, 2019 Jan 30, 2019
LATEST

can you provide some example to use GetRasterTile?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines