c# - System.OverflowException while Editing large size images(A0,A1,A2) -
i have draw lozenge & text inside lozenge in image specific coordinates given user. have succeeded using graphics class below- var memorystream = new memorystream(); using (var bmp = new bitmap(filepath, false)) { using (var grp = graphics.fromimage(bmp)) { // measure text size //sizef textsize = grp.measurestring(inputtext1, font); var count = 0; var maxcount = (printpositions.count < inputtexts.count) ? printpositions.count : inputtexts.count; (var = 0; < maxcount; i++) { var printposition = printpositions.elementat(i); // calculating font size per dpi. printposition.fontsize = (printposition.fontsize * 300) / 74; var cornerradius = commonhelper.getcornerradius(size); //convert.toint32(pr