3 ms·
The default jakefile we will ship just automatically bundles any image resource in the project. ImageBundle sounds pretty solid. I guess they are inferring the
by boucher 17y ago
The default jakefile we will ship just automatically bundles any image resource in the project.
ImageBundle sounds pretty solid. I guess they are inferring the orientation of an image somehow? I'd like to see how that works. If you use an image in multiple orientations, or if you need to stretch in both directions, using a single .png file just isn't possible, unless there's something I'm missing.
- pohl 17y agoIn the current implementation (ImageBundle) you would need to have separate copies for each orientation & scale. That's a really nice thing that the Cappuccino implementation brings. The new ClientBundle implementation promises to, at least, have the compiler flip an image left-to-right when appropriate for a user's locale: @ImageOptions(flipRtl = true) ...and there's another hint for images that are intended to be tiled: @ImageOptions(repeatStyle=RepeatStyle.Vertical) There's no scaling yet, but the tiling annotation covers some of the cases where you might want scaling (such as the edges of a corner-rounded/drop-shadowed box of variable size).