image-loading

How to preload images so they're loaded faster everywhere else on the page, and is it a good practice?

Here's the thing: I have a Google Map with a lot of markers in it. The problem is that the map loads, stays empty for a little while and only then markers are displayed. The markers are customized PNGs. My idea is to "preload" them (not sure it's the right word) so they appear almost at the same time as the map. What I did so far is t...

Simple image loading libraries

I have an app that uses this library (actually a direct port to D) for some image processing. I'm looking for some other libraries of a similar style to use to load other file types. Things I need/want: Loss less format. Simple C API. Loads data into buffers in a raw pixel format. Open source (as in I can get source files and compile ...

png image blurry when loaded onto texture

I have created a png image in photoshop with transparencies that I have loaded into and OpenGL program. I have binded it to a texture and in the program the picture looks blurry and I'm not sure why. Loading Code // Texture loading object nv::Image title; // Return true on success if(title.loadImageFromFile("test.png")) { glGe...

How to make scrolling through images as fast as Apple's Photos app

The Goal — On an iPhone, to browse through several hundred locally-stored jpgs using a UIScrollView. The Problem — Like many others before me, I've tried implementing a scroll view based on Apple's Page Control sample code and found it lacking. The biggest issue I'm currently up against is that the sample code's architecture doesn't see...

Android: lazy loading in Gallery

Hi, I've reviewed some posts about lazy loading but I believe my problem is a bit different. I have a gallery (my class extends Gallery) which displays 20 rather large in size images (400-500K each). I cannot load them all to gallery since I get an OutOfMemory exception. So, I created an array of 20 Drawables and initially populated ...

File not found error with LoadImage() (Windows)

EDIT: I've added a few more lines of the program to the code snippet below. I have the following line of code in a program BITMAP BMP; HBITMAP hBMP; hBMP = (HBITMAP)LoadImage(GetModuleHandle(NULL), "Test.bmp", IMAGE_BITMAP, 0, 0, LR_CREATEDIBSECTION | LR_LOADFROMFILE); if (!hBMP) return 1; GetObject(hBMP, sizeof(BMP), &BMP); and wh...

ASP.NET MVC - How do I load an image asynchronously?

On the home page of my site I want to display a lot of products which have images which are quite large. Currently the page is taking so long to load that it is actually timing out and the page fails to display! In MVC, or just ASP.NET in general, how can I load an image asynchronously? Basically what I want to do is display the detail...

Javascript: Adjusting image container height to dynamic image height after image load?

i load graphs via the following javascript function: function loadMCorCBGraph(self,surveyID,questionID,varID) { var img = new Image(); img.onload = function() { $(self).parents().parents().siblings(".graph_container") .empty().append(img); }; img.src = 'drawGraph.php?type=surveys_report_MC_or_CB&surveyI...

ActionScript 3.0 how many loaders?

Hi, I want to load 2 different elements on my flash video: First is a dynamic photo (I take the specific number from an external variable) Latter is a swf video... My question is? I'm new to AS3, I saw that I need a loader and I can load everything.. but how many loaders I must have? Can I use only one changing the function called on ...

Load browser images with javascript event?

I've got a page containing a lot of images, which are initially hidden from view as I'm using tabbed divs (ie. hiding some divs using CSS display:none). Therefore, when then page loads, it takes ages to load all of the images, which looks like the page is slow (as the loading bar on the browser doesn't complete for 10+ seconds). I woul...

What's a good technique for displaying a "loading..." image?

I am working with a div that has any number of img elements inside it. Right now, each img has the following CSS: #content > img { display: none; position: absolute; top: 0px; left: 0px; } And the images can be cycled-through with a function that shows and hides them in turn. While each image is loading, however, I'd like to display a...