Click here to Skip to main content
15,917,795 members
Home / Discussions / C#
   

C#

 
GeneralRe: Visual studio 2015 - Visual c# 2015 Pin
Roberto64_Ge2-Feb-17 4:55
Roberto64_Ge2-Feb-17 4:55 
GeneralRe: Visual studio 2015 - Visual c# 2015 Pin
Richard MacCutchan2-Feb-17 5:16
mveRichard MacCutchan2-Feb-17 5:16 
AnswerRe: Visual studio 2015 - Visual c# 2015 Pin
NotPolitcallyCorrect2-Feb-17 4:33
NotPolitcallyCorrect2-Feb-17 4:33 
GeneralRe: Visual studio 2015 - Visual c# 2015 Pin
Roberto64_Ge2-Feb-17 4:58
Roberto64_Ge2-Feb-17 4:58 
GeneralRe: Visual studio 2015 - Visual c# 2015 Pin
NotPolitcallyCorrect2-Feb-17 5:28
NotPolitcallyCorrect2-Feb-17 5:28 
GeneralRe: Visual studio 2015 - Visual c# 2015 Pin
NotPolitcallyCorrect2-Feb-17 5:30
NotPolitcallyCorrect2-Feb-17 5:30 
GeneralRe: Visual studio 2015 - Visual c# 2015 Pin
Roberto64_Ge2-Feb-17 22:42
Roberto64_Ge2-Feb-17 22:42 
Questionhow to load signature pad in c# Pin
janairie1-Feb-17 13:10
janairie1-Feb-17 13:10 
AnswerRe: how to load signature pad in c# Pin
Dave Kreskowiak1-Feb-17 13:20
mveDave Kreskowiak1-Feb-17 13:20 
AnswerRe: how to load signature pad in c# Pin
OriginalGriff1-Feb-17 21:35
mveOriginalGriff1-Feb-17 21:35 
GeneralRe: how to load signature pad in c# Pin
Daniel Pfeffer1-Feb-17 22:13
professionalDaniel Pfeffer1-Feb-17 22:13 
AnswerRe: how to load signature pad in c# Pin
Richard Deeming2-Feb-17 2:31
mveRichard Deeming2-Feb-17 2:31 
AnswerRe: how to load signature pad in c# Pin
Eddy Vluggen2-Feb-17 2:46
professionalEddy Vluggen2-Feb-17 2:46 
QuestionC#: How to copy excel cell range and chart data to power point slides Pin
Tridip Bhattacharjee31-Jan-17 2:18
professionalTridip Bhattacharjee31-Jan-17 2:18 
AnswerRe: C#: How to copy excel cell range and chart data to power point slides Pin
#realJSOP1-Feb-17 7:05
professional#realJSOP1-Feb-17 7:05 
QuestionHow to convert total database columns datetime to date in the format of dd-mm-yyyy Pin
TarunKumarSusarapu29-Jan-17 23:35
professionalTarunKumarSusarapu29-Jan-17 23:35 
AnswerRe: How to convert total database columns datetime to date in the format of dd-mm-yyyy Pin
OriginalGriff30-Jan-17 0:05
mveOriginalGriff30-Jan-17 0:05 
GeneralRe: How to convert total database columns datetime to date in the format of dd-mm-yyyy Pin
TarunKumarSusarapu30-Jan-17 0:33
professionalTarunKumarSusarapu30-Jan-17 0:33 
GeneralRe: How to convert total database columns datetime to date in the format of dd-mm-yyyy Pin
OriginalGriff30-Jan-17 0:45
mveOriginalGriff30-Jan-17 0:45 
AnswerRe: How to convert total database columns datetime to date in the format of dd-mm-yyyy Pin
CHill6030-Jan-17 1:44
mveCHill6030-Jan-17 1:44 
GeneralRe: How to convert total database columns datetime to date in the format of dd-mm-yyyy Pin
Richard Deeming30-Jan-17 2:09
mveRichard Deeming30-Jan-17 2:09 
GeneralRe: How to convert total database columns datetime to date in the format of dd-mm-yyyy Pin
TarunKumarSusarapu30-Jan-17 19:28
professionalTarunKumarSusarapu30-Jan-17 19:28 
GeneralRe: How to convert total database columns datetime to date in the format of dd-mm-yyyy Pin
Pete O'Hanlon30-Jan-17 19:43
mvePete O'Hanlon30-Jan-17 19:43 
GeneralRe: How to convert total database columns datetime to date in the format of dd-mm-yyyy Pin
TarunKumarSusarapu30-Jan-17 19:47
professionalTarunKumarSusarapu30-Jan-17 19:47 
Question.net Reading and Saving Very Large Images Pin
JBHowl26-Jan-17 3:27
JBHowl26-Jan-17 3:27 
I'm creating some very large images in .net and i'm using JPEG compression to get the file size down. However, if the image exceeds 65,000(ish) pixels in either width or height, I can no longer use jpeg compression. Is there a max dimensions limit for JPEG?

the exception being thrown is:

System.Runtime.InteropServices.ExternalException (0x80004005): A generic error occurred in GDI+.
   at System.Drawing.Image.Save(String filename, ImageCodecInfo encoder, EncoderParameters encoderParams)

the code that is saving the image:

    public static void SaveImage(ref Bitmap b, string fName)
        {
            long quailty = 75;
            ImageCodecInfo jpgEncoder = getEncoder(ImageFormat.Jpeg);
            Encoder myEncoder = Encoder.Quality;
            using (EncoderParameters myEncoderParameters = new EncoderParameters(1))
            {
                using (EncoderParameter myEncoderParameter = new EncoderParameter(myEncoder, quailty))
                {
                    myEncoderParameters.Param[0] = myEncoderParameter;
                    b.Save(fName, jpgEncoder, myEncoderParameters);
                }
            }
        }

in the case of the above exception the image is 2,000x100,000 the magic number seems to be in the 65k range, both width and height.  Like, I can do 4,000x55,000 but not 2x70000.

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.