Skip to content
Advertisement

Tag: bufferedimage

getRGB throws error when trying to get the color of coordinates of an image

I have been searching for ways to get the color of a coordinate (x, y) of an image. I have an image, Image depthImage = mActivityTestRule.getActivity().getDepthImage();, and I would like to do that, by giving the coordinates. My project is an ARCore project (git clone https://github.com/google-ar/arcore-android-sdk.git) One solution that I found is but the expression getRGB is highlighted in red.

How to create an endpoint which takes a path, load the image and serve it to the client

I want to serve an image to a client by converting it to a byte but for some reason byteArrayOutputStream.toByteArray() is empty. I get a response status of 200 which means it is served. I looked at various documentations on reading an image file from a directory using BufferedImage and then converting BufferedImage to a byteArray from oracle https://docs.oracle.com/javase/tutorial/2d/images/loadimage.html and

JavaFX trouble importing [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year. Improve this question I am new to java and I would like to convert a buffered image to a regular image object and then

BufferedImage are Null in runtime

I’m having a problem with BufferedImage in runtime. I’m loading an .png, but the BufferedImage is null. I don’t get an IOException, but an NullPointerException. And the biggest problem to me, is that when I run this same code in netbeans he works fine… My code is The ApplicationProperties.getPath() are static and don’t change in runtime. And if I separate

Load a sprites image in java

I want to ask if why am getting error loading any sprite images into the object here is how I get the image in. here is how I’m implementing it I also want to ask about my way of using the sprites array. I want to use in the timer by changing the image drawn by action event by changing

Advertisement