Draw Image With Rounded Corners / Border And Gradient Fill In C#
Dec 1, 2010
I've looked everywhere and googled everything and couldn't find anything good. What I need is a class that is able to draw an image (graphics) with rounded corners (different on each corner is a plus) with a border and gradient fill.
All the examples I find have some flaws (like bad quality, missing functionality etc).
I will use this with a ashx that will draw the image and then show it to the user.
I ran across a bug with the asp:RoundedCornersExtender when viewing in Firefox. Sometimes there will be a gap between the top of and the body of the panel. There are a few posts out there about using the solution
[URL] here, but the problem is my hosting account (GoDaddy) won't allow the PrettyUI.dll file to run. Is there any other solution to using the dll file? The source code is available - but I'm not familiar with how I'd go about using the source files in place of the DLL...
When using the rounded corners app in Ajax the corners are bad shaped. I have found this article from Matt Berseth using antialiasing. But I need code I can use for commercial use, do you have any good ideas for solving my problem? I need code for vb.net applications [URL]
Yet another post regarding rounded upper corners on an ASP.NET 3.5 horizontal menu control. I've done a day and a half of Googling.Found this link http://forums.asp.net/p/1582204/3989473.aspx. It looked promising but didn't pan out.I got pretty close with some experimenting but it isn't quite there. Could really use some insight or a general agreement that it just can't be done within our constraints.The project is an ASP.NET 3.5 web app. For reasons that are too lengthy to go into here, theoption of using the AJAX tab container has already been examined and rejected. Due to the customer's requirements, we will need to proceed with a menu control set to horizontal display with 2 levels showing. The customer would like to see rounded edges on the top of the menu elements so they have the appearance of tabs. In our corporate-controlled environment, we have as our options the AJAX Control Toolkit, css,
My Asp site does not support some version of IE and chrome. however its working fine on all version of firefox.
What could be the solution that my site function on all version of IE.
I have used round corner extender on textbox and dropdownlist so some version of IE does not show data in dropdown where i applied round corner extender.
I am trying to m ake rounded buttons using CSS. I serached a lot on the internet but all the solutions that I found is using the Images. (See URLs Mentioned Below). is it possible to create rounded button using CSS without using any image. [URL]
I need to develop a new functionnality for one of our application.
Basically, what i want to develop is a way to let the user draw a semi-transparent rectangle over a static image. The principle could be the same as mspaint. The user click on a button a then, can draw his rectangle over an image.
I have taken background-image of a Table and Panel, that image's corner is rectangula. How can i make its corners Rounded ?I searched some online resources, images were made rounded, how to make make background-image rounded on the fly ?
i have an image button that i draw with its data in the runtime and i want in the event og onclick of it, apopup model appears to confirm delete or update that row. the problem is here that i made alot of searches but all i found was in the design time.
I have 2 image controls like this where I will declare 2 images in the .css file. The images has the exact width and height as the image controls, so this is correct.
1. For Image1, the image is not seen entirely in the image control in designview (only a corner of the image is seen) but when debug the page it fills out the control ? How can it be entirely seen in the imagecontrol in designview?
2. For Image2, there is a red cross on the image both in designview and in debugmode, wonder why, as the .css declare an image to the control and how this cross can be taken away ?
Another problem I am having is I have an image at the top right of a page and I want it to be hard against the edge of the page with no border and I am really struggling to get this to happen.
I have an ASP.NET web site which contains some ImageButton controls that cause postbacks used to filter a list of products to certain groups of products.
Now I am moving to ASP.NET 4.0 with SEO-friendly paths like /products/category/item, and I'm using routing with Webforms to map URL's to webforms. In the process, I want to replace my image buttons with hyperlink controls showing the image, so that I can associate a navigational URL with each image.
I'm creating my new image hyperlink something like this:
The big problem I'm facing: the ImageButton used to put a border="0" attribute on the <img> tag in HTML to avoid a border around the image. But how can I achieve the same result using the hyper link control?
With the current setup, the border="0" gets stuck onto the <a href="...."> tag - and that's not exactly what I want / need.
I have put a hoplink inside an image like this. This is a test but when looking at the banner that is shown you can see a gray border along the banner (GIF).
Is it possible to get rid of this gray border that is around the actual banner here ?
i have a gridview that directly bind to a dataset.Hence there is no column in code behind for me to control the boarder color and border style.I try my code in RowDataBound, but it does not take effect.
I have some pretty straightforward HTML code with a few tables to organize various items of text or images. All works fine except that I need to place a vertical border on both the left and right sides of the screen. I am able to do this with a 2x2 pixel image that I stretch out. When the user has their screen maximized, everything looks great. But when the user hits "Restore Down", then the borders stay in place, but the tables get shoved down so that they start below where the borders end, which is off screen. in other words, the relational alignment between the borders and the tables gets all screwed up. Does anybody know how to make this alignment stay consistent on a restore down? I'm pretty much a newbie with html and asp, so speak slowly. If there is a better method to accomplish this, I'm all ears.
sometimes we need to use the asp image control so we can generate empty alt tags (visual studio 2005 does not render any attributes set to an empty string). I know how to do this and also how to remove the border style that is automatically added
We implemented this 6 months ago, however, only today have I discovered that it does not work when images are created dynamically.The first implementation was for asp images that have been set up within an aspx page:
The above works-no border style is rendered and the imageurl is populated in code.I have other pages where I'm building up sections dynamically using C# code, such as:-