Running fullscreen on monitors with different aspect ratios

I am trying to run a program in fullscreen on a projector. It works fine on my computer, but the background image appears stretched when I run it on a projector with a different aspect ratio. How can I run it as to prevent this?
This is how the code looks:
@Override
     public void start(Stage primaryStage)
          this.PrimaryStage = primaryStage;
          this.PrimaryStage.setFullScreen(true);
          ......which runs with this CSS file:
#background{
    -fx-background-image: url("background-full.png");
    -fx-background-repeat: stretch;
    -fx-background-position: center center;  
    -fx-background-size: auto 100%;
    -fx-background-color: black;
}

Don't stretch the repeat
-fx-background-repeat: no-repeat;
AND
-fx-background-size: cover;
Scale the image, while preserving its intrinsic aspect ratio (if any), to the smallest size such that both its width and its height can completely cover the background positioning area.
Or
-fx-background-size: contain;
Scale the image, while preserving its intrinsic aspect ratio (if any), to the largest size such that both its width and its height can fit inside the background positioning area.
Contain will provide a kind of letter box effect like watching an old 4:3 tv show a widescreen 16:9 TV.
Cover will fill the screen with the image bug clip some of the image if the screen and image aspect ratios don't match.

Similar Messages

  • Does LR handle a dual monitor setup with different aspect ratios (16:9 and 16:10)?

    Does LR 5 handle a dual monitor setup with different aspect ratios (16:9 and 16:10)?
    I'm planing to buy a 27" 16:9 monitor and use it as primary together with a 22" 16:10. Does any have any idea?
    Thanks

    Moreover, the two monitors can have completely different characteristics.  As always, you really need to calibrate/profile any monitor (with a hardware tool - Spyder, Colormunki etc).  That's no more important with two monitors, but you see for sure if you don't, as two dissimilar monitors will then probably look different. 

  • How do I batch resize images with different aspect ratios?

    How do I batch resize images with different aspect ratios?

    poa66 wrote:
    Landscape: I want result to be 1960 x 1103 px and 72 ppi whether the original is 300 ppi or 220 ppi and wether it is 2Mb or 10 Mb. Cropped centered top and bottom.
    There will be a set of Landscapes that that have a narrower aspect ratio the 1960:1103 that would also need the top and bottom cropped like all Portraits would could be.  You need to realize that center cropping Landscape image that have aspect ratios near 1960:1103 will usually produce acceptable compositions.  However Cropping wide panoramas and portraits will only produce acceptable landscape  1960:1103 composition occasionally.
    Here you will see what happens when image have aspect ratio the do not fit the desired aspect ratio.  Where Landscape  are forced to portrait and portrait forced to Landscape.  Here are two Collage I populated with a mixture of image  with different  aspect ratios.   One collage has all 3:2 Landscape places and the other 2:3 Portrait places.
    I create a 1 image 1960x1103 collage 72dpi and create those too. Note the landscape boy foot is cropped off 3:2 is narrow compared to 1960:1103

  • Multiclip with different aspect ratio

    I'm noticing that when I try to do a multiclip with a movie format that involves a different aspect ratio than DV I lose the ability to view live multiclip angles. I've tried several formats and it doesn't appear to be codec related. If the aspect ratio of the sequence is 4:3 or 16:9(natively, not anamorphically), the options from the RT menu disappear including the "Multiclip playback" option, and even without putting it into a sequence it won't play back in the Viewer.
    I'm making offline JPEG versions of some HD footage which is 16:9, and I guess I can just make anamorphic versions to work with, but that seems highly unnecessary. Am I reading this problem correctly and if so is there any reason for it or is it a bug?

    I'm multiclipping 4 angles, they're photo jpeg movies as made by Compressor's JPEG 75 NTSC setting but resized to 640x360 with square pixels. The material is located on an external firewire drive. From the same source I'm still able to play 6 or 7 standard-def NTSC DV files as multiclip angles just fine.

  • Printing with different aspect ratio (or, How not to crop when print?)

    Hi all,
    I'm trying to print 3:2 aspect ratio pictures on 8 1/2 X 11 (US Letter page).
    Obviously, it's not the same aspect ratio, so normally fitting such 3:2 image in, -say- photoshop would require me to either CROP the picture or have white BORDERS around it, on either side.
    Now, printing in iPhoto will only offer croping, which is definetly not what I want. I can and will live with 2 white bars on my picture; I do own cutting table just for that. But I'm not used to iPhoto.
    Quickly, in Aperture I can print as I want it, 2 white bars, whole picture fitting IN the paper (there's also a mode called 'Fill Page'; which is exactly and only what iPhoto is doing).
    *The question:*
    Am I missing something out on how to print while fitting the whole image on paper (also called 'Fit Entire Image' in Aperture), while adding white paper bars?
    Also, I readed this thread, mostly about it:
    http://discussions.apple.com/thread.jspa?threadID=1417869
    I knew the maths part.
    So what I'm doing as a long workaroung (see below for shorter workaround):
    I calculate using the custom Print size (see this screenshot, from user Old Toad, which is exactly what I'm telling about: http://homepage.mac.com/toad.hall/.Pictures/Forum/iP7customprint.png ) manually, so I get as Paper Size : US Letter and as Print size: Custom with these custom settings:
    Width: 11.00 in
    Height: 7.30 in
    It's all fine, the print was perfect. But I don't feel like messing each time with these numbers only to print one page.
    Quicker solution: import into Aperture (and even there, if you are using RAW in iPhoto, the imported in Aperture is the JPEG based off the RAW ((apparently Aperture cannot understand iPhoto's way of working with RAW, but this is another topic)) ).
    Thanks! Sorry, it was quite long for nothing, I'm just really missing the 'Fit entire image' on iPhoto... (that is, if it's non-existing, not if I only just didn't found it yet..)

    Numbers:
    Camera resolution:
    roughly 3008X2000 (Nikon D50)
    Paper printed on: good old fasioned 8 1/2 X 11 US Letter sized
    Ratio of picture: roughly 1.5 (one size is 1.5 time the other)
    Ratio of paper: around 1.29 (one size is 1.29 time the other)
    The picture overflows in lenght of the paper (iPhoto take the picture's width and places it 8.5 in wide, so technically the paper size should be 12.75 to perfectly fit the ratio. But I only have 8 1/2 X 11 and I do love to cut paper.)

  • Tracks with different aspect ratios

    I have to make a DVD with several tracks on it.
    Most are 4:3, one is 16:9.
    The menu is currently 4:3, the tracks are set to the appropriate ratios, but in Preferences, how do I set the ratio in the General, Encoding, and Simulator tabs?
    (Or am I just going to have to pick one ratio or the other?)

    You need to select a track and in the inspector window set the display mode to match what that track is and do that for each track.  In the simulator it just shows you how it'll play on a particular TV.  Change the display mode here to see what each track will look like on a 4x3 tv and on a 16x9 tv.   As far as your menu goes, that is up to you to decide whether it's 4x3 or 16x9.  But you set that display mode in the inspector window as well.  You can mix and match the display modes on a DVD.  And as long as the TV and DVD player are setup correctly it'll play exactly how you see it in the simulator.

  • XML file from '08 has a different aspect ratio in FCP 6?

    I have the new canon vixia hg 21 which is avchd and FCP 6 isn't recognizing it. Using Imovie to recognize the files works fine, the problem is that when you export from imovie '08 into FCP via xml, it imports fine, but I get a display issue with black bars surrounding the footage, only in the canvas. It appears fine in the viewer and in it's own sequence in the timeline. But when you mix the different camera footage together, the other being the Canon XH A1, it appears as a different aspect ratio??? What the? and for the life of me, I've re imported using 16:9, no difference...I have no idea what's going on.
    Any help would be greatly appreciated!

    You should really take this to the Final Cut Pro forum as the codecs and the interface is different for Final Cut Express.

  • How can i export a series of images in different aspect ratios to the same height

    How can i export a series of images in different aspect ratios to the same height?
    I wish to make a slider callery for my website. all the images need to be 750 Pixels high, the width does not matter.  I have a mixture of square pandscap and protraite images can i do thing as one export or do i have to do it twice?  Once for long edge and once for shot edge?
    Thanks

    Yes, you can but there is a trick to it.
    In the Export Dialog under <Image Sizing> select Widdth & Height.
    Then enter 750 pixels for Height.
    Put your cursor into the Width field behind all the numbers that appear there and with the backspace key delete the numbers. If you enter "0" it will not accept that. But it accepts when you just delete the field for Width with the backspace key. The Width field will now be just blank.
    When you then export all image will  have a height of 750 pixels and the width will fall variously according to thne height / width ratio.
    Or alternatively you can enter 7.5" for height at a resolution of 100 ppi.

  • XML imported from iM '08 has a different aspect ratio in FCP 6?

    I have the new canon vixia hg 21 which is avchd and FCP 6 isn't recognizing it. Using Imovie to recognize the files works fine, the problem is that when you export from imovie '08 into FCP via xml, it imports fine, but I get a display issue with black bars surrounding the footage, only in the canvas. It appears fine in the viewer and in it's own sequence in the timeline. But when you mix the different camera footage together, the other being the Canon XH A1, it appears as a different aspect ratio??? What the? and for the life of me, I've re imported using 16:9, no difference...I have no idea what's going on.
    Any help would be greatly appreciated!

    Found the answer, and pretty simple too....yeesh. just click on your clip and go to setting>conform to sequence.

  • Different aspect ratios

    So how do you treat your different aspect ratios now we have iphone 4, 5 and 6 all different sizes?
    Do you build for 4 and then have extra space and backgrounds for 5 and 6, or do you adjust your app based on the different resoltuons by detecting the res and auto adjusting and moving things?

    The answer is it's up to you. What you're asking about is a design principle called 'Fluid Layout' or 'Responsive Layout'. The idea is to design your UI so it responds to the different resolutions and/or aspect ratios of the screen it's on.
    Fluid layout is the term when the app continuously adjusts itself as the window is resize ( this is more of a desktop approach since mobile is on a fixed screen size ).
    Responsive layout is when the UI jumps to a specific state when dimensional threshholds are reached. So you could have 4 different layouts ( Mobile, Tablet, Desktop, Extended Desktop ) that the app can switch among depending on the screen size dimensions. In your case you may want to take the mobile layout and break it up into aspect ratios.
    Responsive layout is more easy to program and recommended for people new to the principle since it's easier to think of set states instead of constant flow. But Fluid Layout is the best solution if your an advanced developer because you never have to go back in and create a new state to support new devices. The layout is always perfect no matter the screen.
    How it works programmatically you usually have a listener, very high up in the program, that watches for the stage resizing and then calls a function that tells the UI to realign itself and go through all the children so they know to realign themselves. In your case you could just run that on launch because your screen size should never adjust. In some cases you should update the children first then the parents.
    Hope this helps.

  • How do i transform a layer with maintain aspect ratio through scripting in Photoshop?

    Hi,
         How do i transform a layer with maintain aspect ratio through scripting in Photoshop? I am expecting your reply.
    thanks,
    Rajiv.s

    I don't think your talking apples to apples.  First I do not know of any Maintain Aspect Ratio icon in Photoshop. The only icon I think associated with transform is the anchor point icon in the option bar for transform. I think you may referring to the constrain check box in the image size dialog which you can check when resample is checked. Image size effect all layers in the document and the documents canvas size. The document canvas size will be changed to the values in the images size dialog and all layers will be transformed by percentage the canvas was changes while maintaining the layers position over the canvas and the layers I think may be cropped so only pixels over the canvas remain.
    I do not know if you know that layers can be any size and have aspect ratios different then the documents canvas.
    In your case it sounds like your describing a template that has a canvas size that is 2000px wide be 3000px high a 2:3 portrait aspect ratio.  Your image file has a landscape aspect. If you place that image into your template place would by default transform the image so the image would fit within the 2000px by 3000px canvas size there would be a white border top and bottom.  You could transform that smart object layer to it actual pixels size activeDocument.activeLayer.resize(100,100, AnchorPosition.MIDDLECENTER); then calculate the size you want to transform its height to. By retrieving the canvas size and the layers boundaries. Divide the canvas height pixel size by the layers pixel height size should give you the percentage you need to use. Make sure you set the ruler units to pixels so your working with pixel values for the canvas and layer size values. The resulting layer will be larger then canvas size keeping the anchor point centered will result in the canvas size masking off both sides.  In effect cropping you landscape to a portrait.  Note cropping a image from one orientation to the other changes the composition drastically.
    If your trying to make a composit like collage you may want to look at my Photoshop Collage Toolkit it will fit images to fill a 2000px by 3000px area http://www.mouseprints.net/old/dpr/PhotoCollageToolkit.html
    You could also do centered 2:3 crop that is resized to a 3000px

  • How do i run an external monitor with my macbook and change settings so that when i close the lid the signal to the monitor is not lost and i can continue using the mac with a mouse and a wireless keyboard?

    How do i run an external monitor with my macbook and change settings so that when i close the lid the signal to the monitor is not lost and i can continue using the mac with a mouse and a wireless keyboard?

    No, nothing will prevent the computer from going to sleep when you close its display except third-party hacks that are designed to do exactly that. I strongly advise against using any of those, as they may interfere with successful entry into clamshell mode (and they carry other downside risks as well). Just wait until the computer is asleep (with its sleep light pulsing), then press any key on the keyboard. It sounds as though your setup is working as it's designed to do.

  • Can a macbook pro 13" retina (mid-2014) run 2 external monitors with 2560x1440 resolution?

    Can a macbook pro 13" retina (mid-2014) run 2 external monitors with 2560x1440 resolution? If not what if I turn off the macbook internal display? I

    Yes.
    http://support.apple.com/en-us/HT204154
    Ciao.

  • Help with setting aspect ratio

    Could someone please help me with an aspect ratio problem. I have just updated to iMovie 6 and want to work with an existing movie project created from iMovie (version before the ilife 5 version). On opening the project in the new version it is in widescreen and I would like to convert back to a regular format (regular display format) I would be most grateful for any help
    Thankyou

    Well, I guess I thought the video in Motion needed to look more rectangle (16x9) than square (4:3). Since it did in FCP. And my FCP sequence setting>Aspect Ratio says NTSC DV 3:2
    I am used to working with plain MiniDV 4:3. I shoot with Sony PD150. I don't understand or never had to deal with Aspect Ratios. This project they wanted a widescreen look so I switch the camera to 16x9.
    I don't think it is the real 16x9 but like I said I don't know about this stuff or why my camera has 16x9 on in if it is not the real thing.
    Feel free to comment, I am trying to learn

  • Canvas & Viewer  displaying different Aspect Ratios

    Same footage. Original footage in viewer displaying in Letter Box in a 4:3 black area (and appearing much larger). Same footage from Timeline showing in Canvas as 16x9 black area (but not filling the entire canvas). Both are at 100%. I have tried to arrange back to defaults..no avail...Just for clarity..the viewer and the canvas are displaying/formatted for different aspect ratios. They should be the same. how do I fix it?

    The viewer will show the footage in the format it was shot in. The canvas will reflect the footage as it will show up in the timeline based on the settings of the sequence.
    My guess is that the sequence settings are set to anamorphic or some sort of 16:9 while what you actually shot is letterboxed.
    Did you shoot squeeze or letterbox?
    CaptM

Maybe you are looking for

  • 2 Computers with 1 iTunes Account

    Where I live we have fairly restrictive download limits on a monthly basis with ridiculously high penalties if we exceed the limits. I have 2 internet connections in 2 different locations with 2 different ISP's. Is it possible to "spread the wear" ov

  • Photo Booth slows down!

    I have a MBP 2.0 with 10.4.6 and I've noticed that Photo Booth runs very slowly when I chose effects button #1 (so you can see all the effects at the same time)... When I go to the second page of effects or just operate with one effect at a time, it

  • How do I get Safari to show http?

    I have read that sites showing https are secure for payments. However I cannot get Safari to show the http part of the address. How do I do this?

  • How do I achieve this effect please?

    I would like to create text boxes on the page with curved edges like ths, how is this done please?

  • Put a unique constraint on column if duplicate data is already present

    how to put a unique constraint on column if duplicate data is already present in that column?