Just-in-time (JIT) debugging instead of this dialog box. See the end of this message for details on invoking 30 th December, 2008: Updated with corrected code.NOTE: All of my images are landscape, so I have not spent any time on portrait mode resizing conditions in the code. There are some simple image processing features available rotate, invert color, gray scale, contrast and brightness. The crop box will snap to a proportional aspect ratio when re-sized. The other combo box simply sets the width of the crop box, and the height is determined by the chosen aspect ratio. There is a transparent crop box that may be dragged by its corners, or moved by left clicking and moving. The aspect ratio of the crop box is determined by the value in the combo box. MessageBox.Show(ex.Message, " btnOK_Click()") SaveJpeg(saveFileDialog1.FileName, bmp, 85) If (saveFileDialog1.ShowDialog() = DialogResult.OK)īmp = (Bitmap)CropImage(pictureBox1.Image, ScaledCropRect) ScaledCropRect.Height = ( int)(( double)(CropRect.Height) / ZoomedRatio) ScaledCropRect.Width = ( int)(( double)(CropRect.Width) / ZoomedRatio) ScaledCropRect.Y = ( int)(CropRect.Y / ZoomedRatio) ScaledCropRect.X = ( int)(CropRect.X / ZoomedRatio) Rectangle ScaledCropRect = new Rectangle() output image size is based upon the visible crop rectangle and scaled to // the ratio of actual image size to displayed image size Private void btnOK_Click( object sender, EventArgs e) Find the correct image codec for ( int i = 0 i < codecs.Length i++) ImageCodecInfo codecs = ImageCodecInfo.GetImageEncoders() Get image codecs for all image formats Private ImageCodecInfo getEncoderInfo( string mimeType) Img.Save(path, jpegCodec, encoderParams) MessageBox.Show( " Can't find JPEG encoder?", " saveJpeg()") ĮncoderParameters encoderParams = new EncoderParameters( 1) ImageCodecInfo jpegCodec = getEncoderInfo( " image/jpeg") Private void saveJpeg( string path, Bitmap img, long quality)ĮncoderParameter qualityParam = new EncoderParameter( MessageBox.Show(ex.Message, " CropImage()") Just choose your own font from your device and upload it to use it.Copy Code private static Image CropImage(Image img, Rectangle cropArea)īitmap bmpCrop = bmpImage.Clone(cropArea, bmpImage.PixelFormat) You can even upload your own fonts to the editor and use them to add the text. Who needs Photoshop?!Īdd falling rain to an image. Put an Image in Text, including a drop shadow and with transparent background. Make the background of an image transparent by simply clicking on the colour that needs to become transparent. Make an image Transparent with the Transparency tool. Your imagination is the limit to create nice dynamic images.
Editing an image here is so easy and fast that starting Photoshop takes longer.Īdd an animated image onto a static background or add falling snow onto a picture. With the opacity setting you can blend images the way it suits you most. Merge two images together or blend multiple images. With the shadow option you can add different kind of shadow colours and blurs to the text. With extra options you can add a border around your text and make the text follow an arc path so it looks like text around a cricle. Also add text to animated images is simple and fast. With the Text Tool you can add text to your images. These features work on all image formats, even on animated GIFs and transparent PNG's All basic functions are available: Cut, Resize and Crop.