Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
M

megha_p

@megha_p
About
Posts
4
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • i am changing size of imge with dimension given by textbox.
    M megha_p

    i used this code but my picturebox is changing value but my image in not fitting in that picturebox.. it comes half or first quadrant etc. so please help me in this private void Calculate_btn_Click(object sender, EventArgs e) { Bitmap sourceimage = (Bitmap)pictureBox2.Image.Clone(); int height = sourceimage.Size.Height; int width = sourceimage.Size.Width; float nPercent = 0; float nPercentW = 0; float nPercentH = 0; int newheight = Convert.ToInt32(height_txt.Text); int newwidth = Convert.ToInt32(width_txt.Text); nPercentW = ((float)newheight / (float)height); nPercentH = ((float)newwidth / (float)width); if (nPercentH < nPercentW) nPercent = nPercentH; else nPercent = nPercentW; int destWidth = (int)(width * nPercent); int destHeight = (int)(height * nPercent); Bitmap b = new Bitmap(destWidth, destHeight); Graphics g = Graphics.FromImage((Image)b); g.DrawImage(sourceimage, 0, 0, destWidth, destHeight); pictureBox3.Image = sourceimage; pictureBox3.SizeMode = PictureBoxSizeMode.StretchImage;

    C# graphics help

  • image scaling
    M megha_p

    i am making a program to resize image according to measurement is given in textbox. and that should display in picturebox. but my picturebox is changing dimension which is good, but my image is not fitting in that picturebox. i tried image size mode function but it didnt work

    C#

  • Resizing a Picture
    M megha_p

    Hey, i am making a program, in which i have load an image in picturebox1. now i want to reduce image size and pixels and want to display in picturebox2. so how can i do this?

    C# question

  • how can i resize my picturebox image with less pixels?
    M megha_p

    pls help me in c#.net

    C# csharp question css help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups