Go Back   OXYLUS Flash Board > Support > June Gallery

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-09-2008, 06:14 PM
Junior Member
 
Join Date: Oct 2008
Posts: 4
Default Change size and corners of image background

Is it possible to change the size of the background/border in the image viewer. I would only like it show approx 2 pixels around the edge of the photos. Also, there must be code somewhere that rounds of the corners. Can the corners be changed to be straight instead of rounded.

Thank you
Reply With Quote
  #2 (permalink)  
Old 11-11-2008, 03:29 PM
Super Moderator
 
Join Date: May 2008
Posts: 656
Send a message via Skype™ to Adrian
Default

Open ImageViewer.as dile and find the following lines:

Code:
private function drawMask() {
		var r:Number = 4;
Replace 4 with 0 to remove the rounded corners.

Then for the border you have the following:

Code:
private function updateOthers() {
		...
		InnBg._x = Bg._x+3;
		InnBg._y = Bg._y+3;
		InnBg._width = Bg._width-6;
		InnBg._height = Bg._height-6;
		//
		if (loaded) {
			updateImg();
		}
		//                   
		if (Old != undefined) {
			Old._x = Bg._x+3;
			Old._y = Bg._y+3;
			Old._width = Bg._width-6;
			Old._height = Bg._height-6;
		}
3 represent the border width, and 6 is the double of the boder. So for a border width of 2 you need to put 2 and 4. For a border width of 1 you need to put 1 and 2. And so on...
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.