Click here to Skip to main content
15,884,975 members
Home / Discussions / C#
   

C#

 
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.

AnswerRe: .net Reading and Saving Very Large Images Pin
Jochen Arndt26-Jan-17 3:55
professionalJochen Arndt26-Jan-17 3:55 
GeneralRe: .net Reading and Saving Very Large Images Pin
JBHowl26-Jan-17 4:25
JBHowl26-Jan-17 4:25 
GeneralRe: .net Reading and Saving Very Large Images Pin
Jochen Arndt26-Jan-17 6:08
professionalJochen Arndt26-Jan-17 6:08 
AnswerRe: .net Reading and Saving Very Large Images Pin
OriginalGriff26-Jan-17 4:31
mveOriginalGriff26-Jan-17 4:31 
AnswerRe: .net Reading and Saving Very Large Images Pin
Eddy Vluggen26-Jan-17 4:49
professionalEddy Vluggen26-Jan-17 4:49 
QuestionNeed help creating a META file (*.meta) editor Pin
KrazyMonkey Modding25-Jan-17 18:45
KrazyMonkey Modding25-Jan-17 18:45 
SuggestionRe: Need help creating a META file (*.meta) editor Pin
Richard MacCutchan25-Jan-17 21:38
mveRichard MacCutchan25-Jan-17 21:38 
AnswerRe: Need help creating a META file (*.meta) editor Pin
NotPolitcallyCorrect26-Jan-17 1:12
NotPolitcallyCorrect26-Jan-17 1:12 
AnswerRe: Need help creating a META file (*.meta) editor Pin
Dave Kreskowiak26-Jan-17 2:46
mveDave Kreskowiak26-Jan-17 2:46 
AnswerRe: Need help creating a META file (*.meta) editor Pin
Gerry Schmitz26-Jan-17 7:29
mveGerry Schmitz26-Jan-17 7:29 
QuestionDataSet to SDF in C#? Pin
Simmerliner25-Jan-17 12:37
Simmerliner25-Jan-17 12:37 
GeneralRe: DataSet to SDF in C#? Pin
Richard MacCutchan25-Jan-17 21:37
mveRichard MacCutchan25-Jan-17 21:37 
QuestionGetting value into dropdown from db MVC Pin
eejaynic25-Jan-17 8:53
eejaynic25-Jan-17 8:53 
Questionweb control browser Pin
jigishaben25-Jan-17 2:37
jigishaben25-Jan-17 2:37 
AnswerRe: web control browser Pin
OriginalGriff25-Jan-17 2:56
mveOriginalGriff25-Jan-17 2:56 
QuestionMessage Closed Pin
25-Jan-17 1:18
professionalJackson Savitraz25-Jan-17 1:18 
AnswerRe: Fuzzy IndexOf using Bitap Algorithm Pin
OriginalGriff25-Jan-17 1:52
mveOriginalGriff25-Jan-17 1:52 

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.