Click here to Skip to main content
15,886,830 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: not able to Deserialize json signature lines Pin
ven7535-Feb-14 5:17
ven7535-Feb-14 5:17 
GeneralRe: not able to Deserialize json signature lines Pin
Richard Deeming5-Feb-14 5:35
mveRichard Deeming5-Feb-14 5:35 
GeneralRe: not able to Deserialize json signature lines Pin
ven7535-Feb-14 6:11
ven7535-Feb-14 6:11 
GeneralRe: not able to Deserialize json signature lines Pin
Richard Deeming5-Feb-14 6:50
mveRichard Deeming5-Feb-14 6:50 
GeneralRe: not able to Deserialize json signature lines Pin
ven7535-Feb-14 7:18
ven7535-Feb-14 7:18 
GeneralRe: not able to Deserialize json signature lines Pin
Richard Deeming5-Feb-14 8:01
mveRichard Deeming5-Feb-14 8:01 
GeneralRe: not able to Deserialize json signature lines Pin
ven7535-Feb-14 16:09
ven7535-Feb-14 16:09 
GeneralRe: not able to Deserialize json signature lines Pin
Richard Deeming6-Feb-14 1:37
mveRichard Deeming6-Feb-14 1:37 
Since the signatureImage is already a Bitmap, I'm not sure why you're creating a new Bitmap to save it; you should be able to use:
C#
signatureImage.Save(Server.MapPath("~/images/s1.jpg"), ImageFormat.Jpeg);


Other than that, there's no obvious problem with the code that's saving the image. You'll need to step through your code to check that you're getting the values out of the JSON, that the pen you're using has a suitable colour and width, and that the lines you're drawing are within the bounds of the picture.

The last point is particularly important; if all the lines you're drawing are outside the bounds of the picture, then you won't be able to see them.

I've just run your code to a 200 x 200 pixel canvas, using a 1 pixel black pen on a white background, and I get an image with a hand-drawn "S" on it.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer



modified 6-Feb-14 7:48am.

GeneralRe: not able to Deserialize json signature lines Pin
ven7536-Feb-14 6:54
ven7536-Feb-14 6:54 
GeneralRe: not able to Deserialize json signature lines Pin
Richard Deeming6-Feb-14 8:56
mveRichard Deeming6-Feb-14 8:56 
GeneralRe: not able to Deserialize json signature lines Pin
ven7536-Feb-14 16:18
ven7536-Feb-14 16:18 
GeneralRe: not able to Deserialize json signature lines Pin
ven7536-Feb-14 21:34
ven7536-Feb-14 21:34 
GeneralRe: not able to Deserialize json signature lines Pin
ven7537-Feb-14 7:03
ven7537-Feb-14 7:03 
GeneralRe: not able to Deserialize json signature lines Pin
Richard Deeming10-Feb-14 1:27
mveRichard Deeming10-Feb-14 1:27 
Question3 layers architecture & MVC Pin
kryptong4-Feb-14 3:20
kryptong4-Feb-14 3:20 
AnswerRe: 3 layers architecture & MVC Pin
Eddy Vluggen4-Feb-14 7:55
professionalEddy Vluggen4-Feb-14 7:55 
GeneralRe: 3 layers architecture & MVC Pin
kryptong4-Feb-14 8:08
kryptong4-Feb-14 8:08 
GeneralRe: 3 layers architecture & MVC Pin
Eddy Vluggen5-Feb-14 0:30
professionalEddy Vluggen5-Feb-14 0:30 
AnswerRe: 3 layers architecture & MVC Pin
Pete O'Hanlon4-Feb-14 8:28
mvePete O'Hanlon4-Feb-14 8:28 
AnswerRe: 3 layers architecture & MVC Pin
CoderPanda5-Feb-14 6:56
professionalCoderPanda5-Feb-14 6:56 
QuestionGood GC configuration for Web services Pin
Pingala31-Jan-14 11:36
Pingala31-Jan-14 11:36 
AnswerRe: Good GC configuration for Web services Pin
Dave Kreskowiak31-Jan-14 11:58
mveDave Kreskowiak31-Jan-14 11:58 
AnswerRe: Good GC configuration for Web services Pin
CoderPanda5-Feb-14 7:23
professionalCoderPanda5-Feb-14 7:23 
QuestionSending e-mail error-VB.NET Pin
tgkkishore31-Jan-14 5:07
tgkkishore31-Jan-14 5:07 
AnswerRe: Sending e-mail error-VB.NET Pin
Eddy Vluggen31-Jan-14 6:25
professionalEddy Vluggen31-Jan-14 6:25 

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.