Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Définir la Résolution de l’objet ‘Bitmap’

Modifier,le,mode,de,composition,d'une,image
{filelink=16677}

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
 
public class ModifierResolution : Form
{
 
    protected override void OnPaint(PaintEventArgs e)
	{
    Graphics g = e.Graphics;
    Bitmap bimap = new Bitmap("find.jpg");
 
    g.FillRectangle(Brushes.White, this.ClientRectangle);
    bimap.SetResolution(600f, 600f);
    g.DrawImage(bimap, 0, 0);
    bimap.SetResolution(1200f, 1200f);
    g.DrawImage(bimap, 180, 0);
    }
    public static void Main()
	{
        Application.Run(new ModifierResolution());
    }
}

No comments yet.

Leave a Comment