176 questions
4
votes
3
answers
4k
views
Problem in tiling image starting at different height using TextureBrush in C#
I am trying to tile an image(16x16) over a Rectangle area of dimensions width=1000, height=16 using TextureBrush to get a strip like UI.
Rectangle myIconDrawingRectangle = new Rectangle(x, y, 1000,...
8
votes
2
answers
11k
views
Building a matrix by merging the same row vector multiple times
Is there a matlab function which allows me to do the following operation?
x = [1 2 2 3];
and then based on x I want to build the matrix m = [1 2 2 3; 1 2 2 3; 1 2 2 3; 1 2 2 3]
5
votes
2
answers
2k
views
Calculating the optimal number of columns for a table layout - Only given the table width and a list of rectangles
I have a list of rectangles with different dimensions.
rects = [100x20, 30x10, 10x10, 70x20, 40x30, 50x10]
I am trying to render a table from these rectangles. If I would have a fix number of ...
7
votes
5
answers
33k
views
Different background color either side of page
I want to create a fixed-width layout where the background color on either side of the page is different, but with the background colours extending infinitely from either side of the page no matter ...
55
votes
8
answers
13k
views
Tiled drawable sometimes stretches
I have a ListView whose items have a tiled background. To accomplish this, I use the following drawable xml:
<bitmap
xmlns:android="http://schemas.android.com/apk/res/android"
android:src="...
0
votes
1
answer
454
views
Tiling patterns
I'm looking for efficient solution/algorithm for tiling : the layout of the decking tiles.
We want to build system that will calculate the mutual placement of columns and beams (beams, joist) with ...
3
votes
2
answers
3k
views
Find the center point of a UIScrollView while zooming
I'm having difficulties getting a tiled UIScrollView to zoom in and out correctly with pinch zooming. The issue is that when a pinch-zoom occurs, the resulting view is usually not centered in the same ...
0
votes
1
answer
705
views
Repeating only a portion of a texture in OpenGL ES?
I know it's possible to repeat an entire texture by setting the wrap mode to GL_REPEAT, but is it somehow possible to repeat only a subregion of the texture? For example, when the texture is part of ...
10
votes
1
answer
9k
views
OpenLayers, Layers: Tiled vs. single tile
Each time we add a new layer to our OpenLayers based website (data provided primarily by a GeoServer server), we discuss whether to use a single-tile or a tiled approach.
Some of the parameters we ...
4
votes
6
answers
4k
views
slicing up a very big jpg map image , 49000* 34300 pixel
i want to write a mapviewer, i must to work small tile of big map image file and there is need to tiling the big image, the problem now is to tiling big image to small tiles (250 * 250 pixel or like ...
5
votes
2
answers
2k
views
How do I split this huge image 15104 * 11264
Paint.net dies opening this image, and MS paint as well.I don't know how to open this file for editing.Actually, I set out to break this image (its a map of my area) and load it to my phone (moto rokr ...
0
votes
2
answers
570
views
Is graphic object bitMapData type the same as bitmapData type?
The title might be a little misleading. Look at my code and I will explain
public static function loadTile(tileDir:String = "empty"):void
{
if(tileDir != "empty")
{
...
12
votes
5
answers
2k
views
String Tiling Algorithm
I'm looking for an efficient algorithm to do string tiling. Basically, you are given a list of strings, say BCD, CDE, ABC, A, and the resulting tiled string should be ABCDE, because BCD aligns with ...