Hey

How can I draw some text onto to a jpg using
System.Web.UI.WebControls.Image.

I would like to make a membercard webpart with the name of a member
logget in printed.

On the path "_layouts/FIP/image/medlemskort.jpg" I have a empty card.

Searching the internet, there are plenty of samples like :
Bitmap bitMapImage = new
System.Drawing.Bitmap( Server.MapPath("medlemskort.jpg" ) );
Graphics graphicImage = Graphics.FromImage( bitMapImage );

But I can not use these samples in sharepoint 2007 webpart !! or
what ???

Best Regards
Palle Hansen, Denmark

Re: Draw text onto jpg Image by Mike

Mike
Fri Jul 25 09:06:18 CDT 2008

Post questions like this to the development_and_programming newsgroup !

This newsgroup is for users of the WSS 2.0 and WSS 3.0 products only -
typically for Admin questions about those products.

Mike Walsh
WSS FAQ http://www.wssfaq.com / http://wss.collutions.com
no questions by e-mail please



Palle wrote:
> Hey
>
> How can I draw some text onto to a jpg using
> System.Web.UI.WebControls.Image.
>
> I would like to make a membercard webpart with the name of a member
> logget in printed.
>
> On the path "_layouts/FIP/image/medlemskort.jpg" I have a empty card.
>
> Searching the internet, there are plenty of samples like :
> Bitmap bitMapImage = new
> System.Drawing.Bitmap( Server.MapPath("medlemskort.jpg" ) );
> Graphics graphicImage = Graphics.FromImage( bitMapImage );
>
> But I can not use these samples in sharepoint 2007 webpart !! or
> what ???
>
> Best Regards
> Palle Hansen, Denmark

Re: Draw text onto jpg Image by Per

Per
Sun Jul 27 01:57:35 CDT 2008

Hej Palle

Put the dynamic image generation into an ashx and reference that from your webpart:
http://binaryjam.wordpress.com/2006/09/27/dynamic-images-from-web-parts/

On Fri, 25 Jul 2008 06:17:01 -0700 (PDT), Palle <ph@f-f.dk> wrote:

>Hey
>
>How can I draw some text onto to a jpg using
>System.Web.UI.WebControls.Image.
>
>I would like to make a membercard webpart with the name of a member
>logget in printed.
>
>On the path "_layouts/FIP/image/medlemskort.jpg" I have a empty card.
>
>Searching the internet, there are plenty of samples like :
> Bitmap bitMapImage = new
>System.Drawing.Bitmap( Server.MapPath("medlemskort.jpg" ) );
> Graphics graphicImage = Graphics.FromImage( bitMapImage );
>
>But I can not use these samples in sharepoint 2007 webpart !! or
>what ???
>
>Best Regards
> Palle Hansen, Denmark
--
BR

Per Jakobsen
Blog: http://www.theblackknightsings.com

Re: Draw text onto jpg Image by Palle

Palle
Wed Jul 30 03:56:42 CDT 2008

On Jul 25, 4:06=A0pm, Mike Walsh <englantilai...@hotmail.com> wrote:
> Post questions like this to the development_and_programming newsgroup !
>
> This newsgroup is for users of the WSS 2.0 and WSS 3.0 products only -
> typically for Admin questions about those products.
>
> Mike Walsh
> WSS FAQhttp://www.wssfaq.com/http://wss.collutions.com
> no questions by e-mail please
>
>
>
> Palle wrote:
> > Hey
>
> > How can I draw some text onto to a jpg using
> > System.Web.UI.WebControls.Image.
>
> > I would like to make a membercard webpart with the name of a member
> > logget in printed.
>
> > On the path "_layouts/FIP/image/medlemskort.jpg" =A0I have a empty card=
.
>
> > Searching the internet, there are plenty of samples like :
> > =A0 =A0Bitmap bitMapImage =3D new
> > System.Drawing.Bitmap( Server.MapPath("medlemskort.jpg" ) =A0);
> > =A0 =A0Graphics graphicImage =3D Graphics.FromImage( bitMapImage );
>
> > But I can not use these samples in sharepoint 2007 webpart !! or
> > what ???
>
> > Best Regards
> > =A0 Palle Hansen, Denmark- Hide quoted text -
>
> - Show quoted text -

Sorry friend!!!!!!

Re: Draw text onto jpg Image by Palle

Palle
Wed Jul 30 04:00:47 CDT 2008

On Jul 27, 8:57=A0am, Per Jakobsen <PjBlackKni...@gmail.com> wrote:
> Hej Palle
>
> Put the dynamic image generation into an ashx and reference that from you=
r webpart:http://binaryjam.wordpress.com/2006/09/27/dynamic-images-from-web=
-parts/
>
>
>
>
>
> On Fri, 25 Jul 2008 06:17:01 -0700 (PDT), Palle <p...@f-f.dk> wrote:
> >Hey
>
> >How can I draw some text onto to a jpg using
> >System.Web.UI.WebControls.Image.
>
> >I would like to make a membercard webpart with the name of a member
> >logget in printed.
>
> >On the path "_layouts/FIP/image/medlemskort.jpg" =A0I have a empty card.
>
> >Searching the internet, there are plenty of samples like :
> > =A0 =A0Bitmap bitMapImage =3D new
> >System.Drawing.Bitmap( Server.MapPath("medlemskort.jpg" ) =A0);
> > =A0 =A0Graphics graphicImage =3D Graphics.FromImage( bitMapImage );
>
> >But I can not use these samples in sharepoint 2007 webpart !! or
> >what ???
>
> >Best Regards
> > =A0Palle Hansen, Denmark
>
> --
> BR
>
> Per Jakobsen
> Blog:http://www.theblackknightsings.com- Hide quoted text -
>
> - Show quoted text -

Thank you Per, Instead I created the httphandler in my webpart
assembly, and added a verb in web.config