Quantcast
Channel: System.Drawing/GDI+
Browsing index pages (176 articles)
↧

A generic error occurred in GDI

On Server 2012 R2 running .NET ...Several months ago, I was playing with some code to generate graphs etc for my users.  This code is running on a complete different page from the one I am writing...

View Article


Image may be NSFW.
Clik here to view.

DrawString make gaps between characters

HiI'm looking for character spacing functionin GDI as in MS Wordbecause DrawString make large gaps between characters.Thank you.

View Article


A generic error occurred in GDI

On Server 2012 R2 running .NET ...Several months ago, I was playing with some code to generate graphs etc for my users.  This code is running on a complete different page from the one I am writing...

View Article

Resize image without losing its quality/resolution in c#

Hi, I'm using code below to resize image but after resizing, we are losing image quality(resolution). Can someone suggest the best way to resize image without losing its resolution/quality? public...

View Article

Shrunken Images Create Larger Files After Resizing

Hi,I successfully managed to shrink all uploaded images to widths of 700px. Good right? Wrong, because the new shrunken files are now much larger than the original files. My test case took 1600px wide...

View Article


change the size of the image

HelloI have below code, Can some one please tell me how do I create an image with 250 height and 250 widthbelow code creates a very small image file... Dim text As String = Label1.Text.Trim() Dim...

View Article

vb.net upload to network share gives error during image-resize - A generic...

Hello, All.VB.net Upload to the local system, no issues. (Local meaning, my development system (OR) on running the site on the live server)I am now uploading all files to a dedicated file server, so I...

View Article

change the size of the image

HelloI have below code, Can some one please tell me how do I create an image with 250 height and 250 widthbelow code creates a very small image file... Dim text As String = Label1.Text.Trim() Dim...

View Article


A generic error occurred in GDI+ when using multi threading

 I have a program that get user int input "1" and increment it based on the amount of files in a directory then stamp that int on each file( first is 1 and so on 1++). The foreach loop go in each...

View Article


change the size of the image

HelloI have below code, Can some one please tell me how do I create an image with 250 height and 250 widthbelow code creates a very small image file... Dim text As String = Label1.Text.Trim() Dim...

View Article

C# different image compare

HI, i can not find, method witch  can comare different size pictures. For example I have one image "full" (100x100 pixels) and another image only part of first image (30X30 pixels).I need to determine...

View Article

reduce file size in base64String

Hi guys.. i found that the filesize changed from 993KB to 9.1MB after rotated the image and save it. Like to know is there any method to reduce file-size during this stage? Below is my coding, hfData...

View Article

filesize increase after image rotated.

hi guys.. the following url is the article i refer to rotate image and save to directgory.how can i avoid the file size increase? i test with rotate an image and its changed from 900KB to 12.1MB. any...

View Article


Save Base64 Image with 300 dpi

Hello,I have an image converted to Base64 (unfortunately I can't change anything about it) and now I need to save it with 300dpi resolution/qualityvar decodedImage =...

View Article

A generic error occurred in GDI+ while saving photo

Hi guys.. how can I set bmp = Nothing after saving image? | I got this error A generic error occurred in GDI+. when my application running in web server (working fine if I test run in localhost)I have...

View Article


Image may be NSFW.
Clik here to view.

Add a special border to image.

Hi guys... i can add yellow border to image by using the following code. Public Function AppendBorder(ByVal original As System.Drawing.Image, ByVal borderWidth As Integer) As System.Drawing.Image Dim...

View Article

Image may be NSFW.
Clik here to view.

Add whiteborder and text to Image

Hi guys.. I've nearly achieved my goal but got little improvement to my code.1) How do I make that area to White Color as well? * I knew that it's because I changed the following code from...

View Article


Scanned Image DPI is changed on using GDI+ API for saving image.

I am new to Twain and GDI+.Application is developed using .Net.Below GDI+ APIs used for image saving.GdipCreateBitmapFromGdiDib(bminfo, pixdat, ref img);GdipSaveImageToFile(img, picname, ref clsid,...

View Article

Image File cutting/cropping custom scenario --

Hi. I have a very unique scenario at hand and very honestly I am out of depth on how to do this. In my app. I am generating png image files, with some content in it. The content keeps varying. That's...

View Article

How do I create an algoritm

Hello! Assume I have on the x-axes the display area from x=40 pixels to x=750 pixels because I have some text to the far left so the x -axis start at position x = 40 If I now want to set a lot of point...

View Article
Browsing index pages (176 articles)


Latest Images