Click here to Skip to main content
15,435,059 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionDisplay Tabs and details in ASP.Net MVC Pin
sagarpallavi18-Oct-20 17:21
Membersagarpallavi18-Oct-20 17:21 
AnswerRe: Display Tabs and details in ASP.Net MVC Pin
Richard MacCutchan18-Oct-20 21:55
mveRichard MacCutchan18-Oct-20 21:55 
QuestionFullCalendar button or click in day to add new event Pin
Member 1490896413-Oct-20 6:48
MemberMember 1490896413-Oct-20 6:48 
QuestionRe: FullCalendar button or click in day to add new event Pin
ZurdoDev13-Oct-20 9:09
professionalZurdoDev13-Oct-20 9:09 
QuestionPDF to Images for encryption Pin
Member 105489775-Oct-20 4:30
MemberMember 105489775-Oct-20 4:30 
AnswerRe: PDF to Images for encryption Pin
F-ES Sitecore6-Oct-20 0:07
professionalF-ES Sitecore6-Oct-20 0:07 
GeneralRe: PDF to Images for encryption Pin
Member 105489776-Oct-20 3:21
MemberMember 105489776-Oct-20 3:21 
GeneralRe: PDF to Images for encryption Pin
F-ES Sitecore6-Oct-20 5:26
professionalF-ES Sitecore6-Oct-20 5:26 
You're getting that error as you don't have enough available memory to hold the image. When you create a bitmap using the constructor that only supplies the width and height;

C#
new System.Drawing.Bitmap(width, height);


the bitmap defaults to a 32-bit colour bitmap so every pixel needs 32bits of memory. If you don't need that many colours you can specify your own colour depth which will reduce the amount of memory used per pixel so you can have bigger images.

finalImage = new System.Drawing.Bitmap(width, height, System.Drawing.Imaging.PixelFormat.Format8bppIndexed);


If that is ok for your image size you can play with the options in PixelFormat to see what the best colour depth you can achieve.

If you google "c# large bitmap" you'll find other discussions about this, if the above doesn't work you might need to do something far more advanced like generate the proper byte streams that constitute a valid image in your desired format, but that will probably require pretty advanced knowledge of jpegs. There might also be a custom library out there that someone has already written to handle large bitmaps.
GeneralRe: PDF to Images for encryption Pin
Member 105489776-Oct-20 5:57
MemberMember 105489776-Oct-20 5:57 
GeneralRe: PDF to Images for encryption Pin
Member 105489776-Oct-20 6:00
MemberMember 105489776-Oct-20 6:00 
GeneralRe: PDF to Images for encryption Pin
F-ES Sitecore6-Oct-20 6:08
professionalF-ES Sitecore6-Oct-20 6:08 
GeneralRe: PDF to Images for encryption Pin
Member 105489776-Oct-20 6:52
MemberMember 105489776-Oct-20 6:52 
GeneralRe: PDF to Images for encryption Pin
F-ES Sitecore6-Oct-20 10:45
professionalF-ES Sitecore6-Oct-20 10:45 
GeneralRe: PDF to Images for encryption Pin
Member 105489777-Oct-20 7:00
MemberMember 105489777-Oct-20 7:00 
GeneralRe: PDF to Images for encryption Pin
Member 105489776-Oct-20 3:22
MemberMember 105489776-Oct-20 3:22 
QuestionDynamically added controls effecting other controls Pin
Member 149556174-Oct-20 11:22
MemberMember 149556174-Oct-20 11:22 
AnswerRe: Dynamically added controls effecting other controls Pin
Richard Deeming5-Oct-20 2:55
mveRichard Deeming5-Oct-20 2:55 
GeneralRe: Dynamically added controls effecting other controls Pin
Member 149416716-Oct-20 1:16
MemberMember 149416716-Oct-20 1:16 
Questiontrying to get some measurement data to ASP from Microsoft SQL? Pin
auting824-Oct-20 11:07
Memberauting824-Oct-20 11:07 
AnswerRe: trying to get some measurement data to ASP from Microsoft SQL? Pin
Richard Deeming5-Oct-20 2:53
mveRichard Deeming5-Oct-20 2:53 
QuestionComplex View Model with Nested Item List / ModelState Pin
Guillermo Perez18-Sep-20 15:49
MemberGuillermo Perez18-Sep-20 15:49 
AnswerRe: Complex View Model with Nested Item List / ModelState Pin
Richard Deeming27-Sep-20 22:21
mveRichard Deeming27-Sep-20 22:21 
QuestionFireFox Upload Images Pin
Member 105489774-Sep-20 6:23
MemberMember 105489774-Sep-20 6:23 
AnswerRe: FireFox Upload Images Pin
Richard Deeming6-Sep-20 23:09
mveRichard Deeming6-Sep-20 23:09 
GeneralRe: FireFox Upload Images Pin
Member 1054897717-Sep-20 5:31
MemberMember 1054897717-Sep-20 5:31 

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.