glv  
                
               
                 
              
                  
                    February 6, 2023, 12:13pm
                   
                   
              23 
               
             
            
              Hello @Grusat ,
I also got this working (x1 scaling) on my W10 PC by passing these to command line in IntelliJ:
This required the following:
There is a reference to this in the GitHub resources I shared but I had to do some work on how to inject these into IntelliJ settings to add to command line.
:)
             
            
               
               
               
            
            
           
          
            
              
                Grusat  
                
               
              
                  
                    February 21, 2023, 10:47am
                   
                   
              24 
               
             
            
              I found the solution to my problem : 
Just add
System.setProperty("sun.java2d.uiScale", "1"); 
before the PApplet.runSketch()
It desactivates the auto scaling with Windows parameters.
Thank you all for your help !
             
            
               
               
              6 Likes 
            
            
           
          
            
              
                glv  
                
               
              
                  
                    June 30, 2025,  6:27pm
                   
                   
              25 
               
             
            
              
I was experimenting with JavaFX (FX2D Renderer) and had a similar issue.
This works for FX2D renderer:
  
  
    Hello @esc746 , 
I just had the same issue! 
How to disable scaling in JavaFX so it behaves like Processing: 
You can turn off automatic DPI scaling in JavaFX by setting a system property: 
System.setProperty("glass.win.uiScale", "1");
 
   
 
:)
             
            
               
               
               
            
            
           
          
            
              
                glv  
                
               
              
                  
                    October 25, 2025,  8:56pm
                   
                   
              26 
               
             
            
              
 Grusat:
 
I found the solution to my problem : 
Just add
System.setProperty("sun.java2d.uiScale", "1"); 
before the PApplet.runSketch()
It desactivates the auto scaling with Windows parameters.
 
 
Cool beans!
I was able to use this with sketches as well:
  
  
    Hello folks! 
Forcing 1:1 Pixel Rendering for Different Renderers in Processing 
This sketch demonstrates how to force 1:1 pixel rendering by overriding DPI scaling for JAVA2D in Processing. The solution was a challenging process that required iterating through multiple approaches with both ChatGPT and Google Gemini to finally arrive at a working solution and comments. 
The key piece of the solution is this static block at the beginning of the sketch, which ensures that Java2D and FX2D renderers…
   
 
:)
             
            
               
               
              1 Like