At 11:26 AM -0800 12/12/02, you wrote:
you should be able to specify the copyPixels command using quads (instead of rects) & therefore do a rotation (I haven't done it, but quads can certainly simulate rotation).

hth
-Buzz
on rotateTextImage textMember, verify
IL = textMember.image.extractAlpha()
-- comment out to verify the text's image
--g = new(#bitmap)
--g.image = IL -- member 'g' should be a bitmap version of the text
--
-- make a new image (rotated) to put the rotated version in
IL2 = image(IL.height, IL.width,IL.depth)
-- get it's rect, fabricate a quad, rotate that
r = IL2.rect
q = [point(r[1], r[2]), point(r[3], r[2]), point(r[3], r[4]), point(r[1], r[4])]
q2 = [q[4], q[1], q[2], q[3]]
-- copy(w/quad) the text image into the main one
IL2.fill(IL2.rect, rgb(0, 0, 0))
IL2.copyPixels(IL, q2, IL.rect, [#ink: #reverse])
-- to verify the rotated text image
if verify then
h = new(#bitmap)
h.image = IL2
end if
return IL2
end


At 12:45 PM +0100 12/12/02, you wrote:
Hi all,
(the question could also be "how to rotate a member bitmap within the cast".)

I have one script running where i use 2 members bitmap + 1 text member to generate a new composite of the 3.
it works. using the copytoclipboard and paste in PS, the reult is great.

now, for the second composite i need to rotate the text info before making the composite.
how do i do this?

see the problem as a book cover on front page you have the title and pictures, now i need to build the side of the book, i need now to
minimize the title size and paste it on same picture this time with a 90 degrees rotation. and generate the new image

Fabrice

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


Reply via email to