Home
last modified time | relevance | path

Searched refs:getHeight (Results 1 – 25 of 735) sorted by relevance

12345678910>>...30

/external/libgdx/backends/gdx-backend-lwjgl/src/com/badlogic/gdx/backends/lwjgl/
DLwjglCursor.java37 if ((pixmap.getHeight() & (pixmap.getHeight() - 1)) != 0) { in LwjglCursor()
38 throw new GdxRuntimeException("Cursor image pixmap height of " + pixmap.getHeight() in LwjglCursor()
47 if (yHotspot < 0 || yHotspot >= pixmap.getHeight()) { in LwjglCursor()
49 + pixmap.getHeight() + ")."); in LwjglCursor()
59 for (int y = 0; y < pixmap.getHeight(); ++y) { in LwjglCursor()
62 …pixelsARGBflipped[x + ((pixmap.getHeight() - 1 - y) * pixmap.getWidth())] = ((pixel >> 8) & 0x00FF… in LwjglCursor()
67 for (int y = 0; y < pixmap.getHeight(); ++y) { in LwjglCursor()
70 … pixelsARGBflipped[x + ((pixmap.getHeight() - 1 - y) * pixmap.getWidth())] = ((pixel & 0xFF) << 16) in LwjglCursor()
76 …r = new org.lwjgl.input.Cursor(pixmap.getWidth(), pixmap.getHeight(), xHotspot, pixmap.getHeight()… in LwjglCursor()
/external/universal-tween-engine/java/applets/src/aurelienribon/utils/swing/
DImagePanel.java87 gg.fillRect(0, 0, getWidth(), getHeight()); in paintComponent()
90 …= new TexturePaint(background, new Rectangle(0, 0, background.getWidth(), background.getHeight())); in paintComponent()
92 gg.fillRect(0, 0, getWidth(), getHeight()); in paintComponent()
97 float panelRatio = (float)getWidth() / (float)getHeight(); in paintComponent()
98 float imgRatio = (float)image.getWidth() / (float)image.getHeight(); in paintComponent()
103 gg.drawImage(image, 0, (int)(getHeight()/2 - th/2), (int) tw, (int) th, null); in paintComponent()
105 float tw = (float)getHeight() * imgRatio; in paintComponent()
106 float th = (float)getHeight(); in paintComponent()
111 float panelRatio = (float)getWidth() / (float)getHeight(); in paintComponent()
118 int ty = getHeight()/2 - th/2; in paintComponent()
[all …]
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/
DSpriteBatchRotationTest.java40 …ure, 16, 10, 16, 16, 32, 32, 1, 1, 0, 0, 0, texture.getWidth(), texture.getHeight(), false, false); in render()
41 …spriteBatch.draw(texture, 64, 10, 32, 32, 0, 0, texture.getWidth(), texture.getHeight(), false, fa… in render()
42 spriteBatch.draw(texture, 112, 10, 0, 0, texture.getWidth(), texture.getHeight()); in render()
44 … 16, 58, 16, 16, 32, 32, 1, 1, angle, 0, 0, texture.getWidth(), texture.getHeight(), false, false); in render()
45 …ure, 64, 58, 16, 16, 32, 32, scale, scale, 0, 0, 0, texture.getWidth(), texture.getHeight(), false, in render()
47 …xture, 112, 58, 16, 16, 32, 32, scale, scale, angle, 0, 0, texture.getWidth(), texture.getHeight(), in render()
49 …, 160, 58, 0, 0, 32, 32, scale, scale, angle, 0, 0, texture.getWidth(), texture.getHeight(), false, in render()
/external/deqp/framework/referencerenderer/
DrrMultisamplePixelBufferAccess.cpp45 tcu::IVec3(m_access.getHeight(), m_access.getDepth(), 1), in toSinglesampleAccess()
55 tcu::IVec3(1, original.getWidth(), original.getHeight()), in fromSinglesampleAccess()
85 tcu::IVec3(m_access.getHeight(), m_access.getDepth(), 1), in toSinglesampleAccess()
95 tcu::IVec3(1, original.getWidth(), original.getHeight()), in fromSinglesampleAccess()
117 DE_ASSERT(dst.getWidth() == src.raw().getHeight()); in resolveMultisampleColorBuffer()
118 DE_ASSERT(dst.getHeight() == src.raw().getDepth()); in resolveMultisampleColorBuffer()
129 for (int y = 0; y < dst.getHeight(); y++) in resolveMultisampleColorBuffer()
143 DE_ASSERT(dst.getWidth() == src.raw().getHeight()); in resolveMultisampleDepthBuffer()
144 DE_ASSERT(dst.getHeight() == src.raw().getDepth()); in resolveMultisampleDepthBuffer()
158 for (int y = 0; y < dst.getHeight(); y++) in resolveMultisampleDepthBuffer()
[all …]
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g2d/
DTextureRegion.java39 setRegion(0, 0, texture.getWidth(), texture.getHeight()); in TextureRegion()
76 setRegion(0, 0, texture.getWidth(), texture.getHeight()); in setRegion()
83 float invTexHeight = 1f / texture.getHeight(); in setRegion()
90 int texWidth = texture.getWidth(), texHeight = texture.getHeight(); in setRegion()
145 regionHeight = Math.round(Math.abs(v2 - v) * texture.getHeight()); in setV()
163 regionHeight = Math.round(Math.abs(v2 - v) * texture.getHeight()); in setV2()
175 return Math.round(v * texture.getHeight()); in getRegionY()
179 setV(y / (float)texture.getHeight()); in setRegionY()
202 setV(v2 + height / (float)texture.getHeight()); in setRegionHeight()
204 setV2(v + height / (float)texture.getHeight()); in setRegionHeight()
[all …]
/external/jmonkeyengine/engine/src/lwjgl/com/jme3/system/lwjgl/
DLwjglDisplay.java58 && mode.getHeight() == height in getFullscreenDisplayMode()
72 if (settings.getWidth() <= 0 || settings.getHeight() <= 0){ in createContext()
74 settings.setResolution(displayMode.getWidth(), displayMode.getHeight()); in createContext()
76 displayMode = getFullscreenDisplayMode(settings.getWidth(), settings.getHeight(), in createContext()
81 displayMode = new DisplayMode(settings.getWidth(), settings.getHeight()); in createContext()
178 listener.reshape(settings.getWidth(), settings.getHeight()); in runLoop()
214 …BufferedImage convertedImage = new BufferedImage(image.getWidth(), image.getHeight(), BufferedImag… in imageToByteBuffer()
217 double height = image.getHeight() * (double) 1; in imageToByteBuffer()
219 (int) ((convertedImage.getHeight() - height) / 2), in imageToByteBuffer()
225 byte[] imageBuffer = new byte[image.getWidth() * image.getHeight() * 4]; in imageToByteBuffer()
[all …]
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DBitmapFactoryTest.java25 assertEquals(100, bitmap.getHeight()); in decodeResource_shouldSetDescription()
34 assertEquals(100, bitmap.getHeight()); in decodeResourceWithOpts_shouldSetDescription()
44 assertEquals(100, bitmap.getHeight()); in decodeFile_shouldSetDescription()
53 assertEquals(100, bitmap.getHeight()); in decodeStream_shouldSetDescription()
63 assertEquals(456, bitmap.getHeight()); in decodeResource_shouldGetWidthAndHeightFromHints()
74 assertEquals(456, bitmap.getHeight()); in decodeResourceWithOpts_shouldGetWidthAndHeightFromHints()
94 assertEquals(456, bitmap.getHeight()); in decodeFile_shouldGetWidthAndHeightFromHints()
114 assertEquals(456, bitmap.getHeight()); in decodeUri_shouldGetWidthAndHeightFromHints()
125 assertEquals(456, bitmap.getHeight()); in decodeStream_shouldGetWidthAndHeightFromHints()
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/
DTransformationUtils.java41 } else if (toCrop.getWidth() == width && toCrop.getHeight() == height) { in centerCrop()
48 if (toCrop.getWidth() * height > width * toCrop.getHeight()) { in centerCrop()
49 scale = (float) height / (float) toCrop.getHeight(); in centerCrop()
53 dy = (height - toCrop.getHeight() * scale) * 0.5f; in centerCrop()
87 if (toFit.getWidth() == width && toFit.getHeight() == height) { in fitCenter()
94 final float heightPercentage = height / (float) toFit.getHeight(); in fitCenter()
101 final int targetHeight = (int) (minPercentage * toFit.getHeight()); in fitCenter()
103 if (toFit.getWidth() == targetWidth && toFit.getHeight() == targetHeight) { in fitCenter()
120 Log.v(TAG, "toFit: " + toFit.getWidth() + "x" + toFit.getHeight()); in fitCenter()
121 Log.v(TAG, "toReuse: " + toReuse.getWidth() + "x" + toReuse.getHeight()); in fitCenter()
[all …]
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/glutils/
DFileTextureArrayData.java59 height = data.getHeight(); in prepare()
62 if (width != data.getWidth() || height != data.getHeight()) { in prepare()
79 Pixmap temp = new Pixmap(pixmap.getWidth(), pixmap.getHeight(), texData.getFormat()); in consumeTextureArrayData()
82 temp.drawPixmap(pixmap, 0, 0, 0, 0, pixmap.getWidth(), pixmap.getHeight()); in consumeTextureArrayData()
90 …Image3D(GL30.GL_TEXTURE_2D_ARRAY, 0, 0, 0, i, pixmap.getWidth(), pixmap.getHeight(), 1, pixmap.get… in consumeTextureArrayData()
102 public int getHeight () { in getHeight() method in FileTextureArrayData
103 return textureDatas[0].getHeight(); in getHeight()
DMipMapGenerator.java63 …Gdx.gl.glTexImage2D(target, 0, pixmap.getGLInternalFormat(), pixmap.getWidth(), pixmap.getHeight()… in generateMipMapGLES20()
71 …Gdx.gl.glTexImage2D(target, 0, pixmap.getGLInternalFormat(), pixmap.getWidth(), pixmap.getHeight()… in generateMipMapDesktop()
80 …Gdx.gl.glTexImage2D(target, 0, pixmap.getGLInternalFormat(), pixmap.getWidth(), pixmap.getHeight()… in generateMipMapCPU()
85 int height = pixmap.getHeight() / 2; in generateMipMapCPU()
91 tmp.drawPixmap(pixmap, 0, 0, pixmap.getWidth(), pixmap.getHeight(), 0, 0, width, height); in generateMipMapCPU()
95 …glTexImage2D(target, level, pixmap.getGLInternalFormat(), pixmap.getWidth(), pixmap.getHeight(), 0, in generateMipMapCPU()
99 height = pixmap.getHeight() / 2; in generateMipMapCPU()
DHdpiUtils.java34 || Gdx.graphics.getHeight() != Gdx.graphics.getBackBufferHeight()) { in glScissor()
45 || Gdx.graphics.getHeight() != Gdx.graphics.getBackBufferHeight()) { in glViewport()
65 return (int)(backBufferY * Gdx.graphics.getHeight() / (float)Gdx.graphics.getBackBufferHeight()); in toLogicalY()
81 return (int)(logicalY * Gdx.graphics.getBackBufferHeight() / (float)Gdx.graphics.getHeight()); in toBackBufferY()
/external/libgdx/backends/gdx-backend-lwjgl3/src/com/badlogic/gdx/backends/lwjgl3/
DLwjgl3Cursor.java50 if ((pixmap.getHeight() & (pixmap.getHeight() - 1)) != 0) { in Lwjgl3Cursor()
51 throw new GdxRuntimeException("Cursor image pixmap height of " + pixmap.getHeight() in Lwjgl3Cursor()
60 if (yHotspot < 0 || yHotspot >= pixmap.getHeight()) { in Lwjgl3Cursor()
62 + " is not within image height bounds: [0, " + pixmap.getHeight() + ")."); in Lwjgl3Cursor()
65 this.pixmapCopy = new Pixmap(pixmap.getWidth(), pixmap.getHeight(), Pixmap.Format.RGBA8888); in Lwjgl3Cursor()
70 glfwImage.height(pixmapCopy.getHeight()); in Lwjgl3Cursor()
/external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/
DGwtCursor.java43 if ((pixmap.getHeight() & (pixmap.getHeight() - 1)) != 0) { in GwtCursor()
44 throw new GdxRuntimeException("Cursor image pixmap height of " + pixmap.getHeight() in GwtCursor()
53 if (yHotspot < 0 || yHotspot >= pixmap.getHeight()) { in GwtCursor()
55 + pixmap.getHeight() + ")."); in GwtCursor()
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/
DGeoMap.java137 public int getHeight() { in getHeight() method in GeoMap
163 if (store.remaining() < getWidth()*getHeight()*3) in writeNormalArray()
166 store = BufferUtils.createFloatBuffer(getWidth()*getHeight()*3); in writeNormalArray()
176 for (int y = 0; y < getHeight(); y++) { in writeNormalArray()
179 if (y == getHeight() - 1) { in writeNormalArray()
268 (float)y / (float)getHeight() ); in getUV()
278 if (store.remaining() < getWidth()*getHeight()*2) in writeTexCoordArray()
281 store = BufferUtils.createFloatBuffer(getWidth()*getHeight()*2); in writeTexCoordArray()
288 for (int y = 0; y < getHeight(); y++){ in writeTexCoordArray()
301 int faceN = (getWidth()-1)*(getHeight()-1)*2; in writeIndexArray()
[all …]
/external/libgdx/extensions/gdx-tools/src/com/badlogic/gdx/tools/imagepacker/
DImagePacker.java121 …Rectangle rect = new Rectangle(0, 0, image.getWidth() + borderPixels, image.getHeight() + borderPi… in insertImage()
142 image.getHeight() - 1, image.getWidth(), image.getHeight(), null); in insertImage()
144 …g.drawImage(image, rect.x - 1, rect.y, rect.x, rect.y + rect.height, 0, 0, 1, image.getHeight(), n… in insertImage()
146 image.getWidth(), image.getHeight(), null); in insertImage()
152 …e, rect.x - 1, rect.y + rect.height, rect.x, rect.y + rect.height + 1, 0, image.getHeight() - 1, 1, in insertImage()
153 image.getHeight(), null); in insertImage()
155 image.getWidth() - 1, image.getHeight() - 1, image.getWidth(), image.getHeight(), null); in insertImage()
232 return o2.getWidth() * o2.getHeight() - o1.getWidth() * o1.getHeight(); in main()
/external/deqp/framework/opengl/
DgluPixelTransfer.cpp57 int height = dst.getHeight(); in readPixels()
76 int height = src.getHeight(); in texImage2D()
92 TCU_CHECK_INTERNAL(src.getSlicePitch() == src.getRowPitch()*src.getHeight()); in texImage3D()
95 int height = src.getHeight(); in texImage3D()
115 int height = src.getHeight(); in texSubImage2D()
131 TCU_CHECK_INTERNAL(src.getSlicePitch() == src.getRowPitch()*src.getHeight()); in texSubImage3D()
134 int height = src.getHeight(); in texSubImage3D()
DgluTexture.cpp133 …exture (getUncompressedFormat(levels[0].getFormat()), levels[0].getWidth(), levels[0].getHeight()) in Texture2D()
181 …gl.texImage2D(GL_TEXTURE_2D, levelNdx, m_format, access.getWidth(), access.getHeight(), 0 /* borde… in upload()
203 level.getHeight() == refLevelAccess.getHeight()); in loadCompressed()
208 level.getWidth(), level.getHeight(), 0 /* border */, level.getDataSize(), level.getData()); in loadCompressed()
233 …xture2D(context, isRGBA ? GL_RGBA : GL_RGB, GL_UNSIGNED_BYTE, level.getWidth(), level.getHeight()); in create()
297 TCU_CHECK_INTERNAL(levels[0].getWidth() == levels[0].getHeight()); in TextureCube()
368 …ace((tcu::CubeFace)face), levelNdx, m_format, access.getWidth(), access.getHeight(), 0 /* border *… in upload()
393 level.getHeight() == refLevelAccess.getHeight()); in loadCompressed()
398 level.getWidth(), level.getHeight(), 0 /* border */, level.getDataSize(), level.getData()); in loadCompressed()
487 …gl.texImage2D(GL_TEXTURE_1D_ARRAY, levelNdx, m_format, access.getWidth(), access.getHeight(), 0 /*… in upload()
[all …]
/external/jmonkeyengine/engine/src/tools/jme3tools/optimize/
DTextureAtlas.java261 } else if (location.width != image.getWidth() || location.height != image.getHeight()) { in addImage()
282 int height = source.getHeight(); in drawImage()
354 …ge(format, source.getWidth(), source.getHeight(), BufferUtils.createByteBuffer(source.getWidth() *… in convertImageToAwt()
591 … if (image.getWidth() > location.getWidth() || image.getHeight() > location.getHeight()) { in insert()
595 … if (image.getWidth() == location.getWidth() && image.getHeight() == location.getHeight()) { in insert()
601 int dh = location.getHeight() - image.getHeight(); in insert()
604 … child[0] = new Node(location.getX(), location.getY(), image.getWidth(), location.getHeight()); in insert()
605 …+ image.getWidth(), location.getY(), location.getWidth() - image.getWidth(), location.getHeight()); in insert()
607 … child[0] = new Node(location.getX(), location.getY(), location.getWidth(), image.getHeight()); in insert()
608 …ocation.getX(), location.getY() + image.getHeight(), location.getWidth(), location.getHeight() - i… in insert()
[all …]
/external/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/
DValue.java58 return context == null ? 0 : context.getHeight();
75 return context == null ? 0 : context.getHeight();
91 return context == null ? 0 : context.getHeight();
108 return actor.getHeight() * percent;
128 return actor.getHeight() * percent;
DTooltip.java103 …2 point = actor.localToStageCoordinates(tmp.set(x + offsetX, y - offsetY - container.getHeight())); in setContainerPosition()
107 …if (point.y + container.getHeight() > stage.getHeight() - dist) point.y = stage.getHeight() - dist… in setContainerPosition()
110 point = actor.localToStageCoordinates(tmp.set(actor.getWidth() / 2, actor.getHeight() / 2)); in setContainerPosition()
/external/deqp/framework/common/
DtcuFuzzyImageCompare.cpp127 int h = src.getHeight(); in bilinearSample()
164 DE_ASSERT(dst.getWidth() == src.getWidth() && dst.getHeight() == src.getHeight()); in separableConvolve()
166 TextureLevel tmp (dst.getFormat(), dst.getHeight(), dst.getWidth()); in separableConvolve()
174 for (int j = 0; j < src.getHeight(); j++) in separableConvolve()
193 for (int j = 0; j < src.getHeight(); j++) in separableConvolve()
239 if (!deInBounds32(dx, 0, surface.getWidth()) || !deInBounds32(dy, 0, surface.getHeight())) in distSquaredToNeighbor()
275 DE_ASSERT(ref.getWidth() == cmp.getWidth() && ref.getHeight() == cmp.getHeight()); in fuzzyCompare()
276 DE_ASSERT(errorMask.getWidth() == ref.getWidth() && errorMask.getHeight() == ref.getHeight()); in fuzzyCompare()
282 int height = ref.getHeight(); in fuzzyCompare()
/external/jmonkeyengine/engine/src/android/com/jme3/input/android/
DAndroidInput.java239 … touch.set(Type.DOWN, event.getX(pointerIndex), this.getHeight() - event.getY(pointerIndex), 0, 0); in onTouchEvent()
253 … touch.set(Type.UP, event.getX(pointerIndex), this.getHeight() - event.getY(pointerIndex), 0, 0); in onTouchEvent()
269 … lastPos = new Vector2f(event.getX(pointerIndex), this.getHeight() - event.getY(pointerIndex)); in onTouchEvent()
273 …vent.getX(pointerIndex), this.getHeight() - event.getY(pointerIndex), event.getX(pointerIndex) - l… in onTouchEvent()
278 … lastPos.set(event.getX(pointerIndex), this.getHeight() - event.getY(pointerIndex)); in onTouchEvent()
409 newY = this.getHeight() - (int) event.getY(); in generateEvents()
480 touch.set(Type.LONGPRESSED, event.getX(), this.getHeight() - event.getY(), 0f, 0f); in onLongPress()
488 touch.set(Type.FLING, event.getX(), this.getHeight() - event.getY(), vx, vy); in onFling()
503 touch.set(Type.DOUBLETAP, event.getX(), this.getHeight() - event.getY(), 0f, 0f); in onDoubleTap()
529 …touch.set(Type.SCALE_MOVE, scaleGestureDetector.getFocusX(), this.getHeight() - scaleGestureDetect… in onScale()
[all …]
/external/deqp/modules/glshared/
DglsTextureTestUtil.cpp200 , m_height (surface.getHeight()) in SurfaceAccess()
437 tcu::IVec2 dstSize = tcu::IVec2(dst.getWidth(), dst.getHeight()); in sampleTextureNonProjected()
445 for (int y = 0; y < dst.getHeight(); y++) in sampleTextureNonProjected()
449 float yf = ((float)y + 0.5f) / (float)dst.getHeight(); in sampleTextureNonProjected()
472 tcu::IVec2 dstSize = tcu::IVec2(dst.getWidth(), dst.getHeight()); in sampleTextureNonProjected()
473 tcu::IVec2 srcSize = tcu::IVec2(src.getWidth(), src.getHeight()); in sampleTextureNonProjected()
481 for (int y = 0; y < dst.getHeight(); y++) in sampleTextureNonProjected()
485 float yf = ((float)y + 0.5f) / (float)dst.getHeight(); in sampleTextureNonProjected()
509 float dstH = (float)dst.getHeight(); in sampleTextureProjected()
517 for (int py = 0; py < dst.getHeight(); py++) in sampleTextureProjected()
[all …]
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/textures/
DTextureHelper.java232 int height = sources.get(0).getImage().getHeight(); in mergeTextures()
239 if(source.getImage().getHeight() != height) { in mergeTextures()
305 …BufferedImage heightMap = new BufferedImage(sourceImage.getWidth(), sourceImage.getHeight(), Buffe… in convertToNormalMapTexture()
306 …BufferedImage bumpMap = new BufferedImage(sourceImage.getWidth(), sourceImage.getHeight(), Buffere… in convertToNormalMapTexture()
315 for (int y = 0; y < bumpMap.getHeight(); ++y) { in convertToNormalMapTexture()
319 …S.z = strengthFactor * this.getHeight(heightMap, x + 1, y) - strengthFactor * this.getHeight(heigh… in convertToNormalMapTexture()
322 …T.z = strengthFactor * this.getHeight(heightMap, x, y + 1) - strengthFactor * this.getHeight(heigh… in convertToNormalMapTexture()
334 ByteBuffer byteBuffer = BufferUtils.createByteBuffer(image.getWidth() * image.getHeight() * 3); in convertToNormalMapTexture()
336 return new Texture2D(new Image(Format.RGB8, image.getWidth(), image.getHeight(), byteBuffer)); in convertToNormalMapTexture()
350 protected int getHeight(BufferedImage image, int x, int y) { in getHeight() method in TextureHelper
[all …]
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/g3d/
DBaseG3dHudTest.java71 hudHeight = hud.getHeight(); in createHUD()
102 rotateCheckBox.setPosition(hudWidth - rotateCheckBox.getWidth(), gridCheckBox.getHeight()); in createHUD()
119 if (window.getHeight() > hudHeight) { in addListWindow()
123 window.setY(y < 0 ? hudHeight - (window.getHeight() - (y + 1)) : y); in addListWindow()
167 hudHeight = hud.getHeight();
188 …if (getTapCount() == 2 && getHeight() - y <= getPadTop() && y < getHeight() && x > 0 && x < getWid…
203 expandHeight = getHeight();

12345678910>>...30