Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
d650a2d5
Commit
d650a2d5
authored
Aug 28, 2009
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix in conversion of png image to pdf and ps
parent
dca006ac
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
src/exe/co_convert/src/cnv_image.cpp
src/exe/co_convert/src/cnv_image.cpp
+7
-2
No files found.
src/exe/co_convert/src/cnv_image.cpp
View file @
d650a2d5
...
@@ -154,6 +154,7 @@ void cnv_image_pixel_iter( cnv_tImImage image,
...
@@ -154,6 +154,7 @@ void cnv_image_pixel_iter( cnv_tImImage image,
int
rgb_width
;
int
rgb_width
;
int
rowstride
;
int
rowstride
;
int
n_channels
;
int
n_channels
;
unsigned
char
null_rgb
[
4
]
=
{
0
,
0
,
0
,
0
};
rgb
=
gdk_pixbuf_get_pixels
(
(
GdkPixbuf
*
)
image
);
rgb
=
gdk_pixbuf_get_pixels
(
(
GdkPixbuf
*
)
image
);
rgb_height
=
gdk_pixbuf_get_height
(
(
GdkPixbuf
*
)
image
);
rgb_height
=
gdk_pixbuf_get_height
(
(
GdkPixbuf
*
)
image
);
...
@@ -165,8 +166,12 @@ void cnv_image_pixel_iter( cnv_tImImage image,
...
@@ -165,8 +166,12 @@ void cnv_image_pixel_iter( cnv_tImImage image,
for
(
int
j
=
0
;
j
<
rgb_height
;
j
++
)
{
for
(
int
j
=
0
;
j
<
rgb_height
;
j
++
)
{
rgb
=
rgb_row
;
rgb
=
rgb_row
;
for
(
int
i
=
0
;
i
<
rgb_width
;
i
++
)
{
for
(
int
i
=
0
;
i
<
rgb_width
;
i
++
)
{
if
(
n_channels
>=
4
&&
*
(
rgb
+
3
))
if
(
n_channels
>=
4
)
{
if
(
*
(
rgb
+
3
))
(
pixel_cb
)
(
userdata
,
fp
,
rgb
);
(
pixel_cb
)
(
userdata
,
fp
,
rgb
);
else
(
pixel_cb
)
(
userdata
,
fp
,
null_rgb
);
}
else
if
(
n_channels
==
3
)
else
if
(
n_channels
==
3
)
(
pixel_cb
)
(
userdata
,
fp
,
rgb
);
(
pixel_cb
)
(
userdata
,
fp
,
rgb
);
rgb
+=
n_channels
;
rgb
+=
n_channels
;
...
...
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