is there anyway to connect to bitmaps together?
basically, I have a program that generates a graph as it runs, and I can
capture an image of the graph, but is there a way to take two captures, and
join them together so it looks like one big graph? 2 13409
Well, what you would do is create a new image with dimensions big enough to
fit both of the smaller ones, create a Graphics objects from the destination
image, and then use the source objects to draw the source images on the
graphics from the destination image in the desired spots. Of course, all
this accomplishes is setting the two images next to each other; anything
requiring an actual change to the source images would be infinitely more
complicated to implement. Any questions?
Chris
"Phil" <we*******@visu alcoders.net> wrote in message
news:OP******** ******@TK2MSFTN GP12.phx.gbl... is there anyway to connect to bitmaps together? basically, I have a program that generates a graph as it runs, and I can capture an image of the graph, but is there a way to take two captures,
and join them together so it looks like one big graph?
I just noticed Christopher replied. But here's some code that should
do the trick:
(note, there's a lot of scaling, rotating, etc. you can do in the
gr.DrawImage).
Bitmap bmp1 = new Bitmap(@"C:\win dows\Coffee Bean.bmp");
Bitmap bmp2 = new Bitmap(@"C:\win dows\Soap Bubbles.bmp");
int width = bmp1.Width + bmp2.Width;
int height = Math.Max(bmp1.H eight, bmp2.Height);
Bitmap fullBmp = new Bitmap(width, height);
Graphics gr = Graphics.FromIm age(fullBmp);
gr.DrawImage (bmp1, 0, 0, bmp1.Width, bmp1.Height);
gr.DrawImage (bmp2, bmp1.Width, 0);
fullBmp.Save( blah );
"Phil" <we*******@visu alcoders.net> wrote in message
news:OP******** ******@TK2MSFTN GP12.phx.gbl... is there anyway to connect to bitmaps together? basically, I have a program that generates a graph as it runs, and I
can capture an image of the graph, but is there a way to take two
captures, and join them together so it looks like one big graph?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Brad Smalling |
last post by:
Does anyone know if there is a reason to prefer bitmaps over icons (or
vice-versa) when populating image lists? I've always favored icons because
of their built-in transparency (although I've never use the invert "color").
But I've noticed that Microsoft seems to favor bitmaps in many of their
sample applications. Is there a reason? For instance, do icons clutter the
icon cache or require more system resources whereas bitmaps do not?
...
|
by: Gerald Aichholzer |
last post by:
Hello,
I need to specify the following attribute in an xhtml-file
containing TAL templates:
<div tal:attributes="onMouseOver concat('func(',xyz,')')">
which results in
<div onMouseOver=func( )>
|
by: Mark Evans |
last post by:
I have a dialog box and on it I want to display a bitmap, which will
change at various times during the program. My problem is that the
bitmaps will not be the same each time. I want the user to put their
own bitmaps into a directory and the application will pick them off
and display them as required. The bitmaps will always be called the
same thing, ie 1.bmp, 2.bmp, 3.bmp - but they will be different
pictures. I am new to visual...
|
by: Jacky |
last post by:
Hi,
Concat wors as
tmpStr = tmpStr.Concat(tmpStr, tmpStr2)
Why it do not refer to owner object so
tmpStr.Concat(tmpStr, tmpStr2)
and now tmpStr has same value as upper?
|
by: Trint Smith |
last post by:
Ok,
I have a webform that has these checkboxes:
1. something
2. something else
3. and something else
When the user clicks on the checkbox, I want all of the selections to go
into a textbox if all are checked. But currently, just the last
selection is going in. Here's the code I have:
| |
by: Nathan |
last post by:
Hello,
I'm needing some advice: I have an app for which I've built a timer out of
multiple bitmaps--a clock with a moving hands. I've saved each hand
position (1 second, 2 seconds, etc.) as a separate bitmap, and I make the
clock "tic" down by changing the image of a picture box. The problem, of
course, is that the application uses tons of memory, because each of the
bitmaps is preloaded into an array. Is there an easier way to do...
|
by: Mike |
last post by:
Hello everybody.
I am drawing a country map that consists of 149 municipality bitmaps, each
around 25 Kb. I draw it onto the in-memory bitmap, then draw it on the
picture box.
I use C++, but anyways if I were using the C# the question would be the same.
And here is the problem: it takes 700 ms to draw it, and anything above 300
ms is noticable by the human eye.
So, is there any technique that I could use to actually keep the bitmaps in...
|
by: Martin Evans |
last post by:
Hi,
I'm getting:
DBD::DB2::db do failed: SQL0440N No
authorized routine named "CONCAT" of type "FUNCTION" having compatible
arguments was found. SQLSTATE=42884
for some SQL like this:
|
by: nkumarin001 |
last post by:
Hi,
Can anyone help me in this matter:-
When i was studying locally managed tablespaces i came across bitmaps that are used in locally managed tablespaces it stated that:-
"Locally managed tablespaces use bitmaps stored within the header of the datafiles comprising a tablespace to track the space utilization of the tablespaces."
AND
When i was studying some other topics i came across...
|
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: 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?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |