Connecting Tech Pros Worldwide Forums | Help | Site Map

Displaying Bitmap (simple question I think)

aaapaul
Guest
 
Posts: n/a
#1: Nov 18 '05
Hello !

I have a Bitmap and this works fine:


Dim objC As New clsCounter
Dim objBmp As Bitmap
objBmp = objC.bcGetGraphicalCounter(5)
objBmp.Save(Response.OutputStream, ImageFormat.Jpeg)

But I dont want to use:
objBmp.Save(Response.OutputStream, ImageFormat.Jpeg)
....because I want so diplay other things.

I want to show the Bitmap in an Imagebox <asp:Image id="imgZaehler"

How Can I realize this !

Many thanks
aaaPaul

bruce barker
Guest
 
Posts: n/a
#2: Nov 18 '05

re: Displaying Bitmap (simple question I think)


no can do. while mozilla/netscape support inline images, IE does not. for IE
<asp:image> can only ref a url that returns a supported image type.

-- bruce (sqlwork.com)


"aaapaul" <lvpaul@gmx.net> wrote in message
news:36648c93.0407290756.271f3af6@posting.google.c om...[color=blue]
> Hello !
>
> I have a Bitmap and this works fine:
>
>
> Dim objC As New clsCounter
> Dim objBmp As Bitmap
> objBmp = objC.bcGetGraphicalCounter(5)
> objBmp.Save(Response.OutputStream, ImageFormat.Jpeg)
>
> But I dont want to use:
> objBmp.Save(Response.OutputStream, ImageFormat.Jpeg)
> ...because I want so diplay other things.
>
> I want to show the Bitmap in an Imagebox <asp:Image id="imgZaehler"
>
> How Can I realize this !
>
> Many thanks
> aaaPaul[/color]


ashelley@inlandkwpp.com
Guest
 
Posts: n/a
#3: Nov 18 '05

re: Displaying Bitmap (simple question I think)


On 29 Jul 2004 08:56:13 -0700, lvpaul@gmx.net (aaapaul) wrote:
[color=blue]
>Hello !
>
>I have a Bitmap and this works fine:
>
>
> Dim objC As New clsCounter
> Dim objBmp As Bitmap
> objBmp = objC.bcGetGraphicalCounter(5)
> objBmp.Save(Response.OutputStream, ImageFormat.Jpeg)
>
>But I dont want to use:
> objBmp.Save(Response.OutputStream, ImageFormat.Jpeg)
>...because I want so diplay other things.
>
>I want to show the Bitmap in an Imagebox <asp:Image id="imgZaehler"
>
>How Can I realize this !
>
>Many thanks
>aaaPaul[/color]

put the bitmap code in a separate file (aspx) and set the image source
to myotheraspx.aspx

or

write the bitmap out to the filesystem and set the image to look at
that file.

-Adam
Closed Thread