Results 1 to 12 of 12

Thread: Simple PictureBox Problem...

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Israel
    Posts
    636

    Talking

    Hi, Guys!

    I am using BitBlt.
    I load into a picturebox a picture.
    when I load it, I don't see the first line of pixels
    ( (X,1) ) and I see a double line of the last line
    of pixels.
    What is wrong?!?!
    How do I handle this problem???

    Thank you,
    Arie.

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Blit from 0, 0 ....
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    Instead of 1, 1...

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Israel
    Posts
    636

    But I AM Bliting from 0, 0

    I mean, that when I load the ICO into the picturebox,
    in 'design-time' I don't see the first line of the ICO
    and I see double of the last line.
    It's without doing nothing with BitBlt.
    It's a bug in the picturebox.
    maybe I should draw the ICO from the second line and leave a blank line in the first place.
    for example I have and ICO file of 16x16.
    Maybe I should draw the same icon in a 16x17 and leave the first line blank and draw on (Ix2 to Ix17)?

    I don't know what to do!
    Help...

    Thank you,
    Arie.

  5. #5
    Megatron
    Guest
    See if setting the PictureBox's BorderStyle to "None" helps.

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Israel
    Posts
    636
    It is setted to NONE.
    I don't know what to do...
    Have one of you ever had this problem???
    Please Help...

    Thank you,
    Arie.

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Israel
    Posts
    636
    PLEASE HEEEEEEEEELP!!!!!!!!!

    PLEEEEEEEEEASSE!!!

    Or

    Tell me another way to draw a 3072 ICONs on a
    1024x768???

    Thank you,
    Arie.

  8. #8
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Can you post your code ?
    It might give us a better idea.
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  9. #9

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Israel
    Posts
    636
    It's not about the code!!!
    The problem is in the PICTUREBOX!
    When I load a picture (ICO, in this case) I DON'T SEE
    THE FIRST LINE OF PIXELS AND I SEE DOUBLE LINE
    OF THE LAST PIXELS LINE!

    Please Help!
    Why does it happen?

    Thank you,
    Arie.

  10. #10
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    post the icon
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  11. #11

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Israel
    Posts
    636
    But it happens in any icon that I draw.
    I am drawing my icons with Microangelo 5.0.

    I don't what to do...
    Help...
    Please.

    Thank you,
    Arie.

  12. #12
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Originally posted by plenderj
    Can you post your code ?
    It might give us a better idea.
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width