Skip to content

Commit 3a85abe

Browse files
author
Evgeniy Sidenko
committed
Release Aspose.Imaging for Python via .NET 25.5
1 parent 4196617 commit 3a85abe

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

Examples/src/modifyingandconvertingimages/cdr/CdrToPngExample.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,8 @@ def get_data_root_dir_local():
3030
options = PngOptions()
3131
options.color_type = PngColorType.TRUECOLOR_WITH_ALPHA
3232
# Set rasterization options for file format
33-
options.vector_rasterization_options = aspycore.as_of(
34-
image.get_default_options(
35-
[Color.white, image.width, image.height]),
36-
VectorRasterizationOptions)
33+
options.vector_rasterization_options = image.get_default_options(
34+
[Color.white, image.width, image.height]).vector_rasterization_options
3735
options.vector_rasterization_options.text_rendering_hint = TextRenderingHint.SINGLE_BIT_PER_PIXEL
3836
options.vector_rasterization_options.smoothing_mode = SmoothingMode.NONE
3937
image.save(out_file, options)

Examples/src/modifyingandconvertingimages/cdr/CdrToPsdMultipageExample.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,8 @@ def get_data_root_dir_local():
3333
# layer (page) otherwise it will be exported page to page
3434
options.multi_page_options.merge_layers = True
3535
# Set rasterization options for file format
36-
options.vector_rasterization_options = \
37-
aspycore.as_of(image.get_default_options(
38-
[Color.white, image.width, image.height]),
39-
VectorRasterizationOptions)
36+
options.vector_rasterization_options = image.get_default_options(
37+
[Color.white, image.width, image.height]).vector_rasterization_options
4038
options.vector_rasterization_options.text_rendering_hint = TextRenderingHint.SINGLE_BIT_PER_PIXEL
4139
options.vector_rasterization_options.smoothing_mode = SmoothingMode.NONE
4240
image.save(out_file, options)

Examples/src/modifyingandconvertingimages/cmx/CmxToPdfExample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def get_data_root_dir_local():
3030
options = PdfOptions()
3131
options.pdf_document_info = PdfDocumentInfo()
3232
# Set rasterization options for fileformat
33-
options.vector_rasterization_options = aspycore.as_of(image.get_default_options([Color.white, image.width, image.height]), VectorRasterizationOptions)
33+
options.vector_rasterization_options = image.get_default_options([Color.white, image.width, image.height]).vector_rasterization_options
3434
options.vector_rasterization_options.text_rendering_hint = TextRenderingHint.SINGLE_BIT_PER_PIXEL
3535
options.vector_rasterization_options.smoothing_mode = SmoothingMode.NONE
3636
image.save(out_file, options)

0 commit comments

Comments
 (0)