Searched refs:stretch (Results 1 - 1 of 1) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
H A DNinePatchTexture.java225 int nx = stretch(divX, divU, chunk.mDivX, tex.getWidth(), width);
226 int ny = stretch(divY, divV, chunk.mDivY, tex.getHeight(), height);
254 * @param div the stretch parts defined in nine-patch chunk
263 private static int stretch( method in class:NinePatchInstance
268 float stretch = 0;
270 stretch += div[i + 1] - div[i];
273 float remaining = target - source + stretch;
289 float partX = remaining * partU / stretch;
291 stretch -= partU;

Completed in 563 milliseconds