- background.SetProperty( Toolkit::ImageView::Property::IMAGE, backgroundImage );
- background.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT );
- background.SetSize( stage.GetSize() );
- stage.Add( background );
-
- BufferImage heightBackground = BufferImage::WHITE();
- PixelBuffer* const heightPixel = heightBackground.GetBuffer();
- heightPixel[0] = 0x8f;
- heightPixel[1] = 0x8f;
- heightPixel[2] = 0x8f;
-
- BufferImage widthBackground = BufferImage::WHITE();
- PixelBuffer* const widthPixel = widthBackground.GetBuffer();
- widthPixel[0] = 0x4f;
- widthPixel[1] = 0x4f;
- widthPixel[2] = 0x4f;
-
- mHeightBox = Toolkit::ImageView::New( heightBackground );
- mHeightBox.SetProperty( DevelActor::Property::OPACITY, 0.2f );
- background.Add( mHeightBox );
-
- mWidthBox = Toolkit::ImageView::New( widthBackground );
- mWidthBox.SetProperty( DevelActor::Property::OPACITY, 0.2f );
- background.Add( mWidthBox );
-
- mDesiredBox = Toolkit::ImageView::New( BORDER_IMAGE );
- background.Add( mDesiredBox );
-
- mDesiredBox.SetSize( stage.GetSize() * mImageStageScale );
- mDesiredBox.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
- mDesiredBox.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER );
-
- mHeightBox.SetSize( stage.GetSize().width, (stage.GetSize() * mImageStageScale).height );
- mHeightBox.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
- mHeightBox.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER );
-
- mWidthBox.SetSize( (stage.GetSize() * mImageStageScale).width, stage.GetSize().height );
- mWidthBox.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
- mWidthBox.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER );
+ background.SetProperty(Toolkit::ImageView::Property::IMAGE, backgroundImage);
+ background.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT);
+ background.SetProperty(Actor::Property::SIZE, windowSize);
+ window.Add(background);
+
+ mDesiredBox = Toolkit::ImageView::New(BORDER_IMAGE);
+ background.Add(mDesiredBox);
+
+ mDesiredBox.SetProperty(Actor::Property::SIZE, windowSize * mImageWindowScale);
+ mDesiredBox.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER);
+ mDesiredBox.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER);