system.drawing.imaging
Reading/preserving a PixelFormat.Format48bppRgb PNG Bitmap in .NET?
I\'ve been able to create a Format48bppRgb .PNG file (from some internal HDR data) using the the following C# code:[详细]
2023-04-02 01:41 分类:问答How to avoid useless white border in resized PNG with transparent background?
I have a folder containing about 2500 PNG images, with no transparency. Every image is about 500 x 500 (some are 491 x 433, others 511 x 499 etc).[详细]
2023-03-10 21:50 分类:问答Is it a Bitmap or MetaFile?
Given a Stream that I know will be a picture, is there a way to program开发者_JS百科matically determine if it is a Bitmap or a MetaFile when pulled from Image.FromStream(mystream)? Like a flag or some[详细]
2023-02-27 19:35 分类:问答Programmatically replace transparent regions in an image with white fill?
I\'ve got a PNG image that I\'m operating on via the System.Drawing API in .NET.It has large trans开发者_开发技巧parent regions, and I would like to replace the transparent regions with white fill--so[详细]
2023-02-19 08:19 分类:问答Image.Save() on MemoryBmp to TIFF with EncoderParams - How?
I have an application that allows a user to define a region of an image and save that region to file.I have run up against a snag that I can\'t sort out.The Bitmap that I create to paint the selected[详细]
2023-01-23 13:57 分类:问答How to draw centered text onto a jpg using system.drawing in c#
I am using the following code to draw text onto a jpg image but it requires x/y coordinate percision on where to place the text.[详细]
2023-01-20 01:14 分类:问答File extension from System.Drawing.Image
I\'m writing a method that needs to save a System.Drawing.Image to a file. Without knowing the original file the Image was created from, is there anyway to determine what file extension it should have[详细]
2023-01-14 15:15 分类:问答Using a System.Drawing.Image as the centered part of a larger image?
I have a System.Drawing.Image that I would like to use as the centered portion for a new, larger image.I’m given the dimensions of the (always) lar开发者_高级运维ger image and the idea is to make tha[详细]
2023-01-10 03:30 分类:问答passing the right BytesArray into the MemoryStream for Image
there a way to determine that I am passing the 开发者_JAVA技巧right byte array to the MemoryStream if I want to create an Image out of byte array.[详细]
2023-01-06 02:17 分类:问答Determine if Alpha Channel is Used in an Image
As I\'m bringing in images into my program, I want to determine if: they have an alpha-channel if that alpha-channel is used[详细]
2023-01-03 16:35 分类:问答