Click here to Skip to main content
15,899,679 members
Home / Discussions / C#
   

C#

 
AnswerRe: Answer this question Pin
thatraja24-Dec-10 5:43
professionalthatraja24-Dec-10 5:43 
AnswerRe: Answer this question Pin
fjdiewornncalwe24-Dec-10 5:52
professionalfjdiewornncalwe24-Dec-10 5:52 
AnswerRe: Answer this question Pin
#realJSOP24-Dec-10 7:57
professional#realJSOP24-Dec-10 7:57 
GeneralRe: Answer this question Pin
Richard MacCutchan24-Dec-10 9:53
mveRichard MacCutchan24-Dec-10 9:53 
GeneralRe: Answer this question Pin
#realJSOP24-Dec-10 9:55
professional#realJSOP24-Dec-10 9:55 
AnswerRe: Answer this question Pin
Hiren solanki24-Dec-10 16:17
Hiren solanki24-Dec-10 16:17 
QuestionLocal directory in c# Asp.net Pin
abbd23-Dec-10 23:23
abbd23-Dec-10 23:23 
AnswerRe: Local directory in c# Asp.net Pin
OriginalGriff23-Dec-10 23:39
mveOriginalGriff23-Dec-10 23:39 
AnswerRe: Local directory in c# Asp.net Pin
RaviRanjanKr24-Dec-10 0:38
professionalRaviRanjanKr24-Dec-10 0:38 
AnswerRe: Local directory in c# Asp.net Pin
Richard MacCutchan24-Dec-10 9:53
mveRichard MacCutchan24-Dec-10 9:53 
AnswerRe: Local directory in c# Asp.net Pin
GenJerDan27-Dec-10 3:44
GenJerDan27-Dec-10 3:44 
QuestionRetrieving return value from stored procedure Pin
Łukasz Nowakowski23-Dec-10 22:05
Łukasz Nowakowski23-Dec-10 22:05 
AnswerRe: Retrieving return value from stored procedure Pin
RobCroll24-Dec-10 5:12
RobCroll24-Dec-10 5:12 
GeneralRe: Retrieving return value from stored procedure Pin
Łukasz Nowakowski24-Dec-10 8:27
Łukasz Nowakowski24-Dec-10 8:27 
Questionhelp!why the event 'SystemEvents_PowerModeChanged' can not running in the windows service. Pin
scoket23-Dec-10 15:13
scoket23-Dec-10 15:13 
AnswerRe: help!why the event 'SystemEvents_PowerModeChanged' can not running in the windows service. Pin
Not Active23-Dec-10 18:13
mentorNot Active23-Dec-10 18:13 
GeneralRe: help!why the event 'SystemEvents_PowerModeChanged' can not running in the windows service. [modified] Pin
scoket23-Dec-10 21:30
scoket23-Dec-10 21:30 
Questionhow to answer this question Pin
mohammed alshaweesh23-Dec-10 13:20
mohammed alshaweesh23-Dec-10 13:20 
AnswerRe: how to answer this question Pin
Dr.Walt Fair, PE23-Dec-10 15:32
professionalDr.Walt Fair, PE23-Dec-10 15:32 
AnswerRe: how to answer this question Pin
JF201523-Dec-10 23:17
JF201523-Dec-10 23:17 
QuestionAppend Tiff To Tiff Pin
Kevin Marois23-Dec-10 7:14
professionalKevin Marois23-Dec-10 7:14 
I want to append a TIFF image to the end of an existing TIFF image. So far I have this:

public static void AppendToTiff(string TargetTiff, string TiffToAdd)
{
    assignEncoder();

    string tempfile = Path.GetTempFileName();
    File.Copy(TargetTiff, tempfile, true);

    Image finalImage = Image.FromFile(TargetTiff);
    finalImage.Save(tempfile, tifImageCodecInfo, tifEncoderParametersPage1);

    Image img = Image.FromFile(TiffToAdd);
    finalImage.SaveAdd(img, tifEncoderParametersPageX);
    img.Dispose();
               
    finalImage.SaveAdd(tifEncoderParametersPageLast);
    finalImage.Dispose();

    File.Delete(TargetTiff);
    File.Copy(tempfile, TargetTiff, true);
}


It's not quite right. The resulting TIFF is 2 pages, but both pages are the same target image.

Anyone know what's wrong?
Everything makes sense in someone's mind

AnswerRe: Append Tiff To Tiff Pin
Dave Kreskowiak23-Dec-10 8:58
mveDave Kreskowiak23-Dec-10 8:58 
QuestionSeeking advice for learning how to create small LOB applications in C# Pin
Duke Carey23-Dec-10 3:42
professionalDuke Carey23-Dec-10 3:42 
AnswerRe: Seeking advice for learning how to create small LOB applications in C# Pin
Not Active23-Dec-10 5:14
mentorNot Active23-Dec-10 5:14 
GeneralRe: Seeking advice for learning how to create small LOB applications in C# Pin
Duke Carey23-Dec-10 6:18
professionalDuke Carey23-Dec-10 6:18 

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.