User Profile

Collapse

Profile Sidebar

Collapse
saharit
saharit
Last Activity: May 23 '11, 09:28 PM
Joined: Mar 18 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • saharit
    replied to Display bmp in picturebox
    hi again ,
    1)i have problem with reading bmp file in 8 bit,do u know how can i load it in my program?

    2) i still don't undrestand why the padding is
    int padding = biWidth % 4;
    :(
    See more | Go to post

    Leave a comment:


  • saharit
    started a topic handling the image

    handling the image

    Hi everybody,

    Does anyone know how to crop bmp file?
    See more | Go to post
    Last edited by Frinavale; Jul 4 '13, 01:29 PM.

  • saharit
    replied to get path
    in C
    in turbo c++ how can i define aegument in RUN Menu?
    See more | Go to post

    Leave a comment:


  • saharit
    replied to get path
    in C
    yes, u right but where is the argument that i use :(?
    See more | Go to post

    Leave a comment:


  • saharit
    replied to get path
    in C
    thanks Alex but where i put my path of file ? like this c:\document\d.d oc to open this file?
    See more | Go to post

    Leave a comment:


  • saharit
    started a topic get path
    in C

    get path

    hi all i want to get the path of the file that i want to open it in argument of main() function how can i do it?
    See more | Go to post

  • saharit
    replied to Display bmp in picturebox
    At this point though, I gotta ask. Why can't you use the Image.FromFile method?
    >>> where i can use it?
    See more | Go to post

    Leave a comment:


  • saharit
    replied to Display bmp in picturebox
    in first code i use this befor the first loop>> int padding = biWidth % 4;<< and add this in the next loop >> fs.Seek(padding , SeekOrigin.Curr ent);<< beacuse the picture is shown Tilt .do u know why i could Division the biwidth on 4 ?
    See more | Go to post

    Leave a comment:


  • saharit
    replied to Display bmp in picturebox
    do u know how i get bmp header and put pixel by pixel in arry then display it without using bitmap class, i don't have enough time :(
    See more | Go to post

    Leave a comment:


  • saharit
    replied to Display bmp in picturebox
    do u know why this code don't work?


    Code:
      private void Form1_Load(object sender, EventArgs e)
    
    {
    
    OpenFileDialog ofd = new OpenFileDialog();
    ofd.ShowDialog();
    
    
    FileStream fs = new FileStream(ofd.FileName, FileMode.Open, FileAccess.Read);
    
    BinaryReader br = new BinaryReader(fs);
    
    if (br.ReadChar().ToString() + br.ReadChar().ToString() == "BM")
    ...
    See more | Go to post

    Leave a comment:


  • saharit
    replied to Display bmp in picturebox
    thanks a lot, i'm going to try what you say:)
    See more | Go to post

    Leave a comment:


  • saharit
    replied to Display bmp in picturebox
    in this code at first we buffered the bmp then display it . i want to Simultaneous that we read the bmp, display it .
    See more | Go to post

    Leave a comment:


  • saharit
    replied to Display bmp in picturebox
    thanks its work, i have another problem .
    how to display bmp file pixel-by-pixel and line-by-line without buffering it? :)
    See more | Go to post

    Leave a comment:


  • saharit
    replied to Display bmp in picturebox
    it's running but only get the path of file but don't display picture,sometim es say "this is not a bitmap file" .
    i should get bmp file by its heder information then display it pixel-by-pixel
    i have note enough time ,:(
    thanks
    See more | Go to post

    Leave a comment:


  • saharit
    started a topic Display bmp in picturebox

    Display bmp in picturebox

    Code:
     PictureBox PictureBox1 = new PictureBox();
            public void display(String filename)
            {
                FileStream fs = new FileStream(filename, FileMode.Open, FileAccess.Read);
                BinaryReader br = new BinaryReader(fs);
                if (br.ReadChar().ToString() + br.ReadChar().ToString() == "BM")
                {
                    int bfSize = br.ReadInt32();
    ...
    See more | Go to post

  • saharit
    started a topic how to read bmp file and show it in form

    how to read bmp file and show it in form

    our master said we should write a program in c# language that receive or read byte byte of a bmp image then show it in form ,all this process should without using any ready component in VS .

    I don't work with c# yet because of this reason I completely confused,

    what i should to read?

    how starting in this Little time?

    what is the BKS format?

    plz guid me.

    ...
    See more | Go to post
No activity results to display
Show More
Working...