Click here to Skip to main content
15,913,487 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Web Setup Project in VS 2005 Pin
Vimalsoft(Pty) Ltd25-Jan-09 20:05
professionalVimalsoft(Pty) Ltd25-Jan-09 20:05 
QuestionallowDefinition='MachineToApplication' Pin
pamsmech7-Jan-09 21:57
pamsmech7-Jan-09 21:57 
AnswerRe: allowDefinition='MachineToApplication' Pin
kuwl_mark7-Jan-09 23:49
kuwl_mark7-Jan-09 23:49 
QuestionASP.NET with PHP [modified] Pin
pamsmech7-Jan-09 21:43
pamsmech7-Jan-09 21:43 
AnswerRe: ASP.NET with PHP Pin
Abhijit Jana7-Jan-09 22:11
professionalAbhijit Jana7-Jan-09 22:11 
AnswerRe: ASP.NET with PHP Pin
Abhijit Jana8-Jan-09 0:33
professionalAbhijit Jana8-Jan-09 0:33 
QuestionHow to Convert the .bmp and .jpg Images into .gif Image Pin
Robymon7-Jan-09 21:25
Robymon7-Jan-09 21:25 
AnswerRe: How to Convert the .bmp and .jpg Images into .gif Image Pin
PCuong19837-Jan-09 22:32
professionalPCuong19837-Jan-09 22:32 
hi,
U can use instance of Bitmap class like this
Bitmap b = new Bitmap(...)
ans use public Save method to save image with format ImageFormat.Gif

and if u want to resize image , try this code , hope it help

public Size CalculateDimensions(Size oldSize, int targetSize)
        {
            Size newSize = new Size();
            if (oldSize.Height > oldSize.Width)
            {
                newSize.Width = (int)(oldSize.Width * ((float)targetSize / (float)oldSize.Height));
                newSize.Height = targetSize;
            }
            else
            {
                newSize.Width = targetSize;
                newSize.Height = (int)(oldSize.Height * ((float)targetSize / (float)oldSize.Width));
            }
            return newSize;
        }


the oldSize param is old size of your image
the targetSize param is new dimension you want to resize to.
QuestionObject reference not set to an instance of an object Pin
Samiullah7-Jan-09 20:30
Samiullah7-Jan-09 20:30 
AnswerRe: Object reference not set to an instance of an object Pin
Brij7-Jan-09 21:03
mentorBrij7-Jan-09 21:03 
AnswerRe: Object reference not set to an instance of an object Pin
SeMartens7-Jan-09 21:06
SeMartens7-Jan-09 21:06 
AnswerRe: Object reference not set to an instance of an object Pin
Samiullah7-Jan-09 22:19
Samiullah7-Jan-09 22:19 
GeneralRe: Object reference not set to an instance of an object Pin
sudhanvag7-Jan-09 22:43
sudhanvag7-Jan-09 22:43 
QuestionHow to instantiate C#.NET class at client side (inside javascript ). Pin
Dattatraya K7-Jan-09 19:53
Dattatraya K7-Jan-09 19:53 
AnswerRe: How to instantiate C#.NET class at client side (inside javascript ). Pin
Abhijit Jana7-Jan-09 20:05
professionalAbhijit Jana7-Jan-09 20:05 
GeneralRe: How to instantiate C#.NET class at client side (inside javascript ). Pin
Dattatraya K7-Jan-09 20:09
Dattatraya K7-Jan-09 20:09 
GeneralRe: How to instantiate C#.NET class at client side (inside javascript ). Pin
Abhijit Jana7-Jan-09 20:26
professionalAbhijit Jana7-Jan-09 20:26 
GeneralRe: How to instantiate C#.NET class at client side (inside javascript ). Pin
Dattatraya K7-Jan-09 20:34
Dattatraya K7-Jan-09 20:34 
AnswerRe: How to instantiate C#.NET class at client side (inside javascript ). Pin
Abhijit Jana7-Jan-09 20:58
professionalAbhijit Jana7-Jan-09 20:58 
QuestionUser Control in Master Page Pin
Thomas Antony K7-Jan-09 19:28
Thomas Antony K7-Jan-09 19:28 
AnswerRe: User Control in Master Page Pin
Padmanabh Ganorkar7-Jan-09 21:49
Padmanabh Ganorkar7-Jan-09 21:49 
GeneralRe: User Control in Master Page Pin
Thomas Antony K7-Jan-09 22:31
Thomas Antony K7-Jan-09 22:31 
QuestionRe: User Control in Master Page Pin
PCuong19837-Jan-09 22:22
professionalPCuong19837-Jan-09 22:22 
QuestionHide toolbar and menu bar of IE. Pin
zareee7-Jan-09 19:14
zareee7-Jan-09 19:14 
AnswerRe: Hide toolbar and menu bar of IE. Pin
Jas 0077-Jan-09 19:15
Jas 0077-Jan-09 19:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.