Results 1 to 10 of 10

Thread: [RESOLVED] Image control shape

  1. #1

    Thread Starter
    Fanatic Member AccessShell's Avatar
    Join Date
    Oct 2013
    Posts
    790

    Resolved [RESOLVED] Image control shape

    Is it possible to make this control round?

    Thanks

  2. #2
    PowerPoster SamOscarBrown's Avatar
    Join Date
    Aug 2012
    Location
    NC, USA
    Posts
    9,070

    Re: Image control shape

    What do you mean? As far as making the CONTROL round, I doubt it. But, you can put a round IMAGE in the control. What are you trying to do?
    Sam I am (as well as Confused at times).

  3. #3

    Thread Starter
    Fanatic Member AccessShell's Avatar
    Join Date
    Oct 2013
    Posts
    790

    Re: Image control shape

    The picture is about rectangular, very close to square. But the important part is round. The extra space in the corners would take a lot of work to change the color properly.

    I want to get rid of the corners down to the circumference of the circle

    I need the image control because of the shrink property.

  4. #4
    PowerPoster SamOscarBrown's Avatar
    Join Date
    Aug 2012
    Location
    NC, USA
    Posts
    9,070

    Re: Image control shape

    snap an image of your image, and attach it here...i'll try to figure out what you are trying to do
    Sam I am (as well as Confused at times).

  5. #5
    PowerPoster
    Join Date
    Feb 2006
    Posts
    24,481

    Re: Image control shape

    My guess is that either TransparentBlt or MaskBlt is going to be required to do what's desired here.

  6. #6

    Thread Starter
    Fanatic Member AccessShell's Avatar
    Join Date
    Oct 2013
    Posts
    790

    Re: Image control shape

    I found a very low tech, simple solution.

    All the pictures are round. The image control is square, or rectangular. The area between the circle and square is of concern. BUT, for all the pictures, that area is white. I just changed the form backcolor to white and removed the control border. I really liked the form default background color, but you have to make compromises.

    Thanks for your help.

  7. #7
    PowerPoster
    Join Date
    Feb 2006
    Posts
    24,481

    Re: [RESOLVED] Image control shape

    Or maybe just try GIF images with transparency?

  8. #8
    Hyperactive Member gaouser's Avatar
    Join Date
    Mar 2022
    Location
    Near the User32.dll
    Posts
    378

    Re: [RESOLVED] Image control shape

    make the image round
    you cant believe a random 11 year old turkish kid using VB6 and feeling nostalgic to XP

  9. #9
    Hyperactive Member gaouser's Avatar
    Join Date
    Mar 2022
    Location
    Near the User32.dll
    Posts
    378

    Re: [RESOLVED] Image control shape

    good idea+dithering+anti aliazing for round borders
    you cant believe a random 11 year old turkish kid using VB6 and feeling nostalgic to XP

  10. #10
    Junior Member
    Join Date
    Oct 2013
    Posts
    16

    Re: [RESOLVED] Image control shape

    Yes you could do it using SetWindowRgn and CreateRoundRectRgn.

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