Questions tagged [loadimage]
179 questions
0
votes
2 answers
Convert URL to Bitmap results in a network error in Android
I'm trying to load an image from an URL to a Bitmap but I am getting a NetworkOnMainThreadException error but I don't know why.
This is the method I am using:
public Bitmap getBitmapFromURL(String src) {
try {
java.net.URL url = new…

Marcos Guimaraes
- 1,243
- 4
- 27
- 50
0
votes
0 answers
Win32: Small Icon doesn't show
I'm learning Win32 programming
I used LoadImage(...) to set the small icon for the window but it doesn't seem to be working and I cannot pinpoint the problem
void AddIcons(HWND hw)
{
HICON hi = LoadImage(NULL, "ICON.bmp", IMAGE_BITMAP, 16, 16,…

Zero Cipher
- 78
- 1
- 12
0
votes
1 answer
Load multiple images from specific folder to GridView Gallery using Glide
I have simple gallery inside my Dialog, all it works good but for now when I have some photos and I need to scroll view it all process doesn't works smoothly. I read that good practice to do that is using Glide lib so I try to do that using code :…
user3753721
0
votes
1 answer
Processing - mousePress image go to function
I have loaded and created two image buttons menuStart and menuExit withe menuStart.png and menuExit.png:
image(menuStart, 250, 350, 100, 42);
image(menuExit, 450, 345, 110, 45);
What I've doing:
I have set my pages as stages. stage 1 is a menu,…

user2990
- 15
- 1
- 8
0
votes
1 answer
How to get subimage with FreeImage
As stated in the title, I am using FreeImage to load textures in my OpenGL game, but how do I get subimages?
My current code looks like this:
FREE_IMAGE_FORMAT fif = FIF_UNKNOWN;
FIBITMAP* dib = nullptr;
fif =…

fanis deligiannis
- 35
- 1
- 5
0
votes
1 answer
Load Image and video from url
I'm having troubles when I have to Load image from url. I get this url on a response from a POST to server.
So I have the POST funtion below:
public void getDataStruct()
{
string url = " myurl";
WWWForm form = new WWWForm();
…

Francisco Castro
- 435
- 10
- 20
0
votes
1 answer
Inconsistent behavior on loading images using AsyncTask
What the application does is very simple. It loads two RSS feeds and on each RSS feed, it contains two items with a title, an image and a link. And then it downloads the images, saves it on to local folder and display them. So two RSS feeds, and 4…

juniano
- 354
- 4
- 13
0
votes
0 answers
processing.js not loading images for an animation cycle, missing syntax perhaps?
My javascript is not throwing me any errors when testing in a browser, and I have the /* @pjs */ directive.
I am trying to render a patch of flowers, each flower in 13 frames, loaded into a PI Images array.
My paths are good, I think I am missing…

marie_antoinette
- 181
- 2
- 10
0
votes
0 answers
Why OpenCV project's multi thread are slower than single one?
I have written some codes to load 1025 images with OpenCV to process them;these codes are in two versions :
single thread and multi threads; problem is that the results of codes have confused me; because single thread version is faster than multi…

MohsenTi
- 361
- 1
- 2
- 17
0
votes
1 answer
Py Processing pixels[] array does not contain all pixels in large images
I'm using Processing in Python mode to load an image and do a calculation on it. The general idea is:
def setup():
global maxx, maxy
maxx = 0
maxy = 0
# load the image
global img
img = loadImage("img.jpg");
maxx =…

raf
- 535
- 4
- 18
0
votes
1 answer
GDI+ Error when calling Image.FromHBitmap on handle returned by LoadImage
So I try to load an image resource from a dll file. To do this I created the method
static Bitmap GetImageResource(IntPtr handle, string resourceId)
{
IntPtr img_ptr = NativeMethods.LoadImage(handle, "#" + resourceId, IMAGE_ICON, 16, 16, 0);
…

Tom Doodler
- 1,471
- 2
- 15
- 41
0
votes
1 answer
Load .svg images from URL
Can I load .svg images from URL with library SDWebImage? I found SVGKit but it's not performant,too buggy and load images in webviews.
I need the best practice. thanks in advance .

Aymen BRomdhane
- 143
- 1
- 14
0
votes
2 answers
trouble adding 2 or more images to the pane Javafx
I'm programming an easy version of BlackJack in javafx but I lost my road home I guess! I need to show cards in 2 rows when I click hit button.
How can I add different images in a row when I click a button? I tried to use GridPane and BorderPane but…

vannteil
- 11
- 1
- 5
0
votes
3 answers
Load 10 image on first page
I use this method to load 10 image on first page but i have one problem.
first image takes a lot of time to load. After first image other image loading fast.
I don`t know why?
calling method new DownloadImageTask((ImageView)…

Sobhan Moradi
- 529
- 5
- 17
0
votes
1 answer
OpenLayers onmousedown load image
I was looking at this example of openLayers ( http://openlayers.org/en/v3.14.1/examples/custom-interactions.html?q=custom ) and I was wondering how can I load a small image like the one in the example on mouse down on the map? I tried several things…
user2983190