View Complete Post
I have a piece of code that writes string into an image and save it. It works on one of my site and but not the other. The image.save is not working. If this is a permission problem, which account should I change? I use win server 2003 and IIS 6, and have given ASPNET, NETWORK SERVICE, and anonymous user write access.
I am having a requirement and i believe most of you have already did it. This is the problem, i am having a div with image controls and i want to save it as image[png or jpeg] in database on button click. I have googled a lot but couldn't find a good start.
<div id="frame" title="xxx" class="resize" style="width:634px; height:410px; overflow:hidden;">
<img id="drag56800" runat="server" src="Images/circle_street.png" style="height:140px;width:140px;border-width:0px;left:773px;top:123px;position:fixed;" /><img id="drag54101" runat="server" src="Images/animals/horse.png" style="height:30px;width:30px;border-width:0px;left:800px;top:171px;position:fixed;" />
Any code ,suggestion or aricle will help me.
Hi! I've been tasked with generating graphs of data as images for the purpose of importing into MS Word documents and Powerpoint presentations.
I've done it using GIF images, but I'd really like to use a vector format, so they can be scaled in the document without losing quality, and of course keeping the document size down as there's lots of them.
MS Word and Powerpoint can import EMF, WMF and CGM formats, but I have no idea how to generate those in .NET.
Does anyone have some pointers for me to get started creating say EMF files from .NET? I've looked all over the net and can't find much at all about it... I've gathered it's a job for GDI+, but can't find sample code or anything for .NET.
Hii every oneIam in a requirement of capturing Signature on
touch screen hand held device and saving the Signature Image as an .jpg or .bmp
or .gif on the device.Could someone give code for the above requirement.
I'm making an application that needs to be able to take a user specified image file and upload it into a database that only accepts images of 10 KB or less. So I want to let the user select an image and then have the option of resizing it and if possible
also decreasing the quality - I'm sure I can figure out how to do both of these things on my own but the thing I'm not sure about is how I can tell what size the resulting image will be without actually writing it to disk. I thought the SourceStream property
of the BitmapSource class would be useful but when I try to access it I just get told that the stream has been closed. Any ideas?
Saving a Gray8 image using the BmpBitmapEncoder doesn't give an error, but does multilate the image. The header and color table are those of an Indexed8 gray scale image, but the pixels have only 16 possible values 00, 11, 22, ..., DD, EE, FF.
Is this by design? A FormatConvertedBitmap from Gray8 to Indexed8 and saved using the BmpBitmapEncoder results in the correct image. This code demonstrates:
Dim R As New Int32Rect(0, 0, 1024, 768)
Dim B(R.Height - 1, R.Width - 1) As Byte
For Y As Integer = 0 To R.Height - 1
i am saving inkcanvas but it saves black image