Xojo Conferences
XDCMay2019MiamiUSA

Odd Shape Picture Cropping (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: Re: Canvas.Paint difference between Mac OS X and Windows XP
Next thread: Purchasing a printed Language Reference


Odd Shape Picture Cropping   -   Bob Gordon
  Re: Odd Shape Picture Cropping   -   Seth Duke
  Re: Odd Shape Picture Cropping   -   Andy Dent

Odd Shape Picture Cropping
Date: 19.08.05 18:26 (Fri, 19 Aug 2005 10:26:27 -0700 (PDT))
From: Bob Gordon
Hello.

I am interested in taking a picture (bitmap type, not
object type) and cropping it into odd (interesting)
shapes such as a pentagon, triangle, star, etc.

Anyone have any ideas how to go about this?

-Bob Gordon
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Odd Shape Picture Cropping
Date: 19.08.05 18:46 (Fri, 19 Aug 2005 13:46:03 -0400)
From: Seth Duke
On 8/19/05 1:26 PM, "Bob Gordon" <<email address removed>> wrote:

> Hello.
>
> I am interested in taking a picture (bitmap type, not
> object type) and cropping it into odd (interesting)
> shapes such as a pentagon, triangle, star, etc.
>
> Anyone have any ideas how to go about this?
>
> -Bob Gordon

Hmmm.... Maybe draw your shape as a black and white image and apply it as a
mask.
-Seth

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Odd Shape Picture Cropping
Date: 20.08.05 05:06 (Sat, 20 Aug 2005 12:06:35 +0800)
From: Andy Dent
Bob Gordon mused
>I am interested in taking a picture (bitmap type, not
>object type) and cropping it into odd (interesting) shapes

use the mask property.
(create another picture the same size and draw a filled shape in it
then assign it as the mainPicture.mask)

If you use a filled shape of solid black as the mask it will just crop.

using a grey shape or grey around the edge of the cropping shape will
gently fade out the edges of the picture.

In the label printing program I'm working on you can do things like
that as well as use radial gradients for masks, so you get that
gentle misting-out effect used by wedding photographers.

Andy
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>