473,385 Members | 1,409 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,385 software developers and data experts.

Rotate ASP:Image 45 Degrees

Hi there,
I was wonder how I could rotate an image in Asp.Net... I've found this code:

Image1.Style.Add("filter",
"progid:DXImageTransform.Microsoft.BasicImage(rota tion=' + 1 + ')")

... but this only allows you to rotate (1, 2, 3, 4) or 90, 180, 270, or 360
degrees... but whatabout the inbetweens??? what if i wanted 45 degrees???

thanks
--
Ad****@hotmail.com
Nov 19 '05 #1
3 2658
I suggest you use the server side RotateFlip method.
Here's more info:
http://msdn.microsoft.com/library/de...efliptopic.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"ACaunter" <Ad****@hotmail.com> wrote in message
news:3B**********************************@microsof t.com...
Hi there,
I was wonder how I could rotate an image in Asp.Net... I've found this
code:

Image1.Style.Add("filter",
"progid:DXImageTransform.Microsoft.BasicImage(rota tion=' + 1 + ')")

.. but this only allows you to rotate (1, 2, 3, 4) or 90, 180, 270, or 360
degrees... but whatabout the inbetweens??? what if i wanted 45 degrees???

thanks
--
Ad****@hotmail.com

Nov 19 '05 #2
Hi steve,
thanks for the link.. but i couldn't figure out how exactly i'm suppose to
use the RotateFilp method.. it has it's function, and i know it has all the
Rotate90FlipXY members... but how exactly do i call it to use it...
my Asp.Net image is Image5... what should i do???
"Steve C. Orr [MVP, MCSD]" wrote:
I suggest you use the server side RotateFlip method.
Here's more info:
http://msdn.microsoft.com/library/de...efliptopic.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"ACaunter" <Ad****@hotmail.com> wrote in message
news:3B**********************************@microsof t.com...
Hi there,
I was wonder how I could rotate an image in Asp.Net... I've found this
code:

Image1.Style.Add("filter",
"progid:DXImageTransform.Microsoft.BasicImage(rota tion=' + 1 + ')")

.. but this only allows you to rotate (1, 2, 3, 4) or 90, 180, 270, or 360
degrees... but whatabout the inbetweens??? what if i wanted 45 degrees???

thanks
--
Ad****@hotmail.com


Nov 19 '05 #3
Image5.Image.RotateFlip(RotateFlipType.Rotate180Fl ipNone);

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"ACaunter" <Ad****@hotmail.com> wrote in message
news:A0**********************************@microsof t.com...
Hi steve,
thanks for the link.. but i couldn't figure out how exactly i'm suppose to
use the RotateFilp method.. it has it's function, and i know it has all
the
Rotate90FlipXY members... but how exactly do i call it to use it...
my Asp.Net image is Image5... what should i do???
"Steve C. Orr [MVP, MCSD]" wrote:
I suggest you use the server side RotateFlip method.
Here's more info:
http://msdn.microsoft.com/library/de...efliptopic.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"ACaunter" <Ad****@hotmail.com> wrote in message
news:3B**********************************@microsof t.com...
> Hi there,
> I was wonder how I could rotate an image in Asp.Net... I've found this
> code:
>
> Image1.Style.Add("filter",
> "progid:DXImageTransform.Microsoft.BasicImage(rota tion=' + 1 + ')")
>
> .. but this only allows you to rotate (1, 2, 3, 4) or 90, 180, 270, or
> 360
> degrees... but whatabout the inbetweens??? what if i wanted 45
> degrees???
>
> thanks
> --
> Ad****@hotmail.com


Nov 19 '05 #4

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

Similar topics

1
by: John Scott | last post by:
I am storing an image in an SQL database and have one field as an image datatype. I am also using a webservice to transport data. I want to be able to resize the image and pass back a thumbnail...
0
by: Daisy | last post by:
Is there any way in an ascx (without resorting to a codebehind file) to have a client-side onload event on an asp:image tag? I've just changed from a normal image, to an asp:image tag, but now it...
1
by: Chris Fink | last post by:
Hello, Does anyone know of a way to handle broken href image tags either by using the html img tag or the asp:image server control? For example, if my src attribute is broken, I would like to...
6
by: C K | last post by:
What is less expensive/intensive on the server -dynamically writing out my rollovers to an asp:literal, or to use asp:image tags for the images. My image names will be dynamic as I am building a...
0
by: DavidS | last post by:
I have HTML web page with <asp:Image id=img_L runat=server ImageAlign=Top Visible=True Width=y Height=x></asp:Image>. For some images, less than 128K I can view image. Other image files > 128K,...
4
by: Deere | last post by:
When I try to take a database field and change it with a function and return it...it will not display the image. The "Imageurl" does not convert to "src=" but stays as ImageUrl. id=Image2 will...
3
by: Switch4Mac | last post by:
Hi, I want to insert an ad in my MasterPage. So in the MasterPage, I have this piece of code: <asp:Image ID="GatesAd" runat="server"...
0
by: Christian Schlemmer | last post by:
hi, in a DetailsView i have a image display. images i want to store in a seperate directory, but it a path is added to Bind update and delete is not working. just Bind makes my...
3
by: Paul Cheetham | last post by:
Hi, I have an application that will display user-defined images in some asp:image controls. (sets the ImageURL, and is always built from the site root) The problem comes when the images...
6
by: swethak | last post by:
Hi, I displayed the image taken from database.How to raotate that image using javascript.plz tell that how to start the logic.plz tell that some reference websites.
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.