Results 1 to 5 of 5

Thread: print invert image

Hybrid View

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    2

    Cool

    I try to print inverted image.
    if i use:
    printer.PaintPicture Picture:=Picture1.Picture, X1:=1, Y1:=1 _
    , opcode:=vbDstInvert
    I get black rectangle from printer.

    So I tried to use BitBlt. but I can only invert from one PictureBox to another
    and I only know how to print pictureBox.picture which do not change by the Bitblt

    tnx for any advice

  2. #2
    Fanatic Member Jerry Grant's Avatar
    Join Date
    Jul 2000
    Location
    Dorset, UK
    Posts
    810

    Wink

    Try passing the following:

    printer.PaintPicture Picture:=Picture1.Image, X1:=1, Y1:=1, opcode:=vbDstInvert

    I read this on another message board!

    The Image property apparently is the actual current image displayed, the Picture property is the source file (I think)


    Jerry Grant................tnarG yrreJ
    Website: <JG-Design></.net>
    Email: [email protected]
    Working towards a bug free world......
    (Not a Microsoft employee)

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    2

    tnx, but I don't find different between image & picture

    I tried it but printing Picture1.Image or Picture1.Picture give the same result:
    printout of the original picture uneffected bay BitBlt

  4. #4
    New Member
    Join Date
    Jul 2000
    Posts
    2

    Wink

    you have to create temporary pictue. run bitblt to this picture handler and the put it to pictue1.picture

  5. #5
    New Member
    Join Date
    Jul 2000
    Posts
    2
    Or just clean the target by assigning it to null

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