How Do I Create a Full Screen MultiScaleImage?
Hy!
i've got some spare time so i decided to make a little "openzoom project"..
i would like to test the FillConstraint class. ( if i understand well, this class always displays a full screen image.. correct me if i'm wrong )
only one problem.. i don't know how to use it..
can you help me?
thnx!
i've got some spare time so i decided to make a little "openzoom project"..
i would like to test the FillConstraint class. ( if i understand well, this class always displays a full screen image.. correct me if i'm wrong )
only one problem.. i don't know how to use it..
can you help me?
thnx!
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
The company marked this question as answered.
-
Inappropriate?Tim,
Glad you've decided to play around with OpenZoom. If you simply want to have a fullscreen image you probably don't need the FillConstraint. Simply use a MultiScaleImage component and make it the size of your application.
If you'd tell me whether you're using Flash or Flex I could provide you with more specific pointers to example code. Generally, I highly recommend you to play around with the examples that come with the OpenZoom SDK download:
http://github.com/openzoom/sdk/tree/m...
Cheers,
Daniel
The company says
this answers the question
-
Inappropriate?Hey!
thanks for the answer! I already got it to work ( with a work around ).. I posted this workaround a couple of weeks ago...!
I made a simple Photowebsite:
http://www.timg.nl/index.html
let me know what you think about it :D
Grtzz
I’m happy
-
Inappropriate?Tim,
Beautiful portfolio – well done.
I guess I must have missed your workaround, where did you post it?
Cheers,
Daniel -
Inappropriate?here is it again.. this "version" is better then the last one because there was a problem with the height of the photo. this on fixes it:
private function layout():void
{
if (image)
{
if(factor)
{
if(container.stage.stageWidth/container.stage.stageHeight < factor)
{
image.height = container.stage.stageHeight
image.width = ( image.height / oriHeight ) * oriWidth;
image.x = -( ( ( image.height * factor) - container.stage.stageWidth) / 2 );
image.y = -( ( ( image.width / factor) - container.stage.stageHeight) / 2 );
}
else
{
image.width = container.stage.stageWidth
image.height = ( image.width / oriWidth ) * oriHeight;
image.x = -( ( ( image.height * factor) - container.stage.stageWidth) / 2 )
image.y = -( ( ( image.width / factor) - container.stage.stageHeight) / 2 )
}
}
else
{
image.width = container.stage.stageWidth
image.height = container.stage.stageHeight
}
}
}
I’m happy
Loading Profile...




EMPLOYEE