473,503 Members | 1,697 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Combining Image memory spaces


I'm developing an application that draws on several disk based images to
create a composite image. I've noticed that my rendering time goes up
as I load more images into memory. However, this seems to be due to the
number of distinct images rather than the number of bytes they take up,
since when I combine them into a single image in photoshop my rendering
time goes down again.

Since an image is essentially a 1D array of bytes in memory, I was
wondering if perhaps there were some way to combine my images at runtime
into a single 'super image' or image group where everything was stored
in a contigious block of memory and received the benefits of being
treated like a VolitileImage and fast blitting. I can't do this in
photoshop, since different scenerios will require different image
resources to be loaded in the background.

Another technique would be to composite all my images into a giant 2D
source Image, but I would like to avoid this since it would waste space
(gaps between images) and creating the best fit sorting algorithm for
this is a PhD level research project.

Alternately, is there a way to stop Java from penalizing me from having
multiple static Images in use?

Mark McKay

Jul 17 '05 #1
1 2025
Not to be a wise ass, but java prides itself in information
hiding and having the ability to change the representation
of its objects without the customer knowing or having to
know or getting to know. So it appears that you are SOL
from my limited experience point of view.
Phil...

"Mark McKay" <ma**@kitfox.com> wrote in message
news:Xu********************@mantis.golden.net...

I'm developing an application that draws on several disk based images to
create a composite image. I've noticed that my rendering time goes up
as I load more images into memory. However, this seems to be due to the
number of distinct images rather than the number of bytes they take up,
since when I combine them into a single image in photoshop my rendering
time goes down again.

Since an image is essentially a 1D array of bytes in memory, I was
wondering if perhaps there were some way to combine my images at runtime
into a single 'super image' or image group where everything was stored
in a contigious block of memory and received the benefits of being
treated like a VolitileImage and fast blitting. I can't do this in
photoshop, since different scenerios will require different image
resources to be loaded in the background.

Another technique would be to composite all my images into a giant 2D
source Image, but I would like to avoid this since it would waste space
(gaps between images) and creating the best fit sorting algorithm for
this is a PhD level research project.

Alternately, is there a way to stop Java from penalizing me from having
multiple static Images in use?

Mark McKay

Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
11722
by: Andrew Dixon - Depictions.net | last post by:
Hi Everyone. I have been working on some code that strips the HTML code out of an HTML page leaving just the text on the page. At the moment this is what I have: // Strip all tags...
3
1458
by: Mayank Kaushik | last post by:
Hi everyone, I am confused about how the linker actually goes about generating a memory image. Right now im studying how ld works, i have to use it with an ARM920T. Suppose i have a program...
2
2802
by: hp3k | last post by:
Hi, I'm a newbie to VB .Net and am unable to locate an example of combine two different font types (Arial and Wingdings 3) in a display (text) string. Does anyone have an example of combining...
3
10466
by: Thomas Satzinger | last post by:
Hallo., i just encounterd a strange thing which i cannot resolve. I am saving a bitmap created in memory to the asp temp folder (asp.net 2.0) this works fine, and i don´t want to create an...
62
17618
by: ivan.leben | last post by:
How can I really delete a preloaded image from memory/disk cache? Let's say I preload an image by creating an Image object and setting its src attribute to desired URL: var img = new Image();...
7
13520
by: bcutting | last post by:
I am looking for a way to take a large number of images and find matches among them. These images may not be exact replicas. Images may have been resized, cropped, faded, color corrected, etc. ...
10
10573
by: H | last post by:
Hi, I have the following address fields in a table: flat_number house_name_or_number street village postal_town county postcode
3
2821
by: Ken Fine | last post by:
This is a question that someone familiar with ASP.NET and ADO.NET DataSets and DataTables should be able to answer fairly easily. The basic question is how I can efficiently match data from one...
6
1655
by: Samuel | last post by:
Hi I use the image controls to show images but it distorts the image if the image dimensions are different to the image itself Thank you, Samuel
0
7074
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...
0
7451
tracyyun
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...
0
5572
agi2029
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,...
1
5000
isladogs
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...
0
4667
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...
0
3161
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3150
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1501
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
374
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.