DrawImage scales on Mac OS X

On a Mac OS X 10.3.4 system, when using drawImage(myImage, dx1, dy1, dx2, dy2, sx1, sy2, sx2, sy2, null) where dx1 = sx1, dy1 = sy1, sx2 = dx2, and sy2 = dy2 to draw an image to a graphics context it scales the image if I draw partially outside of graphics contexts clipping area. Maybe that is what it's supposed to do but it doesn't on XP. Is this a bug? Does anybody know of a work around?

Sounds like a bug in the Apple JVM. (theyre obviously clipping the 2nd pair of coords, when they shouldn't be)
There must be an entire breed of programmer whos sole aim is to create bugs such as these.
(as any 1/2 competent programmer would realise such a mistake as they were writing it)
The other thing you could blame would be abstraction coupled with poor/inaccurate documentation.
However, i'd sooner blame the coder who didn't test what they had written.

Similar Messages

  • Power Mac G5 duel 2.7 firmware / bootrom version 5.2.4f1 ?? is this latest?

    I was looking to see if Apple had updated the firmware version for my 2.7 because it has always been a little noisy. The fans kick up whenever you have the computer launch a big app like photoshop or garageband. It then winds down quickly and is pretty quiet. It has always done this. I looked at all the firmware versions for Power Mac G5's and could not find the one that my mac says it's running under system profiler. It says version 5.2.4f1 The one I have seen to download is 5.1.2f2. Is this a more recent firmware the number suggests that it is not and why is it that I can't even find the version I have. My computer is fine otherwise and I don't want to do anything that may damage it with the wrong firmware bu tif there is one that addresses the issue i would like to install it.
    ANy help is appreciated.

    Thanks! I figured it was the case. It would be ok to slow down the processors because I am going to be using it connected to my HD tv for dvd watching ,itunes, and so on. So most of those things don't need the speed. And if I want to play games a little fan noise won't be noticed when I turn the speed to full.
    Good tip. Even though I new about that option, I forgot that that would reduce the fan noise. With the ATI Radeon 800xt and their Ati Displays control panel you can scale the macs resolution to fit the hdtv perfectly without over scanning using the dvi connection. It's awesome.

  • A warning about using a tv with the mini

    My father is trying to use his new Mac Mini with his TV, using the video adaptor to plug into the s-video on his TV. Two problems cropped up; he wanted to learn to use a computer so I bought him Linda.com "intro to the Macintosh" DVD's. He couldn't get a video image with the lesson, though he could hear the audio. I called Linda.com and they said the resolution had to be 1024 (not the resolution that was coming out of the Mini). I had my Dad change the resolution, and he lost the signal from the computer (the video slipped out of sync) and got diagonal lines across his TV. Nothing we could do would bring back the signal so he took it to Fry's today. They traced the problem to the Mini resetting itself to 50 hz rather than 60 (Pal vs. NTSC?) upon the resolution being changed.
    They got it set back and advise he not change the resolution. So, be warned, if you use the Mini with a TV, be careful about the above situation. I think Apple should warn new buyers, like my Dad who want their TV to be used for the computer, since Apple is advertising the Mini as something you can plug into a TV.
    Also, if you, like my Dad, want to get the biggest text you can on the screen, don't change the resolution to the lowest, simply go to system preferences and go to Universal Access and scale up the text to what ever size you need, so much better. Thank you OSX and Tiger.
    Good luck,
    Lory
    I hope this solves some similar problems I've seen here.

    Just to correct a few misconceptions.
    1. Regular analogue TVs don't have a fixed horizontal "resolution" - they have a fixed number of lines per field and a fixed number of fields per second. Interlacing is used to combine two fields into a single frame. Analogue TV is not based around pixels or samples - so the horizontal resolution is not fixed. However there is a typical maximum resolution that can be carried - and these days broadcast TV is produced using digital standards based around the analogue standards - and this factors this in.
    2. Not all of the total number of lines in an analogue TV system contain video information (some lines are used for synchronising information - and there needs to be time to allow the electron beam to return from the bottom to the top of the screen) To add to this there is an additional issue in that not all of the total number of lines containing video are typically displayed on a regular TV due
    3. There are two dominant analogue TV line and field standards.
    * 625 lines at 50 fields per second. This is used in Europe, Australasia, parts of South America, and large sections of the Middle East, Asia and the Far East. Both PAL and SECAM colour systems are used - in varying flavours.
    The 625/50 system contains 576 active lines of picture information, so is also often described as 576/50.
    If you consider 4:3 (i.e. regular shaped screens) then the square-pixel resolution that fits this is 768x576 - and square pixels are what computers usually like to deal with.
    In broadcast terms - both 4:3 and 16:9 image are based around a 702x576 non-square pixel resolution contained within a 720x576 digital structure. (720x576 is slightly wider than 4:3 or 16:9)
    * 525 lines at 60 fields per second. This is used in North America, Japan, Korea, parts of South America etc. It is widely used with NTSC colour systems - though Brazil uses a variant of PAL.
    The 525/60 system these days uses 480 lines of resolution (originally it used a few more - around 483) - so it is often described as 480/60.
    In square pixel terms a 480 line 4:3 image is 640x480 resolution (our old favourite!)
    In broadcast terms the 4:3 and 16:9 images are sampled within a non-square pixel 720x480 structure. I'm not clear whether the 4:3/16:9 is now based on a 480 or 483 or 486 line image - so not clear as to the exact frame that equates to the analogue 4:3 or 16:9 image.
    Sure TV Output hardware itself may scale a Mac or PC video output to 720x480 or 720x576 for output purposes - as these resolutions are typically what consumer electronics kit runs at. However to state that a TV itself runs at a fixed horizontal resolution isn't accurate - if the TV is analogue it just has a limit to its horizontal resolution - not a fixed value.

  • Feature Request - Please allow for a "classic" view option.

    Please allow for a "classic" view option like you have in Mail.  Miss the sidebar that had a list of all the calendars using.  The pop up list is not nearly as functional.  iCal in Lion may be great for touch screen users but is a step back on the intuitive scale for Mac users.
    Also, the delete / revert button are too close to the done button.  Too easy to hit on accident.

    This is a good feature request and should be submitted here: Adobe - Feature Request/Bug Report Form
    The team reviews all the requests that come in through that form. It is a guaranteed way to get your request seen while we do not always see everything that gets posted to the forums.

  • Problem with scaling picture

    i got this little programm which opens an image. now, unfortunatelly almost all pictures are to big to fit in a frame. therefore i tryed to scale it. for some reason i get this outofmemoryerror. i have absolutely no clue how i could solve this problem.
    my code:
    the frame:
    public class ImageFrame extends JFrame {
        ImagePanel impanel = new ImagePanel();
        Container c = getContentPane();
        public ImageFrame() {
            super("ImageFrame");
            setSize(500,500);
            setLocation(300,300);
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            c.add(impanel);
            setMenuBar(new MyMenuBar());
            setVisible(true);
        class MyMenuBar extends MenuBar {
            public MyMenuBar() {
                Menu m ;
                MenuItem mi;
                m = new Menu("File");
                mi = new MenuItem("Open");
                mi.addActionListener(new ActionListener(){
                    public void actionPerformed(ActionEvent e) {
                        impanel.openImage();
                m.add(mi);
                add(m);
    }the panel (with the error):
    public class ImagePanel extends JPanel {
        Image image;
        Insets insets;
        String file;
        public void setFile(String file) {
            this.file = file;
        @SuppressWarnings("static-access")
        @Override
        public void paintComponent(Graphics g){
            if (file!=null) {           
                Graphics2D g2d = (Graphics2D) g;
                if (insets == null) {
                    insets = getInsets();
                ImageIcon icon = new ImageIcon(file);
                image = icon.getImage();
                Image scale = image.getScaledInstance(400, -1, image.SCALE_SMOOTH);
                //HERE I GOT THE ERROR! WITHOUT THE LINE ABOVE THE PROGRAMM WORKS.
                g2d.drawImage(scale, insets.left, insets.top, this);
            repaint();
        public void openImage() {
            try{
                String Filename = openfile();
                if(Filename!=null) setFile(Filename);
                repaint();
            } catch(Exception ex){}
        String openfile(){
            FileDialog fd=new FileDialog(new Frame(),"File Select");
            fd.show();
            String fullpath=fd.getDirectory()+fd.getFile();
            fd.dispose();
            return fullpath;
    }hope someone can help me out here. thanks in advance.

    gianni88 wrote:
    thanks, i moved the repaint() into the actionPerformed part. is that a better place?
    where could i go with the scaling part? what is the reason why i get this error?I claim you can get away with no repaints:
    code:
    1. Read the image
    2. rescale it. Here is a good article: [http://today.java.net/pub/a/today/2007/04/03/perils-of-image-getscaledinstance.html]
    3. Set this to be the icon on a JLabel that is already in your GUI:
    imageLabel.setIcon(new ImageIcon(rescaledImage));Done!

  • GCC help needed

    A post found itself in another forum of this board which someone on the Developer board may have the answer to:
    http://discussions.apple.com/message.jspa?messageID=6768251#6768251
    If someone could please check this out and help Trillianx, that would be appreciated.

    Hi Dave--
    There's good news and ironic news! Your extra command
    line switches made it compile and work (perfectly).
    So many thanks!
    You're welcome. I'm not sure why you needed to add that extra switch, but I guess as long as it works...
    However, it doesn't help me. The scale 0...1 that it
    uses is exactly the same scale the Mac GUI uses.
    Hence I can't turn the brightness down any further
    than I could before!
    Yeah, as I fiddled around with it on my PowerBook, I kind of thought the same thing. I wonder if it has to do with the fact that the backlight is a florescent tube. If perhaps, there's some brightness level below which it just won't go without turning off.
    Oh - yes for completeness:
    ls -l /usr/lib/crt1.o
    -r--r--r-- 1 root wheel 6156 Feb 6 2004
    /usr/lib/crt1.o
    So I'm a little earlier versionwise than you.
    Yeah, I was wondering if it was missing entirely, but didn't really think that would be the case. I haven't heard of it happening on Tiger, but you could end up missing that file if you installed certain versions of Panther with certain versions of the Xcode tools. I was wondering if something similar happened with your setup.
    best,
    charlie

  • 2014 Mac mini doesn't scale the entire HP Envy 32 monitor screen

    I recently purchased a HP Envy 32 monitor for use with my 2014 Mac mini with the Iris display. I get 2560x1440 resolution at 60 Hz on both the DP (1.2) as well as the HDMI ports (using the auto-detected HP Envy 32 color profile) but the display doesn't scale the entire screen of the monitor. Is anyone else using this configuration successfully? If so, what have you done to make full use of the 32" monitor real-estate? I simply cannot find any options in Display preferences (Yosemite) to change underscan options or for that matter within the monitor itself. Is there a particular display profile or driver I can use to fix this issue?

    I'm using a 4K compatible DP cable connected to the Thunderbolt port and getting to the max resolution of the monitor. So I don't think the issue lies there. I was able to use SwitchResX trial mode to discover an underscan option that allowed me to scale to the entire monitor screen. Assuming SwitchResX is manipulating core OSX functions, I'd assume there is some display related configuration within OSX that I should be able to tweak in order to scale the monitor screen natively in OSX without requiring any 3rd party software. Any thoughts for how to go about tweaking the display natively?
    Thanks

  • Difficulties printing to a specific scale on C4280 on a Mac

    I have a C4280 All-In-One, and I'm experiencing a lot of difficulty and inconsistencies printing to specific scales. I'm on a Macbook Pro using version 10.6.8. Everything software-wise is up to date, including all available drivers and updates for the C4280. I have some drawings in PDF format that I need to print at both enlarged and reduced scales, but no matter how I change the scaling variables, the results are inconsistent. I'm printing from Preview, which is Mac's default PDF reader. I deselect "Auto Rotate" and enter the specific scale after selecting the "Scale" button. But what comes out seems to be different each time. Does anyone have a solution for this? I use these PDFs for scale model building, so the precision is critical. 
    Thanks

    Hi,
    I would like to print text to a specific location
    (row, column) on the screen. Is there a way to do
    this using println() or another method?
    Thank you for your help,
    JoelYou would have to create this on your own, but you could use a for loop to count rows and columns, for example:
    public void mySpecialPrint(int row, int col, String string){
    //This gets you to the right row
    for (int x = 0; x<row-1; x++){
    System.out.println();
    //This gets you to the right col
    for (int y = 0; y<col-1; y++){
    System.out.print(" ");
    //This prints out your string
    System.out.println(string);
    Hey, it ain't pretty, and it aint' tested, but it should do the job.

  • On a mac, I have lost the Scaler on Google map. I think that it is Firefox problem because the map scaler is present with Safari. Thank You

    On a mac, I have lost the map scaler on Google map. I think that it is Firefox problem because the map scaler is present with Safari, so it seems that it is not a Google map problem. Thank You

    Firefox 4 requires at least OS X 10.5 and an Intel Mac. There is a third party version of Firefox 4 that runs on OS X 10.4/10.5 and PPC Macs, for details see http://www.floodgap.com/software/tenfourfox
    If you prefer, you can get the latest version of Firefox 3.6 from http://www.mozilla.com/en-US/firefox/all-older.html

  • Acrobat 11.0.09  (Mac) scales down everything larger than A4

    Acrobat 11.0.09  (Mac) scales down everything larger than A4 when printing to print area (inside to printable area - XEROX 7760),  scaling is set to none, print is set to actual size.
    I.e. printing A3 on SRA3 scales the content to the printable area, so the A3 is not actually A3, but a bit smaller.
    Printing from Indesign/Illustrator is no problem, also printing from PC is perfect.
    Am I missing something? Some hidden scale (or  "fit to page") option/setting?
    Thank you.

    Hi, thank you for reply. Everything is set to no scale or 100%.. but still downscaling to fit..
    So we try to print i.e. A3 poster with cropmarks etc on SRA3 paper:
    Printer set to correct page size, correct tray.
    In Acrobat print dialog:
    Page sizing & handling - Actual size
    (or we try also tried to check custom scale - 100%)
    Under "Page Setup..." button:
    Paper size - SRA3
    Scale - 100%
    Under "Printer..." button:
    Paper Handling - unchecked Scale to fit paper size etc..
    I've clicked through everything, dont know where else..
    And it is probably Acrobat Mac problem, other apps (Indd/Ai) prints correctly, also on PC it is okay.
    smaller formats up to A4 also prints ok..

  • Mac-compatible USB shipping scales?

    I run a small retail store using networked iMacs and am looking for USB connected shipping scales to use with USPS, UPS and FedEx websites. Does anyone have any experience with Mac-compatible scales or a recommendation? Thank you. I've looked around the internet and found only PC-compatible models. I would guess that the Apple Store uses Mac-compatible scales to facilitate their shipping.

    If the mac mini is intel and high spec enough then just install your windows virtually as suggested by Niel.  I use Parallels and it runs Windows 7 perfectly.  http://www.parallels.com

  • Medical grade grey scale monitors with a Mac Pro

    Has anyone been successful in using a Mac Pro to drive a pair of 3 mP grey scale monitors for remote radiology viewing and if so what video card works? When I use my MacBookPro dual dvi output to a "Wide" monitor there are two images present on the screen, side by side.

    Most of the newer MacPro models have one dual-link DVI port and one mini-display port. So you may need a mini-display-to-DVI adapter if you plan to use two monitors.
    http://store.apple.com/us/search?find=MiniDisplayPort+to+DVIAdapter&mco=Nzc1MjMwNg
    -DH

  • I have Mac OS X 10.6.8 and am trying to change a printer to black and white/gray scale. All the posts I find refer to a button for Paper Quality. This does not appear on my options. Just paper handling which does not have a function to change from colour.

    I cannot change the printer settings on my MacBook Pro to gray scale from colour. there is no function for Paper quality, just paper handling. any suggestions greatly appreciated - as long as they work!!

    Was the printer instance properly configured when created, so the print subsystem picked the correct PPD and knows of all the device's capabilities? If in doubt, erase and create anew so you can confirm that the printer maker/model/version is getting correctly identified. This may trigger Software Update to download & install a printer update. The menus available on the print dialog depend on what the OS knows the printer can do. For instance, this is what I get in Safari's print dialog when using an HP 2550Ln color laser at the office:

  • How can i choose a lower quality print density when printing from firefox on my Mac. I cant move the slider along the scale ( I can when printing from the computer).

    I can't change the print density when printing from Firefox. It is set at standard and although there is a "slider button" to use for choosing less or more density, it can't be moved. I can tick "grayscale". I can choose the density when printing from the computer. I have a Mac

    I also have this problem where I used to be able to shrink a 2 page doc to a single page. Since upgrade to FF4 it no longer works - but you can choose say 60% and it will work. All used to work fine in FF3

  • My mac will not turn on and is showing a gray scale globe flashing

    I have just lost connection with my Imac.  It will not turn on.  The screen is flashing a grey scale globe.  Is this happening to anyone else?

    Have you read for possible solutions over in the "More Like This" thread over here?-----------------------> Checked Apple's Knowledge Base?
    Please detail ALL you have done so far in the way of troubleshooting?   Need this info to avoid the been there done that scenarios.
    Which model iMac do you have?
    If your iMac does not turn on, how to see the gray globe flashing?

Maybe you are looking for

  • Cant login to Bank of America to pay bills anymore with Firefox 4

    I had bookmark's set to all my online billpaying accounts,like for example Bank of America. When I click on login, it takes me to a totally white blank screen now (in Firefox 4) and does not show me my site key so I can enter my password. This has ha

  • How to read the Work item Container

    Hi all,           I need to acess the contents of the attachement object i need to read the container valuesof  ATTACHOBJECTS i.e the folder type , folder year etc  for passing it to the FM SO_OBJECT_READ to read the contents i need to get these valu

  • White screen when making adjustments

    After importing images and doing some editing, I have run into the problem of the image turning blank white while doing a simple adjustment. I quit the program and restarted aperture, but the problem continues. This is happening quite a bit. The file

  • I have lost the command section of the toolbar and cannot restore. how do i do this?

    the command section of the toolbar (file, view, history, bookmark, etc.) will not display. how do i reset this?

  • Define Product Hierarchy - Maintence Product Hier

    I am trying to creating 3 Levels in the Data Relevant to Sales Distribution sec I've created level 1's and 2 using     12345 Medical Devices level 1              12346 Pharma             level 1              123450001 Medical Devices Level 2