This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static class AbsoluteUrl | |
| { | |
| private static bool initializedAlready = false; | |
| private static Object initlock = new Object(); | |
| // AbsoluteUrl without parameters | |
| public static string MVC_Home_Index; | |
| public static string MVC_MyArea_Settings_Index; | |
| // AbsoluteUrl with parameters |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class PngIconConverter | |
| { | |
| /* input image with width = height is suggested to get the best result */ | |
| /* png support in icon was introduced in Windows Vista */ | |
| public static bool Convert(System.IO.Stream input_stream, System.IO.Stream output_stream, int size, bool keep_aspect_ratio = false) | |
| { | |
| System.Drawing.Bitmap input_bit = (System.Drawing.Bitmap)System.Drawing.Bitmap.FromStream(input_stream); | |
| if (input_bit != null) | |
| { | |
| int width, height; |