tiles

Write tiled output of TIFF, using ImageIO in Java

爱⌒轻易说出口 提交于 2019-12-04 14:13:07
What I have is a a large number of frames that need to be placed together in a larger image (like a mosaic). The required positions of the images are known. There are a very large number of images so loading them all into memory is impractical at best. Based on some other answers here I was able to override the methods in RenderedImage (specifically getData(rect) ) to load in the appropriate data and return it. This works just fine, however the image writer is always calling getData and requesting rows of data. It seems to me I should be able to change the ImageWriterParam to call for

Spring+Spring security+tiles. How to set form-login with tiles page definition?

谁说我不能喝 提交于 2019-12-04 12:05:28
I have spring_tiles web application and now trying to add spring security to it: That is a peace of my TilesConfig.xml: <definition name="loginPage" extends="commonPage"> <put-attribute name="body" value="/WEB-INF/tiles/jsp/login_body.jsp" /> </definition> Here comes my spring mapping part: <bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping"> <property name="interceptors"> <list> <ref bean="openSessionInViewInterceptor" /> </list> </property> <property name="mappings"> <props> <prop key="/main.htm">mainController</prop> <prop key="/category.htm"

How to Integrate Struts Conventions with Tiles such that the benefit of conventions is maintained

不羁岁月 提交于 2019-12-04 11:26:55
How to Integrate Struts Conventions with Tiles while maintaining conventions benefits? The issue is that conventions links url-to-action-to-result automatically and does this nicely for jsp, velocity and freemarker results. It does not expect to deal with a tiles result. When using tiles we typically want all our UI actions (as opposed the json/xml service actions) to use tiles but in doing so we lose the convention for the result component and need to use annotations. Annotations allow us to deviate from the expected, but in a large application when expecting to use tiles this is an annoyance

Generate tiles from large photos (iOs PhotoScroller)

大兔子大兔子 提交于 2019-12-04 10:01:45
问题 I'm studdying the WWDC session #104 for mastering UIScrollViews . I need to create a script or find a tool or write a script to generate the tiles needed for the CATiledLayer from some large jpg photo. 1000 500 and 250 scale factors are needed and the generated tiles need to respect a naming pattern like this: name_scale_col_row.jpg Any suggestion for a tool or script that I could use for this or do I need to write one? EDIT : I'm working on my own little bash script. This is what I did until

Simulating flipping live tiles in html

无人久伴 提交于 2019-12-04 06:06:41
I need to code some html square "live tiles" that flip between 4 states periodically. Basically what I need is what this plug-in does http://www.drewgreenwell.com/projects/metrojs , but between 4 states, not just 2. Is there a definitive API/plug-in that allows live tile management in html/jquery sites? I'm not building a Windows 8 app, I'm just trying to simulate Live Tiles flipping in Html, and hopefully have it work in all major browsers. Thanks. In the end, it seems that Drew's plug-in does support multiple tile states, he provided a couple of samples. Sample 1 and Sample 2 . It seems to

Tile (scalable) stacking algorithm

倾然丶 夕夏残阳落幕 提交于 2019-12-04 03:41:10
Here is the problem. I have rectangular canvas that have size of 1. So it have coordinate sistem of (0.0 ... 1.0 - x and 0.0 ... 1.0 - y). I also have some tiles. Tiles are also rectangles. They have diffrent size and amount of tiles is a variable. I want to stack tiles in rectangular canvas, from 0.0 to 1.0 ( from left to right, from top to bottom ): 1) tiles have to fit in canvas (but fill as much space as they could) 2) tiles have to be scaled (if they don't fit), each tile should be scaled by the same amount (they have to remain same proportions). 3) imagine that you have this 'tiles' in

Ensuring all tiles are loaded in Open Layers 3 XYZ source

こ雲淡風輕ζ 提交于 2019-12-04 03:03:38
问题 We have some layers that make use of a ol.source.XYZ source. For the loading strategy we use ol.loadingstrategy.tile(new ol.tilegrid.createXYZ({})) . We need to ensure that all tiles have been completely loaded in the map view before proceeding with other operations. We have come across multiple articles regarding this and haven't found a 100% solution yet that will give us the solution we need. The logic returns true even when it's not the case. We've tried to make use of the tileloadstart,

Override MapView Tile Source?

为君一笑 提交于 2019-12-04 00:18:22
Is it possible to override the source of the tiles that the Android MapView displays? I have some map imagery tiles in a database, and would like to use the Google maps MapView to look at them. Also, if this is not possible... does anyone know of a MapView that does allow this? (OpenStreetMap API... MapQuest API... etc) I am looking for a solution that does not rely on the GPL/LGPL. You can use some of these libraries: osmdroid , mapsforge . Both of them provides interface to some internet map databases and allows to create your own maps provider. They allows you to have (and handle) your

How to show different menu according to rule of user using Tile3

大兔子大兔子 提交于 2019-12-03 21:15:03
I am using tile3, spring security and struts2. I have different number of users, each with specific role, and each role should has access to a specific menu, I have the follwoing tile.xml file but I am not sure how to change it in a way to solve the issue. Please let me know if you need me to provide any other part of my code. <tiles-definitions> <definition name="baseLayout" template="/baseLayout.jsp"> <put-attribute name="title" value=""/> <put-attribute name="header" value="/header.jsp"/> <put-attribute name="menu" value=""/> <put-attribute name="body" value=""/> <put-attribute name="footer

C# ListView Tile Width 100%?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 19:41:53
i have a ListView set to Tileview. The ListView width is 300 and so is the tile width. This works fine when the number of tiles does not overflow resulting in a scrollbar. When it does overflow however, when the vertical scrollbar appears, a horizontal scrollbar also appears because the vertical scrollbar lowers the listview width for the tiles. Is there a way i can have the tiles autoresize to fill the listview? See example image: What currently happens: What i want to happen: I tried setting the width to 100% but that doesnt work. Any ideas? There is no direct way to detect that the