Hello...
I am new to C#. My requirement is that, I will receive over 100s of images
from the network to local machine and display these images on an image viewer
one by one on mouse scroll. To improve the performance, I want these images
to reside on the RAM instead of the hard disk. How do I load the images to
the ram and access it to improve my performance.
--
Mohan 3 2222
"=?Utf-8?B?bXJhag==?=" <mo*********@ya hoo.com> wrote in
news:96******** *************** ***********@mic rosoft.com: I am new to C#. My requirement is that, I will receive over 100s of images from the network to local machine and display these images on an image viewer one by one on mouse scroll. To improve the performance, I want these images to reside on the RAM instead of the hard disk. How do I load the images to the ram and access it to improve my performance.
Just load them into an image component and cache them. Or if you are doing the drawing directly, you
can store them in byte arrays or streams.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programmin g is an art form that fights back"
Empower ASP.NET with IntraWeb http://www.atozed.com/IntraWeb/
See the GDI+ FAQ for articles that may help you to understand the
shortcomings of such a scheme.
Images take up a lot of space so uless you're using thumbnails you could be
in for a lot of pain trying to store large amounts of images in RAM.
--
Bob Powell [MVP]
Visual C#, System.Drawing
Find great Windows Forms articles in Windows Forms Tips and Tricks http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
"mraj" <mo*********@ya hoo.com> wrote in message
news:96******** *************** ***********@mic rosoft.com... Hello...
I am new to C#. My requirement is that, I will receive over 100s of images from the network to local machine and display these images on an image viewer one by one on mouse scroll. To improve the performance, I want these images to reside on the RAM instead of the hard disk. How do I load the images to the ram and access it to improve my performance. -- Mohan
Hi mraj,
As your goal is performance, you must keep an open eye on the number of
images and total size you are going to load in memory first.
If you think you plan it well, you can use the BitMap class to load the
Image from file and you can combine in with MemoryStream object to direct it
in a memory stream of bytes.
Mu advice to not load them all in memory, at least load couples of them and
drop them to get a new couple when user scrolls a page.
Hope that work with you, good luck
--
Ahmed Ghozzy
"mraj" wrote: Hello...
I am new to C#. My requirement is that, I will receive over 100s of images from the network to local machine and display these images on an image viewer one by one on mouse scroll. To improve the performance, I want these images to reside on the RAM instead of the hard disk. How do I load the images to the ram and access it to improve my performance. -- Mohan This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Stacey |
last post by:
Hi,
I'm hoping for a bit of advise-- I have a (relatively, from the
point-of-view of this dilettante) complex script that attempts to preload
certain images in order to trigger one of a series of six slideshows
(rather than try to articulate, have a look here):
http://www.slack.net/~stacey/stestbed/homejs.jsp
Clicking any of the six blocks of text along the sides will begin a loop
of the corresponding slideshow.
|
by: Adrian MacNair |
last post by:
Hi,
I created an image gallery which displays 63 images in a slideshow. The
problem is that the show was slow because each image loaded one at a time
during the show. No problem right? I just did a preload script. But then the
user has to sit for 5 minutes waiting for 63 images to download! My images
are about 640x480 and average 100kb. Is this too much for one page to load?
Should I load my slideshow into differerent windows? If so,...
|
by: Geoff Cox |
last post by:
Hello
I have following type of code in the header
function pre_load_pics()
{
if (document.images)
{
var image1 = new Image(400,265);
image1.scr = "pic1.jpg";
|
by: VR |
last post by:
Hi,
I am trying to have a menu item (which is an HTML img) to
change as a mouse moves over it. So, my code looks
something like this:
<a
onmouseover="ActivateImage('MyImage');"
onmouseout="InactivateImage('MyImage');"
href="javascript:void(FollowLink('MyImage'));">
|
by: Jean Pierre Daviau |
last post by:
When I have something like this in a js file.
listeImg = new Array();
listeImg = new Image(w,h);
listeImg.src = "centre1.jpg";
etc
Are the images loaded after the page is loaded? In the same time? Before the
page is loaded? The browser decision?
If the visitors goes, before the procedure is over, to another page having
a link to the same js file, will the other page allows for the rest of the
| |
by: Ivan Bútora |
last post by:
I have recently looked at http://alistapart.com/articles/imagegallery
to implement a simple picture gallery on a webpage that I'm working on.
Everything works fine; however, I have one question. When I click on a
thumbnail, a JavaScript function is executed to change the picture in
the main view. Since some of these images are around 300KB, it takes up
to a couple of seconds to load the image. In Internet Explorer, one can
see the image...
|
by: speedcoder |
last post by:
hi all,
i'm stumped. my applet used to load images over the network. (it was actually designed by someone else.) yes, the applet used to load each image file independently over the network and incurred a network hit per image file.
i wanted to avoid the overhead of a separate network connection for each image file, so i bundled all the images into the JAR file. yet, somehow, the loading time for the applet is slower now! i'm totally...
|
by: agatha.life |
last post by:
I did a javascript for the loading of images (I didn't want to have
the images loaded in "on loading" because they are too many).
The website is for a model and if you look at the codeof pages ( for
ex. http://www.agathamoon.com/gallery_48_eng.htm ) using explorer or
firefox it works, with safari it doesn't! :(
The idea is to have the word "loading" appearing while going from an
image to another.
|
by: jeremydowe |
last post by:
Hi,
I have noticed that quite a few websites use a preloading graphic (i.e spining circle) to show the that the site is loading images while the user waits.
How can I add this to my website?
At the moment, i have a request after click on a thumbnail which loads an image below using the innerHTML property.
For example:
|
by: mlikesit |
last post by:
I am trying to get the following code to pre-load some images before re-dirrecting the user. The problem is that the onError event gets called for all of the images immediately. I've tripple checked that the images do in fact exist at the specific url, so I can't figure out why the onError is being called. The script is currently posted on http://www.mkcustomdesign.com/index.html.
<script type="text/javascript">
var imagesToLoad = 0;...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
| |
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |