Is it possible to set the max size on a image in a div by code? If it does, how do I do it?
View Complete Post
How to reduce the image weight using
asp.net, without lose of image quality and image pixels. For example i
have an image with the size of 4 MB (3024*2045), so how to reduce the
image weight ie 4 MB to 1 MB without lose quality in the same pixels
ie(3024 * 2045) using asp.net.
I have an AsyncFilUpload that is used to upload to my site. On the server side I have code that checks the width and height of the image and will only save the image if it is within the limits buit I can't figure out how to get the AsyncFileUpload control to show an error when this happens. Can anyone give me any pointers?
i am creating a path geometry using polyline:
System.Windows.Point Point1 = new System.Windows.Point(50, 10);
System.Windows.Point Point2 = new System.Windows.Point(200, 10);
System.Windows.Point Point3 = new System.Windows.Point(200, 100);
System.Windows.Point Point4 = new System.Windows.Point(10, 100);
System.Windows.Point Point5 = new System.Windows.Point(10, 50);
System.Windows.Point Point6 = new System.Windows.Point(50, 10);
PointCollection polygonPoints = new PointCollection();
yellowPolyline.Points = polygonPoints;
this is a rectangle which is clipped from top-left,
actually i want to create dynamically a polyline whose size is relative to the image i click on the canvas
and then apply than clip that image using that polyline,,so that the image looks clipped from top-left
I need help(code) to reduce the image file size..
Thanks in advance...
I'm making an application that needs to be able to take a user specified image file and upload it into a database that only accepts images of 10 KB or less. So I want to let the user select an image and then have the option of resizing it and if possible
also decreasing the quality - I'm sure I can figure out how to do both of these things on my own but the thing I'm not sure about is how I can tell what size the resulting image will be without actually writing it to disk. I thought the SourceStream property
of the BitmapSource class would be useful but when I try to access it I just get told that the stream has been closed. Any ideas?
I have an image of size 144 pixels (I measured the image size using both irfanView and Photoshop).
However, when opened in a window using the following xaml, the image's width, measured both by the ActualWidth parameter and by the same graphic software, is 192 pixels.
It turns out that 141 points = 192 pixels (as 1pt=1.33px).
So it seems like .Net opens the image, measure it size in pixels and draws the image with the same size but in points.
Here is the XAML and code:
Reduce ASP.NET Page size and complexity using JQuery This is my first post on asp.net blog. ASP.NET Ajax and JQuery are two different ajax framework. In this post I will show, how we can enhance gridview using ASP.NET Ajax and JQuery. I also compare the implementation of these frameworks. In next posts i will explain more about JQuery and ASP.NET Ajax and also tell you "How to combine the power of both framework". My Future post will related to ASP.NET and related frameworks.