User Profile

Collapse

Profile Sidebar

Collapse
Chocolade
Chocolade
Last Activity: Jan 2 '12, 07:40 PM
Joined: Aug 29 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Im trying to save image from inside pictureBox1 to my hard disk not working good

    When i click a button and paintDemoMode is true then its showing this rectToDrawOut as rectangle on the pictureBox1

    Now i want to save to my hard disk the image show now in the pictureBox1 including the rectangle.

    But its aving just the image from the pictureBox1 without the rectangle. I tried also instead pictureBox1.Ima ge.Save i tried bb.Save but again it didnt save the rectangle. whats wrong here ?

    ...
    See more | Go to post
    Last edited by Niheel; Sep 7 '11, 06:46 AM.

  • Im trying to rotate an image but it dosent work good enough:

    Im using pictureBox1 and pictureBox2 and a button1
    Im doing image cropped and then i can drag the image around the form with the pictureBox2.

    Now i did that when i click on the button1 in the button1_Click event it will rotate the image by 25 degrees.

    The problem is i want to rotate the original cropped Image and not a new one so this is what i did in the rotation function:

    Code:
    private  Bitmap
    ...
    See more | Go to post

  • Great thanks for the thread.
    Another problem in this new form code near the end in the bottom of this code im using Copy function and a variable called bmp

    If i draw the rectangle to the right or bottom its ok but if i draw try to draw the rectangle in the pictueBox1 to the top up or to the right it dosent draw anything witch is ok but it also throw me exception on the bmp variable in the Copy function say its null.
    ...
    See more | Go to post

    Leave a comment:


  • How to drag part of image from pictureBox1 to pictureBox2 AllowDrop not exist:

    I have this code wich let me the option to draw a Rectangle on pictureBox1. Now i did in the end a function that save to hard disk the Rectangle area from the image in the picturebox1 if i mark some area in the image in the pictureBox1 it will save only the area inside the red Rectangle.

    Now i want to do that the user will be able to drag with the mouse the Rectangle with the image part inside to pictureBox2.

    First problem...
    See more | Go to post

  • Chocolade
    started a topic I have a problem with trackBar2 need help

    I have a problem with trackBar2 need help

    The first problem is that i want to check if the variable file_info_track Bar2 is null or not.
    So im checking if its null inside the StartWork function and if its null im doing trackBar2.Enabl e = false;

    Now the backGroundWorki ng is starting to work and after few seconds file_info_track Bar2 isnt null.
    So in the event: backGroundWorke r1_DoWork im checking if file_info_track Bar2 isnt null != and its not so im doing trackBar2.Enabl e...
    See more | Go to post
    Last edited by Niheel; May 24 '11, 01:19 AM. Reason: Place problem description first, please.

  • Im trying to use BackgroundWorker first time and it dosent work good

    Code:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    using System.IO;
    
    namespace WindowsFormsApplication1
    {
        public partial class Picturebox1_Fullscreen : Form
        {
            BackgroundWorker backGroundWorker1;
    ...
    See more | Go to post

  • I need to make that trackBar2 will use the images from trackBar1 how ?

    In Form1 i have a simple event where i click it open a new form:

    Code:
    private void pictureBox1_DoubleClick_1(object sender, EventArgs e)
            {
               
    
                    pb1_fs = new Picturebox1_Fullscreen();
                    pb1_fs.WindowState = FormWindowState.Maximized;
                    pb1_fs.Show();
                    pb1_fs.picturebox1(pictureBox1);
                    pb1_fs.FormClosing
    ...
    See more | Go to post

  • Im using for to extract image to images but its slowy

    I have this code in Form1 its pictureBox1 double click event. When i double click on it its openning a new form.
    Now im getting from another class some function im using to extract images from one image on hard disk. I put in the function one image and it return me 15 images wich i extract on hard disk and then im reading the 15 images from hard disk from the new form.

    So the first problem is on Form1 in the double click pictureBox1...
    See more | Go to post

  • Nothing. It dosent draw anything and dosent give any error.

    Why ? Isnt it good ? The reason is cuz i needed this rectangle to mark a text in the center of the image to identify the text location. So it dosent realy matter for now from wich direction i draw the rectangle.

    I guess ill add the top and left sometime.
    See more | Go to post

    Leave a comment:


  • This is working:

    Code:
    (e.X > pictureBox1.Size.Width || e.Y > pictureBox1.Size.Height)
    Since the drawing is all the time start from any point and go to the right or down only i dont need Top and Left.



    Anyway this is working.


    Thanks.
    See more | Go to post

    Leave a comment:


  • Im drawing a rectangle in a picturebox1 how do i find the retangle borders ?

    I have a code with a mouseUp event.
    In this event im drawing with the mouse a rectangle inside a picturebox1 on image.

    Now the problem is when i draw the rectangle too big so its getting out the borders of hte image or the picturebox1. The thing is its getting out of the borders inside the picturebox1 i just cant see it.

    I want that if the rectangle is out of the borders so it will write something...
    ...
    See more | Go to post

  • GaryTexmo i tried something but it dosent work yet.
    Can you take a look and fix the vlaues or the variables places ?

    Code:
    public static Bitmap logoCut(Bitmap logoCut)
            {
                int image_logo_area_x = 412;
                int image_logo_area_y = 404;
                int image_logo_area_x1 = 512;
                int image_logo_area_y1 = 512;
               
    
                Bitmap
    ...
    See more | Go to post

    Leave a comment:


  • Im trying to cut a psecific area in image but it dosent work good why ?

    The file logoArea is 512x512

    Now all the int variables are the area of the ogi wich is on the right bottom corner.

    newimage is the image where i want to put the logo inside so in the end when im loading newimage in paint ill see only the logo.

    But i want that newimage will be in the size of the logo only.



    I cant understand it i used GIMP to get the excat x,y and x1,y1...
    See more | Go to post

  • Im getting image from form1 picbox1 to new form picbox1 how to show it in fullscreen?

    I have a new form. Now in form1 im showing images in picturebox1.

    Now i did a double click event of picturebox1 and when you click double on the picturebox1 its openning a new form.

    On the new form i added a split container on the right i added some labels buttons....on the left on panel1 i added a picturebox and did the picturebox to be Dock FILL!

    Now i created on the new form code a function that will...
    See more | Go to post

  • The original idea is to rename the original files to new names. Keep the files same content just rename them. So maybe i dont need to create new bitmap files and all the stuff.

    Since in string C i have the new file names how can i rename now the old files ? So if file number one was d:\......radar0 01.jpg so now it will be d:\......radar0 00001.jpg
    So all i need is somehow to rename the files names.

    I tried to use...
    See more | Go to post

    Leave a comment:


  • How to get pixel from array of jpeg files ? Cant figure out

    I have a console application project wich inside im creating array of jpg files from a directory and then im formating the files and make new files and i want to reneame/move/copy the new files with the old ones.

    Since the old files are jpg i want first read all the files pixels get the colors of them and set it back to the new files i created wich have also diffrenet format.

    For example in my program original file looks...
    See more | Go to post

  • I tried again with the trackbar scroll and have some problems yet

    Thorsten this is what i did dont forget im using also onmousewheel event.

    First in the constructor i did:
    Code:
    trackBar1_radar_images = new TrackBar();
                this.Controls.Add(trackBar1_radar_images);
                trackBar2_satellite_images = new TrackBar();
                this.Controls.Add(trackBar2_satellite_images);
    
    DirectoryInfo dir1 = new DirectoryInfo(sf);
                file_info_mouse_wheel
    ...
    See more | Go to post
    Last edited by Meetee; Apr 25 '11, 05:38 AM. Reason: Code tags added

  • Gary i couldnt find out how to use the trackbar.value i tried to add something like: this.trackBar1_ radar_images.Va lue = file_indexs according to my code but its giving me error say it should be between minimum and maximum.
    See more | Go to post

    Leave a comment:


  • How to use a trackbar to scroll through images in picturebox but cant make it

    I want to do few things with it:

    1. If the user is moving the trackbar the bar it self to the left wich is the start it will stop if he is using the mouse or the mouse wheel or the keyboards it will stop on the most left and when he gets to the most right side it will stop there too.

    2. I want that the user will be able to move the bar in three ways: with keyboards image by image with the mouse pointer drag it from side...
    See more | Go to post
    Last edited by Niheel; Apr 20 '11, 10:50 PM. Reason: spacing

  • Eyalk and here is the code for the ss.SendComplete d += new SendCompletedEv entHandler(ss_S endCompleted);

    Wich is when the file/email seding sinished completed.

    Code:
    private void ss_SendCompleted(object sender, AsyncCompletedEventArgs e)
            {
                timerdelay = 0;
                timer1.Start();
                String token = (string)e.UserState;
                if (e.Cancelled)
    ...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...