<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>System.Drawing/GDI+</title><link>http://forums.asp.net/150.aspx</link><description>Discuss manipulating and creating graphics using the System.Drawing namespace and GDI+.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Suggestion for a Virtual Product personnalisation</title><link>http://forums.asp.net/thread/3268659.aspx</link><pubDate>Wed, 01 Jul 2009 10:55:47 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3268659</guid><dc:creator>3KyNoX</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3268659.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=150&amp;PostID=3268659</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I would like to do a product personnalisation system where we can put on a product an image / text simulation with picture-size / picture-emplacement managed (maybe with a sql database).&lt;/p&gt;&lt;p&gt;i found something&amp;#39;s looking what i want but it&amp;#39;s in PHP : &lt;/p&gt;&lt;p&gt;http://www.shirtcity.com/shop/&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;i want do the same but in ASP.Net / VB..&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I did already something to change color of a picture (png) and place it on another product picture, here&amp;#39;s the function that paint a picture :&lt;/p&gt;&lt;p&gt;&lt;pre name="code" class="vb.net"&gt;Public Function ChangerCouleur(ByVal Img As Image, ByVal Couleur As Color) As Bitmap

        &amp;#39;Création d&amp;#39;un &amp;#39;Graphics&amp;#39; à partir du &amp;#39;Bitmap&amp;#39; passée en paramètre
        Dim gr As Graphics = Graphics.FromImage(Img)

        &amp;#39;Création d&amp;#39;un mappage
        Dim map(0) As System.Drawing.Imaging.ColorMap
        map(0) = New System.Drawing.Imaging.ColorMap()
        map(0).OldColor = Color.Black
        map(0).NewColor = Couleur

        &amp;#39;Création d&amp;#39;attributs d&amp;#39;image, avec le mappage créer juste avant comme contenu 
        Dim myAttributs As New ImageAttributes()
        myAttributs.SetRemapTable(map)

        &amp;#39;Dessin du motif à la couleur passée en paramètre
        Dim Rect As New Rectangle(0, 0, Img.Width, Img.Height)
        gr.DrawImage(Img, Rect, 0, 0, Img.Width, Img.Height, GraphicsUnit.Pixel, myAttributs)

        &amp;#39;Redimensionnement
        Dim Final As Image
        Final = ScaleByPercent(Img, 20)

        &amp;#39;Libération des objets de la mémoire
        gr.Dispose()
        Img.Dispose()

        Return Final

    End Function&lt;/pre&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; But maybe do u have better ideas than me ? Or links to follow ?&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks :)&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>