Questions tagged [system.drawing.imaging]

80 questions
1
vote
0 answers

How to show a System.Drawing.Image in a Crystal Report

I have a crystal report in which an image 'CompanyLogo' have to be displayed on top of the report. The image I want to use is returned by a function call as a System.Drawing.Image. Image img = SomeClass.CompanyLogo() //Function call returns the…
Maria
  • 41
  • 1
  • 6
1
vote
3 answers

Image.Save can not over write images in Win7

I'm trying to save a image into a local drive using Image.Save method. It works fine in other OS but I see only problem in Win7. In Win7 it can't overwrite existing images, even it does not throw any error. Possibly it's a bug in Win7 as I see a…
Pritam Karmakar
  • 2,773
  • 5
  • 30
  • 49
1
vote
2 answers

how to draw in asp.net(c#)?

how to draw next image with labels in rectangles? thanks for help:
DmitryB
  • 1,149
  • 5
  • 20
  • 34
1
vote
2 answers

Image.FromFile "File Not Found" when File is there

I have a file stored in a directory within my site. When I attempt to access the file using image.fromfile, an exception is thrown saying that the file is not there. However, when I access the exact same file using the exact same path but loading…
Jamie
  • 555
  • 3
  • 14
1
vote
0 answers

saving an image (TIFF), save as BMP first - why?

I've inherited some code that takes in a TIFF file and saves it, also in TIFF format, but with compression. The code uses classes from the System.Drawing.Imaging namespace (as opposed to say System.Windows.Media). I understand obtaining a…
David
  • 2,226
  • 32
  • 39
1
vote
1 answer

Using ColorMatrix for sRGB greyscale conversion

The sRGB-factors for grayscale conversion are B,G,R = 0.0722, 0.7152, 0.2126. https://en.wikipedia.org/wiki/Grayscale Can this greyscale conversion be done (and if yes, how) on a Format24bppRgb image with a ColorMatrix? Or can this only be done…
tmighty
  • 10,734
  • 21
  • 104
  • 218
1
vote
0 answers

Need to convert Xamarin.Forms.Image to System.Drawing.Image

I am importing image from camera which is being stored as a Xamarin.Forms.Image. I need to convert this to System.Drawing.Image. Can anyone help me with this? And also if you can help me on how to assign a .png image to System.Drawing.Image. For…
1
vote
0 answers

System.Drawing.Imaging: What type does PropertyItem.Type = 9 correspond to?

I'm using System.Drawing.Image to load a JPG image. I found an image that has an EXIF orientation tag (0x0112) of type=9, len=4 Usually when I load an image, I get Type = 3 (Array of uint16, len = 2(bytes)). One clue is when I run it through…
David Moore
  • 93
  • 1
  • 12
1
vote
2 answers

Detect a corrupt image file

Hi All you clever guys, Im faceing a bit of a challenge here. Im supposed to create several different PDF's containing multiple (not similar) images. Unfortunately some of the images are corrupt/defect. This causes the creation of the partikular PDF…
Lars Hansen
  • 155
  • 1
  • 2
  • 16
1
vote
2 answers

Graphics.DrawHalfCirle & Graphics.DrawPartialCircle

I'm trying to draw half and partial circles (all BLACK lines) on a bitmap. My INTENDED result looks like this: My CURRENT result looks like this: I've tried so many different alternatives but it nevers looks right. using (var b = new…
SF Developer
  • 5,244
  • 14
  • 60
  • 106
1
vote
1 answer

Analyze bitmap and display the type of geometric shape.

I need to develop a console application in C# which gets the name of a bitmap image as a parameter in main function. The application must analyze the image content from the file and display to console the type of geometric shape and its color.…
1
vote
1 answer

Remoting communication could not find nativeImage within type System.Drawing.Image

I'm doing a distributed Sokoban game, where .NET Remoting technology is mandatory. I set up the logic of the game in a server component, and the window display and keyboard control in a client counterpart. At the point from where the client…
JAguirre
  • 45
  • 8
1
vote
3 answers

How to render an image with a color-keyed green mask in C#?

Trying to figure out the most elegant way to render an image inside of a specific color of mask in C# (via System.Drawing or equivalent that will work in both desktop and ASP.NET applications). The mask image will contain green keys where the image…
Brandon
  • 13,956
  • 16
  • 72
  • 114
1
vote
0 answers

Image object for printing

I want to create a System.Drawing.Image object. That created with another Image object containing a barcode and Text file. I need to add another text to it and optimize it for printing. But while I was trying to do that using Graphic class the image…
1
vote
3 answers

VB.NET - Create An Image - Resize But Add Background To Remainding Space

I am attempting to resize an image to specific dimensions but I do not want to stretch the image at all if it is smaller than my chosen dimensions. Instead I want to add a black background around the image area that is not in use. I think that the…
Chris
  • 73
  • 1
  • 2
  • 7