# Window size of exported windows executable

**URL:** <https://discourse.processing.org/t/window-size-of-exported-windows-executable/36311>\
**Category:** Processing\
**Created:** [April 13, 2022, 12:36am UTC](https://discourse.processing.org/t/window-size-of-exported-windows-executable/36311 "2022-04-13T00:36:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcmonty](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@mcmonty](https://discourse.processing.org/u/mcmonty)\
**Post date:** [April 13, 2022, 12:36am UTC](https://discourse.processing.org/t/window-size-of-exported-windows-executable/36311/1 "2022-04-13T00:36:01Z")

</div>

Hello,

I’m working in Processing 4.0b7.

When I export my program (file-\>export application) and choose Windows, the exported program works fine. However, the size of the window is larger than when I run the program from the script editor. It scales everything such that my images appear pixelated in the executable version. Any help is much appreciated. thanks!

mike

---

<div class="post-metadata">

**Author:** ![Mikey83](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mikey83/32/17956_2.png) [@Mikey83](https://discourse.processing.org/u/Mikey83)\
**Post date:** [May 24, 2022, 2:37am UTC](https://discourse.processing.org/t/window-size-of-exported-windows-executable/36311/2 "2022-05-24T02:37:53Z")

</div>

can you post your code so someone can potentially see the error, thanks

---

<div class="post-metadata">

**Author:** ![dr.tenma](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/dr.tenma/32/16357_2.png) [@dr.tenma](https://discourse.processing.org/u/dr.tenma)\
**Post date:** [May 30, 2022, 3:39pm UTC](https://discourse.processing.org/t/window-size-of-exported-windows-executable/36311/3 "2022-05-30T15:39:25Z")

</div>

I had the same issue. Exported from Processing 3 and worked fine.

for the record, here’s the difference of the window from withind IDE (right) and exported windows app (left):

 ![Screenshot_1](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/d/4/d46ad0326bf9b0dcb61f16f3118cab9f2b5c84b7.jpeg)

```auto
void setup()
{
  size(300, 150);
}

void draw()

{
  background(100);
  ellipse(100,50,50,50);
  text("test", 20, 30);
}

```

---

<div class="post-metadata">

**Author:** ![Mikey83](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mikey83/32/17956_2.png) [@Mikey83](https://discourse.processing.org/u/Mikey83)\
**Post date:** [May 30, 2022, 4:11pm UTC](https://discourse.processing.org/t/window-size-of-exported-windows-executable/36311/4 "2022-05-30T16:11:00Z")

</div>

Im assuming its a bug or some scaling issue with version 4

---

<div class="post-metadata">

**Author:** ![dr.tenma](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/dr.tenma/32/16357_2.png) [@dr.tenma](https://discourse.processing.org/u/dr.tenma)\
**Post date:** [June 22, 2022, 8:17pm UTC](https://discourse.processing.org/t/window-size-of-exported-windows-executable/36311/5 "2022-06-22T20:17:23Z")

</div>

Looks like it’s a pixel density issue: [pixelDensity() not working in Windows applications · Issue #487 · processing/processing4 · GitHub](https://github.com/processing/processing4/issues/487)

---

<div class="post-metadata">

**Author:** ![dr.tenma](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/dr.tenma/32/16357_2.png) [@dr.tenma](https://discourse.processing.org/u/dr.tenma)\
**Post date:** [June 22, 2022, 8:59pm UTC](https://discourse.processing.org/t/window-size-of-exported-windows-executable/36311/6 "2022-06-22T20:59:11Z")

</div>

If you specify the renderer:

`size(300, 150, P3D);`

the issue is solved, both PDE and exported applications are fine.
