FROM : Luca
DATE : Sun Mar 23 15:38:01 2008
I think CIPerspectiveTransform is my perfect solution. Thanks Glenn
Andreas!
And thanks Cathy for the quick reply.
Il giorno 23/mar/08, alle ore 15:10, glenn andreas ha scritto:
>
> On Mar 23, 2008, at 8:54 AM, Cathy Shive wrote:
>> On Mar 23, 2008, at 2:14 PM, Luca wrote:
>>
>>> Hello. Do you know how can I transform a rectangular image in a
>>> trapezium?
>>
>> Seriously?
>>
>> You aren't going to be able to distort your bitmap like this with
>> NSImage and there is no ready-made CIFilter to do this distortion
>> that I'm aware of. If I'm wrong about that, then that's the way to
>> go. But, I think you've gotta do your own pixel pushing for this
>> one.
>>
>
> Actually, the CIPerspectiveTransform will do this perfectly (you
> even just give it the resulting four corner points)
>
> You can't do that will an affine transform though (since perspective
> is, by definition, non-affine), so you'll need to use CoreImage.
>
>
> Glenn Andreas <email_removed>
> <http://www.gandreas.com/> wicked fun!
> quadrium | flame : flame fractals & strange attractors : build,
> mutate, evolve, animate
>
>
>
DATE : Sun Mar 23 15:38:01 2008
I think CIPerspectiveTransform is my perfect solution. Thanks Glenn
Andreas!
And thanks Cathy for the quick reply.
Il giorno 23/mar/08, alle ore 15:10, glenn andreas ha scritto:
>
> On Mar 23, 2008, at 8:54 AM, Cathy Shive wrote:
>> On Mar 23, 2008, at 2:14 PM, Luca wrote:
>>
>>> Hello. Do you know how can I transform a rectangular image in a
>>> trapezium?
>>
>> Seriously?
>>
>> You aren't going to be able to distort your bitmap like this with
>> NSImage and there is no ready-made CIFilter to do this distortion
>> that I'm aware of. If I'm wrong about that, then that's the way to
>> go. But, I think you've gotta do your own pixel pushing for this
>> one.
>>
>
> Actually, the CIPerspectiveTransform will do this perfectly (you
> even just give it the resulting four corner points)
>
> You can't do that will an affine transform though (since perspective
> is, by definition, non-affine), so you'll need to use CoreImage.
>
>
> Glenn Andreas <email_removed>
> <http://www.gandreas.com/> wicked fun!
> quadrium | flame : flame fractals & strange attractors : build,
> mutate, evolve, animate
>
>
>
| Related mails | Author | Date |
|---|---|---|
| Luca | Mar 23, 14:14 | |
| Cathy Shive | Mar 23, 14:54 | |
| glenn andreas | Mar 23, 15:10 | |
| Luca | Mar 23, 15:38 | |
| Cathy Shive | Mar 23, 15:38 | |
| John Stiles | Mar 24, 03:39 |






Cocoa mail archive

