CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2004
    Posts
    3

    Composite Images and PictureClips

    Hi,
    I am overlooking a recent project handedover from an external contractor.
    This project uses, many images which were stored in a as a composite image with a rectangular grid of images in 16x2 array .

    The required image is loaded at the run-time using :
    Code:
    Picture1.PaintPicture PictureClip.GraphicCell(TheIcon), IconLeft, imgTop, IconWidth, IconHeight, 0, 0, IconWidth, IconHeight, vbSrcInvert
    I want to add some new Images to this file,but I am not sure how would can I modify these images. Should it be done with MSPaint and use trial &error to pick the IconLeft, IconTop?

    Can anybody help me how to create/modify these images at design-time
    -Thanks in Advance
    smartsarath2003

  2. #2
    Join Date
    Dec 2008
    Posts
    19

    Re: Composite Images and PictureClips

    The first thing is you'll want to get a copy of the original image stored in the PicClip control. If you don't have a copy of the image you can create one. To create a copy of the image bring up the properties window for the picclip control. Highlight the picture property (double click it). Press Ctrl+C. It is now copied in the clipboard.

    Next, Open Paint. Paste the image into paint. Looking at the dimensions of the bitmap in paint and doing some simply math will tell you exactly the size of each cell. You can edit the cells directly in paint. To add additional cells you need to extend the canvas to the height/width dimensions you determined earlier.

    Hope this helps.

    Tom

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

Featured