Showing posts with label gtlt. Show all posts
Showing posts with label gtlt. Show all posts

Monday, March 26, 2012

Text in Image, Question

I know there has to be a real simple solution to this:
<%@dotnet.itags.org. Page Language="c#"%>
<%@dotnet.itags.org. Import Namespace="System.Drawing.Imaging" %>
<%@dotnet.itags.org. Import Namespace="System.Drawing" %>
<%@dotnet.itags.org. Import Namespace="System.Drawing.Drawing2D" %>
<script runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
Bitmap bmp= new Bitmap(Server.MapPath(Request.QueryString["i"]));
Graphics g=Graphics.FromImage(bmp);
g.SmoothingMode = SmoothingMode.AntiAlias ;
g.DrawString(Request.QueryString["t"],
new Font("verdana",12),SystemBrushes.WindowText, 1, 1);
Response.ContentType="image/jpeg";
bmp.Save(Response.OutputStream, bmp.RawFormat) ;
}
</script>
I have tried adding in stuff and changing stuff, but I just can't do it!
All I want to do is change the font color to white
Thanks in advanceg.ForeColor = Color.White

Tuesday, March 13, 2012

textbox Alignment

<asp:Textbox id="Textbox1" style="TEXT-ALIGN: right" runat="server" Text="
Text1 "></asp:Textbox>
<asp:Textbox id="Textbox2" style="TEXT-ALIGN: center" runat="server" Text="
Text2 "></asp:Textbox>
Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espa?ol
Ven, y hablemos de ASP.NET...
======================
"JIM.H." <JIMH@dotnet.itags.org.discussions.microsoft.com> wrote in message news:50F96708-B0EE-42FC-9837-81B
858D542A5@dotnet.itags.org.microsoft.com...
> how do you do Alignment in a textbox?is it possible to set this in properties window?
"Juan T. Llibre" wrote:
> <asp:Textbox id="Textbox1" style="TEXT-ALIGN: right" runat="server" Text="
Text1 "></asp:Textbox>
> <asp:Textbox id="Textbox2" style="TEXT-ALIGN: center" runat="server" Text=
" Text2 "></asp:Textbox>
>
> Juan T. Llibre
> ASP.NET MVP
> http://asp.net.do/foros/
> Foros de ASP.NET en Espa?ol
> Ven, y hablemos de ASP.NET...
> ======================
> "JIM.H." <JIMH@.discussions.microsoft.com> wrote in message news:50F96708-B
0EE-42FC-9837-81B858D542A5@.microsoft.com...
You *could* create a CSS stylesheet, and set it there.
The stylesheet would be available in the IDE,
via the CssClass property.
Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaol
Ven, y hablemos de ASP.NET...
======================
"JIM.H." <JIMH@.discussions.microsoft.com> wrote in message
news:95F0D629-1558-42FB-BD97-1F5FA1A178A6@.microsoft.com...
> is it possible to set this in properties window?
> "Juan T. Llibre" wrote:
>