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
A

apoll

@apoll
About
Posts
8
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How can I load an image in C#
    A apoll

    Hey Jeff, you are great, now it is just as i wanted. Thank you very much for your help and your time. Best regards Alexander

    C# question csharp

  • How can I load an image in C#
    A apoll

    oh, yeprs, this is exactly my problem now. The thing is, when I make it with if else like this: public partial class Form1 : Form { Bitmap original_image; string path; public Form1(string[] ImagePath) { InitializeComponent(); if (ImagePath[0] != null) { path = ImagePath[0]; original_image = new Bitmap(path); pictureBox1.Image = original_image; } } it says that "if (ImagePath[0] != null)" is outside the bounds of the array

    C# question csharp

  • How can I load an image in C#
    A apoll

    Ok, thank you very much, it is working. Apoll

    C# question csharp

  • How can I load an image in C#
    A apoll

    sorry Jeff, I do not really understand, I am new in C#. So, this is my Program.CS using System; using System.Collections.Generic; using System.Windows.Forms; namespace PhotoClient { static class Program { /// /// Der Haupteinstiegspunkt für die Anwendung. /// [STAThread] static void Main(string[] arguments) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); } } } And here comes the Form1 // Photo Client 20 // using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.IO; using System.Drawing.Imaging; namespace PhotoClient { public partial class Form1 : Form { string[] arguments; public Form1() { InitializeComponent(); } #region variables Bitmap original_image, rot_image, carry, image; bool fill = false; string extension = ""; float resize = 1; OpenFileDialog load = new OpenFileDialog(); BrightnessAdjuster ba = new BrightnessAdjuster(); Rotation rt = new Rotation(); Draw dr = new Draw(); Save_percent sav = new Save_percent(); #endregion variables #region load n initialize private void load_Click(object sender, EventArgs e) { load.Filter = " jpg files (*.jpg)|*.jpg| All files (*.*)|*.*| bmp files (*.bmp)|*.bmp| gif files (*.gif)|*.gif "; if (load.ShowDialog() == DialogResult.OK) { initialize(); } } public void initialize() { image = new Bitmap(load.FileName); FileInfo original = new FileInfo(load.FileName); extension = original.Name; trackBar1.Maximum = image.Width; trackBar2.Maximum = image.Width; ... ... ... So what is a "constructor" ?

    C# question csharp

  • How can I load an image in C#
    A apoll

    Thanks for your help. I put the "string[] arguments" in the Main, and now ? What do you mean with "look at the arguments" ? How can I transfer the file path into my Form1 ?

    C# question csharp

  • How can I load an image in C#
    A apoll

    Hi at all. I made a program which is able to modify images. Now I want it like this: You choose an image in your explorer, click the right button of your mouse and click "open with" and select my program, which I called PhotoClient. Ok, so the PhotoClient is starting but the selected image is not in the picturebox1 of my PhotoClient. So how can I make this come true that I can load an image like this ?

    C# question csharp

  • how can i capture an image from webcam
    A apoll

    Thank you, but when I start the WebCamServiceSample, it says: connection to the remote server is not possible. What does this mean ?

    C# question tutorial csharp help learning

  • how can i capture an image from webcam
    A apoll

    Hi, I am a beginner in C# and I don't understand the answers in the internet for my question. I want to catch a picture from my WebCam (USB Port) and show it in a pictureBox for example. I have the Microsoft Visual C# express edition, that's it and I know how to put a jpg or bmp in the pictureBox but how can I get the Picture ? Is there anybody who can help me ?

    C# question tutorial csharp help learning
  • Login

  • Don't have an account? Register

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