473,406 Members | 2,345 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.

Rendering a Bitmap object as an image in WebPart

Hello,
I have a chart object which returns the chart created as a BitMap
object.
I want to render this Bitmap object as an image in a WebPart iam
developing.
Can anyone please tell me how to go about doing it.
Thanks
Shreeram
Nov 17 '05 #1
3 1838
check out this article from MSDN, I believe it has what you want

http://msdn.microsoft.com/msdnmag/is...w/default.aspx

so thing like I believe:

myBitmap.Save(Response.OutputStream, ImageFormat.Jpeg);

HTH

Ollie Riches


"Shreeram" <Sh******@discussions.microsoft.com> wrote in message
news:74**********************************@microsof t.com...
Hello,
I have a chart object which returns the chart created as a BitMap
object.
I want to render this Bitmap object as an image in a WebPart iam
developing.
Can anyone please tell me how to go about doing it.
Thanks
Shreeram

Nov 17 '05 #2
When i use the method: myBitmap.Save....
the image draws over the entire page instead of just the
web part.
i want to display the image in just the webpart.
Is there a way to accomplish this?
"Ollie Riches" wrote:
check out this article from MSDN, I believe it has what you want

http://msdn.microsoft.com/msdnmag/is...w/default.aspx

so thing like I believe:

myBitmap.Save(Response.OutputStream, ImageFormat.Jpeg);

HTH

Ollie Riches


"Shreeram" <Sh******@discussions.microsoft.com> wrote in message
news:74**********************************@microsof t.com...
Hello,
I have a chart object which returns the chart created as a BitMap
object.
I want to render this Bitmap object as an image in a WebPart iam
developing.
Can anyone please tell me how to go about doing it.
Thanks
Shreeram


Nov 17 '05 #3
what you could do is have an aspx page called chart.aspx and in that page
render out the image you want. This is then referenced via an image control
in your web part and hence you have the image you want in your web part
without writing over the complete page.

HTH

Ollie Riches

"Shreeram" <Sh******@discussions.microsoft.com> wrote in message
news:07**********************************@microsof t.com...
When i use the method: myBitmap.Save....
the image draws over the entire page instead of just the
web part.
i want to display the image in just the webpart.
Is there a way to accomplish this?
"Ollie Riches" wrote:
check out this article from MSDN, I believe it has what you want

http://msdn.microsoft.com/msdnmag/is...w/default.aspx

so thing like I believe:

myBitmap.Save(Response.OutputStream, ImageFormat.Jpeg);

HTH

Ollie Riches


"Shreeram" <Sh******@discussions.microsoft.com> wrote in message
news:74**********************************@microsof t.com...
> Hello,
>
>
> I have a chart object which returns the chart created as a BitMap
> object.
> I want to render this Bitmap object as an image in a WebPart iam
> developing.
>
>
> Can anyone please tell me how to go about doing it.
>
>
> Thanks
> Shreeram
>
>


Nov 17 '05 #4

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

Similar topics

7
by: news | last post by:
This may be a stupid question, but if I don't ask I'll never know ;) Ok, here it goes.... I am writing an application that renders an image in one picturebox and a graph in another. The image...
5
by: Dave A | last post by:
I am writing an ASP.NET tool that will allow the client to create their own online froms. ie the client can add tect boxes, text, drop downs,etc with absolutely no technical skill what so ever....
3
by: DexHex | last post by:
Hi, I am stumpt. Is there anyway to set the background image on a webpart title?
1
by: Cédric | last post by:
Hello, Wanting to create a thumbnail of an image, i'm using the following piece of code : Public Sub Reduction(ByVal Source As String, ByVal Destination As String, ByVal TailleX As String,...
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: 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
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...
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,...
0
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...

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.