473,406 Members | 2,816 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Jpg Mosaic and BMP issue

I have been struggling all day with the following:

I am trying to mosaic numerous georeferenced jpgs (so that I can
reduce the size of the whole lot together lessening edge defects other
than those at the extremes of the mosaic and getting a better quality
reduction). When I add a jpg image to a new (large) image OF TYPE
Bitmap the resulting output image is no-good, see:

http://danofweaver.googlepages.com/development

It looks like an array type (count -1 --arghh!) problem but each of
those tiles when stepping through the code is a 2000 x 2000 image and
being placed in the new image at (0,0) , (0,2000) and (0,4000)
respectively, so I think its an image compatibility problem. Should I
set up and draw to a new jpg (the output is fine as a jpg)? If so how
is this done? What is causing the problem?
I have placed another test result on the page linked to above - that
of a 100x140 jpg placed to 0,0 and in GIMP the coordinate of the
bottom right of Bill is about 133,188? what is the deal?

Any thoughts gratefully received- I'm unsure which code is germane but
here are a few bits...

Dim Mosaic As Bitmap
Mosaic = New Bitmap(2000,6000)

Dim MosaicGraphics As Graphics
MosaicGraphics = Graphics.FromImage(Mosaic)
:
animage = Image.FromFile(AllImages(Ximage, Yimage)) ' path to a JPG
MosaicGraphics.DrawImage(animage, startpoint)

Oct 7 '08 #1
2 1473
I haven't tried it, but I guess it would be something like:

Dim Rect As New Rectangle(StartPoint.X, StartPoint.Y, 2000,2000)
MosaicGraphics.DrawImage(animage, Rect)
"DanWeaver" <da*********@googlemail.comwrote in message
news:b2**********************************@x16g2000 prn.googlegroups.com...
>I have been struggling all day with the following:

I am trying to mosaic numerous georeferenced jpgs (so that I can
reduce the size of the whole lot together lessening edge defects other
than those at the extremes of the mosaic and getting a better quality
reduction). When I add a jpg image to a new (large) image OF TYPE
Bitmap the resulting output image is no-good, see:

http://danofweaver.googlepages.com/development

It looks like an array type (count -1 --arghh!) problem but each of
those tiles when stepping through the code is a 2000 x 2000 image and
being placed in the new image at (0,0) , (0,2000) and (0,4000)
respectively, so I think its an image compatibility problem. Should I
set up and draw to a new jpg (the output is fine as a jpg)? If so how
is this done? What is causing the problem?
I have placed another test result on the page linked to above - that
of a 100x140 jpg placed to 0,0 and in GIMP the coordinate of the
bottom right of Bill is about 133,188? what is the deal?

Any thoughts gratefully received- I'm unsure which code is germane but
here are a few bits...

Dim Mosaic As Bitmap
Mosaic = New Bitmap(2000,6000)

Dim MosaicGraphics As Graphics
MosaicGraphics = Graphics.FromImage(Mosaic)
:
animage = Image.FromFile(AllImages(Ximage, Yimage)) ' path to a JPG
MosaicGraphics.DrawImage(animage, startpoint)
Oct 7 '08 #2
Thanks James; I'll try that out. Sorry for delay in response.
Oct 15 '08 #3

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

Similar topics

3
by: Paul Mateer | last post by:
Hi, I have been running some queries against a table in a my database and have noted an odd (at least it seems odd to me) performance issue. The table has approximately 5 million rows and...
7
by: George Hester | last post by:
Please take a look at this google artcle: http://groups.google.com/groups?hl=en&lr=&frame=right&th=55d6f4b50f5f9382&seekm=411f370d%241%40olaf.komtel.net#link9 The op was having trouble with...
1
by: VK | last post by:
Google failed on NSCA Mosaic
2
by: Anthony Cuttitta Jr. | last post by:
We have an application that outputs several different graphs from data downloaded from our AS400. The application has worked without (this) issue for several months now, but just recently, the...
0
by: Kevin Spencer | last post by:
Hi all, I am working on a service that uploads METAR weather information to the National Weather Service FTP site. The service I'm authoring is hosted on a Windows 200 server, and the NWS FTP...
2
by: Ben Rush | last post by:
Hello World, Okay, I have spent the day browsing the newsgroups and reading up on article after article concerning ViewState corruption and so forth, and I have a couple questions. We...
5
by: Robert | last post by:
I have a series of web applications (configured as separate applications) on a server. There is a main application at the root and then several virtual directories that are independant...
0
by: Charles Leonard | last post by:
I am having yet another issue with Windows Server 2003. This time, the web service (a file import web service) appears to run except for one odd message: "ActiveX component can't create object". ...
13
by: SAL | last post by:
Hello, I'm trying to include a popup in the ItemTemplate of a gridview row. The ItemTemplate for the field contains a textbox and when the user clicks in the textbox I want a popup panel to show...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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
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,...

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.