Ask a Question related to Macromedia Director Lingo, Design and Development.
-
Kevin Fink #1
Re: Copying images of vector sprites
The reg point of the image and the vector may not be in the same place, try
setting both of the reg points to the same location.
member("MyVector").reg = point(0,0)
member("MyBitmap").reg = point(0,0)
otherwise you can try to simply move the vector
VectorRect = sprite(Bitmap).rect
VectorRect[1] = VectorRect[1] +1
VectorRect[2] = VectorRect[2] +1
sprite(Vector).rect = VectorRec
"Stephen Whipp" <Stephen.Whipp@btopenworld.com> wrote in message
news:bfm302$jao$1@forums.macromedia.com...the> Hi all, a quick question
>
> I'm copying the image of a vector sprite into a bitmap. The bitmap isthat> precise height of the vector shapes image taking into account the
> strokewidth, yet I'm finding a small problem.
>
> When using something like the following:
>
> shp = myVectorshape.image
> srect = shp.rect
> drect = rect(startx, 0, endx, srect[4])
> myImage.copyPixels(shp, drect, srect)
>
> I find that the actual shape is not starting at 0 height but at 1... This
> means that the bottom of my vector shape is being clipped (I'm assuming> there is a one pixel border around the vectorshape's image). I know I can
> fix this by Expanding the bitmap in my case, but I'd like to know if there
> is a way of clipping the vectorshape member so that the image is precisely
> the size of the actual drawing, or is this one pixel discrepency inherent.
>
> Thanks in advance
>
> --
> Stephen Whipp
> Eastmond Publishing Ltd. (UK)
> -----------------------------------------------
> Visit our website at:
> [url]www.autograph-maths.com[/url]
> ----------------------------------------------
>
>
Kevin Fink Guest
-
Creating Quick Vector Images from Raster images
Hi ! I am aware of the conventional methods to create vector images from raster images, i.e. drawing the lines individually, then adding... -
copying images from illustrator to photoshop
When trying to copy an image from illustrator 10.0.3 to photoshop 7, photoshop freezes. When I move back to illustrator I get the following message... -
copying/pasting images in MacOS X
This is just out of curiosity. I'm wondering how copying and pasting of images in MacOS X works. I'm assuming that Cocoa applications put PDF... -
Rotate Images (not sprites)
Hi, I've downloaded some functions, from the net, to rotate a image a certain number of degrees, but the resulting image always comes out a... -
Copying images from Cd to hard drive
It has been quite a long time since I have authored something. I now have a project where I want to show a contact sheet of images - if the user... -
Kevin Fink #2
Re: Copying images of vector sprites
Oops actually I think it's regpoint, not reg
member("MyBitmap").regpoint = point(0,0)
"Kevin Fink" <cfink@rogers.com> wrote in message
news:bfm906$2hl$1@forums.macromedia.com...try> The reg point of the image and the vector may not be in the same place,This> setting both of the reg points to the same location.
>
> member("MyVector").reg = point(0,0)
> member("MyBitmap").reg = point(0,0)
>
> otherwise you can try to simply move the vector
>
> VectorRect = sprite(Bitmap).rect
> VectorRect[1] = VectorRect[1] +1
> VectorRect[2] = VectorRect[2] +1
> sprite(Vector).rect = VectorRec
>
> "Stephen Whipp" <Stephen.Whipp@btopenworld.com> wrote in message
> news:bfm302$jao$1@forums.macromedia.com...> the> > Hi all, a quick question
> >
> > I'm copying the image of a vector sprite into a bitmap. The bitmap is> > precise height of the vector shapes image taking into account the
> > strokewidth, yet I'm finding a small problem.
> >
> > When using something like the following:
> >
> > shp = myVectorshape.image
> > srect = shp.rect
> > drect = rect(startx, 0, endx, srect[4])
> > myImage.copyPixels(shp, drect, srect)
> >
> > I find that the actual shape is not starting at 0 height but at 1...can> that> > means that the bottom of my vector shape is being clipped (I'm assuming> > there is a one pixel border around the vectorshape's image). I know Ithere> > fix this by Expanding the bitmap in my case, but I'd like to know ifprecisely> > is a way of clipping the vectorshape member so that the image isinherent.> > the size of the actual drawing, or is this one pixel discrepency>> >
> > Thanks in advance
> >
> > --
> > Stephen Whipp
> > Eastmond Publishing Ltd. (UK)
> > -----------------------------------------------
> > Visit our website at:
> > [url]www.autograph-maths.com[/url]
> > ----------------------------------------------
> >
> >
>
Kevin Fink Guest
-
Stephen Whipp #3
Copying images of vector sprites
Hi all, a quick question
I'm copying the image of a vector sprite into a bitmap. The bitmap is the
precise height of the vector shapes image taking into account the
strokewidth, yet I'm finding a small problem.
When using something like the following:
shp = myVectorshape.image
srect = shp.rect
drect = rect(startx, 0, endx, srect[4])
myImage.copyPixels(shp, drect, srect)
I find that the actual shape is not starting at 0 height but at 1... This
means that the bottom of my vector shape is being clipped (I'm assuming that
there is a one pixel border around the vectorshape's image). I know I can
fix this by Expanding the bitmap in my case, but I'd like to know if there
is a way of clipping the vectorshape member so that the image is precisely
the size of the actual drawing, or is this one pixel discrepency inherent.
Thanks in advance
--
Stephen Whipp
Eastmond Publishing Ltd. (UK)
-----------------------------------------------
Visit our website at:
[url]www.autograph-maths.com[/url]
----------------------------------------------
Stephen Whipp Guest



Reply With Quote

