Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
Printrun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
Printrun
Commits
3c466a5e
Commit
3c466a5e
authored
Jul 07, 2012
by
Gary Hodgson
Committed by
Guillaume Seguin
May 30, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
load path as layer list, not wx.Image, as it was causing my machine to die from memory exhaustion.
parent
b66811a6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
projectlayer.py
projectlayer.py
+3
-2
No files found.
projectlayer.py
View file @
3c466a5e
...
@@ -90,7 +90,8 @@ class dispframe(wx.Frame):
...
@@ -90,7 +90,8 @@ class dispframe(wx.Frame):
gc
.
Scale
(
self
.
scale
,
self
.
scale
)
gc
.
Scale
(
self
.
scale
,
self
.
scale
)
wxpsvgdocument
.
SVGDocument
(
image
)
.
render
(
gc
)
wxpsvgdocument
.
SVGDocument
(
image
)
.
render
(
gc
)
elif
slicer
==
'bitmap'
:
elif
slicer
==
'bitmap'
:
dc
.
DrawBitmap
(
wx
.
BitmapFromImage
(
image
.
Scale
(
image
.
Width
*
self
.
scale
,
image
.
Height
*
self
.
scale
)),
self
.
offset
[
0
],
-
self
.
offset
[
1
],
True
)
wxImage
=
wx
.
Image
(
image
)
dc
.
DrawBitmap
(
wx
.
BitmapFromImage
(
wxImage
.
Scale
(
wxImage
.
Width
*
self
.
scale
,
wxImage
.
Height
*
self
.
scale
)),
self
.
offset
[
0
],
-
self
.
offset
[
1
],
True
)
else
:
else
:
raise
Exception
(
self
.
slicer
+
" is an unknown method."
)
raise
Exception
(
self
.
slicer
+
" is an unknown method."
)
self
.
pic
.
SetBitmap
(
self
.
bitmap
)
self
.
pic
.
SetBitmap
(
self
.
bitmap
)
...
@@ -282,7 +283,7 @@ class setframe(wx.Frame):
...
@@ -282,7 +283,7 @@ class setframe(wx.Frame):
for
f
in
imagefiles
:
for
f
in
imagefiles
:
path
=
os
.
path
.
join
(
self
.
image_dir
,
f
)
path
=
os
.
path
.
join
(
self
.
image_dir
,
f
)
if
os
.
path
.
isfile
(
path
)
and
imghdr
.
what
(
path
)
in
acceptedImageTypes
:
if
os
.
path
.
isfile
(
path
)
and
imghdr
.
what
(
path
)
in
acceptedImageTypes
:
ol
.
append
(
wx
.
Image
(
path
)
)
ol
.
append
(
path
)
return
ol
,
-
1
,
"bitmap"
return
ol
,
-
1
,
"bitmap"
def
loadfile
(
self
,
event
):
def
loadfile
(
self
,
event
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment