From a4ebf1bf493addf5a2dd585b4ffbedff924c53c1 Mon Sep 17 00:00:00 2001 From: Evgeniy Sidenko Date: Mon, 2 Dec 2024 09:38:01 -0400 Subject: [PATCH 1/2] Updated the Python API documentation upto 24.12 --- .../apngframe/_index.md | 450 +++++++++------- .../apngimage/_index.md | 480 ++++++++++------- .../avifimage/_index.md | 450 +++++++++------- .../bigtiffimage/_index.md | 488 +++++++++++------- .../bmpimage/_index.md | 466 ++++++++++------- .../cdrimage/_index.md | 343 ++++++++---- .../cdrimagepage/_index.md | 343 ++++++++---- .../cmximage/_index.md | 339 ++++++++---- .../cmximagepage/_index.md | 341 ++++++++---- .../dicomimage/_index.md | 472 ++++++++++------- .../dicompage/_index.md | 450 +++++++++------- .../djvuimage/_index.md | 466 ++++++++++------- .../djvupage/_index.md | 470 ++++++++++------- .../djvuraster/_index.md | 450 +++++++++------- .../dngimage/_index.md | 450 +++++++++------- .../emfimage/_index.md | 342 +++++++----- .../metaimage/_index.md | 328 ++++++++---- .../epsimage/_index.md | 365 +++++++++---- .../epsoptions/_index.md | 6 +- .../gifframeblock/_index.md | 482 ++++++++++------- .../gifimage/_index.md | 476 ++++++++++------- .../icoimage/_index.md | 458 +++++++++------- .../jpegimage/_index.md | 458 +++++++++------- .../jpeg2000image/_index.md | 478 ++++++++++------- .../odgimage/_index.md | 343 ++++++++---- .../odimage/_index.md | 343 ++++++++---- .../otgimage/_index.md | 343 ++++++++---- .../pngimage/_index.md | 474 ++++++++++------- .../svgimage/_index.md | 351 +++++++++---- .../tgaimage/_index.md | 462 ++++++++++------- .../tiffframe/_index.md | 466 ++++++++++------- .../tiffimage/_index.md | 488 +++++++++++------- .../webpframeblock/_index.md | 454 +++++++++------- .../webpimage/_index.md | 482 ++++++++++------- .../wmfimage/_index.md | 344 +++++++----- .../aspose.imaging.imageoptions/_index.md | 2 +- .../apngoptions/_index.md | 6 +- .../bmpoptions/_index.md | 6 +- .../cdrrasterizationoptions/_index.md | 12 +- .../cmxrasterizationoptions/_index.md | 12 +- .../dicomoptions/_index.md | 6 +- .../dxfoptions/_index.md | 6 +- .../emfoptions/_index.md | 6 +- .../emfrasterizationoptions/_index.md | 12 +- .../epsrasterizationoptions/_index.md | 12 +- .../gifoptions/_index.md | 6 +- .../html5canvasoptions/_index.md | 6 +- .../icooptions/_index.md | 6 +- .../jpeg2000options/_index.md | 6 +- .../jpegoptions/_index.md | 6 +- .../metafileoptions/_index.md | 6 +- .../metafilerasterizationoptions/_index.md | 12 +- .../odgrasterizationoptions/_index.md | 12 +- .../odrasterizationoptions/_index.md | 12 +- .../otgrasterizationoptions/_index.md | 12 +- .../pdfoptions/_index.md | 6 +- .../pngoptions/_index.md | 6 +- .../psdoptions/_index.md | 6 +- .../svgoptions/_index.md | 6 +- .../svgrasterizationoptions/_index.md | 12 +- .../tgaoptions/_index.md | 6 +- .../vectorrasterizationoptions/_index.md | 16 +- .../webpoptions/_index.md | 6 +- .../wmfoptions/_index.md | 6 +- .../wmfrasterizationoptions/_index.md | 12 +- .../python-net/aspose.imaging/image/_index.md | 329 ++++++++---- .../aspose.imaging/imageoptionsbase/_index.md | 6 +- .../rastercachedimage/_index.md | 450 +++++++++------- .../rastercachedmultipageimage/_index.md | 454 +++++++++------- .../aspose.imaging/rasterimage/_index.md | 452 +++++++++------- .../aspose.imaging/vectorimage/_index.md | 343 ++++++++---- .../vectormultipageimage/_index.md | 337 ++++++++---- 72 files changed, 10719 insertions(+), 6299 deletions(-) diff --git a/english/python-net/aspose.imaging.fileformats.apng/apngframe/_index.md b/english/python-net/aspose.imaging.fileformats.apng/apngframe/_index.md index 26fd05a7ee..6241c0e225 100644 --- a/english/python-net/aspose.imaging.fileformats.apng/apngframe/_index.md +++ b/english/python-net/aspose.imaging.fileformats.apng/apngframe/_index.md @@ -78,103 +78,107 @@ url: /python-net/aspose.imaging.fileformats.apng/apngframe/ | [can_load_with_options(file_path, load_options)](#can_load_with_options_file_path_load_options_16) | Determines whether image can be loaded from the specified file path and optionally using the specified open options. | | [can_save(options)](#can_save_options_17) | Determines whether image can be saved to the specified file format represented by the passed save options. | | [create(files)](#create_files_18) | Creates the instance of the [ApngFrame](/imaging/python-net/aspose.imaging.fileformats.apng/apngframe/). | -| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_19) | Creates the specified files. | +| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_19) | Creates the multipage image containing the specified files. | | [create(image_options, width, height)](#create_image_options_width_height_20) | Creates a new image using the specified create options. | | [create(images)](#create_images_21) | Creates a new image using the specified images as pages | | [create(images, dispose_images)](#create_images_dispose_images_22) | Creates a new image the specified images as pages. | | [create(multipage_create_options)](#create_multipage_create_options_23) | Creates the specified multipage create options. | -| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_24) | Crop image with shifts. | -| [crop(rectangle)](#crop_rectangle_25) | Cropping the image. | -| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_26) | Performs dithering on the current image. | -| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_27) | Performs dithering on the current image. | -| [filter(rectangle, options)](#filter_rectangle_options_28) | Filters the specified rectangle. | -| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_29) | Gets an image 32-bit ARGB pixel. | -| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_30) | Gets the default 32-bit ARGB pixels array. | -| [get_default_options(args)](#get_default_options_args_31) | Gets the default options. | -| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_32) | Gets the default pixels array using partial pixel loader. | -| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_33) | Gets the default raw data array using partial pixel loader. | -| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_34) | Gets the default raw data array. | -| [get_file_format(file_path)](#get_file_format_file_path_35) | Gets the file format. | -| [get_file_format(stream)](#get_file_format_stream_36) | Gets the file format. | -| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_37) | Gets the file format. | -| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_38) | Gets rectangle which fits the current image. | -| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_39) | Gets rectangle which fits the current image. | -| [get_full_frame()](#get_full_frame__40) | Gets the full frame. | -| [get_modify_date(use_default)](#get_modify_date_use_default_41) | Gets the date and time the resource image was last modified. | -| [get_original_options()](#get_original_options__42) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | -| [get_pixel(x, y)](#get_pixel_x_y_43) | Gets an image pixel. | -| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_44) | Gets a proportional height. | -| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_45) | Gets a proportional width. | -| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_46) | Converts to aps. | -| [get_skew_angle()](#get_skew_angle__47) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | +| [create_from_files(files)](#create_from_files_files_24) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_files(files, throw_exception_on_load_error)](#create_from_files_files_throw_exception_on_load_error_25) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_images(images)](#create_from_images_images_26) | Creates a new image using the specified images as pages | +| [create_from_images(images, dispose_images)](#create_from_images_images_dispose_images_27) | Creates a new image the specified images as pages. | +| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_28) | Crop image with shifts. | +| [crop(rectangle)](#crop_rectangle_29) | Cropping the image. | +| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_30) | Performs dithering on the current image. | +| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_31) | Performs dithering on the current image. | +| [filter(rectangle, options)](#filter_rectangle_options_32) | Filters the specified rectangle. | +| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_33) | Gets an image 32-bit ARGB pixel. | +| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_34) | Gets the default 32-bit ARGB pixels array. | +| [get_default_options(args)](#get_default_options_args_35) | Gets the default options. | +| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_36) | Gets the default pixels array using partial pixel loader. | +| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_37) | Gets the default raw data array using partial pixel loader. | +| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_38) | Gets the default raw data array. | +| [get_file_format(file_path)](#get_file_format_file_path_39) | Gets the file format. | +| [get_file_format(stream)](#get_file_format_stream_40) | Gets the file format. | +| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_41) | Gets the file format. | +| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_42) | Gets rectangle which fits the current image. | +| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_43) | Gets rectangle which fits the current image. | +| [get_full_frame()](#get_full_frame__44) | Gets the full frame. | +| [get_modify_date(use_default)](#get_modify_date_use_default_45) | Gets the date and time the resource image was last modified. | +| [get_original_options()](#get_original_options__46) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | +| [get_pixel(x, y)](#get_pixel_x_y_47) | Gets an image pixel. | +| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_48) | Gets a proportional height. | +| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_49) | Gets a proportional width. | +| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_50) | Converts to aps. | +| [get_skew_angle()](#get_skew_angle__51) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | | grayscale() | Transformation of an image to its grayscale representation | -| [load(file_path)](#load_file_path_48) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(file_path, load_options)](#load_file_path_load_options_49) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(stream)](#load_stream_50) | Loads a new image from the specified stream. | -| [load(stream, load_options)](#load_stream_load_options_51) | Loads a new image from the specified stream. | -| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_52) | Loads 32-bit ARGB pixels. | -| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_53) | Loads 64-bit ARGB pixels. | -| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_54) | Loads pixels in CMYK format. | -| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_55) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_56) | Loads 32-bit ARGB pixels partially (by blocks). | -| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_57) | Loads 64-bit ARGB pixels partially by packs. | -| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_58) | Loads pixels partially by packs. | -| [load_pixels(rectangle)](#load_pixels_rectangle_59) | Loads pixels. | -| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_60) | Loads raw data. | -| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_61) | Loads raw data. | -| [load_stream(stream)](#load_stream_stream_62) | Loads a new image from the specified stream. | -| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_63) | Loads a new image from the specified stream. | -| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_64) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path)](#load_file_path_52) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path, load_options)](#load_file_path_load_options_53) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(stream)](#load_stream_54) | Loads a new image from the specified stream. | +| [load(stream, load_options)](#load_stream_load_options_55) | Loads a new image from the specified stream. | +| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_56) | Loads 32-bit ARGB pixels. | +| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_57) | Loads 64-bit ARGB pixels. | +| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_58) | Loads pixels in CMYK format. | +| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_59) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_60) | Loads 32-bit ARGB pixels partially (by blocks). | +| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_61) | Loads 64-bit ARGB pixels partially by packs. | +| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_62) | Loads pixels partially by packs. | +| [load_pixels(rectangle)](#load_pixels_rectangle_63) | Loads pixels. | +| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_64) | Loads raw data. | +| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_65) | Loads raw data. | +| [load_stream(stream)](#load_stream_stream_66) | Loads a new image from the specified stream. | +| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_67) | Loads a new image from the specified stream. | +| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_68) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | | normalize_angle() | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | -| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_65) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | -| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_66) | Reads the whole scan line by the specified scan line index. | -| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_67) | Reads the whole scan line by the specified scan line index. | +| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_69) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | +| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_70) | Reads the whole scan line by the specified scan line index. | +| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_71) | Reads the whole scan line by the specified scan line index. | | remove_metadata() | Removes this image instance metadata by setting this [IHasXmpData.xmp_data](/imaging/python-net/aspose.imaging.xmp/ihasxmpdata/) value to **None**. | -| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_68) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_69) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_70) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_71) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_72) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [resize(new_width, new_height)](#resize_new_width_new_height_73) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_74) | Resizes the image. | -| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_75) | Resizes the image. | -| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_76) | Resizes the image. | -| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_77) | Resizes the image. | -| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_78) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_79) | Resizes the height proportionally. | -| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_80) | Resizes the height proportionally. | -| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_81) | Resizes the height proportionally. | -| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_82) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_83) | Resizes the width proportionally. | -| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_84) | Resizes the width proportionally. | -| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_85) | Resizes the width proportionally. | -| [rotate(angle)](#rotate_angle_86) | Rotate image around the center. | -| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_87) | Rotate image around the center. | -| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_88) | Rotates, flips, or rotates and flips the image. | +| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_72) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_73) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_74) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_75) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_76) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [resize(new_width, new_height)](#resize_new_width_new_height_77) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_78) | Resizes the image. | +| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_79) | Resizes the image. | +| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_80) | Resizes the image. | +| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_81) | Resizes the image. | +| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_82) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_83) | Resizes the height proportionally. | +| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_84) | Resizes the height proportionally. | +| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_85) | Resizes the height proportionally. | +| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_86) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_87) | Resizes the width proportionally. | +| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_88) | Resizes the width proportionally. | +| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_89) | Resizes the width proportionally. | +| [rotate(angle)](#rotate_angle_90) | Rotate image around the center. | +| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_91) | Rotate image around the center. | +| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_92) | Rotates, flips, or rotates and flips the image. | | save() | Saves the image data to the underlying stream. | -| [save(file_path)](#save_file_path_89) | Saves the image to the specified file location. | -| [save(file_path, options)](#save_file_path_options_90) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_91) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, over_write)](#save_file_path_over_write_92) | Saves the object's data to the specified file location. | -| [save(stream)](#save_stream_93) | Saves the data. | -| [save(stream, options_base)](#save_stream_options_base_94) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_95) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_96) | Saves the 32-bit ARGB pixels. | -| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_97) | Saves the pixels. | -| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_98) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_99) | Saves pixels (format specific method). | -| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_100) | Saves the raw data. | -| [save_to_stream(stream)](#save_to_stream_stream_101) | Saves the object's data to the specified stream. | -| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_102) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_103) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_with_options(file_path, options)](#save_with_options_file_path_options_104) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_105) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_106) | Sets an image 32-bit ARGB pixel for the specified position. | -| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_107) | Sets the image palette. | -| [set_pixel(x, y, color)](#set_pixel_x_y_color_108) | Sets an image pixel for the specified position. | -| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_109) | Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_110) | Writes the whole scan line to the specified scan line index. | -| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_111) | Writes the whole scan line to the specified scan line index. | +| [save(file_path)](#save_file_path_93) | Saves the image to the specified file location. | +| [save(file_path, options)](#save_file_path_options_94) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_95) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, over_write)](#save_file_path_over_write_96) | Saves the object's data to the specified file location. | +| [save(stream)](#save_stream_97) | Saves the data. | +| [save(stream, options_base)](#save_stream_options_base_98) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_99) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_100) | Saves the 32-bit ARGB pixels. | +| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_101) | Saves the pixels. | +| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_102) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_103) | Saves pixels (format specific method). | +| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_104) | Saves the raw data. | +| [save_to_stream(stream)](#save_to_stream_stream_105) | Saves the object's data to the specified stream. | +| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_106) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_107) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_with_options(file_path, options)](#save_with_options_file_path_options_108) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_109) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_110) | Sets an image 32-bit ARGB pixel for the specified position. | +| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_111) | Sets the image palette. | +| [set_pixel(x, y, color)](#set_pixel_x_y_color_112) | Sets an image pixel for the specified position. | +| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_113) | Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | +| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_114) | Writes the whole scan line to the specified scan line index. | +| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_115) | Writes the whole scan line to the specified scan line index. | ### Method: adjust_brightness(brightness) {#adjust_brightness_brightness_1} @@ -529,7 +533,7 @@ Creates the instance of the [ApngFrame](/imaging/python-net/aspose.imaging.filef create(files, throw_exception_on_load_error) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -636,7 +640,97 @@ Creates the specified multipage create options. | [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | -### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_24} +### Method: create_from_files(files) [static] {#create_from_files_files_24} + + +``` + create_from_files(files) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_files(files, throw_exception_on_load_error) [static] {#create_from_files_files_throw_exception_on_load_error_25} + + +``` + create_from_files(files, throw_exception_on_load_error) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | +| throw_exception_on_load_error | bool | if set to true throw exception on load error. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_images(images) [static] {#create_from_images_images_26} + + +``` + create_from_images(images) +``` + +Creates a new image using the specified images as pages + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_images(images, dispose_images) [static] {#create_from_images_images_dispose_images_27} + + +``` + create_from_images(images, dispose_images) +``` + +Creates a new image the specified images as pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | +| dispose_images | bool | if set to true [dispose images]. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_28} ``` @@ -654,7 +748,7 @@ Crop image with shifts. | top_shift | int | The top shift. | | bottom_shift | int | The bottom shift. | -### Method: crop(rectangle) {#crop_rectangle_25} +### Method: crop(rectangle) {#crop_rectangle_29} ``` @@ -669,7 +763,7 @@ Cropping the image. | :- | :- | :- | | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | -### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_26} +### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_30} ``` @@ -685,7 +779,7 @@ Performs dithering on the current image. | dithering_method | [DitheringMethod](/imaging/python-net/aspose.imaging/ditheringmethod) | The dithering method. | | bits_count | int | The final bits count for dithering. | -### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_27} +### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_31} ``` @@ -702,7 +796,7 @@ Performs dithering on the current image. | bits_count | int | The final bits count for dithering. | | custom_palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The custom palette for dithering. | -### Method: filter(rectangle, options) {#filter_rectangle_options_28} +### Method: filter(rectangle, options) {#filter_rectangle_options_32} ``` @@ -718,7 +812,7 @@ Filters the specified rectangle. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | | options | [FilterOptionsBase](/imaging/python-net/aspose.imaging.imagefilters.filteroptions/filteroptionsbase/) | The options. | -### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_29} +### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_33} ``` @@ -741,7 +835,7 @@ Gets an image 32-bit ARGB pixel. | int | The 32-bit ARGB pixel for the specified location. | -### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_30} +### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_34} ``` @@ -763,7 +857,7 @@ Gets the default 32-bit ARGB pixels array. | int | The default pixels array. | -### Method: get_default_options(args) {#get_default_options_args_31} +### Method: get_default_options(args) {#get_default_options_args_35} ``` @@ -785,7 +879,7 @@ Gets the default options. | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Default options | -### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_32} +### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_36} ``` @@ -801,7 +895,7 @@ Gets the default pixels array using partial pixel loader. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to get pixels for. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_33} +### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_37} ``` @@ -818,7 +912,7 @@ Gets the default raw data array using partial pixel loader. | partial_raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The partial raw data loader. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings. | -### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_34} +### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_38} ``` @@ -841,7 +935,7 @@ Gets the default raw data array. | byte | The default raw data array. | -### Method: get_file_format(file_path) [static] {#get_file_format_file_path_35} +### Method: get_file_format(file_path) [static] {#get_file_format_file_path_39} ``` @@ -863,7 +957,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format(stream) [static] {#get_file_format_stream_36} +### Method: get_file_format(stream) [static] {#get_file_format_stream_40} ``` @@ -885,7 +979,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_37} +### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_41} ``` @@ -907,7 +1001,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_38} +### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_42} ``` @@ -932,7 +1026,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_39} +### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_43} ``` @@ -956,7 +1050,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_full_frame() {#get_full_frame__40} +### Method: get_full_frame() {#get_full_frame__44} ``` @@ -972,7 +1066,7 @@ Gets the full frame. | [RasterImage](/imaging/python-net/aspose.imaging/rasterimage) | The full frame image. | -### Method: get_modify_date(use_default) {#get_modify_date_use_default_41} +### Method: get_modify_date(use_default) {#get_modify_date_use_default_45} ``` @@ -994,7 +1088,7 @@ Gets the date and time the resource image was last modified. | datetime | The date and time the resource image was last modified. | -### Method: get_original_options() {#get_original_options__42} +### Method: get_original_options() {#get_original_options__46} ``` @@ -1010,7 +1104,7 @@ Gets the options based on the original file settings.
This can b | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options based on the original file settings. | -### Method: get_pixel(x, y) {#get_pixel_x_y_43} +### Method: get_pixel(x, y) {#get_pixel_x_y_47} ``` @@ -1033,7 +1127,7 @@ Gets an image pixel. | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified location. | -### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_44} +### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_48} ``` @@ -1057,7 +1151,7 @@ Gets a proportional height. | int | The proportional height. | -### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_45} +### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_49} ``` @@ -1081,7 +1175,7 @@ Gets a proportional width. | int | The proportional width. | -### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_46} +### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_50} ``` @@ -1105,7 +1199,7 @@ Converts to aps. | _io.BufferedRandom | The serialized stream | -### Method: get_skew_angle() {#get_skew_angle__47} +### Method: get_skew_angle() {#get_skew_angle__51} ``` @@ -1121,7 +1215,7 @@ Gets the skew angle.
This method is applicable to scanned text d | float | The skew angle, in degrees. | -### Method: load(file_path) [static] {#load_file_path_48} +### Method: load(file_path) [static] {#load_file_path_52} ``` @@ -1143,7 +1237,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(file_path, load_options) [static] {#load_file_path_load_options_49} +### Method: load(file_path, load_options) [static] {#load_file_path_load_options_53} ``` @@ -1166,7 +1260,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream) [static] {#load_stream_50} +### Method: load(stream) [static] {#load_stream_54} ``` @@ -1188,7 +1282,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream, load_options) [static] {#load_stream_load_options_51} +### Method: load(stream, load_options) [static] {#load_stream_load_options_55} ``` @@ -1211,7 +1305,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_52} +### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_56} ``` @@ -1233,7 +1327,7 @@ Loads 32-bit ARGB pixels. | int | The loaded 32-bit ARGB pixels array. | -### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_53} +### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_57} ``` @@ -1255,7 +1349,7 @@ Loads 64-bit ARGB pixels. | long | The loaded 64-bit ARGB pixels array. | -### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_54} +### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_58} ``` @@ -1277,7 +1371,7 @@ Loads pixels in CMYK format. | int | The loaded CMYK pixels presentes as 32-bit inateger values. | -### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_55} +### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_59} ``` @@ -1299,7 +1393,7 @@ Loads pixels in CMYK format.
This method is deprecated. Please u | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The loaded CMYK pixels array. | -### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_56} +### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_60} ``` @@ -1315,7 +1409,7 @@ Loads 32-bit ARGB pixels partially (by blocks). | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to load pixels from. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_57} +### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_61} ``` @@ -1331,7 +1425,7 @@ Loads 64-bit ARGB pixels partially by packs. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | partial_pixel_loader | [IPartialArgb64PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb64pixelloader) | The 64-bit ARGB pixel loader. | -### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_58} +### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_62} ``` @@ -1347,7 +1441,7 @@ Loads pixels partially by packs. | desired_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | pixel_loader | [IPartialPixelLoader](/imaging/python-net/aspose.imaging/ipartialpixelloader) | The pixel loader. | -### Method: load_pixels(rectangle) {#load_pixels_rectangle_59} +### Method: load_pixels(rectangle) {#load_pixels_rectangle_63} ``` @@ -1369,7 +1463,7 @@ Loads pixels. | [Color[]](/imaging/python-net/aspose.imaging/color) | The loaded pixels array. | -### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_60} +### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_64} ``` @@ -1387,7 +1481,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_61} +### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_65} ``` @@ -1404,7 +1498,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_stream(stream) [static] {#load_stream_stream_62} +### Method: load_stream(stream) [static] {#load_stream_stream_66} ``` @@ -1426,7 +1520,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_63} +### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_67} ``` @@ -1449,7 +1543,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_64} +### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_68} ``` @@ -1472,7 +1566,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_65} +### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_69} ``` @@ -1488,7 +1582,7 @@ Normalizes the angle.
This method is applicable to scanned text | resize_proportionally | bool | if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_66} +### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_70} ``` @@ -1510,7 +1604,7 @@ Reads the whole scan line by the specified scan line index. | int | The scan line 32-bit ARGB color values array. | -### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_67} +### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_71} ``` @@ -1532,7 +1626,7 @@ Reads the whole scan line by the specified scan line index. | [Color[]](/imaging/python-net/aspose.imaging/color) | The scan line pixel color values array. | -### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_68} +### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_72} ``` @@ -1549,7 +1643,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_69} +### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_73} ``` @@ -1566,7 +1660,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | New color to replace old color with. | -### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_70} +### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_74} ``` @@ -1583,7 +1677,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_71} +### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_75} ``` @@ -1598,7 +1692,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | New color to replace non transparent colors with. | -### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_72} +### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_76} ``` @@ -1613,7 +1707,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color_argb | int | New color ARGB value to replace non transparent colors with. | -### Method: resize(new_width, new_height) {#resize_new_width_new_height_73} +### Method: resize(new_width, new_height) {#resize_new_width_new_height_77} ``` @@ -1629,7 +1723,7 @@ Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/ | new_width | int | The new width. | | new_height | int | The new height. | -### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_74} +### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_78} ``` @@ -1646,7 +1740,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_75} +### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_79} ``` @@ -1663,7 +1757,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_76} +### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_80} ``` @@ -1680,7 +1774,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_77} +### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_81} ``` @@ -1697,7 +1791,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_78} +### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_82} ``` @@ -1712,7 +1806,7 @@ Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RES | :- | :- | :- | | new_height | int | The new height. | -### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_79} +### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_83} ``` @@ -1728,7 +1822,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_80} +### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_84} ``` @@ -1744,7 +1838,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_81} +### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_85} ``` @@ -1760,7 +1854,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_82} +### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_86} ``` @@ -1775,7 +1869,7 @@ Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESA | :- | :- | :- | | new_width | int | The new width. | -### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_83} +### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_87} ``` @@ -1791,7 +1885,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_84} +### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_88} ``` @@ -1807,7 +1901,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_85} +### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_89} ``` @@ -1823,7 +1917,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: rotate(angle) {#rotate_angle_86} +### Method: rotate(angle) {#rotate_angle_90} ``` @@ -1838,7 +1932,7 @@ Rotate image around the center. | :- | :- | :- | | angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | -### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_87} +### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_91} ``` @@ -1855,7 +1949,7 @@ Rotate image around the center. | resize_proportionally | bool | if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_88} +### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_92} ``` @@ -1870,7 +1964,7 @@ Rotates, flips, or rotates and flips the image. | :- | :- | :- | | rotate_flip_type | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | The rotate flip type. | -### Method: save(file_path) {#save_file_path_89} +### Method: save(file_path) {#save_file_path_93} ``` @@ -1885,7 +1979,7 @@ Saves the image to the specified file location. | :- | :- | :- | | file_path | string | The file path to save the image to. | -### Method: save(file_path, options) {#save_file_path_options_90} +### Method: save(file_path, options) {#save_file_path_options_94} ``` @@ -1901,7 +1995,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_91} +### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_95} ``` @@ -1918,7 +2012,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: save(file_path, over_write) {#save_file_path_over_write_92} +### Method: save(file_path, over_write) {#save_file_path_over_write_96} ``` @@ -1934,7 +2028,7 @@ Saves the object's data to the specified file location. | file_path | string | The file path to save the object's data to. | | over_write | bool | if set to true over write the file contents, otherwise append will occur. | -### Method: save(stream) {#save_stream_93} +### Method: save(stream) {#save_stream_97} ``` @@ -1949,7 +2043,7 @@ Saves the data. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save data to. | -### Method: save(stream, options_base) {#save_stream_options_base_94} +### Method: save(stream, options_base) {#save_stream_options_base_98} ``` @@ -1965,7 +2059,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_95} +### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_99} ``` @@ -1982,7 +2076,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_96} +### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_100} ``` @@ -1998,7 +2092,7 @@ Saves the 32-bit ARGB pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The 32-bit ARGB pixels array. | -### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_97} +### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_101} ``` @@ -2014,7 +2108,7 @@ Saves the pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The CMYK pixels presented as the 32-bit integer values. | -### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_98} +### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_102} ``` @@ -2030,7 +2124,7 @@ Saves the pixels.
This method is deprecated. Please use more eff | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The CMYK pixels array. | -### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_99} +### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_103} ``` @@ -2046,7 +2140,7 @@ Saves pixels (format specific method). | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | [Color[]](/imaging/python-net/aspose.imaging/color) | The 32-bit ARGB pixels array. | -### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_100} +### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_104} ``` @@ -2064,7 +2158,7 @@ Saves the raw data. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The raw data rectangle. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings the data is in. | -### Method: save_to_stream(stream) {#save_to_stream_stream_101} +### Method: save_to_stream(stream) {#save_to_stream_stream_105} ``` @@ -2079,7 +2173,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_102} +### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_106} ``` @@ -2095,7 +2189,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_103} +### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_107} ``` @@ -2112,7 +2206,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_104} +### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_108} ``` @@ -2128,7 +2222,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_105} +### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_109} ``` @@ -2145,7 +2239,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_106} +### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_110} ``` @@ -2162,7 +2256,7 @@ Sets an image 32-bit ARGB pixel for the specified position. | y | int | The pixel y location. | | argb_32_color | int | The 32-bit ARGB pixel for the specified position. | -### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_107} +### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_111} ``` @@ -2178,7 +2272,7 @@ Sets the image palette. | palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The palette to set. | | update_colors | bool | if set to true colors will be updated according to the new palette; otherwise color indexes remain unchanged. Note that unchanged indexes may crash the image on loading if some indexes have no corresponding palette entries. | -### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_108} +### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_112} ``` @@ -2195,7 +2289,7 @@ Sets an image pixel for the specified position. | y | int | The pixel y location. | | color | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified position. | -### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_109} +### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_113} ``` @@ -2211,7 +2305,7 @@ Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/ra | dpi_x | double | The horizontal resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | | dpi_y | double | The vertical resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_110} +### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_114} ``` @@ -2227,7 +2321,7 @@ Writes the whole scan line to the specified scan line index. | scan_line_index | int | Zero based index of the scan line. | | argb_32_pixels | int | The 32-bit ARGB colors array to write. | -### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_111} +### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_115} ``` diff --git a/english/python-net/aspose.imaging.fileformats.apng/apngimage/_index.md b/english/python-net/aspose.imaging.fileformats.apng/apngimage/_index.md index c6ca3d6be2..21669d4599 100644 --- a/english/python-net/aspose.imaging.fileformats.apng/apngimage/_index.md +++ b/english/python-net/aspose.imaging.fileformats.apng/apngimage/_index.md @@ -85,112 +85,116 @@ url: /python-net/aspose.imaging.fileformats.apng/apngimage/ | [can_load_stream_with_options(stream, load_options)](#can_load_stream_with_options_stream_load_options_19) | Determines whether image can be loaded from the specified stream and optionally using the specified _loadOptions_. | | [can_load_with_options(file_path, load_options)](#can_load_with_options_file_path_load_options_20) | Determines whether image can be loaded from the specified file path and optionally using the specified open options. | | [can_save(options)](#can_save_options_21) | Determines whether image can be saved to the specified file format represented by the passed save options. | -| [create(files)](#create_files_22) | Creates the specified files. | -| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_23) | Creates the specified files. | +| [create(files)](#create_files_22) | Creates the multipage image containing the specified files. | +| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_23) | Creates the multipage image containing the specified files. | | [create(image_options, width, height)](#create_image_options_width_height_24) | Creates a new image using the specified create options. | | [create(images)](#create_images_25) | Creates a new image using the specified images as pages | | [create(images, dispose_images)](#create_images_dispose_images_26) | Creates a new image the specified images as pages. | | [create(multipage_create_options)](#create_multipage_create_options_27) | Creates the specified multipage create options. | -| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_28) | Crop the image while adjusting shifts seamlessly with this intuitive method.
Ideal for developers seeking precise control over the cropping process
to focus on specific areas of their Apng images. | -| [crop(rectangle)](#crop_rectangle_29) | Effortlessly crop the image to focus on specific areas with this intuitive method.
Perfect for developers seeking to refine the composition of their images dynamically. | -| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_30) | Performs dithering on the current image. | -| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_31) | Easily apply dithering effects to the current image with this intuitive method.
Ideal for developers looking to add texture or reduce color banding in their images. | -| [filter(rectangle, options)](#filter_rectangle_options_32) | Effortlessly apply filters to the specified rectangle of the image with this
intuitive method. Perfect for developers seeking to enhance or modify specific areas. | -| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_33) | Gets an image 32-bit ARGB pixel. | -| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_34) | Gets the default 32-bit ARGB pixels array. | -| [get_default_options(args)](#get_default_options_args_35) | Retrieve the default options effortlessly with this straightforward method.
Ideal for developers seeking quick access to default Apng image settings. | -| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_36) | Gets the default pixels array using partial pixel loader. | -| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_37) | Gets the default raw data array using partial pixel loader. | -| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_38) | Gets the default raw data array. | -| [get_file_format(file_path)](#get_file_format_file_path_39) | Gets the file format. | -| [get_file_format(stream)](#get_file_format_stream_40) | Gets the file format. | -| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_41) | Gets the file format. | -| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_42) | Gets rectangle which fits the current image. | -| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_43) | Gets rectangle which fits the current image. | -| [get_modify_date(use_default)](#get_modify_date_use_default_44) | Quickly obtain the date and time when the resource image was last modified
with this user-friendly method. Ideal for developers needing to track changes
and manage resources effectively. | -| [get_original_options()](#get_original_options__45) | Retrieve options based on the original file settings effortlessly with this intuitive method.
Perfect for developers seeking to access and utilize settings that align with the characteristics
of the original file.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | -| [get_pixel(x, y)](#get_pixel_x_y_46) | Gets an image pixel. | -| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_47) | Gets a proportional height. | -| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_48) | Gets a proportional width. | -| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_49) | Converts to aps. | -| [get_skew_angle()](#get_skew_angle__50) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | +| [create_from_files(files)](#create_from_files_files_28) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_files(files, throw_exception_on_load_error)](#create_from_files_files_throw_exception_on_load_error_29) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_images(images)](#create_from_images_images_30) | Creates a new image using the specified images as pages | +| [create_from_images(images, dispose_images)](#create_from_images_images_dispose_images_31) | Creates a new image the specified images as pages. | +| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_32) | Crop the image while adjusting shifts seamlessly with this intuitive method.
Ideal for developers seeking precise control over the cropping process
to focus on specific areas of their Apng images. | +| [crop(rectangle)](#crop_rectangle_33) | Effortlessly crop the image to focus on specific areas with this intuitive method.
Perfect for developers seeking to refine the composition of their images dynamically. | +| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_34) | Performs dithering on the current image. | +| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_35) | Easily apply dithering effects to the current image with this intuitive method.
Ideal for developers looking to add texture or reduce color banding in their images. | +| [filter(rectangle, options)](#filter_rectangle_options_36) | Effortlessly apply filters to the specified rectangle of the image with this
intuitive method. Perfect for developers seeking to enhance or modify specific areas. | +| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_37) | Gets an image 32-bit ARGB pixel. | +| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_38) | Gets the default 32-bit ARGB pixels array. | +| [get_default_options(args)](#get_default_options_args_39) | Retrieve the default options effortlessly with this straightforward method.
Ideal for developers seeking quick access to default Apng image settings. | +| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_40) | Gets the default pixels array using partial pixel loader. | +| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_41) | Gets the default raw data array using partial pixel loader. | +| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_42) | Gets the default raw data array. | +| [get_file_format(file_path)](#get_file_format_file_path_43) | Gets the file format. | +| [get_file_format(stream)](#get_file_format_stream_44) | Gets the file format. | +| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_45) | Gets the file format. | +| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_46) | Gets rectangle which fits the current image. | +| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_47) | Gets rectangle which fits the current image. | +| [get_modify_date(use_default)](#get_modify_date_use_default_48) | Quickly obtain the date and time when the resource image was last modified
with this user-friendly method. Ideal for developers needing to track changes
and manage resources effectively. | +| [get_original_options()](#get_original_options__49) | Retrieve options based on the original file settings effortlessly with this intuitive method.
Perfect for developers seeking to access and utilize settings that align with the characteristics
of the original file.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | +| [get_pixel(x, y)](#get_pixel_x_y_50) | Gets an image pixel. | +| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_51) | Gets a proportional height. | +| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_52) | Gets a proportional width. | +| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_53) | Converts to aps. | +| [get_skew_angle()](#get_skew_angle__54) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | | grayscale() | Easily transform the image into its grayscale representation with this intuitive method.
Ideal for developers seeking to convert color images to grayscale, simplifying their
visualization or analysis processes. | -| [insert_frame(index)](#insert_frame_index_51) | Effortlessly insert a new frame into your frame collection at the specified
with this intuitive method. Ideal for developers seeking precise control over
the arrangement of frames in their animations of multi-frame images.
A new frame will be created according to the size of the current image. | -| [insert_frame(index, frame_image)](#insert_frame_index_frame_image_52) | Inserts new frame into the own frame collection at the specified index.
The contents of the new frame will be filled from the specified image. | -| [insert_frame(index, frame_image, frame_time)](#insert_frame_index_frame_image_frame_time_53) | Inserts new frame into the own frame collection at the specified index.
The contents of the new frame will be filled from the specified image. | -| [load(file_path)](#load_file_path_54) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(file_path, load_options)](#load_file_path_load_options_55) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(stream)](#load_stream_56) | Loads a new image from the specified stream. | -| [load(stream, load_options)](#load_stream_load_options_57) | Loads a new image from the specified stream. | -| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_58) | Loads 32-bit ARGB pixels. | -| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_59) | Loads 64-bit ARGB pixels. | -| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_60) | Loads pixels in CMYK format. | -| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_61) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_62) | Loads 32-bit ARGB pixels partially (by blocks). | -| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_63) | Loads 64-bit ARGB pixels partially by packs. | -| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_64) | Loads pixels partially by packs. | -| [load_pixels(rectangle)](#load_pixels_rectangle_65) | Loads pixels. | -| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_66) | Loads raw data. | -| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_67) | Loads raw data. | -| [load_stream(stream)](#load_stream_stream_68) | Loads a new image from the specified stream. | -| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_69) | Loads a new image from the specified stream. | -| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_70) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [insert_frame(index)](#insert_frame_index_55) | Effortlessly insert a new frame into your frame collection at the specified
with this intuitive method. Ideal for developers seeking precise control over
the arrangement of frames in their animations of multi-frame images.
A new frame will be created according to the size of the current image. | +| [insert_frame(index, frame_image)](#insert_frame_index_frame_image_56) | Inserts new frame into the own frame collection at the specified index.
The contents of the new frame will be filled from the specified image. | +| [insert_frame(index, frame_image, frame_time)](#insert_frame_index_frame_image_frame_time_57) | Inserts new frame into the own frame collection at the specified index.
The contents of the new frame will be filled from the specified image. | +| [load(file_path)](#load_file_path_58) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path, load_options)](#load_file_path_load_options_59) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(stream)](#load_stream_60) | Loads a new image from the specified stream. | +| [load(stream, load_options)](#load_stream_load_options_61) | Loads a new image from the specified stream. | +| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_62) | Loads 32-bit ARGB pixels. | +| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_63) | Loads 64-bit ARGB pixels. | +| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_64) | Loads pixels in CMYK format. | +| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_65) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_66) | Loads 32-bit ARGB pixels partially (by blocks). | +| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_67) | Loads 64-bit ARGB pixels partially by packs. | +| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_68) | Loads pixels partially by packs. | +| [load_pixels(rectangle)](#load_pixels_rectangle_69) | Loads pixels. | +| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_70) | Loads raw data. | +| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_71) | Loads raw data. | +| [load_stream(stream)](#load_stream_stream_72) | Loads a new image from the specified stream. | +| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_73) | Loads a new image from the specified stream. | +| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_74) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | | normalize_angle() | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | -| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_71) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterCachedMultipageImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rastercachedmultipageimage/) methods. | -| [pop_frame_at(index)](#pop_frame_at_index_72) | Remove and retrieve the frame at the specified index from your frame collection
with this intuitive method. Perfect for developers seeking efficient management
of frames in their animations. | -| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_73) | Reads the whole scan line by the specified scan line index. | -| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_74) | Reads the whole scan line by the specified scan line index. | +| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_75) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterCachedMultipageImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rastercachedmultipageimage/) methods. | +| [pop_frame_at(index)](#pop_frame_at_index_76) | Remove and retrieve the frame at the specified index from your frame collection
with this intuitive method. Perfect for developers seeking efficient management
of frames in their animations. | +| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_77) | Reads the whole scan line by the specified scan line index. | +| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_78) | Reads the whole scan line by the specified scan line index. | | remove_all_frames() | Clear your frame collection by removing all frames with this intuitive method.
Ideal for developers seeking to reset or refresh their animations. | -| [remove_frame_at(index)](#remove_frame_at_index_75) | Remove the frame at the specified index from your frame collection seamlessly
with this method. Perfect for developers seeking streamlined management of frames
in their multi-frame images.
The frame to be deleted will be disposed. | +| [remove_frame_at(index)](#remove_frame_at_index_79) | Remove the frame at the specified index from your frame collection seamlessly
with this method. Perfect for developers seeking streamlined management of frames
in their multi-frame images.
The frame to be deleted will be disposed. | | remove_metadata() | Removes this image instance metadata by setting this [IHasXmpData.xmp_data](/imaging/python-net/aspose.imaging.xmp/ihasxmpdata/) value to **None**. | -| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_76) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_77) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_78) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_79) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_80) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_80) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_81) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_82) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_83) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_84) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | | reset_default_image() | Remove a previously set default image with this intuitive method.
Ideal for developers seeking to reset or clear the default image in their animation.
After this, the default image is the first frame in the own frame collection
(it cannot be deleted using this method). | -| [resize(new_width, new_height)](#resize_new_width_new_height_81) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_82) | Resizes the image. | -| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_83) | Resizes the image. | -| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_84) | Resizes the image. | -| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_85) | Resizes the image. | -| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_86) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_87) | Effortlessly adjust the height of your image while maintaining its proportions
with this intuitive method. Perfect for developers looking to resize images
dynamically while preserving their aspect ratio. | -| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_88) | Resizes the height proportionally. | -| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_89) | Resizes the height proportionally. | -| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_90) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_91) | Proportionally resize the width of the image effortlessly with this intuitive method.
Ideal for developers seeking to maintain the aspect ratio of their images while
adjusting their dimensions. | -| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_92) | Resizes the width proportionally. | -| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_93) | Resizes the width proportionally. | -| [rotate(angle)](#rotate_angle_94) | Rotate image around the center. | -| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_95) | Rotate the image around its center effortlessly with this intuitive method.
Perfect for developers seeking to adjust the orientation of their images dynamically. | -| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_96) | Effortlessly manipulate the active frame by rotating, flipping, or both
with this intuitive method. Ideal for developers seeking to customize
image frame orientations. | -| [rotate_flip_all(rotate_flip)](#rotate_flip_all_rotate_flip_97) | Rotates the flip all. | +| [resize(new_width, new_height)](#resize_new_width_new_height_85) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_86) | Resize the image seamlessly with this intuitive method. Perfect for developers
seeking to adjust the dimensions of their images dynamically. | +| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_87) | Resizes the image. | +| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_88) | Resizes the image. | +| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_89) | Resizes the image. | +| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_90) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_91) | Effortlessly adjust the height of your image while maintaining its proportions
with this intuitive method. Perfect for developers looking to resize images
dynamically while preserving their aspect ratio. | +| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_92) | Resizes the height proportionally. | +| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_93) | Resizes the height proportionally. | +| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_94) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_95) | Proportionally resize the width of the image effortlessly with this intuitive method.
Ideal for developers seeking to maintain the aspect ratio of their images while
adjusting their dimensions. | +| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_96) | Resizes the width proportionally. | +| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_97) | Resizes the width proportionally. | +| [rotate(angle)](#rotate_angle_98) | Rotate image around the center. | +| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_99) | Rotate the image around its center effortlessly with this intuitive method.
Perfect for developers seeking to adjust the orientation of their images dynamically. | +| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_100) | Effortlessly manipulate the active frame by rotating, flipping, or both
with this intuitive method. Ideal for developers seeking to customize
image frame orientations. | +| [rotate_flip_all(rotate_flip)](#rotate_flip_all_rotate_flip_101) | Rotates the flip all. | | save() | Saves the image data to the underlying stream. | -| [save(file_path)](#save_file_path_98) | Saves the image to the specified file location. | -| [save(file_path, options)](#save_file_path_options_99) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_100) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, over_write)](#save_file_path_over_write_101) | Saves the object's data to the specified file location. | -| [save(stream)](#save_stream_102) | Saves the data. | -| [save(stream, options_base)](#save_stream_options_base_103) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_104) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_105) | Saves the 32-bit ARGB pixels. | -| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_106) | Saves the pixels. | -| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_107) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_108) | Saves the pixels internal main. | -| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_109) | Saves the raw data. | -| [save_to_stream(stream)](#save_to_stream_stream_110) | Saves the object's data to the specified stream. | -| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_111) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_112) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_with_options(file_path, options)](#save_with_options_file_path_options_113) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_114) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_115) | Sets an image 32-bit ARGB pixel for the specified position. | -| [set_default_image(image)](#set_default_image_image_116) | Set the specified raster image as the default image for the current animation
effortlessly with this method. Perfect for developers seeking to customize
the default image in their animations. | -| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_117) | Sets the image palette. | -| [set_pixel(x, y, color)](#set_pixel_x_y_color_118) | Sets an image pixel for the specified position. | -| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_119) | Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_120) | Writes the whole scan line to the specified scan line index. | -| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_121) | Writes the whole scan line to the specified scan line index. | +| [save(file_path)](#save_file_path_102) | Saves the image to the specified file location. | +| [save(file_path, options)](#save_file_path_options_103) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_104) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, over_write)](#save_file_path_over_write_105) | Saves the object's data to the specified file location. | +| [save(stream)](#save_stream_106) | Saves the data. | +| [save(stream, options_base)](#save_stream_options_base_107) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_108) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_109) | Saves the 32-bit ARGB pixels. | +| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_110) | Saves the pixels. | +| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_111) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_112) | Saves the pixels internal main. | +| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_113) | Saves the raw data. | +| [save_to_stream(stream)](#save_to_stream_stream_114) | Saves the object's data to the specified stream. | +| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_115) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_116) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_with_options(file_path, options)](#save_with_options_file_path_options_117) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_118) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_119) | Sets an image 32-bit ARGB pixel for the specified position. | +| [set_default_image(image)](#set_default_image_image_120) | Set the specified raster image as the default image for the current animation
effortlessly with this method. Perfect for developers seeking to customize
the default image in their animations. | +| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_121) | Sets the image palette. | +| [set_pixel(x, y, color)](#set_pixel_x_y_color_122) | Sets an image pixel for the specified position. | +| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_123) | Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | +| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_124) | Writes the whole scan line to the specified scan line index. | +| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_125) | Writes the whole scan line to the specified scan line index. | ### Constructor: ApngImage(options, width, height) {#ApngImage_options_width_height_1} @@ -602,7 +606,7 @@ Determines whether image can be saved to the specified file format represented b create(files) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -624,7 +628,7 @@ Creates the specified files. create(files, throw_exception_on_load_error) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -731,7 +735,97 @@ Creates the specified multipage create options. | [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | -### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_28} +### Method: create_from_files(files) [static] {#create_from_files_files_28} + + +``` + create_from_files(files) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_files(files, throw_exception_on_load_error) [static] {#create_from_files_files_throw_exception_on_load_error_29} + + +``` + create_from_files(files, throw_exception_on_load_error) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | +| throw_exception_on_load_error | bool | if set to true throw exception on load error. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_images(images) [static] {#create_from_images_images_30} + + +``` + create_from_images(images) +``` + +Creates a new image using the specified images as pages + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_images(images, dispose_images) [static] {#create_from_images_images_dispose_images_31} + + +``` + create_from_images(images, dispose_images) +``` + +Creates a new image the specified images as pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | +| dispose_images | bool | if set to true [dispose images]. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_32} ``` @@ -749,7 +843,7 @@ Crop the image while adjusting shifts seamlessly with this intuitive method.
| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Default options | -### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_36} +### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_40} ``` @@ -896,7 +990,7 @@ Gets the default pixels array using partial pixel loader. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to get pixels for. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_37} +### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_41} ``` @@ -913,7 +1007,7 @@ Gets the default raw data array using partial pixel loader. | partial_raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The partial raw data loader. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings. | -### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_38} +### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_42} ``` @@ -936,7 +1030,7 @@ Gets the default raw data array. | byte | The default raw data array. | -### Method: get_file_format(file_path) [static] {#get_file_format_file_path_39} +### Method: get_file_format(file_path) [static] {#get_file_format_file_path_43} ``` @@ -958,7 +1052,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format(stream) [static] {#get_file_format_stream_40} +### Method: get_file_format(stream) [static] {#get_file_format_stream_44} ``` @@ -980,7 +1074,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_41} +### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_45} ``` @@ -1002,7 +1096,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_42} +### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_46} ``` @@ -1027,7 +1121,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_43} +### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_47} ``` @@ -1051,7 +1145,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_modify_date(use_default) {#get_modify_date_use_default_44} +### Method: get_modify_date(use_default) {#get_modify_date_use_default_48} ``` @@ -1073,7 +1167,7 @@ Quickly obtain the date and time when the resource image was last modified
| datetime | The date and time the resource image was last modified. | -### Method: get_original_options() {#get_original_options__45} +### Method: get_original_options() {#get_original_options__49} ``` @@ -1089,7 +1183,7 @@ Retrieve options based on the original file settings effortlessly with this intu | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options based on the original file settings. | -### Method: get_pixel(x, y) {#get_pixel_x_y_46} +### Method: get_pixel(x, y) {#get_pixel_x_y_50} ``` @@ -1112,7 +1206,7 @@ Gets an image pixel. | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified location. | -### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_47} +### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_51} ``` @@ -1136,7 +1230,7 @@ Gets a proportional height. | int | The proportional height. | -### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_48} +### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_52} ``` @@ -1160,7 +1254,7 @@ Gets a proportional width. | int | The proportional width. | -### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_49} +### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_53} ``` @@ -1184,7 +1278,7 @@ Converts to aps. | _io.BufferedRandom | The serialized stream | -### Method: get_skew_angle() {#get_skew_angle__50} +### Method: get_skew_angle() {#get_skew_angle__54} ``` @@ -1200,7 +1294,7 @@ Gets the skew angle.
This method is applicable to scanned text d | float | The skew angle, in degrees. | -### Method: insert_frame(index) {#insert_frame_index_51} +### Method: insert_frame(index) {#insert_frame_index_55} ``` @@ -1222,7 +1316,7 @@ Effortlessly insert a new frame into your frame collection at the specified
| [ApngFrame](/imaging/python-net/aspose.imaging.fileformats.apng/apngframe) | The newly created APNG frame. | -### Method: insert_frame(index, frame_image) {#insert_frame_index_frame_image_52} +### Method: insert_frame(index, frame_image) {#insert_frame_index_frame_image_56} ``` @@ -1238,7 +1332,7 @@ Inserts new frame into the own frame collection at the specified index.
| index | int | The index. | | frame_image | [RasterImage](/imaging/python-net/aspose.imaging/rasterimage) | The frame image. | -### Method: insert_frame(index, frame_image, frame_time) {#insert_frame_index_frame_image_frame_time_53} +### Method: insert_frame(index, frame_image, frame_time) {#insert_frame_index_frame_image_frame_time_57} ``` @@ -1255,7 +1349,7 @@ Inserts new frame into the own frame collection at the specified index.
| frame_image | [RasterImage](/imaging/python-net/aspose.imaging/rasterimage) | The frame image. | | frame_time | uint | The frame duration, in milliseconds. | -### Method: load(file_path) [static] {#load_file_path_54} +### Method: load(file_path) [static] {#load_file_path_58} ``` @@ -1277,7 +1371,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(file_path, load_options) [static] {#load_file_path_load_options_55} +### Method: load(file_path, load_options) [static] {#load_file_path_load_options_59} ``` @@ -1300,7 +1394,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream) [static] {#load_stream_56} +### Method: load(stream) [static] {#load_stream_60} ``` @@ -1322,7 +1416,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream, load_options) [static] {#load_stream_load_options_57} +### Method: load(stream, load_options) [static] {#load_stream_load_options_61} ``` @@ -1345,7 +1439,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_58} +### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_62} ``` @@ -1367,7 +1461,7 @@ Loads 32-bit ARGB pixels. | int | The loaded 32-bit ARGB pixels array. | -### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_59} +### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_63} ``` @@ -1389,7 +1483,7 @@ Loads 64-bit ARGB pixels. | long | The loaded 64-bit ARGB pixels array. | -### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_60} +### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_64} ``` @@ -1411,7 +1505,7 @@ Loads pixels in CMYK format. | int | The loaded CMYK pixels presentes as 32-bit inateger values. | -### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_61} +### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_65} ``` @@ -1433,7 +1527,7 @@ Loads pixels in CMYK format.
This method is deprecated. Please u | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The loaded CMYK pixels array. | -### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_62} +### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_66} ``` @@ -1449,7 +1543,7 @@ Loads 32-bit ARGB pixels partially (by blocks). | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to load pixels from. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_63} +### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_67} ``` @@ -1465,7 +1559,7 @@ Loads 64-bit ARGB pixels partially by packs. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | partial_pixel_loader | [IPartialArgb64PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb64pixelloader) | The 64-bit ARGB pixel loader. | -### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_64} +### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_68} ``` @@ -1481,7 +1575,7 @@ Loads pixels partially by packs. | desired_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | pixel_loader | [IPartialPixelLoader](/imaging/python-net/aspose.imaging/ipartialpixelloader) | The pixel loader. | -### Method: load_pixels(rectangle) {#load_pixels_rectangle_65} +### Method: load_pixels(rectangle) {#load_pixels_rectangle_69} ``` @@ -1503,7 +1597,7 @@ Loads pixels. | [Color[]](/imaging/python-net/aspose.imaging/color) | The loaded pixels array. | -### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_66} +### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_70} ``` @@ -1521,7 +1615,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_67} +### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_71} ``` @@ -1538,7 +1632,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_stream(stream) [static] {#load_stream_stream_68} +### Method: load_stream(stream) [static] {#load_stream_stream_72} ``` @@ -1560,7 +1654,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_69} +### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_73} ``` @@ -1583,7 +1677,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_70} +### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_74} ``` @@ -1606,7 +1700,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_71} +### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_75} ``` @@ -1622,7 +1716,7 @@ Normalizes the angle.
This method is applicable to scanned text | resize_proportionally | bool | if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: pop_frame_at(index) {#pop_frame_at_index_72} +### Method: pop_frame_at(index) {#pop_frame_at_index_76} ``` @@ -1644,7 +1738,7 @@ Remove and retrieve the frame at the specified index from your frame collection< | [ApngFrame](/imaging/python-net/aspose.imaging.fileformats.apng/apngframe) | The removed APNG frame. | -### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_73} +### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_77} ``` @@ -1666,7 +1760,7 @@ Reads the whole scan line by the specified scan line index. | int | The scan line 32-bit ARGB color values array. | -### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_74} +### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_78} ``` @@ -1688,7 +1782,7 @@ Reads the whole scan line by the specified scan line index. | [Color[]](/imaging/python-net/aspose.imaging/color) | The scan line pixel color values array. | -### Method: remove_frame_at(index) {#remove_frame_at_index_75} +### Method: remove_frame_at(index) {#remove_frame_at_index_79} ``` @@ -1703,7 +1797,7 @@ Remove the frame at the specified index from your frame collection seamlessly
seeking to adjust the dimensions of their images dynamically. **Parameters:** @@ -1817,7 +1911,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_83} +### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_87} ``` @@ -1834,7 +1928,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_84} +### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_88} ``` @@ -1851,7 +1945,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_85} +### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_89} ``` @@ -1868,7 +1962,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_86} +### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_90} ``` @@ -1883,7 +1977,7 @@ Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RES | :- | :- | :- | | new_height | int | The new height. | -### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_87} +### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_91} ``` @@ -1899,7 +1993,7 @@ Effortlessly adjust the height of your image while maintaining its proportions | resize_proportionally | bool | if set to true you will have your image size changed
according to rotated rectangle (corner points) projections in other
case that leaves dimensions untouched and only
__internal__ image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_96} +### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_100} ``` @@ -2041,7 +2135,7 @@ Effortlessly manipulate the active frame by rotating, flipping, or both
| :- | :- | :- | | rotate_flip_type | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | The rotate flip type. | -### Method: rotate_flip_all(rotate_flip) {#rotate_flip_all_rotate_flip_97} +### Method: rotate_flip_all(rotate_flip) {#rotate_flip_all_rotate_flip_101} ``` @@ -2056,7 +2150,7 @@ Rotates the flip all. | :- | :- | :- | | rotate_flip | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | The rotate flip. | -### Method: save(file_path) {#save_file_path_98} +### Method: save(file_path) {#save_file_path_102} ``` @@ -2071,7 +2165,7 @@ Saves the image to the specified file location. | :- | :- | :- | | file_path | string | The file path to save the image to. | -### Method: save(file_path, options) {#save_file_path_options_99} +### Method: save(file_path, options) {#save_file_path_options_103} ``` @@ -2087,7 +2181,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_100} +### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_104} ``` @@ -2104,7 +2198,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: save(file_path, over_write) {#save_file_path_over_write_101} +### Method: save(file_path, over_write) {#save_file_path_over_write_105} ``` @@ -2120,7 +2214,7 @@ Saves the object's data to the specified file location. | file_path | string | The file path to save the object's data to. | | over_write | bool | if set to true over write the file contents, otherwise append will occur. | -### Method: save(stream) {#save_stream_102} +### Method: save(stream) {#save_stream_106} ``` @@ -2135,7 +2229,7 @@ Saves the data. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save data to. | -### Method: save(stream, options_base) {#save_stream_options_base_103} +### Method: save(stream, options_base) {#save_stream_options_base_107} ``` @@ -2151,7 +2245,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_104} +### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_108} ``` @@ -2168,7 +2262,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_105} +### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_109} ``` @@ -2184,7 +2278,7 @@ Saves the 32-bit ARGB pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The 32-bit ARGB pixels array. | -### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_106} +### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_110} ``` @@ -2200,7 +2294,7 @@ Saves the pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The CMYK pixels presented as the 32-bit integer values. | -### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_107} +### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_111} ``` @@ -2216,7 +2310,7 @@ Saves the pixels.
This method is deprecated. Please use more eff | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The CMYK pixels array. | -### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_108} +### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_112} ``` @@ -2232,7 +2326,7 @@ Saves the pixels internal main. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | | pixels | [Color[]](/imaging/python-net/aspose.imaging/color) | The pixels. | -### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_109} +### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_113} ``` @@ -2250,7 +2344,7 @@ Saves the raw data. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The raw data rectangle. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings the data is in. | -### Method: save_to_stream(stream) {#save_to_stream_stream_110} +### Method: save_to_stream(stream) {#save_to_stream_stream_114} ``` @@ -2265,7 +2359,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_111} +### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_115} ``` @@ -2281,7 +2375,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_112} +### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_116} ``` @@ -2298,7 +2392,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_113} +### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_117} ``` @@ -2314,7 +2408,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_114} +### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_118} ``` @@ -2331,7 +2425,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_115} +### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_119} ``` @@ -2348,7 +2442,7 @@ Sets an image 32-bit ARGB pixel for the specified position. | y | int | The pixel y location. | | argb_32_color | int | The 32-bit ARGB pixel for the specified position. | -### Method: set_default_image(image) {#set_default_image_image_116} +### Method: set_default_image(image) {#set_default_image_image_120} ``` @@ -2363,7 +2457,7 @@ Set the specified raster image as the default image for the current animation
true colors will be updated according to the new palette; otherwise color indexes remain unchanged. Note that unchanged indexes may crash the image on loading if some indexes have no corresponding palette entries. | -### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_118} +### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_122} ``` @@ -2396,7 +2490,7 @@ Sets an image pixel for the specified position. | y | int | The pixel y location. | | color | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified position. | -### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_119} +### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_123} ``` @@ -2412,7 +2506,7 @@ Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/ra | dpi_x | double | The horizontal resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | | dpi_y | double | The vertical resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_120} +### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_124} ``` @@ -2428,7 +2522,7 @@ Writes the whole scan line to the specified scan line index. | scan_line_index | int | Zero based index of the scan line. | | argb_32_pixels | int | The 32-bit ARGB colors array to write. | -### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_121} +### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_125} ``` diff --git a/english/python-net/aspose.imaging.fileformats.avif/avifimage/_index.md b/english/python-net/aspose.imaging.fileformats.avif/avifimage/_index.md index bd4b262047..2384e52fd7 100644 --- a/english/python-net/aspose.imaging.fileformats.avif/avifimage/_index.md +++ b/english/python-net/aspose.imaging.fileformats.avif/avifimage/_index.md @@ -76,103 +76,107 @@ url: /python-net/aspose.imaging.fileformats.avif/avifimage/ | [can_load_stream_with_options(stream, load_options)](#can_load_stream_with_options_stream_load_options_15) | Determines whether image can be loaded from the specified stream and optionally using the specified _loadOptions_. | | [can_load_with_options(file_path, load_options)](#can_load_with_options_file_path_load_options_16) | Determines whether image can be loaded from the specified file path and optionally using the specified open options. | | [can_save(options)](#can_save_options_17) | Determines whether image can be saved to the specified file format represented by the passed save options. | -| [create(files)](#create_files_18) | Creates the specified files. | -| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_19) | Creates the specified files. | +| [create(files)](#create_files_18) | Creates the multipage image containing the specified files. | +| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_19) | Creates the multipage image containing the specified files. | | [create(image_options, width, height)](#create_image_options_width_height_20) | Creates a new image using the specified create options. | | [create(images)](#create_images_21) | Creates a new image using the specified images as pages | | [create(images, dispose_images)](#create_images_dispose_images_22) | Creates a new image the specified images as pages. | | [create(multipage_create_options)](#create_multipage_create_options_23) | Creates the specified multipage create options. | -| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_24) | Crop image with shifts. | -| [crop(rectangle)](#crop_rectangle_25) | Cropping the image. | -| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_26) | Performs dithering on the current image. | -| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_27) | Performs dithering on the current image. | -| [filter(rectangle, options)](#filter_rectangle_options_28) | Filters the specified rectangle. | -| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_29) | Gets an image 32-bit ARGB pixel. | -| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_30) | Gets the default 32-bit ARGB pixels array. | -| [get_default_options(args)](#get_default_options_args_31) | Gets the default options. | -| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_32) | Gets the default pixels array using partial pixel loader. | -| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_33) | Gets the default raw data array using partial pixel loader. | -| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_34) | Gets the default raw data array. | -| [get_file_format(file_path)](#get_file_format_file_path_35) | Gets the file format. | -| [get_file_format(stream)](#get_file_format_stream_36) | Gets the file format. | -| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_37) | Gets the file format. | -| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_38) | Gets rectangle which fits the current image. | -| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_39) | Gets rectangle which fits the current image. | -| [get_modify_date(use_default)](#get_modify_date_use_default_40) | Gets the date and time the resource image was last modified. | -| [get_original_options()](#get_original_options__41) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | -| [get_pixel(x, y)](#get_pixel_x_y_42) | Gets an image pixel. | -| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_43) | Gets a proportional height. | -| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_44) | Gets a proportional width. | -| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_45) | Converts to aps. | -| [get_skew_angle()](#get_skew_angle__46) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | +| [create_from_files(files)](#create_from_files_files_24) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_files(files, throw_exception_on_load_error)](#create_from_files_files_throw_exception_on_load_error_25) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_images(images)](#create_from_images_images_26) | Creates a new image using the specified images as pages | +| [create_from_images(images, dispose_images)](#create_from_images_images_dispose_images_27) | Creates a new image the specified images as pages. | +| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_28) | Crop image with shifts. | +| [crop(rectangle)](#crop_rectangle_29) | Cropping the image. | +| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_30) | Performs dithering on the current image. | +| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_31) | Performs dithering on the current image. | +| [filter(rectangle, options)](#filter_rectangle_options_32) | Filters the specified rectangle. | +| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_33) | Gets an image 32-bit ARGB pixel. | +| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_34) | Gets the default 32-bit ARGB pixels array. | +| [get_default_options(args)](#get_default_options_args_35) | Gets the default options. | +| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_36) | Gets the default pixels array using partial pixel loader. | +| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_37) | Gets the default raw data array using partial pixel loader. | +| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_38) | Gets the default raw data array. | +| [get_file_format(file_path)](#get_file_format_file_path_39) | Gets the file format. | +| [get_file_format(stream)](#get_file_format_stream_40) | Gets the file format. | +| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_41) | Gets the file format. | +| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_42) | Gets rectangle which fits the current image. | +| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_43) | Gets rectangle which fits the current image. | +| [get_modify_date(use_default)](#get_modify_date_use_default_44) | Gets the date and time the resource image was last modified. | +| [get_original_options()](#get_original_options__45) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | +| [get_pixel(x, y)](#get_pixel_x_y_46) | Gets an image pixel. | +| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_47) | Gets a proportional height. | +| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_48) | Gets a proportional width. | +| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_49) | Converts to aps. | +| [get_skew_angle()](#get_skew_angle__50) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | | grayscale() | Transformation of an image to its grayscale representation | -| [load(file_path)](#load_file_path_47) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(file_path, load_options)](#load_file_path_load_options_48) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(stream)](#load_stream_49) | Loads a new image from the specified stream. | -| [load(stream, load_options)](#load_stream_load_options_50) | Loads a new image from the specified stream. | -| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_51) | Loads 32-bit ARGB pixels. | -| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_52) | Loads 64-bit ARGB pixels. | -| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_53) | Loads pixels in CMYK format. | -| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_54) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_55) | Loads 32-bit ARGB pixels partially (by blocks). | -| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_56) | Loads 64-bit ARGB pixels partially by packs. | -| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_57) | Loads pixels partially by packs. | -| [load_pixels(rectangle)](#load_pixels_rectangle_58) | Loads pixels. | -| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_59) | Loads raw data. | -| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_60) | Loads raw data. | -| [load_stream(stream)](#load_stream_stream_61) | Loads a new image from the specified stream. | -| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_62) | Loads a new image from the specified stream. | -| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_63) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path)](#load_file_path_51) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path, load_options)](#load_file_path_load_options_52) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(stream)](#load_stream_53) | Loads a new image from the specified stream. | +| [load(stream, load_options)](#load_stream_load_options_54) | Loads a new image from the specified stream. | +| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_55) | Loads 32-bit ARGB pixels. | +| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_56) | Loads 64-bit ARGB pixels. | +| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_57) | Loads pixels in CMYK format. | +| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_58) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_59) | Loads 32-bit ARGB pixels partially (by blocks). | +| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_60) | Loads 64-bit ARGB pixels partially by packs. | +| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_61) | Loads pixels partially by packs. | +| [load_pixels(rectangle)](#load_pixels_rectangle_62) | Loads pixels. | +| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_63) | Loads raw data. | +| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_64) | Loads raw data. | +| [load_stream(stream)](#load_stream_stream_65) | Loads a new image from the specified stream. | +| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_66) | Loads a new image from the specified stream. | +| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_67) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | | normalize_angle() | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | -| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_64) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | -| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_65) | Reads the whole scan line by the specified scan line index. | -| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_66) | Reads the whole scan line by the specified scan line index. | +| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_68) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | +| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_69) | Reads the whole scan line by the specified scan line index. | +| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_70) | Reads the whole scan line by the specified scan line index. | | remove_metadata() | Removes this image instance metadata by setting this [IHasXmpData.xmp_data](/imaging/python-net/aspose.imaging.xmp/ihasxmpdata/) value to **None**. | -| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_67) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_68) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_69) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_70) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_71) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [resize(new_width, new_height)](#resize_new_width_new_height_72) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_73) | Resizes the image. | -| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_74) | Resizes the image. | -| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_75) | Resizes the image. | -| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_76) | Resizes the image. | -| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_77) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_78) | Resizes the height proportionally. | -| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_79) | Resizes the height proportionally. | -| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_80) | Resizes the height proportionally. | -| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_81) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_82) | Resizes the width proportionally. | -| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_83) | Resizes the width proportionally. | -| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_84) | Resizes the width proportionally. | -| [rotate(angle)](#rotate_angle_85) | Rotate image around the center. | -| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_86) | Rotate image around the center. | -| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_87) | Rotates, flips, or rotates and flips the image. | +| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_71) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_72) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_73) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_74) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_75) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [resize(new_width, new_height)](#resize_new_width_new_height_76) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_77) | Resizes the image. | +| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_78) | Resizes the image. | +| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_79) | Resizes the image. | +| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_80) | Resizes the image. | +| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_81) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_82) | Resizes the height proportionally. | +| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_83) | Resizes the height proportionally. | +| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_84) | Resizes the height proportionally. | +| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_85) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_86) | Resizes the width proportionally. | +| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_87) | Resizes the width proportionally. | +| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_88) | Resizes the width proportionally. | +| [rotate(angle)](#rotate_angle_89) | Rotate image around the center. | +| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_90) | Rotate image around the center. | +| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_91) | Rotates, flips, or rotates and flips the image. | | save() | Saves the image data to the underlying stream. | -| [save(file_path)](#save_file_path_88) | Saves the image to the specified file location. | -| [save(file_path, options)](#save_file_path_options_89) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_90) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, over_write)](#save_file_path_over_write_91) | Saves the object's data to the specified file location. | -| [save(stream)](#save_stream_92) | Saves the data. | -| [save(stream, options_base)](#save_stream_options_base_93) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_94) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_95) | Saves the 32-bit ARGB pixels. | -| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_96) | Saves the pixels. | -| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_97) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_98) | Saves pixels (format specific method). | -| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_99) | Saves the raw data. | -| [save_to_stream(stream)](#save_to_stream_stream_100) | Saves the object's data to the specified stream. | -| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_101) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_102) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_with_options(file_path, options)](#save_with_options_file_path_options_103) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_104) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_105) | Sets an image 32-bit ARGB pixel for the specified position. | -| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_106) | Sets the image palette. | -| [set_pixel(x, y, color)](#set_pixel_x_y_color_107) | Sets an image pixel for the specified position. | -| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_108) | Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_109) | Writes the whole scan line to the specified scan line index. | -| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_110) | Writes the whole scan line to the specified scan line index. | +| [save(file_path)](#save_file_path_92) | Saves the image to the specified file location. | +| [save(file_path, options)](#save_file_path_options_93) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_94) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, over_write)](#save_file_path_over_write_95) | Saves the object's data to the specified file location. | +| [save(stream)](#save_stream_96) | Saves the data. | +| [save(stream, options_base)](#save_stream_options_base_97) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_98) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_99) | Saves the 32-bit ARGB pixels. | +| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_100) | Saves the pixels. | +| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_101) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_102) | Saves pixels (format specific method). | +| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_103) | Saves the raw data. | +| [save_to_stream(stream)](#save_to_stream_stream_104) | Saves the object's data to the specified stream. | +| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_105) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_106) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_with_options(file_path, options)](#save_with_options_file_path_options_107) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_108) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_109) | Sets an image 32-bit ARGB pixel for the specified position. | +| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_110) | Sets the image palette. | +| [set_pixel(x, y, color)](#set_pixel_x_y_color_111) | Sets an image pixel for the specified position. | +| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_112) | Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | +| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_113) | Writes the whole scan line to the specified scan line index. | +| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_114) | Writes the whole scan line to the specified scan line index. | ### Constructor: AvifImage() {#AvifImage__1} @@ -514,7 +518,7 @@ Determines whether image can be saved to the specified file format represented b create(files) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -536,7 +540,7 @@ Creates the specified files. create(files, throw_exception_on_load_error) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -643,7 +647,97 @@ Creates the specified multipage create options. | [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | -### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_24} +### Method: create_from_files(files) [static] {#create_from_files_files_24} + + +``` + create_from_files(files) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_files(files, throw_exception_on_load_error) [static] {#create_from_files_files_throw_exception_on_load_error_25} + + +``` + create_from_files(files, throw_exception_on_load_error) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | +| throw_exception_on_load_error | bool | if set to true throw exception on load error. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_images(images) [static] {#create_from_images_images_26} + + +``` + create_from_images(images) +``` + +Creates a new image using the specified images as pages + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_images(images, dispose_images) [static] {#create_from_images_images_dispose_images_27} + + +``` + create_from_images(images, dispose_images) +``` + +Creates a new image the specified images as pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | +| dispose_images | bool | if set to true [dispose images]. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_28} ``` @@ -661,7 +755,7 @@ Crop image with shifts. | top_shift | int | The top shift. | | bottom_shift | int | The bottom shift. | -### Method: crop(rectangle) {#crop_rectangle_25} +### Method: crop(rectangle) {#crop_rectangle_29} ``` @@ -676,7 +770,7 @@ Cropping the image. | :- | :- | :- | | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | -### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_26} +### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_30} ``` @@ -692,7 +786,7 @@ Performs dithering on the current image. | dithering_method | [DitheringMethod](/imaging/python-net/aspose.imaging/ditheringmethod) | The dithering method. | | bits_count | int | The final bits count for dithering. | -### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_27} +### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_31} ``` @@ -709,7 +803,7 @@ Performs dithering on the current image. | bits_count | int | The final bits count for dithering. | | custom_palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The custom palette for dithering. | -### Method: filter(rectangle, options) {#filter_rectangle_options_28} +### Method: filter(rectangle, options) {#filter_rectangle_options_32} ``` @@ -725,7 +819,7 @@ Filters the specified rectangle. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | | options | [FilterOptionsBase](/imaging/python-net/aspose.imaging.imagefilters.filteroptions/filteroptionsbase/) | The options. | -### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_29} +### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_33} ``` @@ -748,7 +842,7 @@ Gets an image 32-bit ARGB pixel. | int | The 32-bit ARGB pixel for the specified location. | -### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_30} +### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_34} ``` @@ -770,7 +864,7 @@ Gets the default 32-bit ARGB pixels array. | int | The default pixels array. | -### Method: get_default_options(args) {#get_default_options_args_31} +### Method: get_default_options(args) {#get_default_options_args_35} ``` @@ -792,7 +886,7 @@ Gets the default options. | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Default options | -### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_32} +### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_36} ``` @@ -808,7 +902,7 @@ Gets the default pixels array using partial pixel loader. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to get pixels for. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_33} +### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_37} ``` @@ -825,7 +919,7 @@ Gets the default raw data array using partial pixel loader. | partial_raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The partial raw data loader. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings. | -### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_34} +### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_38} ``` @@ -848,7 +942,7 @@ Gets the default raw data array. | byte | The default raw data array. | -### Method: get_file_format(file_path) [static] {#get_file_format_file_path_35} +### Method: get_file_format(file_path) [static] {#get_file_format_file_path_39} ``` @@ -870,7 +964,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format(stream) [static] {#get_file_format_stream_36} +### Method: get_file_format(stream) [static] {#get_file_format_stream_40} ``` @@ -892,7 +986,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_37} +### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_41} ``` @@ -914,7 +1008,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_38} +### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_42} ``` @@ -939,7 +1033,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_39} +### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_43} ``` @@ -963,7 +1057,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_modify_date(use_default) {#get_modify_date_use_default_40} +### Method: get_modify_date(use_default) {#get_modify_date_use_default_44} ``` @@ -985,7 +1079,7 @@ Gets the date and time the resource image was last modified. | datetime | The date and time the resource image was last modified. | -### Method: get_original_options() {#get_original_options__41} +### Method: get_original_options() {#get_original_options__45} ``` @@ -1001,7 +1095,7 @@ Gets the options based on the original file settings.
This can b | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options based on the original file settings. | -### Method: get_pixel(x, y) {#get_pixel_x_y_42} +### Method: get_pixel(x, y) {#get_pixel_x_y_46} ``` @@ -1024,7 +1118,7 @@ Gets an image pixel. | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified location. | -### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_43} +### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_47} ``` @@ -1048,7 +1142,7 @@ Gets a proportional height. | int | The proportional height. | -### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_44} +### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_48} ``` @@ -1072,7 +1166,7 @@ Gets a proportional width. | int | The proportional width. | -### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_45} +### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_49} ``` @@ -1096,7 +1190,7 @@ Converts to aps. | _io.BufferedRandom | The serialized stream | -### Method: get_skew_angle() {#get_skew_angle__46} +### Method: get_skew_angle() {#get_skew_angle__50} ``` @@ -1112,7 +1206,7 @@ Gets the skew angle.
This method is applicable to scanned text d | float | The skew angle, in degrees. | -### Method: load(file_path) [static] {#load_file_path_47} +### Method: load(file_path) [static] {#load_file_path_51} ``` @@ -1134,7 +1228,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(file_path, load_options) [static] {#load_file_path_load_options_48} +### Method: load(file_path, load_options) [static] {#load_file_path_load_options_52} ``` @@ -1157,7 +1251,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream) [static] {#load_stream_49} +### Method: load(stream) [static] {#load_stream_53} ``` @@ -1179,7 +1273,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream, load_options) [static] {#load_stream_load_options_50} +### Method: load(stream, load_options) [static] {#load_stream_load_options_54} ``` @@ -1202,7 +1296,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_51} +### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_55} ``` @@ -1224,7 +1318,7 @@ Loads 32-bit ARGB pixels. | int | The loaded 32-bit ARGB pixels array. | -### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_52} +### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_56} ``` @@ -1246,7 +1340,7 @@ Loads 64-bit ARGB pixels. | long | The loaded 64-bit ARGB pixels array. | -### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_53} +### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_57} ``` @@ -1268,7 +1362,7 @@ Loads pixels in CMYK format. | int | The loaded CMYK pixels presentes as 32-bit inateger values. | -### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_54} +### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_58} ``` @@ -1290,7 +1384,7 @@ Loads pixels in CMYK format.
This method is deprecated. Please u | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The loaded CMYK pixels array. | -### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_55} +### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_59} ``` @@ -1306,7 +1400,7 @@ Loads 32-bit ARGB pixels partially (by blocks). | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to load pixels from. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_56} +### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_60} ``` @@ -1322,7 +1416,7 @@ Loads 64-bit ARGB pixels partially by packs. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | partial_pixel_loader | [IPartialArgb64PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb64pixelloader) | The 64-bit ARGB pixel loader. | -### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_57} +### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_61} ``` @@ -1338,7 +1432,7 @@ Loads pixels partially by packs. | desired_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | pixel_loader | [IPartialPixelLoader](/imaging/python-net/aspose.imaging/ipartialpixelloader) | The pixel loader. | -### Method: load_pixels(rectangle) {#load_pixels_rectangle_58} +### Method: load_pixels(rectangle) {#load_pixels_rectangle_62} ``` @@ -1360,7 +1454,7 @@ Loads pixels. | [Color[]](/imaging/python-net/aspose.imaging/color) | The loaded pixels array. | -### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_59} +### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_63} ``` @@ -1378,7 +1472,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_60} +### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_64} ``` @@ -1395,7 +1489,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_stream(stream) [static] {#load_stream_stream_61} +### Method: load_stream(stream) [static] {#load_stream_stream_65} ``` @@ -1417,7 +1511,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_62} +### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_66} ``` @@ -1440,7 +1534,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_63} +### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_67} ``` @@ -1463,7 +1557,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_64} +### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_68} ``` @@ -1479,7 +1573,7 @@ Normalizes the angle.
This method is applicable to scanned text | resize_proportionally | bool | if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_65} +### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_69} ``` @@ -1501,7 +1595,7 @@ Reads the whole scan line by the specified scan line index. | int | The scan line 32-bit ARGB color values array. | -### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_66} +### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_70} ``` @@ -1523,7 +1617,7 @@ Reads the whole scan line by the specified scan line index. | [Color[]](/imaging/python-net/aspose.imaging/color) | The scan line pixel color values array. | -### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_67} +### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_71} ``` @@ -1540,7 +1634,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_68} +### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_72} ``` @@ -1557,7 +1651,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | New color to replace old color with. | -### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_69} +### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_73} ``` @@ -1574,7 +1668,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_70} +### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_74} ``` @@ -1589,7 +1683,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | New color to replace non transparent colors with. | -### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_71} +### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_75} ``` @@ -1604,7 +1698,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color_argb | int | New color ARGB value to replace non transparent colors with. | -### Method: resize(new_width, new_height) {#resize_new_width_new_height_72} +### Method: resize(new_width, new_height) {#resize_new_width_new_height_76} ``` @@ -1620,7 +1714,7 @@ Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/ | new_width | int | The new width. | | new_height | int | The new height. | -### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_73} +### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_77} ``` @@ -1637,7 +1731,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_74} +### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_78} ``` @@ -1654,7 +1748,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_75} +### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_79} ``` @@ -1671,7 +1765,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_76} +### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_80} ``` @@ -1688,7 +1782,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_77} +### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_81} ``` @@ -1703,7 +1797,7 @@ Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RES | :- | :- | :- | | new_height | int | The new height. | -### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_78} +### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_82} ``` @@ -1719,7 +1813,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_79} +### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_83} ``` @@ -1735,7 +1829,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_80} +### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_84} ``` @@ -1751,7 +1845,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_81} +### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_85} ``` @@ -1766,7 +1860,7 @@ Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESA | :- | :- | :- | | new_width | int | The new width. | -### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_82} +### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_86} ``` @@ -1782,7 +1876,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_83} +### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_87} ``` @@ -1798,7 +1892,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_84} +### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_88} ``` @@ -1814,7 +1908,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: rotate(angle) {#rotate_angle_85} +### Method: rotate(angle) {#rotate_angle_89} ``` @@ -1829,7 +1923,7 @@ Rotate image around the center. | :- | :- | :- | | angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | -### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_86} +### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_90} ``` @@ -1846,7 +1940,7 @@ Rotate image around the center. | resize_proportionally | bool | if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_87} +### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_91} ``` @@ -1861,7 +1955,7 @@ Rotates, flips, or rotates and flips the image. | :- | :- | :- | | rotate_flip_type | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | The rotate flip type. | -### Method: save(file_path) {#save_file_path_88} +### Method: save(file_path) {#save_file_path_92} ``` @@ -1876,7 +1970,7 @@ Saves the image to the specified file location. | :- | :- | :- | | file_path | string | The file path to save the image to. | -### Method: save(file_path, options) {#save_file_path_options_89} +### Method: save(file_path, options) {#save_file_path_options_93} ``` @@ -1892,7 +1986,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_90} +### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_94} ``` @@ -1909,7 +2003,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: save(file_path, over_write) {#save_file_path_over_write_91} +### Method: save(file_path, over_write) {#save_file_path_over_write_95} ``` @@ -1925,7 +2019,7 @@ Saves the object's data to the specified file location. | file_path | string | The file path to save the object's data to. | | over_write | bool | if set to true over write the file contents, otherwise append will occur. | -### Method: save(stream) {#save_stream_92} +### Method: save(stream) {#save_stream_96} ``` @@ -1940,7 +2034,7 @@ Saves the data. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save data to. | -### Method: save(stream, options_base) {#save_stream_options_base_93} +### Method: save(stream, options_base) {#save_stream_options_base_97} ``` @@ -1956,7 +2050,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_94} +### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_98} ``` @@ -1973,7 +2067,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_95} +### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_99} ``` @@ -1989,7 +2083,7 @@ Saves the 32-bit ARGB pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The 32-bit ARGB pixels array. | -### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_96} +### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_100} ``` @@ -2005,7 +2099,7 @@ Saves the pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The CMYK pixels presented as the 32-bit integer values. | -### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_97} +### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_101} ``` @@ -2021,7 +2115,7 @@ Saves the pixels.
This method is deprecated. Please use more eff | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The CMYK pixels array. | -### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_98} +### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_102} ``` @@ -2037,7 +2131,7 @@ Saves pixels (format specific method). | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | [Color[]](/imaging/python-net/aspose.imaging/color) | The 32-bit ARGB pixels array. | -### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_99} +### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_103} ``` @@ -2055,7 +2149,7 @@ Saves the raw data. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The raw data rectangle. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings the data is in. | -### Method: save_to_stream(stream) {#save_to_stream_stream_100} +### Method: save_to_stream(stream) {#save_to_stream_stream_104} ``` @@ -2070,7 +2164,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_101} +### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_105} ``` @@ -2086,7 +2180,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_102} +### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_106} ``` @@ -2103,7 +2197,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_103} +### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_107} ``` @@ -2119,7 +2213,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_104} +### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_108} ``` @@ -2136,7 +2230,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_105} +### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_109} ``` @@ -2153,7 +2247,7 @@ Sets an image 32-bit ARGB pixel for the specified position. | y | int | The pixel y location. | | argb_32_color | int | The 32-bit ARGB pixel for the specified position. | -### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_106} +### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_110} ``` @@ -2169,7 +2263,7 @@ Sets the image palette. | palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The palette to set. | | update_colors | bool | if set to true colors will be updated according to the new palette; otherwise color indexes remain unchanged. Note that unchanged indexes may crash the image on loading if some indexes have no corresponding palette entries. | -### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_107} +### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_111} ``` @@ -2186,7 +2280,7 @@ Sets an image pixel for the specified position. | y | int | The pixel y location. | | color | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified position. | -### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_108} +### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_112} ``` @@ -2202,7 +2296,7 @@ Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/ra | dpi_x | double | The horizontal resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | | dpi_y | double | The vertical resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_109} +### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_113} ``` @@ -2218,7 +2312,7 @@ Writes the whole scan line to the specified scan line index. | scan_line_index | int | Zero based index of the scan line. | | argb_32_pixels | int | The 32-bit ARGB colors array to write. | -### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_110} +### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_114} ``` diff --git a/english/python-net/aspose.imaging.fileformats.bigtiff/bigtiffimage/_index.md b/english/python-net/aspose.imaging.fileformats.bigtiff/bigtiffimage/_index.md index e25e37a2ad..2709a2413c 100644 --- a/english/python-net/aspose.imaging.fileformats.bigtiff/bigtiffimage/_index.md +++ b/english/python-net/aspose.imaging.fileformats.bigtiff/bigtiffimage/_index.md @@ -88,112 +88,116 @@ url: /python-net/aspose.imaging.fileformats.bigtiff/bigtiffimage/ | [can_load_stream_with_options(stream, load_options)](#can_load_stream_with_options_stream_load_options_19) | Determines whether image can be loaded from the specified stream and optionally using the specified _loadOptions_. | | [can_load_with_options(file_path, load_options)](#can_load_with_options_file_path_load_options_20) | Determines whether image can be loaded from the specified file path and optionally using the specified open options. | | [can_save(options)](#can_save_options_21) | Determines whether image can be saved to the specified file format represented by the passed save options. | -| [create(files)](#create_files_22) | Creates the specified files. | -| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_23) | Creates the specified files. | +| [create(files)](#create_files_22) | Creates the multipage image containing the specified files. | +| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_23) | Creates the multipage image containing the specified files. | | [create(image_options, width, height)](#create_image_options_width_height_24) | Creates a new image using the specified create options. | | [create(images)](#create_images_25) | Creates a new image using the specified images as pages | | [create(images, dispose_images)](#create_images_dispose_images_26) | Creates a new image the specified images as pages. | | [create(multipage_create_options)](#create_multipage_create_options_27) | Creates the specified multipage create options. | -| [create_with_frame(frame)](#create_with_frame_frame_28) | Initializes a new instance of the [BigTiffImage](/imaging/python-net/aspose.imaging.fileformats.bigtiff/bigtiffimage/) class. | -| [create_with_frames(frames)](#create_with_frames_frames_29) | Initializes a new instance of the [BigTiffImage](/imaging/python-net/aspose.imaging.fileformats.bigtiff/bigtiffimage/) class. | -| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_30) | Perform cropping on the image by specifying shifts in the left, right, top, and
bottom directions. This method enables precise selection of the desired portion of
the image, facilitating efficient removal of unwanted areas and focusing on
essential content. Integrate this functionality into your image processing
pipeline to enhance clarity and composition as needed within your application. | -| [crop(rectangle)](#crop_rectangle_31) | Crop the image using a specified rectangular region, allowing precise selection of
desired content. Integrate this method into your image processing workflow to
efficiently remove unwanted areas and focus on essential details, enhancing the
overall clarity and composition of the image. | -| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_32) | Performs dithering on the current image. | -| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_33) | Execute dithering on the current image to enhance its visual quality and reduce
color banding artifacts. Integrate this method into your image processing workflow
to ensure smoother transitions between colors, resulting in improved overall image
appearance and clarity. | -| [filter(rectangle, options)](#filter_rectangle_options_34) | Filter the content within the specified rectangle, applying a designated image
processing filter to enhance or modify the selected region. Integrate this method
into your image manipulation workflow to achieve targeted enhancements or
transformations within your application. | -| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_35) | Gets an image 32-bit ARGB pixel. | -| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_36) | Gets the default 32-bit ARGB pixels array. | -| [get_default_options(args)](#get_default_options_args_37) | Gets the default options. | -| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_38) | Gets the default pixels array using partial pixel loader. | -| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_39) | Gets the default raw data array using partial pixel loader. | -| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_40) | Gets the default raw data array. | -| [get_file_format(file_path)](#get_file_format_file_path_41) | Gets the file format. | -| [get_file_format(stream)](#get_file_format_stream_42) | Gets the file format. | -| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_43) | Gets the file format. | -| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_44) | Gets rectangle which fits the current image. | -| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_45) | Gets rectangle which fits the current image. | -| [get_modify_date(use_default)](#get_modify_date_use_default_46) | Gets the date and time the resource image was last modified. | -| [get_original_options()](#get_original_options__47) | Retrieve options derived from the original file settings, facilitating seamless
preservation of key parameters such as bit-depth and other essential attributes of
the original image. Utilize this method to maintain fidelity and consistency in
image processing tasks, ensuring optimal results without unnecessary alterations.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | -| [get_pixel(x, y)](#get_pixel_x_y_48) | Gets an image pixel. | -| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_49) | Gets a proportional height. | -| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_50) | Gets a proportional width. | -| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_51) | Converts to aps. | -| [get_skew_angle()](#get_skew_angle__52) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | +| [create_from_files(files)](#create_from_files_files_28) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_files(files, throw_exception_on_load_error)](#create_from_files_files_throw_exception_on_load_error_29) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_images(images)](#create_from_images_images_30) | Creates a new image using the specified images as pages | +| [create_from_images(images, dispose_images)](#create_from_images_images_dispose_images_31) | Creates a new image the specified images as pages. | +| [create_with_frame(frame)](#create_with_frame_frame_32) | Initializes a new instance of the [BigTiffImage](/imaging/python-net/aspose.imaging.fileformats.bigtiff/bigtiffimage/) class. | +| [create_with_frames(frames)](#create_with_frames_frames_33) | Initializes a new instance of the [BigTiffImage](/imaging/python-net/aspose.imaging.fileformats.bigtiff/bigtiffimage/) class. | +| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_34) | Perform cropping on the image by specifying shifts in the left, right, top, and
bottom directions. This method enables precise selection of the desired portion of
the image, facilitating efficient removal of unwanted areas and focusing on
essential content. Integrate this functionality into your image processing
pipeline to enhance clarity and composition as needed within your application. | +| [crop(rectangle)](#crop_rectangle_35) | Crop the image using a specified rectangular region, allowing precise selection of
desired content. Integrate this method into your image processing workflow to
efficiently remove unwanted areas and focus on essential details, enhancing the
overall clarity and composition of the image. | +| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_36) | Performs dithering on the current image. | +| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_37) | Execute dithering on the current image to enhance its visual quality and reduce
color banding artifacts. Integrate this method into your image processing workflow
to ensure smoother transitions between colors, resulting in improved overall image
appearance and clarity. | +| [filter(rectangle, options)](#filter_rectangle_options_38) | Filter the content within the specified rectangle, applying a designated image
processing filter to enhance or modify the selected region. Integrate this method
into your image manipulation workflow to achieve targeted enhancements or
transformations within your application. | +| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_39) | Gets an image 32-bit ARGB pixel. | +| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_40) | Gets the default 32-bit ARGB pixels array. | +| [get_default_options(args)](#get_default_options_args_41) | Gets the default options. | +| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_42) | Gets the default pixels array using partial pixel loader. | +| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_43) | Gets the default raw data array using partial pixel loader. | +| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_44) | Gets the default raw data array. | +| [get_file_format(file_path)](#get_file_format_file_path_45) | Gets the file format. | +| [get_file_format(stream)](#get_file_format_stream_46) | Gets the file format. | +| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_47) | Gets the file format. | +| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_48) | Gets rectangle which fits the current image. | +| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_49) | Gets rectangle which fits the current image. | +| [get_modify_date(use_default)](#get_modify_date_use_default_50) | Gets the date and time the resource image was last modified. | +| [get_original_options()](#get_original_options__51) | Retrieve options derived from the original file settings, facilitating seamless
preservation of key parameters such as bit-depth and other essential attributes of
the original image. Utilize this method to maintain fidelity and consistency in
image processing tasks, ensuring optimal results without unnecessary alterations.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | +| [get_pixel(x, y)](#get_pixel_x_y_52) | Gets an image pixel. | +| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_53) | Gets a proportional height. | +| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_54) | Gets a proportional width. | +| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_55) | Converts to aps. | +| [get_skew_angle()](#get_skew_angle__56) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | | grayscale() | Convert the image to its grayscale representation, transforming it into a
single-channel image where each pixel represents intensity. Integrate this method
into your image processing pipeline to simplify analysis and enhance
compatibility with grayscale-based algorithms, facilitating various computer
vision and image analysis tasks within your application. | -| [insert_frame(index, frame_to_insert)](#insert_frame_index_frame_to_insert_53) | Insert the new frame at the specified index within the frame sequence, ensuring
precise control over frame arrangement. Employ this method to manage frame
sequences effectively, facilitating dynamic manipulation and organization of image
content within your application. | -| [load(file_path)](#load_file_path_54) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(file_path, load_options)](#load_file_path_load_options_55) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(stream)](#load_stream_56) | Loads a new image from the specified stream. | -| [load(stream, load_options)](#load_stream_load_options_57) | Loads a new image from the specified stream. | -| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_58) | Loads 32-bit ARGB pixels. | -| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_59) | Loads 64-bit ARGB pixels. | -| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_60) | Loads pixels in CMYK format. | -| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_61) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_62) | Loads 32-bit ARGB pixels partially (by blocks). | -| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_63) | Loads 64-bit ARGB pixels partially by packs. | -| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_64) | Loads pixels partially by packs. | -| [load_pixels(rectangle)](#load_pixels_rectangle_65) | Loads pixels. | -| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_66) | Loads raw data. | -| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_67) | Loads raw data. | -| [load_stream(stream)](#load_stream_stream_68) | Loads a new image from the specified stream. | -| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_69) | Loads a new image from the specified stream. | -| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_70) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [insert_frame(index, frame_to_insert)](#insert_frame_index_frame_to_insert_57) | Insert the new frame at the specified index within the frame sequence, ensuring
precise control over frame arrangement. Employ this method to manage frame
sequences effectively, facilitating dynamic manipulation and organization of image
content within your application. | +| [load(file_path)](#load_file_path_58) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path, load_options)](#load_file_path_load_options_59) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(stream)](#load_stream_60) | Loads a new image from the specified stream. | +| [load(stream, load_options)](#load_stream_load_options_61) | Loads a new image from the specified stream. | +| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_62) | Loads 32-bit ARGB pixels. | +| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_63) | Loads 64-bit ARGB pixels. | +| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_64) | Loads pixels in CMYK format. | +| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_65) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_66) | Loads 32-bit ARGB pixels partially (by blocks). | +| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_67) | Loads 64-bit ARGB pixels partially by packs. | +| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_68) | Loads pixels partially by packs. | +| [load_pixels(rectangle)](#load_pixels_rectangle_69) | Loads pixels. | +| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_70) | Loads raw data. | +| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_71) | Loads raw data. | +| [load_stream(stream)](#load_stream_stream_72) | Loads a new image from the specified stream. | +| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_73) | Loads a new image from the specified stream. | +| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_74) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | | normalize_angle() | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | -| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_71) | Utilize the NormalizeAngle method specifically designed for scanned text documents
to rectify skewed scans, ensuring accurate alignment. Seamlessly
integrate this functionality into your text processing workflows to enhance
document readability and quality, improving overall efficiency in text recognition
and analysis tasks.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [TiffImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging.fileformats.tiff/tiffimage/) methods. | -| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_72) | Reads the whole scan line by the specified scan line index. | -| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_73) | Reads the whole scan line by the specified scan line index. | -| [remove_frame(frame)](#remove_frame_frame_74) | Efficiently remove the specified frame from the image sequence, facilitating
streamlined frame management within your application. Integrate this functionality
to enhance precision and flexibility in frame manipulation, ensuring seamless
organization and presentation of image content. | -| [remove_frame(index)](#remove_frame_index_75) | Removes the frame by its index. | -| [remove_frame_by_index(index)](#remove_frame_by_index_index_76) | Removes the frame by its index. | +| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_75) | Utilize the NormalizeAngle method specifically designed for scanned text documents
to rectify skewed scans, ensuring accurate alignment. Seamlessly
integrate this functionality into your text processing workflows to enhance
document readability and quality, improving overall efficiency in text recognition
and analysis tasks.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [TiffImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging.fileformats.tiff/tiffimage/) methods. | +| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_76) | Reads the whole scan line by the specified scan line index. | +| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_77) | Reads the whole scan line by the specified scan line index. | +| [remove_frame(frame)](#remove_frame_frame_78) | Efficiently remove the specified frame from the image sequence, facilitating
streamlined frame management within your application. Integrate this functionality
to enhance precision and flexibility in frame manipulation, ensuring seamless
organization and presentation of image content. | +| [remove_frame(index)](#remove_frame_index_79) | Removes the frame by its index. | +| [remove_frame_by_index(index)](#remove_frame_by_index_index_80) | Removes the frame by its index. | | remove_metadata() | Removes this image instance metadata by setting this [IHasXmpData.xmp_data](/imaging/python-net/aspose.imaging.xmp/ihasxmpdata/) and [IHasExifData.exif_data](/imaging/python-net/aspose.imaging.exif/ihasexifdata/) values to **None**. | -| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_77) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_78) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_79) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_frame(index, frame_to_replace)](#replace_frame_index_frame_to_replace_80) | Substitute the frame at the designated position with another frame seamlessly,
facilitating dynamic frame management within the image sequence. Integrate this
method to enhance flexibility and precision in frame manipulation, ensuring
optimal organization and presentation of image content within your application. | -| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_81) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_82) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [resize(new_width, new_height)](#resize_new_width_new_height_83) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_84) | Conduct a proportional resize operation on the image, preserving its aspect ratio
while adjusting its dimensions. Employ this method to dynamically scale images
within your application, ensuring consistent visual representation of content
integrity.
The proportional resize will resize each frame according to the ratio of _newWidth_/width and _newHeight_/height. | -| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_85) | Resizes the image. | -| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_86) | Resizes the image. | -| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_87) | Resizes the image. | -| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_88) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_89) | Conduct a proportional adjustment of the image's height, preserving its aspect
ratio for consistent visual integrity. Employ this method to dynamically resize
images within your application, ensuring optimal display across diverse platforms
and devices without compromising content quality. | -| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_90) | Resizes the height proportionally. | -| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_91) | Resizes the height proportionally. | -| [resize_proportional(new_width, new_height, resize_type)](#resize_proportional_new_width_new_height_resize_type_92) | Conduct a proportional resize operation on the image, preserving its aspect ratio
while adjusting its dimensions. Employ this method to dynamically scale images
within your application, ensuring consistent visual representation of content
integrity.
The proportional resize will resize each frame according to the ratio of _newWidth_/width and _newHeight_/height. | -| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_93) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_94) | Adjust the width of the image while maintaining its aspect ratio, ensuring
proportional resizing for optimal visual presentation. Utilize this method to
dynamically scale images within your application, facilitating consistent and
aesthetically pleasing rendering across various display contexts. | -| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_95) | Resizes the width proportionally. | -| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_96) | Resizes the width proportionally. | -| [rotate(angle)](#rotate_angle_97) | Rotate image around the center. | -| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_98) | Rotate the image around its center point by a specified angle, enabling precise
orientation adjustments. Incorporate this functionality into your image processing
pipeline to facilitate accurate transformations, ensuring optimal alignment and
presentation of visual content within your application. | -| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_99) | Perform rotation, flipping, or a combination of both operations exclusively on the
active frame. This method allows precise manipulation of individual frames within
the image sequence, enhancing flexibility in image editing and composition within
your application. | -| [rotate_flip_all(rotate_flip)](#rotate_flip_all_rotate_flip_100) | Rotates the flip all. | +| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_81) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_82) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_83) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_frame(index, frame_to_replace)](#replace_frame_index_frame_to_replace_84) | Substitute the frame at the designated position with another frame seamlessly,
facilitating dynamic frame management within the image sequence. Integrate this
method to enhance flexibility and precision in frame manipulation, ensuring
optimal organization and presentation of image content within your application. | +| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_85) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_86) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [resize(new_width, new_height)](#resize_new_width_new_height_87) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_88) | Conduct a proportional resize operation on the image, preserving its aspect ratio
while adjusting its dimensions. Employ this method to dynamically scale images
within your application, ensuring consistent visual representation of content
integrity.
The proportional resize will resize each frame according to the ratio of _newWidth_/width and _newHeight_/height. | +| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_89) | Adjust the size of the image based on specified settings, allowing for precise
control over dimensions, aspect ratio, and scaling behavior. Integrate this
method into your image processing workflow to achieve customized resizing
operations tailored to the specific requirements of your application. | +| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_90) | Resizes the image. | +| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_91) | Resizes the image. | +| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_92) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_93) | Conduct a proportional adjustment of the image's height, preserving its aspect
ratio for consistent visual integrity. Employ this method to dynamically resize
images within your application, ensuring optimal display across diverse platforms
and devices without compromising content quality. | +| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_94) | Resizes the height proportionally. | +| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_95) | Resizes the height proportionally. | +| [resize_proportional(new_width, new_height, resize_type)](#resize_proportional_new_width_new_height_resize_type_96) | Conduct a proportional resize operation on the image, preserving its aspect ratio
while adjusting its dimensions. Employ this method to dynamically scale images
within your application, ensuring consistent visual representation of content
integrity.
The proportional resize will resize each frame according to the ratio of _newWidth_/width and _newHeight_/height. | +| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_97) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_98) | Adjust the width of the image while maintaining its aspect ratio, ensuring
proportional resizing for optimal visual presentation. Utilize this method to
dynamically scale images within your application, facilitating consistent and
aesthetically pleasing rendering across various display contexts. | +| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_99) | Resizes the width proportionally. | +| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_100) | Resizes the width proportionally. | +| [rotate(angle)](#rotate_angle_101) | Rotate image around the center. | +| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_102) | Rotate the image around its center point by a specified angle, enabling precise
orientation adjustments. Incorporate this functionality into your image processing
pipeline to facilitate accurate transformations, ensuring optimal alignment and
presentation of visual content within your application. | +| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_103) | Perform rotation, flipping, or a combination of both operations exclusively on the
active frame. This method allows precise manipulation of individual frames within
the image sequence, enhancing flexibility in image editing and composition within
your application. | +| [rotate_flip_all(rotate_flip)](#rotate_flip_all_rotate_flip_104) | Rotates the flip all. | | save() | Saves the image data to the underlying stream. | -| [save(file_path)](#save_file_path_101) | Saves the image to the specified file location. | -| [save(file_path, options)](#save_file_path_options_102) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_103) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, over_write)](#save_file_path_over_write_104) | Saves the object's data to the specified file location. | -| [save(stream)](#save_stream_105) | Saves the object's data to the specified stream. | -| [save(stream, options_base)](#save_stream_options_base_106) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_107) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_108) | Saves the 32-bit ARGB pixels. | -| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_109) | Saves the pixels. | -| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_110) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_111) | Saves the pixels internal main. | -| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_112) | Saves the raw data. | -| [save_to_stream(stream)](#save_to_stream_stream_113) | Saves image to stream | -| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_114) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_115) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_with_options(file_path, options)](#save_with_options_file_path_options_116) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_117) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_118) | Sets an image 32-bit ARGB pixel for the specified position. | -| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_119) | Sets the image palette. | -| [set_pixel(x, y, color)](#set_pixel_x_y_color_120) | Sets an image pixel for the specified position. | -| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_121) | Establishes the resolution for the specified [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/), enabling
precise control over image rendering and display properties. Integrate this
functionality to optimize visual output and ensure compatibility with diverse
output devices and platforms, enhancing the overall user experience. | -| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_122) | Writes the whole scan line to the specified scan line index. | -| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_123) | Writes the whole scan line to the specified scan line index. | +| [save(file_path)](#save_file_path_105) | Saves the image to the specified file location. | +| [save(file_path, options)](#save_file_path_options_106) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_107) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, over_write)](#save_file_path_over_write_108) | Saves the object's data to the specified file location. | +| [save(stream)](#save_stream_109) | Saves the object's data to the specified stream. | +| [save(stream, options_base)](#save_stream_options_base_110) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_111) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_112) | Saves the 32-bit ARGB pixels. | +| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_113) | Saves the pixels. | +| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_114) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_115) | Saves the pixels internal main. | +| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_116) | Saves the raw data. | +| [save_to_stream(stream)](#save_to_stream_stream_117) | Saves image to stream | +| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_118) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_119) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_with_options(file_path, options)](#save_with_options_file_path_options_120) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_121) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_122) | Sets an image 32-bit ARGB pixel for the specified position. | +| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_123) | Sets the image palette. | +| [set_pixel(x, y, color)](#set_pixel_x_y_color_124) | Sets an image pixel for the specified position. | +| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_125) | Establishes the resolution for the specified [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/), enabling
precise control over image rendering and display properties. Integrate this
functionality to optimize visual output and ensure compatibility with diverse
output devices and platforms, enhancing the overall user experience. | +| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_126) | Writes the whole scan line to the specified scan line index. | +| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_127) | Writes the whole scan line to the specified scan line index. | ### Constructor: BigTiffImage(frame) {#BigTiffImage_frame_1} @@ -616,7 +620,7 @@ Determines whether image can be saved to the specified file format represented b create(files) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -638,7 +642,7 @@ Creates the specified files. create(files, throw_exception_on_load_error) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -745,7 +749,97 @@ Creates the specified multipage create options. | [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | -### Method: create_with_frame(frame) [static] {#create_with_frame_frame_28} +### Method: create_from_files(files) [static] {#create_from_files_files_28} + + +``` + create_from_files(files) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_files(files, throw_exception_on_load_error) [static] {#create_from_files_files_throw_exception_on_load_error_29} + + +``` + create_from_files(files, throw_exception_on_load_error) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | +| throw_exception_on_load_error | bool | if set to true throw exception on load error. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_images(images) [static] {#create_from_images_images_30} + + +``` + create_from_images(images) +``` + +Creates a new image using the specified images as pages + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_images(images, dispose_images) [static] {#create_from_images_images_dispose_images_31} + + +``` + create_from_images(images, dispose_images) +``` + +Creates a new image the specified images as pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | +| dispose_images | bool | if set to true [dispose images]. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_with_frame(frame) [static] {#create_with_frame_frame_32} ``` @@ -767,7 +861,7 @@ Initializes a new instance of the [BigTiffImage](/imaging/python-net/aspose.imag | [BigTiffImage](/imaging/python-net/aspose.imaging.fileformats.bigtiff/bigtiffimage) | A new BigTiffImage image that includes the frame. | -### Method: create_with_frames(frames) [static] {#create_with_frames_frames_29} +### Method: create_with_frames(frames) [static] {#create_with_frames_frames_33} ``` @@ -789,7 +883,7 @@ Initializes a new instance of the [BigTiffImage](/imaging/python-net/aspose.imag | [BigTiffImage](/imaging/python-net/aspose.imaging.fileformats.bigtiff/bigtiffimage) | | -### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_30} +### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_34} ``` @@ -807,7 +901,7 @@ Perform cropping on the image by specifying shifts in the left, right, top, and | top_shift | int | The top shift. | | bottom_shift | int | The bottom shift. | -### Method: crop(rectangle) {#crop_rectangle_31} +### Method: crop(rectangle) {#crop_rectangle_35} ``` @@ -822,7 +916,7 @@ Crop the image using a specified rectangular region, allowing precise selection | :- | :- | :- | | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | -### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_32} +### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_36} ``` @@ -838,7 +932,7 @@ Performs dithering on the current image. | dithering_method | [DitheringMethod](/imaging/python-net/aspose.imaging/ditheringmethod) | The dithering method. | | bits_count | int | The final bits count for dithering. | -### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_33} +### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_37} ``` @@ -855,7 +949,7 @@ Execute dithering on the current image to enhance its visual quality and reduce | bits_count | int | The final bits count for dithering. | | custom_palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The custom palette for dithering. | -### Method: filter(rectangle, options) {#filter_rectangle_options_34} +### Method: filter(rectangle, options) {#filter_rectangle_options_38} ``` @@ -871,7 +965,7 @@ Filter the content within the specified rectangle, applying a designated image < | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | | options | [FilterOptionsBase](/imaging/python-net/aspose.imaging.imagefilters.filteroptions/filteroptionsbase/) | The options. | -### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_35} +### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_39} ``` @@ -894,7 +988,7 @@ Gets an image 32-bit ARGB pixel. | int | The 32-bit ARGB pixel for the specified location. | -### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_36} +### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_40} ``` @@ -916,7 +1010,7 @@ Gets the default 32-bit ARGB pixels array. | int | The default pixels array. | -### Method: get_default_options(args) {#get_default_options_args_37} +### Method: get_default_options(args) {#get_default_options_args_41} ``` @@ -938,7 +1032,7 @@ Gets the default options. | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Default options | -### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_38} +### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_42} ``` @@ -954,7 +1048,7 @@ Gets the default pixels array using partial pixel loader. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to get pixels for. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_39} +### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_43} ``` @@ -971,7 +1065,7 @@ Gets the default raw data array using partial pixel loader. | partial_raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The partial raw data loader. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings. | -### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_40} +### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_44} ``` @@ -994,7 +1088,7 @@ Gets the default raw data array. | byte | The default raw data array. | -### Method: get_file_format(file_path) [static] {#get_file_format_file_path_41} +### Method: get_file_format(file_path) [static] {#get_file_format_file_path_45} ``` @@ -1016,7 +1110,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format(stream) [static] {#get_file_format_stream_42} +### Method: get_file_format(stream) [static] {#get_file_format_stream_46} ``` @@ -1038,7 +1132,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_43} +### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_47} ``` @@ -1060,7 +1154,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_44} +### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_48} ``` @@ -1085,7 +1179,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_45} +### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_49} ``` @@ -1109,7 +1203,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_modify_date(use_default) {#get_modify_date_use_default_46} +### Method: get_modify_date(use_default) {#get_modify_date_use_default_50} ``` @@ -1131,7 +1225,7 @@ Gets the date and time the resource image was last modified. | datetime | The date and time the resource image was last modified. | -### Method: get_original_options() {#get_original_options__47} +### Method: get_original_options() {#get_original_options__51} ``` @@ -1147,7 +1241,7 @@ Retrieve options derived from the original file settings, facilitating seamless | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options based on the original file settings. | -### Method: get_pixel(x, y) {#get_pixel_x_y_48} +### Method: get_pixel(x, y) {#get_pixel_x_y_52} ``` @@ -1170,7 +1264,7 @@ Gets an image pixel. | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified location. | -### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_49} +### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_53} ``` @@ -1194,7 +1288,7 @@ Gets a proportional height. | int | The proportional height. | -### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_50} +### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_54} ``` @@ -1218,7 +1312,7 @@ Gets a proportional width. | int | The proportional width. | -### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_51} +### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_55} ``` @@ -1242,7 +1336,7 @@ Converts to aps. | _io.BufferedRandom | The serialized stream | -### Method: get_skew_angle() {#get_skew_angle__52} +### Method: get_skew_angle() {#get_skew_angle__56} ``` @@ -1258,7 +1352,7 @@ Gets the skew angle.
This method is applicable to scanned text d | float | The skew angle, in degrees. | -### Method: insert_frame(index, frame_to_insert) {#insert_frame_index_frame_to_insert_53} +### Method: insert_frame(index, frame_to_insert) {#insert_frame_index_frame_to_insert_57} ``` @@ -1274,7 +1368,7 @@ Insert the new frame at the specified index within the frame sequence, ensuring | index | int | Index of new frame in list of frames | | frame_to_insert | [TiffFrame](/imaging/python-net/aspose.imaging.fileformats.tiff/tiffframe/) | The frame To Insert. | -### Method: load(file_path) [static] {#load_file_path_54} +### Method: load(file_path) [static] {#load_file_path_58} ``` @@ -1296,7 +1390,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(file_path, load_options) [static] {#load_file_path_load_options_55} +### Method: load(file_path, load_options) [static] {#load_file_path_load_options_59} ``` @@ -1319,7 +1413,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream) [static] {#load_stream_56} +### Method: load(stream) [static] {#load_stream_60} ``` @@ -1341,7 +1435,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream, load_options) [static] {#load_stream_load_options_57} +### Method: load(stream, load_options) [static] {#load_stream_load_options_61} ``` @@ -1364,7 +1458,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_58} +### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_62} ``` @@ -1386,7 +1480,7 @@ Loads 32-bit ARGB pixels. | int | The loaded 32-bit ARGB pixels array. | -### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_59} +### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_63} ``` @@ -1408,7 +1502,7 @@ Loads 64-bit ARGB pixels. | long | The loaded 64-bit ARGB pixels array. | -### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_60} +### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_64} ``` @@ -1430,7 +1524,7 @@ Loads pixels in CMYK format. | int | The loaded CMYK pixels presentes as 32-bit inateger values. | -### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_61} +### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_65} ``` @@ -1452,7 +1546,7 @@ Loads pixels in CMYK format.
This method is deprecated. Please u | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The loaded CMYK pixels array. | -### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_62} +### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_66} ``` @@ -1468,7 +1562,7 @@ Loads 32-bit ARGB pixels partially (by blocks). | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to load pixels from. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_63} +### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_67} ``` @@ -1484,7 +1578,7 @@ Loads 64-bit ARGB pixels partially by packs. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | partial_pixel_loader | [IPartialArgb64PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb64pixelloader) | The 64-bit ARGB pixel loader. | -### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_64} +### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_68} ``` @@ -1500,7 +1594,7 @@ Loads pixels partially by packs. | desired_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | pixel_loader | [IPartialPixelLoader](/imaging/python-net/aspose.imaging/ipartialpixelloader) | The pixel loader. | -### Method: load_pixels(rectangle) {#load_pixels_rectangle_65} +### Method: load_pixels(rectangle) {#load_pixels_rectangle_69} ``` @@ -1522,7 +1616,7 @@ Loads pixels. | [Color[]](/imaging/python-net/aspose.imaging/color) | The loaded pixels array. | -### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_66} +### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_70} ``` @@ -1540,7 +1634,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_67} +### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_71} ``` @@ -1557,7 +1651,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_stream(stream) [static] {#load_stream_stream_68} +### Method: load_stream(stream) [static] {#load_stream_stream_72} ``` @@ -1579,7 +1673,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_69} +### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_73} ``` @@ -1602,7 +1696,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_70} +### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_74} ``` @@ -1625,7 +1719,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_71} +### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_75} ``` @@ -1641,7 +1735,7 @@ Utilize the NormalizeAngle method specifically designed for scanned text documen | resize_proportionally | bool | if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_72} +### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_76} ``` @@ -1663,7 +1757,7 @@ Reads the whole scan line by the specified scan line index. | int | The scan line 32-bit ARGB color values array. | -### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_73} +### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_77} ``` @@ -1685,7 +1779,7 @@ Reads the whole scan line by the specified scan line index. | [Color[]](/imaging/python-net/aspose.imaging/color) | The scan line pixel color values array. | -### Method: remove_frame(frame) {#remove_frame_frame_74} +### Method: remove_frame(frame) {#remove_frame_frame_78} ``` @@ -1700,7 +1794,7 @@ Efficiently remove the specified frame from the image sequence, facilitating
control over dimensions, aspect ratio, and scaling behavior. Integrate this
method into your image processing workflow to achieve customized resizing
operations tailored to the specific requirements of your application. **Parameters:** @@ -1898,7 +1992,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_86} +### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_90} ``` @@ -1915,7 +2009,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_87} +### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_91} ``` @@ -1932,7 +2026,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_88} +### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_92} ``` @@ -1947,7 +2041,7 @@ Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RES | :- | :- | :- | | new_height | int | The new height. | -### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_89} +### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_93} ``` @@ -1963,7 +2057,7 @@ Conduct a proportional adjustment of the image's height, preserving its aspect < | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_90} +### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_94} ``` @@ -1979,7 +2073,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_91} +### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_95} ``` @@ -1995,7 +2089,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_proportional(new_width, new_height, resize_type) {#resize_proportional_new_width_new_height_resize_type_92} +### Method: resize_proportional(new_width, new_height, resize_type) {#resize_proportional_new_width_new_height_resize_type_96} ``` @@ -2012,7 +2106,7 @@ Conduct a proportional resize operation on the image, preserving its aspect rati | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_93} +### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_97} ``` @@ -2027,7 +2121,7 @@ Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESA | :- | :- | :- | | new_width | int | The new width. | -### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_94} +### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_98} ``` @@ -2043,7 +2137,7 @@ Adjust the width of the image while maintaining its aspect ratio, ensuring
| new_width | int | The new width. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_95} +### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_99} ``` @@ -2059,7 +2153,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_96} +### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_100} ``` @@ -2075,7 +2169,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: rotate(angle) {#rotate_angle_97} +### Method: rotate(angle) {#rotate_angle_101} ``` @@ -2090,7 +2184,7 @@ Rotate image around the center. | :- | :- | :- | | angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | -### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_98} +### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_102} ``` @@ -2107,7 +2201,7 @@ Rotate the image around its center point by a specified angle, enabling precise | resize_proportionally | bool | if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_99} +### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_103} ``` @@ -2122,7 +2216,7 @@ Perform rotation, flipping, or a combination of both operations exclusively on t | :- | :- | :- | | rotate_flip_type | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | The rotate flip type. | -### Method: rotate_flip_all(rotate_flip) {#rotate_flip_all_rotate_flip_100} +### Method: rotate_flip_all(rotate_flip) {#rotate_flip_all_rotate_flip_104} ``` @@ -2137,7 +2231,7 @@ Rotates the flip all. | :- | :- | :- | | rotate_flip | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | The rotate flip. | -### Method: save(file_path) {#save_file_path_101} +### Method: save(file_path) {#save_file_path_105} ``` @@ -2152,7 +2246,7 @@ Saves the image to the specified file location. | :- | :- | :- | | file_path | string | The file path to save the image to. | -### Method: save(file_path, options) {#save_file_path_options_102} +### Method: save(file_path, options) {#save_file_path_options_106} ``` @@ -2168,7 +2262,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_103} +### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_107} ``` @@ -2185,7 +2279,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: save(file_path, over_write) {#save_file_path_over_write_104} +### Method: save(file_path, over_write) {#save_file_path_over_write_108} ``` @@ -2201,7 +2295,7 @@ Saves the object's data to the specified file location. | file_path | string | The file path to save the object's data to. | | over_write | bool | if set to true over write the file contents, otherwise append will occur. | -### Method: save(stream) {#save_stream_105} +### Method: save(stream) {#save_stream_109} ``` @@ -2216,7 +2310,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save(stream, options_base) {#save_stream_options_base_106} +### Method: save(stream, options_base) {#save_stream_options_base_110} ``` @@ -2232,7 +2326,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_107} +### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_111} ``` @@ -2249,7 +2343,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_108} +### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_112} ``` @@ -2265,7 +2359,7 @@ Saves the 32-bit ARGB pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The 32-bit ARGB pixels array. | -### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_109} +### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_113} ``` @@ -2281,7 +2375,7 @@ Saves the pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The CMYK pixels presented as the 32-bit integer values. | -### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_110} +### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_114} ``` @@ -2297,7 +2391,7 @@ Saves the pixels.
This method is deprecated. Please use more eff | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The CMYK pixels array. | -### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_111} +### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_115} ``` @@ -2313,7 +2407,7 @@ Saves the pixels internal main. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | | pixels | [Color[]](/imaging/python-net/aspose.imaging/color) | The pixels. | -### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_112} +### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_116} ``` @@ -2331,7 +2425,7 @@ Saves the raw data. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The raw data rectangle. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings the data is in. | -### Method: save_to_stream(stream) {#save_to_stream_stream_113} +### Method: save_to_stream(stream) {#save_to_stream_stream_117} ``` @@ -2346,7 +2440,7 @@ Saves image to stream | :- | :- | :- | | stream | _io.BufferedRandom | | -### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_114} +### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_118} ``` @@ -2362,7 +2456,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_115} +### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_119} ``` @@ -2379,7 +2473,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_116} +### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_120} ``` @@ -2395,7 +2489,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_117} +### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_121} ``` @@ -2412,7 +2506,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_118} +### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_122} ``` @@ -2429,7 +2523,7 @@ Sets an image 32-bit ARGB pixel for the specified position. | y | int | The pixel y location. | | argb_32_color | int | The 32-bit ARGB pixel for the specified position. | -### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_119} +### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_123} ``` @@ -2445,7 +2539,7 @@ Sets the image palette. | palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The palette to set. | | update_colors | bool | if set to true colors will be updated according to the new palette; otherwise color indexes remain unchanged. Note that unchanged indexes may crash the image on loading if some indexes have no corresponding palette entries. | -### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_120} +### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_124} ``` @@ -2462,7 +2556,7 @@ Sets an image pixel for the specified position. | y | int | The pixel y location. | | color | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified position. | -### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_121} +### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_125} ``` @@ -2478,7 +2572,7 @@ Establishes the resolution for the specified [RasterImage](/imaging/python-net/a | dpi_x | double | The horizontal resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | | dpi_y | double | The vertical resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_122} +### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_126} ``` @@ -2494,7 +2588,7 @@ Writes the whole scan line to the specified scan line index. | scan_line_index | int | Zero based index of the scan line. | | argb_32_pixels | int | The 32-bit ARGB colors array to write. | -### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_123} +### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_127} ``` diff --git a/english/python-net/aspose.imaging.fileformats.bmp/bmpimage/_index.md b/english/python-net/aspose.imaging.fileformats.bmp/bmpimage/_index.md index 67d3c37fed..c22c8962cd 100644 --- a/english/python-net/aspose.imaging.fileformats.bmp/bmpimage/_index.md +++ b/english/python-net/aspose.imaging.fileformats.bmp/bmpimage/_index.md @@ -86,108 +86,112 @@ url: /python-net/aspose.imaging.fileformats.bmp/bmpimage/ | [can_load_stream_with_options(stream, load_options)](#can_load_stream_with_options_stream_load_options_15) | Determines whether image can be loaded from the specified stream and optionally using the specified _loadOptions_. | | [can_load_with_options(file_path, load_options)](#can_load_with_options_file_path_load_options_16) | Determines whether image can be loaded from the specified file path and optionally using the specified open options. | | [can_save(options)](#can_save_options_17) | Determines whether image can be saved to the specified file format represented by the passed save options. | -| [create(files)](#create_files_18) | Creates the specified files. | -| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_19) | Creates the specified files. | +| [create(files)](#create_files_18) | Creates the multipage image containing the specified files. | +| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_19) | Creates the multipage image containing the specified files. | | [create(image_options, width, height)](#create_image_options_width_height_20) | Creates a new image using the specified create options. | | [create(images)](#create_images_21) | Creates a new image using the specified images as pages | | [create(images, dispose_images)](#create_images_dispose_images_22) | Creates a new image the specified images as pages. | | [create(multipage_create_options)](#create_multipage_create_options_23) | Creates the specified multipage create options. | | [create_from_file_with_params(path, bits_per_pixel, compression, horizontal_resolution, vertical_resolution)](#create_from_file_with_params_path_bits_per_pixel_compression_horizontal_resolution_vertical_resolution_24) | Easily begin using the BmpImage class with this constructor, simplifying
the process of initializing a new instance. Ideal for developers seeking
a quick and efficient way to incorporate [BmpImage](/imaging/python-net/aspose.imaging.fileformats.bmp/bmpimage/) objects into their projects. | -| [create_from_image(raster_image)](#create_from_image_raster_image_25) | Initializes a new instance of the [BmpImage](/imaging/python-net/aspose.imaging.fileformats.bmp/bmpimage/) class. | -| [create_from_image_with_params(raster_image, bits_per_pixel, compression, horizontal_resolution, vertical_resolution)](#create_from_image_with_params_raster_image_bits_per_pixel_compression_horizontal_resolution_vertical_resolution_26) | Initializes a new instance of the [BmpImage](/imaging/python-net/aspose.imaging.fileformats.bmp/bmpimage/) class. | -| [create_from_stream(stream)](#create_from_stream_stream_27) | Initializes a new instance of the [BmpImage](/imaging/python-net/aspose.imaging.fileformats.bmp/bmpimage/) class. | -| [create_from_stream_with_params(stream, bits_per_pixel, compression, horizontal_resolution, vertical_resolution)](#create_from_stream_with_params_stream_bits_per_pixel_compression_horizontal_resolution_vertical_resolution_28) | Initializes a new instance of the [BmpImage](/imaging/python-net/aspose.imaging.fileformats.bmp/bmpimage/) class. | -| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_29) | Crop image with shifts. | -| [crop(rectangle)](#crop_rectangle_30) | Cropping the image. | -| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_31) | Performs dithering on the current image. | -| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_32) | Performs dithering on the current image. | -| [filter(rectangle, options)](#filter_rectangle_options_33) | Filters the specified rectangle. | -| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_34) | Gets an image 32-bit ARGB pixel. | -| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_35) | Gets the default 32-bit ARGB pixels array. | -| [get_default_options(args)](#get_default_options_args_36) | Retrieve the default options effortlessly with this straightforward method.
Ideal for developers seeking quick access to default image settings or configurations. | -| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_37) | Gets the default pixels array using partial pixel loader. | -| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_38) | Gets the default raw data array using partial pixel loader. | -| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_39) | Gets the default raw data array. | -| [get_file_format(file_path)](#get_file_format_file_path_40) | Gets the file format. | -| [get_file_format(stream)](#get_file_format_stream_41) | Gets the file format. | -| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_42) | Gets the file format. | -| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_43) | Gets rectangle which fits the current image. | -| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_44) | Gets rectangle which fits the current image. | -| [get_modify_date(use_default)](#get_modify_date_use_default_45) | Gets the date and time the resource image was last modified. | -| [get_original_options()](#get_original_options__46) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | -| [get_pixel(x, y)](#get_pixel_x_y_47) | Gets an image pixel. | -| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_48) | Gets a proportional height. | -| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_49) | Gets a proportional width. | -| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_50) | Converts to aps. | -| [get_skew_angle()](#get_skew_angle__51) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | +| [create_from_files(files)](#create_from_files_files_25) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_files(files, throw_exception_on_load_error)](#create_from_files_files_throw_exception_on_load_error_26) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_image(raster_image)](#create_from_image_raster_image_27) | Initializes a new instance of the [BmpImage](/imaging/python-net/aspose.imaging.fileformats.bmp/bmpimage/) class. | +| [create_from_image_with_params(raster_image, bits_per_pixel, compression, horizontal_resolution, vertical_resolution)](#create_from_image_with_params_raster_image_bits_per_pixel_compression_horizontal_resolution_vertical_resolution_28) | Initializes a new instance of the [BmpImage](/imaging/python-net/aspose.imaging.fileformats.bmp/bmpimage/) class. | +| [create_from_images(images)](#create_from_images_images_29) | Creates a new image using the specified images as pages | +| [create_from_images(images, dispose_images)](#create_from_images_images_dispose_images_30) | Creates a new image the specified images as pages. | +| [create_from_stream(stream)](#create_from_stream_stream_31) | Initializes a new instance of the [BmpImage](/imaging/python-net/aspose.imaging.fileformats.bmp/bmpimage/) class. | +| [create_from_stream_with_params(stream, bits_per_pixel, compression, horizontal_resolution, vertical_resolution)](#create_from_stream_with_params_stream_bits_per_pixel_compression_horizontal_resolution_vertical_resolution_32) | Initializes a new instance of the [BmpImage](/imaging/python-net/aspose.imaging.fileformats.bmp/bmpimage/) class. | +| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_33) | Crop image with shifts. | +| [crop(rectangle)](#crop_rectangle_34) | Cropping the image. | +| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_35) | Performs dithering on the current image. | +| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_36) | Performs dithering on the current image. | +| [filter(rectangle, options)](#filter_rectangle_options_37) | Filters the specified rectangle. | +| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_38) | Gets an image 32-bit ARGB pixel. | +| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_39) | Gets the default 32-bit ARGB pixels array. | +| [get_default_options(args)](#get_default_options_args_40) | Retrieve the default options effortlessly with this straightforward method.
Ideal for developers seeking quick access to default image settings or configurations. | +| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_41) | Gets the default pixels array using partial pixel loader. | +| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_42) | Gets the default raw data array using partial pixel loader. | +| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_43) | Gets the default raw data array. | +| [get_file_format(file_path)](#get_file_format_file_path_44) | Gets the file format. | +| [get_file_format(stream)](#get_file_format_stream_45) | Gets the file format. | +| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_46) | Gets the file format. | +| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_47) | Gets rectangle which fits the current image. | +| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_48) | Gets rectangle which fits the current image. | +| [get_modify_date(use_default)](#get_modify_date_use_default_49) | Gets the date and time the resource image was last modified. | +| [get_original_options()](#get_original_options__50) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | +| [get_pixel(x, y)](#get_pixel_x_y_51) | Gets an image pixel. | +| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_52) | Gets a proportional height. | +| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_53) | Gets a proportional width. | +| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_54) | Converts to aps. | +| [get_skew_angle()](#get_skew_angle__55) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | | grayscale() | Transformation of an image to its grayscale representation | -| [load(file_path)](#load_file_path_52) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(file_path, load_options)](#load_file_path_load_options_53) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(stream)](#load_stream_54) | Loads a new image from the specified stream. | -| [load(stream, load_options)](#load_stream_load_options_55) | Loads a new image from the specified stream. | -| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_56) | Loads 32-bit ARGB pixels. | -| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_57) | Loads 64-bit ARGB pixels. | -| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_58) | Loads pixels in CMYK format. | -| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_59) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_60) | Loads 32-bit ARGB pixels partially (by blocks). | -| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_61) | Loads 64-bit ARGB pixels partially by packs. | -| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_62) | Loads pixels partially by packs. | -| [load_pixels(rectangle)](#load_pixels_rectangle_63) | Loads pixels. | -| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_64) | Loads raw data. | -| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_65) | Loads raw data. | -| [load_stream(stream)](#load_stream_stream_66) | Loads a new image from the specified stream. | -| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_67) | Loads a new image from the specified stream. | -| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_68) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path)](#load_file_path_56) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path, load_options)](#load_file_path_load_options_57) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(stream)](#load_stream_58) | Loads a new image from the specified stream. | +| [load(stream, load_options)](#load_stream_load_options_59) | Loads a new image from the specified stream. | +| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_60) | Loads 32-bit ARGB pixels. | +| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_61) | Loads 64-bit ARGB pixels. | +| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_62) | Loads pixels in CMYK format. | +| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_63) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_64) | Loads 32-bit ARGB pixels partially (by blocks). | +| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_65) | Loads 64-bit ARGB pixels partially by packs. | +| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_66) | Loads pixels partially by packs. | +| [load_pixels(rectangle)](#load_pixels_rectangle_67) | Loads pixels. | +| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_68) | Loads raw data. | +| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_69) | Loads raw data. | +| [load_stream(stream)](#load_stream_stream_70) | Loads a new image from the specified stream. | +| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_71) | Loads a new image from the specified stream. | +| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_72) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | | normalize_angle() | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | -| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_69) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | -| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_70) | Reads the whole scan line by the specified scan line index. | -| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_71) | Reads the whole scan line by the specified scan line index. | +| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_73) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | +| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_74) | Reads the whole scan line by the specified scan line index. | +| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_75) | Reads the whole scan line by the specified scan line index. | | remove_metadata() | Removes this image instance metadata by setting this [IHasXmpData.xmp_data](/imaging/python-net/aspose.imaging.xmp/ihasxmpdata/) value to **None**. | -| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_72) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_73) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_74) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_75) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_76) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [resize(new_width, new_height)](#resize_new_width_new_height_77) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_78) | Resizes the image. | -| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_79) | Resizes the image. | -| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_80) | Resizes the image. | -| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_81) | Resizes the image. | -| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_82) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_83) | Resizes the height proportionally. | -| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_84) | Resizes the height proportionally. | -| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_85) | Resizes the height proportionally. | -| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_86) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_87) | Resizes the width proportionally. | -| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_88) | Resizes the width proportionally. | -| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_89) | Resizes the width proportionally. | -| [rotate(angle)](#rotate_angle_90) | Rotate image around the center. | -| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_91) | Rotate image around the center. | -| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_92) | Rotates, flips, or rotates and flips the image. | +| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_76) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_77) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_78) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_79) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_80) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [resize(new_width, new_height)](#resize_new_width_new_height_81) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_82) | Resizes the image. | +| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_83) | Resizes the image. | +| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_84) | Resizes the image. | +| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_85) | Resizes the image. | +| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_86) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_87) | Resizes the height proportionally. | +| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_88) | Resizes the height proportionally. | +| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_89) | Resizes the height proportionally. | +| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_90) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_91) | Resizes the width proportionally. | +| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_92) | Resizes the width proportionally. | +| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_93) | Resizes the width proportionally. | +| [rotate(angle)](#rotate_angle_94) | Rotate image around the center. | +| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_95) | Rotate image around the center. | +| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_96) | Rotates, flips, or rotates and flips the image. | | save() | Saves the image data to the underlying stream. | -| [save(file_path)](#save_file_path_93) | Saves the image to the specified file location. | -| [save(file_path, options)](#save_file_path_options_94) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_95) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, over_write)](#save_file_path_over_write_96) | Saves the object's data to the specified file location. | -| [save(stream)](#save_stream_97) | Saves the object's data to the specified stream. | -| [save(stream, options_base)](#save_stream_options_base_98) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_99) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_100) | Saves the 32-bit ARGB pixels. | -| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_101) | Saves the pixels. | -| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_102) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_103) | Saves pixels (format specific method). | -| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_104) | Saves the raw data. | -| [save_to_stream(stream)](#save_to_stream_stream_105) | Saves the object's data to the specified stream. | -| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_106) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_107) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_with_options(file_path, options)](#save_with_options_file_path_options_108) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_109) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_110) | Sets an image 32-bit ARGB pixel for the specified position. | -| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_111) | Sets the image palette. | -| [set_pixel(x, y, color)](#set_pixel_x_y_color_112) | Sets an image pixel for the specified position. | -| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_113) | Adjust the resolution of your [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/) effortlessly with this
user-friendly method. Perfect for developers seeking precise control over
image resolution in their applications. | -| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_114) | Writes the whole scan line to the specified scan line index. | -| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_115) | Writes the whole scan line to the specified scan line index. | +| [save(file_path)](#save_file_path_97) | Saves the image to the specified file location. | +| [save(file_path, options)](#save_file_path_options_98) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_99) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, over_write)](#save_file_path_over_write_100) | Saves the object's data to the specified file location. | +| [save(stream)](#save_stream_101) | Saves the object's data to the specified stream. | +| [save(stream, options_base)](#save_stream_options_base_102) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_103) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_104) | Saves the 32-bit ARGB pixels. | +| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_105) | Saves the pixels. | +| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_106) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_107) | Saves pixels (format specific method). | +| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_108) | Saves the raw data. | +| [save_to_stream(stream)](#save_to_stream_stream_109) | Saves the object's data to the specified stream. | +| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_110) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_111) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_with_options(file_path, options)](#save_with_options_file_path_options_112) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_113) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_114) | Sets an image 32-bit ARGB pixel for the specified position. | +| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_115) | Sets the image palette. | +| [set_pixel(x, y, color)](#set_pixel_x_y_color_116) | Sets an image pixel for the specified position. | +| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_117) | Adjust the resolution of your [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/) effortlessly with this
user-friendly method. Perfect for developers seeking precise control over
image resolution in their applications. | +| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_118) | Writes the whole scan line to the specified scan line index. | +| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_119) | Writes the whole scan line to the specified scan line index. | ### Constructor: BmpImage(path) {#BmpImage_path_1} @@ -839,7 +843,7 @@ Determines whether image can be saved to the specified file format represented b create(files) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -861,7 +865,7 @@ Creates the specified files. create(files, throw_exception_on_load_error) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -994,7 +998,52 @@ Easily begin using the BmpImage class with this constructor, simplifying
| [BmpImage](/imaging/python-net/aspose.imaging.fileformats.bmp/bmpimage) | | -### Method: create_from_image(raster_image) [static] {#create_from_image_raster_image_25} +### Method: create_from_files(files) [static] {#create_from_files_files_25} + + +``` + create_from_files(files) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_files(files, throw_exception_on_load_error) [static] {#create_from_files_files_throw_exception_on_load_error_26} + + +``` + create_from_files(files, throw_exception_on_load_error) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | +| throw_exception_on_load_error | bool | if set to true throw exception on load error. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_image(raster_image) [static] {#create_from_image_raster_image_27} ``` @@ -1016,7 +1065,7 @@ Initializes a new instance of the [BmpImage](/imaging/python-net/aspose.imaging. | [BmpImage](/imaging/python-net/aspose.imaging.fileformats.bmp/bmpimage) | | -### Method: create_from_image_with_params(raster_image, bits_per_pixel, compression, horizontal_resolution, vertical_resolution) [static] {#create_from_image_with_params_raster_image_bits_per_pixel_compression_horizontal_resolution_vertical_resolution_26} +### Method: create_from_image_with_params(raster_image, bits_per_pixel, compression, horizontal_resolution, vertical_resolution) [static] {#create_from_image_with_params_raster_image_bits_per_pixel_compression_horizontal_resolution_vertical_resolution_28} ``` @@ -1042,7 +1091,52 @@ Initializes a new instance of the [BmpImage](/imaging/python-net/aspose.imaging. | [BmpImage](/imaging/python-net/aspose.imaging.fileformats.bmp/bmpimage) | | -### Method: create_from_stream(stream) [static] {#create_from_stream_stream_27} +### Method: create_from_images(images) [static] {#create_from_images_images_29} + + +``` + create_from_images(images) +``` + +Creates a new image using the specified images as pages + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_images(images, dispose_images) [static] {#create_from_images_images_dispose_images_30} + + +``` + create_from_images(images, dispose_images) +``` + +Creates a new image the specified images as pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | +| dispose_images | bool | if set to true [dispose images]. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_stream(stream) [static] {#create_from_stream_stream_31} ``` @@ -1064,7 +1158,7 @@ Initializes a new instance of the [BmpImage](/imaging/python-net/aspose.imaging. | [BmpImage](/imaging/python-net/aspose.imaging.fileformats.bmp/bmpimage) | | -### Method: create_from_stream_with_params(stream, bits_per_pixel, compression, horizontal_resolution, vertical_resolution) [static] {#create_from_stream_with_params_stream_bits_per_pixel_compression_horizontal_resolution_vertical_resolution_28} +### Method: create_from_stream_with_params(stream, bits_per_pixel, compression, horizontal_resolution, vertical_resolution) [static] {#create_from_stream_with_params_stream_bits_per_pixel_compression_horizontal_resolution_vertical_resolution_32} ``` @@ -1090,7 +1184,7 @@ Initializes a new instance of the [BmpImage](/imaging/python-net/aspose.imaging. | [BmpImage](/imaging/python-net/aspose.imaging.fileformats.bmp/bmpimage) | | -### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_29} +### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_33} ``` @@ -1108,7 +1202,7 @@ Crop image with shifts. | top_shift | int | The top shift. | | bottom_shift | int | The bottom shift. | -### Method: crop(rectangle) {#crop_rectangle_30} +### Method: crop(rectangle) {#crop_rectangle_34} ``` @@ -1123,7 +1217,7 @@ Cropping the image. | :- | :- | :- | | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | -### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_31} +### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_35} ``` @@ -1139,7 +1233,7 @@ Performs dithering on the current image. | dithering_method | [DitheringMethod](/imaging/python-net/aspose.imaging/ditheringmethod) | The dithering method. | | bits_count | int | The final bits count for dithering. | -### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_32} +### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_36} ``` @@ -1156,7 +1250,7 @@ Performs dithering on the current image. | bits_count | int | The final bits count for dithering. | | custom_palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The custom palette for dithering. | -### Method: filter(rectangle, options) {#filter_rectangle_options_33} +### Method: filter(rectangle, options) {#filter_rectangle_options_37} ``` @@ -1172,7 +1266,7 @@ Filters the specified rectangle. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | | options | [FilterOptionsBase](/imaging/python-net/aspose.imaging.imagefilters.filteroptions/filteroptionsbase/) | The options. | -### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_34} +### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_38} ``` @@ -1195,7 +1289,7 @@ Gets an image 32-bit ARGB pixel. | int | The 32-bit ARGB pixel for the specified location. | -### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_35} +### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_39} ``` @@ -1217,7 +1311,7 @@ Gets the default 32-bit ARGB pixels array. | int | The default pixels array. | -### Method: get_default_options(args) {#get_default_options_args_36} +### Method: get_default_options(args) {#get_default_options_args_40} ``` @@ -1239,7 +1333,7 @@ Retrieve the default options effortlessly with this straightforward method.
| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Default options | -### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_37} +### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_41} ``` @@ -1255,7 +1349,7 @@ Gets the default pixels array using partial pixel loader. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to get pixels for. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_38} +### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_42} ``` @@ -1272,7 +1366,7 @@ Gets the default raw data array using partial pixel loader. | partial_raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The partial raw data loader. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings. | -### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_39} +### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_43} ``` @@ -1295,7 +1389,7 @@ Gets the default raw data array. | byte | The default raw data array. | -### Method: get_file_format(file_path) [static] {#get_file_format_file_path_40} +### Method: get_file_format(file_path) [static] {#get_file_format_file_path_44} ``` @@ -1317,7 +1411,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format(stream) [static] {#get_file_format_stream_41} +### Method: get_file_format(stream) [static] {#get_file_format_stream_45} ``` @@ -1339,7 +1433,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_42} +### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_46} ``` @@ -1361,7 +1455,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_43} +### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_47} ``` @@ -1386,7 +1480,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_44} +### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_48} ``` @@ -1410,7 +1504,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_modify_date(use_default) {#get_modify_date_use_default_45} +### Method: get_modify_date(use_default) {#get_modify_date_use_default_49} ``` @@ -1432,7 +1526,7 @@ Gets the date and time the resource image was last modified. | datetime | The date and time the resource image was last modified. | -### Method: get_original_options() {#get_original_options__46} +### Method: get_original_options() {#get_original_options__50} ``` @@ -1448,7 +1542,7 @@ Gets the options based on the original file settings.
This can b | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options based on the original file settings. | -### Method: get_pixel(x, y) {#get_pixel_x_y_47} +### Method: get_pixel(x, y) {#get_pixel_x_y_51} ``` @@ -1471,7 +1565,7 @@ Gets an image pixel. | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified location. | -### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_48} +### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_52} ``` @@ -1495,7 +1589,7 @@ Gets a proportional height. | int | The proportional height. | -### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_49} +### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_53} ``` @@ -1519,7 +1613,7 @@ Gets a proportional width. | int | The proportional width. | -### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_50} +### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_54} ``` @@ -1543,7 +1637,7 @@ Converts to aps. | _io.BufferedRandom | The serialized stream | -### Method: get_skew_angle() {#get_skew_angle__51} +### Method: get_skew_angle() {#get_skew_angle__55} ``` @@ -1559,7 +1653,7 @@ Gets the skew angle.
This method is applicable to scanned text d | float | The skew angle, in degrees. | -### Method: load(file_path) [static] {#load_file_path_52} +### Method: load(file_path) [static] {#load_file_path_56} ``` @@ -1581,7 +1675,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(file_path, load_options) [static] {#load_file_path_load_options_53} +### Method: load(file_path, load_options) [static] {#load_file_path_load_options_57} ``` @@ -1604,7 +1698,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream) [static] {#load_stream_54} +### Method: load(stream) [static] {#load_stream_58} ``` @@ -1626,7 +1720,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream, load_options) [static] {#load_stream_load_options_55} +### Method: load(stream, load_options) [static] {#load_stream_load_options_59} ``` @@ -1649,7 +1743,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_56} +### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_60} ``` @@ -1671,7 +1765,7 @@ Loads 32-bit ARGB pixels. | int | The loaded 32-bit ARGB pixels array. | -### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_57} +### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_61} ``` @@ -1693,7 +1787,7 @@ Loads 64-bit ARGB pixels. | long | The loaded 64-bit ARGB pixels array. | -### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_58} +### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_62} ``` @@ -1715,7 +1809,7 @@ Loads pixels in CMYK format. | int | The loaded CMYK pixels presentes as 32-bit inateger values. | -### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_59} +### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_63} ``` @@ -1737,7 +1831,7 @@ Loads pixels in CMYK format.
This method is deprecated. Please u | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The loaded CMYK pixels array. | -### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_60} +### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_64} ``` @@ -1753,7 +1847,7 @@ Loads 32-bit ARGB pixels partially (by blocks). | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to load pixels from. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_61} +### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_65} ``` @@ -1769,7 +1863,7 @@ Loads 64-bit ARGB pixels partially by packs. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | partial_pixel_loader | [IPartialArgb64PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb64pixelloader) | The 64-bit ARGB pixel loader. | -### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_62} +### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_66} ``` @@ -1785,7 +1879,7 @@ Loads pixels partially by packs. | desired_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | pixel_loader | [IPartialPixelLoader](/imaging/python-net/aspose.imaging/ipartialpixelloader) | The pixel loader. | -### Method: load_pixels(rectangle) {#load_pixels_rectangle_63} +### Method: load_pixels(rectangle) {#load_pixels_rectangle_67} ``` @@ -1807,7 +1901,7 @@ Loads pixels. | [Color[]](/imaging/python-net/aspose.imaging/color) | The loaded pixels array. | -### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_64} +### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_68} ``` @@ -1825,7 +1919,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_65} +### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_69} ``` @@ -1842,7 +1936,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_stream(stream) [static] {#load_stream_stream_66} +### Method: load_stream(stream) [static] {#load_stream_stream_70} ``` @@ -1864,7 +1958,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_67} +### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_71} ``` @@ -1887,7 +1981,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_68} +### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_72} ``` @@ -1910,7 +2004,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_69} +### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_73} ``` @@ -1926,7 +2020,7 @@ Normalizes the angle.
This method is applicable to scanned text | resize_proportionally | bool | if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_70} +### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_74} ``` @@ -1948,7 +2042,7 @@ Reads the whole scan line by the specified scan line index. | int | The scan line 32-bit ARGB color values array. | -### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_71} +### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_75} ``` @@ -1970,7 +2064,7 @@ Reads the whole scan line by the specified scan line index. | [Color[]](/imaging/python-net/aspose.imaging/color) | The scan line pixel color values array. | -### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_72} +### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_76} ``` @@ -1987,7 +2081,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_73} +### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_77} ``` @@ -2004,7 +2098,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | New color to replace old color with. | -### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_74} +### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_78} ``` @@ -2021,7 +2115,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_75} +### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_79} ``` @@ -2036,7 +2130,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | New color to replace non transparent colors with. | -### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_76} +### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_80} ``` @@ -2051,7 +2145,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color_argb | int | New color ARGB value to replace non transparent colors with. | -### Method: resize(new_width, new_height) {#resize_new_width_new_height_77} +### Method: resize(new_width, new_height) {#resize_new_width_new_height_81} ``` @@ -2067,7 +2161,7 @@ Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/ | new_width | int | The new width. | | new_height | int | The new height. | -### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_78} +### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_82} ``` @@ -2084,7 +2178,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_79} +### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_83} ``` @@ -2101,7 +2195,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_80} +### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_84} ``` @@ -2118,7 +2212,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_81} +### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_85} ``` @@ -2135,7 +2229,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_82} +### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_86} ``` @@ -2150,7 +2244,7 @@ Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RES | :- | :- | :- | | new_height | int | The new height. | -### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_83} +### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_87} ``` @@ -2166,7 +2260,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_84} +### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_88} ``` @@ -2182,7 +2276,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_85} +### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_89} ``` @@ -2198,7 +2292,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_86} +### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_90} ``` @@ -2213,7 +2307,7 @@ Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESA | :- | :- | :- | | new_width | int | The new width. | -### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_87} +### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_91} ``` @@ -2229,7 +2323,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_88} +### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_92} ``` @@ -2245,7 +2339,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_89} +### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_93} ``` @@ -2261,7 +2355,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: rotate(angle) {#rotate_angle_90} +### Method: rotate(angle) {#rotate_angle_94} ``` @@ -2276,7 +2370,7 @@ Rotate image around the center. | :- | :- | :- | | angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | -### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_91} +### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_95} ``` @@ -2293,7 +2387,7 @@ Rotate image around the center. | resize_proportionally | bool | if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_92} +### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_96} ``` @@ -2308,7 +2402,7 @@ Rotates, flips, or rotates and flips the image. | :- | :- | :- | | rotate_flip_type | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | The rotate flip type. | -### Method: save(file_path) {#save_file_path_93} +### Method: save(file_path) {#save_file_path_97} ``` @@ -2323,7 +2417,7 @@ Saves the image to the specified file location. | :- | :- | :- | | file_path | string | The file path to save the image to. | -### Method: save(file_path, options) {#save_file_path_options_94} +### Method: save(file_path, options) {#save_file_path_options_98} ``` @@ -2339,7 +2433,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_95} +### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_99} ``` @@ -2356,7 +2450,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: save(file_path, over_write) {#save_file_path_over_write_96} +### Method: save(file_path, over_write) {#save_file_path_over_write_100} ``` @@ -2372,7 +2466,7 @@ Saves the object's data to the specified file location. | file_path | string | The file path to save the object's data to. | | over_write | bool | if set to true over write the file contents, otherwise append will occur. | -### Method: save(stream) {#save_stream_97} +### Method: save(stream) {#save_stream_101} ``` @@ -2387,7 +2481,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save(stream, options_base) {#save_stream_options_base_98} +### Method: save(stream, options_base) {#save_stream_options_base_102} ``` @@ -2403,7 +2497,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_99} +### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_103} ``` @@ -2420,7 +2514,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_100} +### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_104} ``` @@ -2436,7 +2530,7 @@ Saves the 32-bit ARGB pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The 32-bit ARGB pixels array. | -### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_101} +### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_105} ``` @@ -2452,7 +2546,7 @@ Saves the pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The CMYK pixels presented as the 32-bit integer values. | -### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_102} +### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_106} ``` @@ -2468,7 +2562,7 @@ Saves the pixels.
This method is deprecated. Please use more eff | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The CMYK pixels array. | -### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_103} +### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_107} ``` @@ -2484,7 +2578,7 @@ Saves pixels (format specific method). | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | [Color[]](/imaging/python-net/aspose.imaging/color) | The 32-bit ARGB pixels array. | -### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_104} +### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_108} ``` @@ -2502,7 +2596,7 @@ Saves the raw data. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The raw data rectangle. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings the data is in. | -### Method: save_to_stream(stream) {#save_to_stream_stream_105} +### Method: save_to_stream(stream) {#save_to_stream_stream_109} ``` @@ -2517,7 +2611,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_106} +### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_110} ``` @@ -2533,7 +2627,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_107} +### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_111} ``` @@ -2550,7 +2644,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_108} +### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_112} ``` @@ -2566,7 +2660,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_109} +### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_113} ``` @@ -2583,7 +2677,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_110} +### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_114} ``` @@ -2600,7 +2694,7 @@ Sets an image 32-bit ARGB pixel for the specified position. | y | int | The pixel y location. | | argb_32_color | int | The 32-bit ARGB pixel for the specified position. | -### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_111} +### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_115} ``` @@ -2616,7 +2710,7 @@ Sets the image palette. | palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The palette to set. | | update_colors | bool | if set to true colors will be updated according to the new palette; otherwise color indexes remain unchanged. Note that unchanged indexes may crash the image on loading if some indexes have no corresponding palette entries. | -### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_112} +### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_116} ``` @@ -2633,7 +2727,7 @@ Sets an image pixel for the specified position. | y | int | The pixel y location. | | color | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified position. | -### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_113} +### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_117} ``` @@ -2657,7 +2751,7 @@ Adjust the resolution of your [RasterImage](/imaging/python-net/aspose.imaging/r **[Example # 2](#example_88)**: The following example shows how to set horizontal/vertical resolution of a BM... -### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_114} +### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_118} ``` @@ -2673,7 +2767,7 @@ Writes the whole scan line to the specified scan line index. | scan_line_index | int | Zero based index of the scan line. | | argb_32_pixels | int | The 32-bit ARGB colors array to write. | -### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_115} +### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_119} ``` diff --git a/english/python-net/aspose.imaging.fileformats.cdr/cdrimage/_index.md b/english/python-net/aspose.imaging.fileformats.cdr/cdrimage/_index.md index b64c85683f..1367b09d2d 100644 --- a/english/python-net/aspose.imaging.fileformats.cdr/cdrimage/_index.md +++ b/english/python-net/aspose.imaging.fileformats.cdr/cdrimage/_index.md @@ -32,7 +32,7 @@ url: /python-net/aspose.imaging.fileformats.cdr/cdrimage/ | disposed | bool | r | Gets a value indicating whether this instance is disposed. | | file_format | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | r | Retrieve the file format of the image effortlessly with this intuitive property.
Ideal for developers seeking to determine the format of their images dynamically,
ensuring compatibility and accurate processing in their applications. | | has_background_color | bool | r/w | Gets or sets a value indicating whether image has background color. | -| height | int | r | Retrieve the height of the image effortlessly with this intuitive property.
Perfect for developers seeking to access the dimensions of their images dynamically,
ensuring accurate layout and rendering in their applications. | +| height | int | r | Gets the image height. | | height_f | float | r | Gets the object height, in inches. | | interrupt_monitor | [InterruptMonitor](/imaging/python-net/aspose.imaging.multithreading/interruptmonitor/) | r/w | Gets or sets the interrupt monitor. | | is_cached | bool | r | Effortlessly determine whether the object's data is currently cached,
eliminating the need for data reading. Ideal for developers seeking
to optimize performance by leveraging cached data efficiently, ensuring
faster access to object information. | @@ -42,7 +42,7 @@ url: /python-net/aspose.imaging.fileformats.cdr/cdrimage/ | size | [Size](/imaging/python-net/aspose.imaging/size) | r | Gets the object size. | | size_f | [SizeF](/imaging/python-net/aspose.imaging/sizef) | r | Gets the object size, in inches. | | use_palette | bool | r | Gets a value indicating whether the image palette is used. | -| width | int | r | Retrieve the width of the image seamlessly with this intuitive property.
Ideal for developers seeking to access the dimensions of their images dynamically,
ensuring precise layout and rendering in their applications. | +| width | int | r | Gets the image width. | | width_f | float | r | Gets the object width, in inches. | ## **Methods** | **Name** | **Description** | @@ -56,61 +56,68 @@ url: /python-net/aspose.imaging.fileformats.cdr/cdrimage/ | [can_load_stream_with_options(stream, load_options)](#can_load_stream_with_options_stream_load_options_6) | Determines whether image can be loaded from the specified stream and optionally using the specified _loadOptions_. | | [can_load_with_options(file_path, load_options)](#can_load_with_options_file_path_load_options_7) | Determines whether image can be loaded from the specified file path and optionally using the specified open options. | | [can_save(options)](#can_save_options_8) | Determines whether image can be saved to the specified file format represented by the passed save options. | -| [create(files)](#create_files_9) | Creates the specified files. | -| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_10) | Creates the specified files. | +| [create(files)](#create_files_9) | Creates the multipage image containing the specified files. | +| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_10) | Creates the multipage image containing the specified files. | | [create(image_options, width, height)](#create_image_options_width_height_11) | Creates a new image using the specified create options. | | [create(images)](#create_images_12) | Creates a new image using the specified images as pages | | [create(images, dispose_images)](#create_images_dispose_images_13) | Creates a new image the specified images as pages. | | [create(multipage_create_options)](#create_multipage_create_options_14) | Creates the specified multipage create options. | -| [get_default_options(args)](#get_default_options_args_15) | Retrieve the default options effortlessly with this user-friendly method.
Perfect for developers seeking quick access to the default settings or
configurations associated with an object, ensuring efficient customization
and streamlined workflow. | -| [get_embedded_images()](#get_embedded_images__16) | Gets the embedded images. | -| [get_file_format(file_path)](#get_file_format_file_path_17) | Gets the file format. | -| [get_file_format(stream)](#get_file_format_stream_18) | Gets the file format. | -| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_19) | Gets the file format. | -| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_20) | Gets rectangle which fits the current image. | -| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_21) | Gets rectangle which fits the current image. | -| [get_original_options()](#get_original_options__22) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | -| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_23) | Gets a proportional height. | -| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_24) | Gets a proportional width. | -| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_25) | Converts to aps. | -| [load(file_path)](#load_file_path_26) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(file_path, load_options)](#load_file_path_load_options_27) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(stream)](#load_stream_28) | Loads a new image from the specified stream. | -| [load(stream, load_options)](#load_stream_load_options_29) | Loads a new image from the specified stream. | -| [load_stream(stream)](#load_stream_stream_30) | Loads a new image from the specified stream. | -| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_31) | Loads a new image from the specified stream. | -| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_32) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [create_from_files(files)](#create_from_files_files_15) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_files(files, throw_exception_on_load_error)](#create_from_files_files_throw_exception_on_load_error_16) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_images(images)](#create_from_images_images_17) | Creates a new image using the specified images as pages | +| [create_from_images(images, dispose_images)](#create_from_images_images_dispose_images_18) | Creates a new image the specified images as pages. | +| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_19) | Crop image with shifts. | +| [crop(rectangle)](#crop_rectangle_20) | Crops the specified rectangle. | +| [get_default_options(args)](#get_default_options_args_21) | Retrieve the default options effortlessly with this user-friendly method.
Perfect for developers seeking quick access to the default settings or
configurations associated with an object, ensuring efficient customization
and streamlined workflow. | +| [get_embedded_images()](#get_embedded_images__22) | Gets the embedded images. | +| [get_file_format(file_path)](#get_file_format_file_path_23) | Gets the file format. | +| [get_file_format(stream)](#get_file_format_stream_24) | Gets the file format. | +| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_25) | Gets the file format. | +| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_26) | Gets rectangle which fits the current image. | +| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_27) | Gets rectangle which fits the current image. | +| [get_original_options()](#get_original_options__28) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | +| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_29) | Gets a proportional height. | +| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_30) | Gets a proportional width. | +| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_31) | Converts to aps. | +| [load(file_path)](#load_file_path_32) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path, load_options)](#load_file_path_load_options_33) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(stream)](#load_stream_34) | Loads a new image from the specified stream. | +| [load(stream, load_options)](#load_stream_load_options_35) | Loads a new image from the specified stream. | +| [load_stream(stream)](#load_stream_stream_36) | Loads a new image from the specified stream. | +| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_37) | Loads a new image from the specified stream. | +| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_38) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | | remove_background() | Removes the background. | -| [remove_background(settings)](#remove_background_settings_33) | Removes the background. | +| [remove_background(settings)](#remove_background_settings_39) | Removes the background. | | remove_metadata() | Removes metadata. | -| [resize(new_width, new_height)](#resize_new_width_new_height_34) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_35) | Resizes the image. | -| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_36) | Resizes the image. | -| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_37) | Resizes the image. | -| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_38) | Resizes the image. | -| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_39) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_40) | Resizes the height proportionally. | -| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_41) | Resizes the height proportionally. | -| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_42) | Resizes the height proportionally. | -| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_43) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_44) | Resizes the width proportionally. | -| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_45) | Resizes the width proportionally. | -| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_46) | Resizes the width proportionally. | -| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_47) | Adjust the orientation of the image by rotating, flipping, or applying both operations
with this versatile method. Perfect for developers seeking to customize image
orientation dynamically, ensuring optimal presentation or alignment in their applications. | +| [resize(new_width, new_height)](#resize_new_width_new_height_40) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_41) | Resizes the image. | +| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_42) | Resizes the image. | +| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_43) | Resizes the image. | +| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_44) | Resizes the image. | +| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_45) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_46) | Resizes the height proportionally. | +| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_47) | Resizes the height proportionally. | +| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_48) | Resizes the height proportionally. | +| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_49) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_50) | Resizes the width proportionally. | +| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_51) | Resizes the width proportionally. | +| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_52) | Resizes the width proportionally. | +| [rotate(angle)](#rotate_angle_53) | Rotate image around the center. | +| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_54) | Rotates, flips, or rotates and flips the image. | | save() | Saves the image data to the underlying stream. | -| [save(file_path)](#save_file_path_48) | Saves the image to the specified file location. | -| [save(file_path, options)](#save_file_path_options_49) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_50) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, over_write)](#save_file_path_over_write_51) | Saves the object's data to the specified file location. | -| [save(stream)](#save_stream_52) | Saves the data. | -| [save(stream, options_base)](#save_stream_options_base_53) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_54) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream(stream)](#save_to_stream_stream_55) | Saves the object's data to the specified stream. | -| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_56) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_57) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_with_options(file_path, options)](#save_with_options_file_path_options_58) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_59) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_60) | Customize the color palette of the image with this intuitive method. Ideal for
developers seeking to apply specific color schemes or adjustments dynamically,
ensuring precise control over the visual appearance of their images. | +| [save(file_path)](#save_file_path_55) | Saves the image to the specified file location. | +| [save(file_path, options)](#save_file_path_options_56) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_57) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, over_write)](#save_file_path_over_write_58) | Saves the object's data to the specified file location. | +| [save(stream)](#save_stream_59) | Saves the data. | +| [save(stream, options_base)](#save_stream_options_base_60) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_61) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream(stream)](#save_to_stream_stream_62) | Saves the object's data to the specified stream. | +| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_63) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_64) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_with_options(file_path, options)](#save_with_options_file_path_options_65) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_66) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_67) | Customize the color palette of the image with this intuitive method. Ideal for
developers seeking to apply specific color schemes or adjustments dynamically,
ensuring precise control over the visual appearance of their images. | ### Constructor: CdrImage(stream, load_options) {#CdrImage_stream_load_options_1} @@ -325,7 +332,7 @@ Determines whether image can be saved to the specified file format represented b create(files) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -347,7 +354,7 @@ Creates the specified files. create(files, throw_exception_on_load_error) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -454,7 +461,130 @@ Creates the specified multipage create options. | [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | -### Method: get_default_options(args) {#get_default_options_args_15} +### Method: create_from_files(files) [static] {#create_from_files_files_15} + + +``` + create_from_files(files) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_files(files, throw_exception_on_load_error) [static] {#create_from_files_files_throw_exception_on_load_error_16} + + +``` + create_from_files(files, throw_exception_on_load_error) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | +| throw_exception_on_load_error | bool | if set to true throw exception on load error. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_images(images) [static] {#create_from_images_images_17} + + +``` + create_from_images(images) +``` + +Creates a new image using the specified images as pages + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_images(images, dispose_images) [static] {#create_from_images_images_dispose_images_18} + + +``` + create_from_images(images, dispose_images) +``` + +Creates a new image the specified images as pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | +| dispose_images | bool | if set to true [dispose images]. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_19} + + +``` + crop(left_shift, right_shift, top_shift, bottom_shift) +``` + +Crop image with shifts. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| left_shift | int | The left shift. | +| right_shift | int | The right shift. | +| top_shift | int | The top shift. | +| bottom_shift | int | The bottom shift. | + +### Method: crop(rectangle) {#crop_rectangle_20} + + +``` + crop(rectangle) +``` + +Crops the specified rectangle. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | + +### Method: get_default_options(args) {#get_default_options_args_21} ``` @@ -476,7 +606,7 @@ Retrieve the default options effortlessly with this user-friendly method.
| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Default options | -### Method: get_embedded_images() {#get_embedded_images__16} +### Method: get_embedded_images() {#get_embedded_images__22} ``` @@ -492,7 +622,7 @@ Gets the embedded images. | [EmbeddedImage[]](/imaging/python-net/aspose.imaging/embeddedimage) | Array of images | -### Method: get_file_format(file_path) [static] {#get_file_format_file_path_17} +### Method: get_file_format(file_path) [static] {#get_file_format_file_path_23} ``` @@ -514,7 +644,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format(stream) [static] {#get_file_format_stream_18} +### Method: get_file_format(stream) [static] {#get_file_format_stream_24} ``` @@ -536,7 +666,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_19} +### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_25} ``` @@ -558,7 +688,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_20} +### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_26} ``` @@ -583,7 +713,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_21} +### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_27} ``` @@ -607,7 +737,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_original_options() {#get_original_options__22} +### Method: get_original_options() {#get_original_options__28} ``` @@ -623,7 +753,7 @@ Gets the options based on the original file settings.
This can b | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options based on the original file settings. | -### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_23} +### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_29} ``` @@ -647,7 +777,7 @@ Gets a proportional height. | int | The proportional height. | -### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_24} +### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_30} ``` @@ -671,7 +801,7 @@ Gets a proportional width. | int | The proportional width. | -### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_25} +### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_31} ``` @@ -695,7 +825,7 @@ Converts to aps. | _io.BufferedRandom | The serialized stream | -### Method: load(file_path) [static] {#load_file_path_26} +### Method: load(file_path) [static] {#load_file_path_32} ``` @@ -717,7 +847,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(file_path, load_options) [static] {#load_file_path_load_options_27} +### Method: load(file_path, load_options) [static] {#load_file_path_load_options_33} ``` @@ -740,7 +870,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream) [static] {#load_stream_28} +### Method: load(stream) [static] {#load_stream_34} ``` @@ -762,7 +892,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream, load_options) [static] {#load_stream_load_options_29} +### Method: load(stream, load_options) [static] {#load_stream_load_options_35} ``` @@ -785,7 +915,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream(stream) [static] {#load_stream_stream_30} +### Method: load_stream(stream) [static] {#load_stream_stream_36} ``` @@ -807,7 +937,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_31} +### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_37} ``` @@ -830,7 +960,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_32} +### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_38} ``` @@ -853,7 +983,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: remove_background(settings) {#remove_background_settings_33} +### Method: remove_background(settings) {#remove_background_settings_39} ``` @@ -868,7 +998,7 @@ Removes the background. | :- | :- | :- | | settings | [RemoveBackgroundSettings](/imaging/python-net/aspose.imaging/removebackgroundsettings) | The settings. | -### Method: resize(new_width, new_height) {#resize_new_width_new_height_34} +### Method: resize(new_width, new_height) {#resize_new_width_new_height_40} ``` @@ -884,7 +1014,7 @@ Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/ | new_width | int | The new width. | | new_height | int | The new height. | -### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_35} +### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_41} ``` @@ -901,7 +1031,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_36} +### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_42} ``` @@ -918,7 +1048,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_37} +### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_43} ``` @@ -935,7 +1065,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_38} +### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_44} ``` @@ -952,7 +1082,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_39} +### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_45} ``` @@ -967,7 +1097,7 @@ Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RES | :- | :- | :- | | new_height | int | The new height. | -### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_40} +### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_46} ``` @@ -983,7 +1113,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_41} +### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_47} ``` @@ -999,7 +1129,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_42} +### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_48} ``` @@ -1015,7 +1145,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_43} +### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_49} ``` @@ -1030,7 +1160,7 @@ Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESA | :- | :- | :- | | new_width | int | The new width. | -### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_44} +### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_50} ``` @@ -1046,7 +1176,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_45} +### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_51} ``` @@ -1062,7 +1192,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_46} +### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_52} ``` @@ -1078,14 +1208,29 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_47} +### Method: rotate(angle) {#rotate_angle_53} + + +``` + rotate(angle) +``` + +Rotate image around the center. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | + +### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_54} ``` rotate_flip(rotate_flip_type) ``` -Adjust the orientation of the image by rotating, flipping, or applying both operations
with this versatile method. Perfect for developers seeking to customize image
orientation dynamically, ensuring optimal presentation or alignment in their applications. +Rotates, flips, or rotates and flips the image. **Parameters:** @@ -1093,7 +1238,7 @@ Adjust the orientation of the image by rotating, flipping, or applying both oper | :- | :- | :- | | rotate_flip_type | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | Type of the rotate flip. | -### Method: save(file_path) {#save_file_path_48} +### Method: save(file_path) {#save_file_path_55} ``` @@ -1108,7 +1253,7 @@ Saves the image to the specified file location. | :- | :- | :- | | file_path | string | The file path to save the image to. | -### Method: save(file_path, options) {#save_file_path_options_49} +### Method: save(file_path, options) {#save_file_path_options_56} ``` @@ -1124,7 +1269,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_50} +### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_57} ``` @@ -1141,7 +1286,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: save(file_path, over_write) {#save_file_path_over_write_51} +### Method: save(file_path, over_write) {#save_file_path_over_write_58} ``` @@ -1157,7 +1302,7 @@ Saves the object's data to the specified file location. | file_path | string | The file path to save the object's data to. | | over_write | bool | if set to true over write the file contents, otherwise append will occur. | -### Method: save(stream) {#save_stream_52} +### Method: save(stream) {#save_stream_59} ``` @@ -1172,7 +1317,7 @@ Saves the data. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save data to. | -### Method: save(stream, options_base) {#save_stream_options_base_53} +### Method: save(stream, options_base) {#save_stream_options_base_60} ``` @@ -1188,7 +1333,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_54} +### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_61} ``` @@ -1205,7 +1350,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_to_stream(stream) {#save_to_stream_stream_55} +### Method: save_to_stream(stream) {#save_to_stream_stream_62} ``` @@ -1220,7 +1365,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_56} +### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_63} ``` @@ -1236,7 +1381,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_57} +### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_64} ``` @@ -1253,7 +1398,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_58} +### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_65} ``` @@ -1269,7 +1414,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_59} +### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_66} ``` @@ -1286,7 +1431,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_60} +### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_67} ``` diff --git a/english/python-net/aspose.imaging.fileformats.cdr/cdrimagepage/_index.md b/english/python-net/aspose.imaging.fileformats.cdr/cdrimagepage/_index.md index 283ae4f870..e4a4522d49 100644 --- a/english/python-net/aspose.imaging.fileformats.cdr/cdrimagepage/_index.md +++ b/english/python-net/aspose.imaging.fileformats.cdr/cdrimagepage/_index.md @@ -51,61 +51,68 @@ url: /python-net/aspose.imaging.fileformats.cdr/cdrimagepage/ | [can_load_stream_with_options(stream, load_options)](#can_load_stream_with_options_stream_load_options_6) | Determines whether image can be loaded from the specified stream and optionally using the specified _loadOptions_. | | [can_load_with_options(file_path, load_options)](#can_load_with_options_file_path_load_options_7) | Determines whether image can be loaded from the specified file path and optionally using the specified open options. | | [can_save(options)](#can_save_options_8) | Determines whether image can be saved to the specified file format represented by the passed save options. | -| [create(files)](#create_files_9) | Creates the specified files. | -| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_10) | Creates the specified files. | +| [create(files)](#create_files_9) | Creates the multipage image containing the specified files. | +| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_10) | Creates the multipage image containing the specified files. | | [create(image_options, width, height)](#create_image_options_width_height_11) | Creates a new image using the specified create options. | | [create(images)](#create_images_12) | Creates a new image using the specified images as pages | | [create(images, dispose_images)](#create_images_dispose_images_13) | Creates a new image the specified images as pages. | | [create(multipage_create_options)](#create_multipage_create_options_14) | Creates the specified multipage create options. | -| [get_default_options(args)](#get_default_options_args_15) | Gets the default options. | -| [get_embedded_images()](#get_embedded_images__16) | Gets the embedded images. | -| [get_file_format(file_path)](#get_file_format_file_path_17) | Gets the file format. | -| [get_file_format(stream)](#get_file_format_stream_18) | Gets the file format. | -| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_19) | Gets the file format. | -| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_20) | Gets rectangle which fits the current image. | -| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_21) | Gets rectangle which fits the current image. | -| [get_original_options()](#get_original_options__22) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | -| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_23) | Gets a proportional height. | -| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_24) | Gets a proportional width. | -| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_25) | Converts to aps. | -| [load(file_path)](#load_file_path_26) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(file_path, load_options)](#load_file_path_load_options_27) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(stream)](#load_stream_28) | Loads a new image from the specified stream. | -| [load(stream, load_options)](#load_stream_load_options_29) | Loads a new image from the specified stream. | -| [load_stream(stream)](#load_stream_stream_30) | Loads a new image from the specified stream. | -| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_31) | Loads a new image from the specified stream. | -| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_32) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [create_from_files(files)](#create_from_files_files_15) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_files(files, throw_exception_on_load_error)](#create_from_files_files_throw_exception_on_load_error_16) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_images(images)](#create_from_images_images_17) | Creates a new image using the specified images as pages | +| [create_from_images(images, dispose_images)](#create_from_images_images_dispose_images_18) | Creates a new image the specified images as pages. | +| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_19) | Crop image with shifts. | +| [crop(rectangle)](#crop_rectangle_20) | Crops the specified rectangle. | +| [get_default_options(args)](#get_default_options_args_21) | Gets the default options. | +| [get_embedded_images()](#get_embedded_images__22) | Gets the embedded images. | +| [get_file_format(file_path)](#get_file_format_file_path_23) | Gets the file format. | +| [get_file_format(stream)](#get_file_format_stream_24) | Gets the file format. | +| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_25) | Gets the file format. | +| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_26) | Gets rectangle which fits the current image. | +| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_27) | Gets rectangle which fits the current image. | +| [get_original_options()](#get_original_options__28) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | +| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_29) | Gets a proportional height. | +| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_30) | Gets a proportional width. | +| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_31) | Converts to aps. | +| [load(file_path)](#load_file_path_32) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path, load_options)](#load_file_path_load_options_33) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(stream)](#load_stream_34) | Loads a new image from the specified stream. | +| [load(stream, load_options)](#load_stream_load_options_35) | Loads a new image from the specified stream. | +| [load_stream(stream)](#load_stream_stream_36) | Loads a new image from the specified stream. | +| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_37) | Loads a new image from the specified stream. | +| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_38) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | | remove_background() | Removes the background. | -| [remove_background(settings)](#remove_background_settings_33) | Removes the background. | +| [remove_background(settings)](#remove_background_settings_39) | Removes the background. | | remove_metadata() | Removes metadata. | -| [resize(new_width, new_height)](#resize_new_width_new_height_34) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_35) | Resizes the image. | -| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_36) | Resizes the image. | -| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_37) | Resizes the image. | -| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_38) | Resizes the image. | -| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_39) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_40) | Resizes the height proportionally. | -| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_41) | Resizes the height proportionally. | -| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_42) | Resizes the height proportionally. | -| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_43) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_44) | Resizes the width proportionally. | -| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_45) | Resizes the width proportionally. | -| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_46) | Resizes the width proportionally. | -| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_47) | Rotates, flips, or rotates and flips the image. | +| [resize(new_width, new_height)](#resize_new_width_new_height_40) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_41) | Resizes the specified new width. | +| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_42) | Resizes the image with extended options. | +| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_43) | Resizes the image. | +| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_44) | Resizes the image. | +| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_45) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_46) | Resizes the height proportionally. | +| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_47) | Resizes the height proportionally. | +| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_48) | Resizes the height proportionally. | +| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_49) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_50) | Resizes the width proportionally. | +| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_51) | Resizes the width proportionally. | +| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_52) | Resizes the width proportionally. | +| [rotate(angle)](#rotate_angle_53) | Rotate image around the center. | +| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_54) | Rotates, flips, or rotates and flips the image. | | save() | Saves the image data to the underlying stream. | -| [save(file_path)](#save_file_path_48) | Saves the image to the specified file location. | -| [save(file_path, options)](#save_file_path_options_49) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_50) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, over_write)](#save_file_path_over_write_51) | Saves the object's data to the specified file location. | -| [save(stream)](#save_stream_52) | Saves the data. | -| [save(stream, options_base)](#save_stream_options_base_53) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_54) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream(stream)](#save_to_stream_stream_55) | Saves the object's data to the specified stream. | -| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_56) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_57) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_with_options(file_path, options)](#save_with_options_file_path_options_58) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_59) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_60) | Sets the image palette. | +| [save(file_path)](#save_file_path_55) | Saves the image to the specified file location. | +| [save(file_path, options)](#save_file_path_options_56) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_57) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, over_write)](#save_file_path_over_write_58) | Saves the object's data to the specified file location. | +| [save(stream)](#save_stream_59) | Saves the data. | +| [save(stream, options_base)](#save_stream_options_base_60) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_61) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream(stream)](#save_to_stream_stream_62) | Saves the object's data to the specified stream. | +| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_63) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_64) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_with_options(file_path, options)](#save_with_options_file_path_options_65) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_66) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_67) | Sets the image palette. | ### Method: can_load(file_path) [static] {#can_load_file_path_1} @@ -295,7 +302,7 @@ Determines whether image can be saved to the specified file format represented b create(files) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -317,7 +324,7 @@ Creates the specified files. create(files, throw_exception_on_load_error) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -424,7 +431,130 @@ Creates the specified multipage create options. | [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | -### Method: get_default_options(args) {#get_default_options_args_15} +### Method: create_from_files(files) [static] {#create_from_files_files_15} + + +``` + create_from_files(files) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_files(files, throw_exception_on_load_error) [static] {#create_from_files_files_throw_exception_on_load_error_16} + + +``` + create_from_files(files, throw_exception_on_load_error) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | +| throw_exception_on_load_error | bool | if set to true throw exception on load error. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_images(images) [static] {#create_from_images_images_17} + + +``` + create_from_images(images) +``` + +Creates a new image using the specified images as pages + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_images(images, dispose_images) [static] {#create_from_images_images_dispose_images_18} + + +``` + create_from_images(images, dispose_images) +``` + +Creates a new image the specified images as pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | +| dispose_images | bool | if set to true [dispose images]. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_19} + + +``` + crop(left_shift, right_shift, top_shift, bottom_shift) +``` + +Crop image with shifts. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| left_shift | int | The left shift. | +| right_shift | int | The right shift. | +| top_shift | int | The top shift. | +| bottom_shift | int | The bottom shift. | + +### Method: crop(rectangle) {#crop_rectangle_20} + + +``` + crop(rectangle) +``` + +Crops the specified rectangle. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | + +### Method: get_default_options(args) {#get_default_options_args_21} ``` @@ -446,7 +576,7 @@ Gets the default options. | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Default options | -### Method: get_embedded_images() {#get_embedded_images__16} +### Method: get_embedded_images() {#get_embedded_images__22} ``` @@ -462,7 +592,7 @@ Gets the embedded images. | [EmbeddedImage[]](/imaging/python-net/aspose.imaging/embeddedimage) | Array of images | -### Method: get_file_format(file_path) [static] {#get_file_format_file_path_17} +### Method: get_file_format(file_path) [static] {#get_file_format_file_path_23} ``` @@ -484,7 +614,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format(stream) [static] {#get_file_format_stream_18} +### Method: get_file_format(stream) [static] {#get_file_format_stream_24} ``` @@ -506,7 +636,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_19} +### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_25} ``` @@ -528,7 +658,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_20} +### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_26} ``` @@ -553,7 +683,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_21} +### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_27} ``` @@ -577,7 +707,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_original_options() {#get_original_options__22} +### Method: get_original_options() {#get_original_options__28} ``` @@ -593,7 +723,7 @@ Gets the options based on the original file settings.
This can b | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options based on the original file settings. | -### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_23} +### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_29} ``` @@ -617,7 +747,7 @@ Gets a proportional height. | int | The proportional height. | -### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_24} +### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_30} ``` @@ -641,7 +771,7 @@ Gets a proportional width. | int | The proportional width. | -### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_25} +### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_31} ``` @@ -665,7 +795,7 @@ Converts to aps. | _io.BufferedRandom | The serialized stream | -### Method: load(file_path) [static] {#load_file_path_26} +### Method: load(file_path) [static] {#load_file_path_32} ``` @@ -687,7 +817,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(file_path, load_options) [static] {#load_file_path_load_options_27} +### Method: load(file_path, load_options) [static] {#load_file_path_load_options_33} ``` @@ -710,7 +840,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream) [static] {#load_stream_28} +### Method: load(stream) [static] {#load_stream_34} ``` @@ -732,7 +862,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream, load_options) [static] {#load_stream_load_options_29} +### Method: load(stream, load_options) [static] {#load_stream_load_options_35} ``` @@ -755,7 +885,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream(stream) [static] {#load_stream_stream_30} +### Method: load_stream(stream) [static] {#load_stream_stream_36} ``` @@ -777,7 +907,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_31} +### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_37} ``` @@ -800,7 +930,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_32} +### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_38} ``` @@ -823,7 +953,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: remove_background(settings) {#remove_background_settings_33} +### Method: remove_background(settings) {#remove_background_settings_39} ``` @@ -838,7 +968,7 @@ Removes the background. | :- | :- | :- | | settings | [RemoveBackgroundSettings](/imaging/python-net/aspose.imaging/removebackgroundsettings) | The settings. | -### Method: resize(new_width, new_height) {#resize_new_width_new_height_34} +### Method: resize(new_width, new_height) {#resize_new_width_new_height_40} ``` @@ -854,14 +984,14 @@ Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/ | new_width | int | The new width. | | new_height | int | The new height. | -### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_35} +### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_41} ``` resize(new_width, new_height, resize_type) ``` -Resizes the image. +Resizes the specified new width. **Parameters:** @@ -869,16 +999,16 @@ Resizes the image. | :- | :- | :- | | new_width | int | The new width. | | new_height | int | The new height. | -| resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | +| resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_36} +### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_42} ``` resize(new_width, new_height, settings) ``` -Resizes the image. +Resizes the image with extended options. **Parameters:** @@ -888,7 +1018,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_37} +### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_43} ``` @@ -905,7 +1035,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_38} +### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_44} ``` @@ -922,7 +1052,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_39} +### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_45} ``` @@ -937,7 +1067,7 @@ Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RES | :- | :- | :- | | new_height | int | The new height. | -### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_40} +### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_46} ``` @@ -953,7 +1083,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_41} +### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_47} ``` @@ -969,7 +1099,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_42} +### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_48} ``` @@ -985,7 +1115,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_43} +### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_49} ``` @@ -1000,7 +1130,7 @@ Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESA | :- | :- | :- | | new_width | int | The new width. | -### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_44} +### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_50} ``` @@ -1016,7 +1146,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_45} +### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_51} ``` @@ -1032,7 +1162,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_46} +### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_52} ``` @@ -1048,7 +1178,22 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_47} +### Method: rotate(angle) {#rotate_angle_53} + + +``` + rotate(angle) +``` + +Rotate image around the center. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | + +### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_54} ``` @@ -1063,7 +1208,7 @@ Rotates, flips, or rotates and flips the image. | :- | :- | :- | | rotate_flip_type | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | Type of the rotate flip. | -### Method: save(file_path) {#save_file_path_48} +### Method: save(file_path) {#save_file_path_55} ``` @@ -1078,7 +1223,7 @@ Saves the image to the specified file location. | :- | :- | :- | | file_path | string | The file path to save the image to. | -### Method: save(file_path, options) {#save_file_path_options_49} +### Method: save(file_path, options) {#save_file_path_options_56} ``` @@ -1094,7 +1239,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_50} +### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_57} ``` @@ -1111,7 +1256,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: save(file_path, over_write) {#save_file_path_over_write_51} +### Method: save(file_path, over_write) {#save_file_path_over_write_58} ``` @@ -1127,7 +1272,7 @@ Saves the object's data to the specified file location. | file_path | string | The file path to save the object's data to. | | over_write | bool | if set to true over write the file contents, otherwise append will occur. | -### Method: save(stream) {#save_stream_52} +### Method: save(stream) {#save_stream_59} ``` @@ -1142,7 +1287,7 @@ Saves the data. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save data to. | -### Method: save(stream, options_base) {#save_stream_options_base_53} +### Method: save(stream, options_base) {#save_stream_options_base_60} ``` @@ -1158,7 +1303,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_54} +### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_61} ``` @@ -1175,7 +1320,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_to_stream(stream) {#save_to_stream_stream_55} +### Method: save_to_stream(stream) {#save_to_stream_stream_62} ``` @@ -1190,7 +1335,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_56} +### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_63} ``` @@ -1206,7 +1351,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_57} +### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_64} ``` @@ -1223,7 +1368,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_58} +### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_65} ``` @@ -1239,7 +1384,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_59} +### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_66} ``` @@ -1256,7 +1401,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_60} +### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_67} ``` diff --git a/english/python-net/aspose.imaging.fileformats.cmx/cmximage/_index.md b/english/python-net/aspose.imaging.fileformats.cmx/cmximage/_index.md index af57359844..8ecad520b4 100644 --- a/english/python-net/aspose.imaging.fileformats.cmx/cmximage/_index.md +++ b/english/python-net/aspose.imaging.fileformats.cmx/cmximage/_index.md @@ -57,61 +57,68 @@ url: /python-net/aspose.imaging.fileformats.cmx/cmximage/ | [can_load_stream_with_options(stream, load_options)](#can_load_stream_with_options_stream_load_options_6) | Determines whether image can be loaded from the specified stream and optionally using the specified _loadOptions_. | | [can_load_with_options(file_path, load_options)](#can_load_with_options_file_path_load_options_7) | Determines whether image can be loaded from the specified file path and optionally using the specified open options. | | [can_save(options)](#can_save_options_8) | Determines whether image can be saved to the specified file format represented by the passed save options. | -| [create(files)](#create_files_9) | Creates the specified files. | -| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_10) | Creates the specified files. | +| [create(files)](#create_files_9) | Creates the multipage image containing the specified files. | +| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_10) | Creates the multipage image containing the specified files. | | [create(image_options, width, height)](#create_image_options_width_height_11) | Creates a new image using the specified create options. | | [create(images)](#create_images_12) | Creates a new image using the specified images as pages | | [create(images, dispose_images)](#create_images_dispose_images_13) | Creates a new image the specified images as pages. | | [create(multipage_create_options)](#create_multipage_create_options_14) | Creates the specified multipage create options. | -| [get_default_options(args)](#get_default_options_args_15) | Retrieve the default options effortlessly with this user-friendly method.
Perfect for developers seeking quick access to the default settings or configurations
associated with an object, ensuring efficient customization and streamlined workflow. | -| [get_embedded_images()](#get_embedded_images__16) | Gets the embedded images. | -| [get_file_format(file_path)](#get_file_format_file_path_17) | Gets the file format. | -| [get_file_format(stream)](#get_file_format_stream_18) | Gets the file format. | -| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_19) | Gets the file format. | -| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_20) | Gets rectangle which fits the current image. | -| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_21) | Gets rectangle which fits the current image. | -| [get_original_options()](#get_original_options__22) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | -| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_23) | Gets a proportional height. | -| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_24) | Gets a proportional width. | -| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_25) | Converts to aps. | -| [load(file_path)](#load_file_path_26) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(file_path, load_options)](#load_file_path_load_options_27) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(stream)](#load_stream_28) | Loads a new image from the specified stream. | -| [load(stream, load_options)](#load_stream_load_options_29) | Loads a new image from the specified stream. | -| [load_stream(stream)](#load_stream_stream_30) | Loads a new image from the specified stream. | -| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_31) | Loads a new image from the specified stream. | -| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_32) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [create_from_files(files)](#create_from_files_files_15) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_files(files, throw_exception_on_load_error)](#create_from_files_files_throw_exception_on_load_error_16) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_images(images)](#create_from_images_images_17) | Creates a new image using the specified images as pages | +| [create_from_images(images, dispose_images)](#create_from_images_images_dispose_images_18) | Creates a new image the specified images as pages. | +| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_19) | Crop image with shifts. | +| [crop(rectangle)](#crop_rectangle_20) | Crops the specified rectangle. | +| [get_default_options(args)](#get_default_options_args_21) | Retrieve the default options effortlessly with this user-friendly method.
Perfect for developers seeking quick access to the default settings or configurations
associated with an object, ensuring efficient customization and streamlined workflow. | +| [get_embedded_images()](#get_embedded_images__22) | Gets the embedded images. | +| [get_file_format(file_path)](#get_file_format_file_path_23) | Gets the file format. | +| [get_file_format(stream)](#get_file_format_stream_24) | Gets the file format. | +| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_25) | Gets the file format. | +| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_26) | Gets rectangle which fits the current image. | +| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_27) | Gets rectangle which fits the current image. | +| [get_original_options()](#get_original_options__28) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | +| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_29) | Gets a proportional height. | +| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_30) | Gets a proportional width. | +| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_31) | Converts to aps. | +| [load(file_path)](#load_file_path_32) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path, load_options)](#load_file_path_load_options_33) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(stream)](#load_stream_34) | Loads a new image from the specified stream. | +| [load(stream, load_options)](#load_stream_load_options_35) | Loads a new image from the specified stream. | +| [load_stream(stream)](#load_stream_stream_36) | Loads a new image from the specified stream. | +| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_37) | Loads a new image from the specified stream. | +| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_38) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | | remove_background() | Removes the background. | -| [remove_background(settings)](#remove_background_settings_33) | Removes the background. | +| [remove_background(settings)](#remove_background_settings_39) | Removes the background. | | remove_metadata() | Removes metadata. | -| [resize(new_width, new_height)](#resize_new_width_new_height_34) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_35) | Resizes the image. | -| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_36) | Resizes the image. | -| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_37) | Resizes the image. | -| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_38) | Resizes the image. | -| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_39) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_40) | Resizes the height proportionally. | -| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_41) | Resizes the height proportionally. | -| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_42) | Resizes the height proportionally. | -| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_43) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_44) | Resizes the width proportionally. | -| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_45) | Resizes the width proportionally. | -| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_46) | Resizes the width proportionally. | -| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_47) | Effortlessly adjust the orientation of the image by rotating, flipping, or applying
both operations with this versatile method. Perfect for developers seeking to
customize image orientation dynamically, ensuring optimal presentation or alignment
in their applications. | +| [resize(new_width, new_height)](#resize_new_width_new_height_40) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_41) | Resizes the image. | +| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_42) | Resizes the image. | +| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_43) | Resizes the image. | +| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_44) | Resizes the image. | +| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_45) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_46) | Resizes the height proportionally. | +| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_47) | Resizes the height proportionally. | +| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_48) | Resizes the height proportionally. | +| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_49) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_50) | Resizes the width proportionally. | +| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_51) | Resizes the width proportionally. | +| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_52) | Resizes the width proportionally. | +| [rotate(angle)](#rotate_angle_53) | Rotate image around the center. | +| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_54) | Rotates, flips, or rotates and flips the image. | | save() | Saves the image data to the underlying stream. | -| [save(file_path)](#save_file_path_48) | Saves the image to the specified file location. | -| [save(file_path, options)](#save_file_path_options_49) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_50) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, over_write)](#save_file_path_over_write_51) | Saves the object's data to the specified file location. | -| [save(stream)](#save_stream_52) | Saves the data. | -| [save(stream, options_base)](#save_stream_options_base_53) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_54) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream(stream)](#save_to_stream_stream_55) | Saves the object's data to the specified stream. | -| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_56) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_57) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_with_options(file_path, options)](#save_with_options_file_path_options_58) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_59) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_60) | Customize the color palette of the image with this intuitive method. Ideal for
developers seeking to apply specific color schemes or adjustments dynamically,
ensuring precise control over the visual appearance of their images. | +| [save(file_path)](#save_file_path_55) | Saves the image to the specified file location. | +| [save(file_path, options)](#save_file_path_options_56) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_57) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, over_write)](#save_file_path_over_write_58) | Saves the object's data to the specified file location. | +| [save(stream)](#save_stream_59) | Saves the data. | +| [save(stream, options_base)](#save_stream_options_base_60) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_61) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream(stream)](#save_to_stream_stream_62) | Saves the object's data to the specified stream. | +| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_63) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_64) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_with_options(file_path, options)](#save_with_options_file_path_options_65) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_66) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_67) | Customize the color palette of the image with this intuitive method. Ideal for
developers seeking to apply specific color schemes or adjustments dynamically,
ensuring precise control over the visual appearance of their images. | ### Constructor: CmxImage(stream_container, load_options) {#CmxImage_stream_container_load_options_1} @@ -317,7 +324,7 @@ Determines whether image can be saved to the specified file format represented b create(files) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -339,7 +346,7 @@ Creates the specified files. create(files, throw_exception_on_load_error) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -446,7 +453,130 @@ Creates the specified multipage create options. | [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | -### Method: get_default_options(args) {#get_default_options_args_15} +### Method: create_from_files(files) [static] {#create_from_files_files_15} + + +``` + create_from_files(files) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_files(files, throw_exception_on_load_error) [static] {#create_from_files_files_throw_exception_on_load_error_16} + + +``` + create_from_files(files, throw_exception_on_load_error) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | +| throw_exception_on_load_error | bool | if set to true throw exception on load error. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_images(images) [static] {#create_from_images_images_17} + + +``` + create_from_images(images) +``` + +Creates a new image using the specified images as pages + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_images(images, dispose_images) [static] {#create_from_images_images_dispose_images_18} + + +``` + create_from_images(images, dispose_images) +``` + +Creates a new image the specified images as pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | +| dispose_images | bool | if set to true [dispose images]. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_19} + + +``` + crop(left_shift, right_shift, top_shift, bottom_shift) +``` + +Crop image with shifts. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| left_shift | int | The left shift. | +| right_shift | int | The right shift. | +| top_shift | int | The top shift. | +| bottom_shift | int | The bottom shift. | + +### Method: crop(rectangle) {#crop_rectangle_20} + + +``` + crop(rectangle) +``` + +Crops the specified rectangle. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | + +### Method: get_default_options(args) {#get_default_options_args_21} ``` @@ -468,7 +598,7 @@ Retrieve the default options effortlessly with this user-friendly method.
| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Default options | -### Method: get_embedded_images() {#get_embedded_images__16} +### Method: get_embedded_images() {#get_embedded_images__22} ``` @@ -484,7 +614,7 @@ Gets the embedded images. | [EmbeddedImage[]](/imaging/python-net/aspose.imaging/embeddedimage) | Array of images | -### Method: get_file_format(file_path) [static] {#get_file_format_file_path_17} +### Method: get_file_format(file_path) [static] {#get_file_format_file_path_23} ``` @@ -506,7 +636,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format(stream) [static] {#get_file_format_stream_18} +### Method: get_file_format(stream) [static] {#get_file_format_stream_24} ``` @@ -528,7 +658,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_19} +### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_25} ``` @@ -550,7 +680,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_20} +### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_26} ``` @@ -575,7 +705,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_21} +### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_27} ``` @@ -599,7 +729,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_original_options() {#get_original_options__22} +### Method: get_original_options() {#get_original_options__28} ``` @@ -615,7 +745,7 @@ Gets the options based on the original file settings.
This can b | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options based on the original file settings. | -### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_23} +### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_29} ``` @@ -639,7 +769,7 @@ Gets a proportional height. | int | The proportional height. | -### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_24} +### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_30} ``` @@ -663,7 +793,7 @@ Gets a proportional width. | int | The proportional width. | -### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_25} +### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_31} ``` @@ -687,7 +817,7 @@ Converts to aps. | _io.BufferedRandom | The serialized stream | -### Method: load(file_path) [static] {#load_file_path_26} +### Method: load(file_path) [static] {#load_file_path_32} ``` @@ -709,7 +839,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(file_path, load_options) [static] {#load_file_path_load_options_27} +### Method: load(file_path, load_options) [static] {#load_file_path_load_options_33} ``` @@ -732,7 +862,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream) [static] {#load_stream_28} +### Method: load(stream) [static] {#load_stream_34} ``` @@ -754,7 +884,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream, load_options) [static] {#load_stream_load_options_29} +### Method: load(stream, load_options) [static] {#load_stream_load_options_35} ``` @@ -777,7 +907,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream(stream) [static] {#load_stream_stream_30} +### Method: load_stream(stream) [static] {#load_stream_stream_36} ``` @@ -799,7 +929,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_31} +### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_37} ``` @@ -822,7 +952,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_32} +### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_38} ``` @@ -845,7 +975,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: remove_background(settings) {#remove_background_settings_33} +### Method: remove_background(settings) {#remove_background_settings_39} ``` @@ -860,7 +990,7 @@ Removes the background. | :- | :- | :- | | settings | [RemoveBackgroundSettings](/imaging/python-net/aspose.imaging/removebackgroundsettings) | The settings. | -### Method: resize(new_width, new_height) {#resize_new_width_new_height_34} +### Method: resize(new_width, new_height) {#resize_new_width_new_height_40} ``` @@ -876,7 +1006,7 @@ Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/ | new_width | int | The new width. | | new_height | int | The new height. | -### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_35} +### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_41} ``` @@ -893,7 +1023,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_36} +### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_42} ``` @@ -910,7 +1040,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_37} +### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_43} ``` @@ -927,7 +1057,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_38} +### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_44} ``` @@ -944,7 +1074,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_39} +### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_45} ``` @@ -959,7 +1089,7 @@ Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RES | :- | :- | :- | | new_height | int | The new height. | -### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_40} +### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_46} ``` @@ -975,7 +1105,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_41} +### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_47} ``` @@ -991,7 +1121,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_42} +### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_48} ``` @@ -1007,7 +1137,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_43} +### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_49} ``` @@ -1022,7 +1152,7 @@ Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESA | :- | :- | :- | | new_width | int | The new width. | -### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_44} +### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_50} ``` @@ -1038,7 +1168,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_45} +### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_51} ``` @@ -1054,7 +1184,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_46} +### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_52} ``` @@ -1070,14 +1200,29 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_47} +### Method: rotate(angle) {#rotate_angle_53} + + +``` + rotate(angle) +``` + +Rotate image around the center. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | + +### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_54} ``` rotate_flip(rotate_flip_type) ``` -Effortlessly adjust the orientation of the image by rotating, flipping, or applying
both operations with this versatile method. Perfect for developers seeking to
customize image orientation dynamically, ensuring optimal presentation or alignment
in their applications. +Rotates, flips, or rotates and flips the image. **Parameters:** @@ -1085,7 +1230,7 @@ Effortlessly adjust the orientation of the image by rotating, flipping, or apply | :- | :- | :- | | rotate_flip_type | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | Type of the rotate flip. | -### Method: save(file_path) {#save_file_path_48} +### Method: save(file_path) {#save_file_path_55} ``` @@ -1100,7 +1245,7 @@ Saves the image to the specified file location. | :- | :- | :- | | file_path | string | The file path to save the image to. | -### Method: save(file_path, options) {#save_file_path_options_49} +### Method: save(file_path, options) {#save_file_path_options_56} ``` @@ -1116,7 +1261,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_50} +### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_57} ``` @@ -1133,7 +1278,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: save(file_path, over_write) {#save_file_path_over_write_51} +### Method: save(file_path, over_write) {#save_file_path_over_write_58} ``` @@ -1149,7 +1294,7 @@ Saves the object's data to the specified file location. | file_path | string | The file path to save the object's data to. | | over_write | bool | if set to true over write the file contents, otherwise append will occur. | -### Method: save(stream) {#save_stream_52} +### Method: save(stream) {#save_stream_59} ``` @@ -1164,7 +1309,7 @@ Saves the data. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save data to. | -### Method: save(stream, options_base) {#save_stream_options_base_53} +### Method: save(stream, options_base) {#save_stream_options_base_60} ``` @@ -1180,7 +1325,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_54} +### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_61} ``` @@ -1197,7 +1342,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_to_stream(stream) {#save_to_stream_stream_55} +### Method: save_to_stream(stream) {#save_to_stream_stream_62} ``` @@ -1212,7 +1357,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_56} +### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_63} ``` @@ -1228,7 +1373,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_57} +### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_64} ``` @@ -1245,7 +1390,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_58} +### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_65} ``` @@ -1261,7 +1406,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_59} +### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_66} ``` @@ -1278,7 +1423,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_60} +### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_67} ``` diff --git a/english/python-net/aspose.imaging.fileformats.cmx/cmximagepage/_index.md b/english/python-net/aspose.imaging.fileformats.cmx/cmximagepage/_index.md index d4c7c22ae0..5165642d09 100644 --- a/english/python-net/aspose.imaging.fileformats.cmx/cmximagepage/_index.md +++ b/english/python-net/aspose.imaging.fileformats.cmx/cmximagepage/_index.md @@ -54,61 +54,68 @@ url: /python-net/aspose.imaging.fileformats.cmx/cmximagepage/ | [can_load_stream_with_options(stream, load_options)](#can_load_stream_with_options_stream_load_options_6) | Determines whether image can be loaded from the specified stream and optionally using the specified _loadOptions_. | | [can_load_with_options(file_path, load_options)](#can_load_with_options_file_path_load_options_7) | Determines whether image can be loaded from the specified file path and optionally using the specified open options. | | [can_save(options)](#can_save_options_8) | Determines whether image can be saved to the specified file format represented by the passed save options. | -| [create(files)](#create_files_9) | Creates the specified files. | -| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_10) | Creates the specified files. | +| [create(files)](#create_files_9) | Creates the multipage image containing the specified files. | +| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_10) | Creates the multipage image containing the specified files. | | [create(image_options, width, height)](#create_image_options_width_height_11) | Creates a new image using the specified create options. | | [create(images)](#create_images_12) | Creates a new image using the specified images as pages | | [create(images, dispose_images)](#create_images_dispose_images_13) | Creates a new image the specified images as pages. | | [create(multipage_create_options)](#create_multipage_create_options_14) | Creates the specified multipage create options. | -| [get_default_options(args)](#get_default_options_args_15) | Gets the default options. | -| [get_embedded_images()](#get_embedded_images__16) | Gets the embedded images. | -| [get_file_format(file_path)](#get_file_format_file_path_17) | Gets the file format. | -| [get_file_format(stream)](#get_file_format_stream_18) | Gets the file format. | -| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_19) | Gets the file format. | -| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_20) | Gets rectangle which fits the current image. | -| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_21) | Gets rectangle which fits the current image. | -| [get_original_options()](#get_original_options__22) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | -| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_23) | Gets a proportional height. | -| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_24) | Gets a proportional width. | -| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_25) | Converts to aps. | -| [load(file_path)](#load_file_path_26) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(file_path, load_options)](#load_file_path_load_options_27) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(stream)](#load_stream_28) | Loads a new image from the specified stream. | -| [load(stream, load_options)](#load_stream_load_options_29) | Loads a new image from the specified stream. | -| [load_stream(stream)](#load_stream_stream_30) | Loads a new image from the specified stream. | -| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_31) | Loads a new image from the specified stream. | -| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_32) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [create_from_files(files)](#create_from_files_files_15) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_files(files, throw_exception_on_load_error)](#create_from_files_files_throw_exception_on_load_error_16) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_images(images)](#create_from_images_images_17) | Creates a new image using the specified images as pages | +| [create_from_images(images, dispose_images)](#create_from_images_images_dispose_images_18) | Creates a new image the specified images as pages. | +| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_19) | Crop image with shifts. | +| [crop(rectangle)](#crop_rectangle_20) | Crops the specified rectangle. | +| [get_default_options(args)](#get_default_options_args_21) | Gets the default options. | +| [get_embedded_images()](#get_embedded_images__22) | Gets the embedded images. | +| [get_file_format(file_path)](#get_file_format_file_path_23) | Gets the file format. | +| [get_file_format(stream)](#get_file_format_stream_24) | Gets the file format. | +| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_25) | Gets the file format. | +| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_26) | Gets rectangle which fits the current image. | +| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_27) | Gets rectangle which fits the current image. | +| [get_original_options()](#get_original_options__28) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | +| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_29) | Gets a proportional height. | +| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_30) | Gets a proportional width. | +| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_31) | Converts to aps. | +| [load(file_path)](#load_file_path_32) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path, load_options)](#load_file_path_load_options_33) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(stream)](#load_stream_34) | Loads a new image from the specified stream. | +| [load(stream, load_options)](#load_stream_load_options_35) | Loads a new image from the specified stream. | +| [load_stream(stream)](#load_stream_stream_36) | Loads a new image from the specified stream. | +| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_37) | Loads a new image from the specified stream. | +| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_38) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | | remove_background() | Removes the background. | -| [remove_background(settings)](#remove_background_settings_33) | Removes the background. | +| [remove_background(settings)](#remove_background_settings_39) | Removes the background. | | remove_metadata() | Removes metadata. | -| [resize(new_width, new_height)](#resize_new_width_new_height_34) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_35) | Resizes the image. | -| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_36) | Resizes the image. | -| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_37) | Resizes the image. | -| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_38) | Resizes the image. | -| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_39) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_40) | Resizes the height proportionally. | -| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_41) | Resizes the height proportionally. | -| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_42) | Resizes the height proportionally. | -| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_43) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_44) | Resizes the width proportionally. | -| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_45) | Resizes the width proportionally. | -| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_46) | Resizes the width proportionally. | -| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_47) | Rotates, flips, or rotates and flips the image. | +| [resize(new_width, new_height)](#resize_new_width_new_height_40) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_41) | Resizes the specified new width. | +| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_42) | Resizes the image. | +| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_43) | Resizes the image. | +| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_44) | Resizes the image. | +| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_45) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_46) | Resizes the height proportionally. | +| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_47) | Resizes the height proportionally. | +| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_48) | Resizes the height proportionally. | +| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_49) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_50) | Resizes the width proportionally. | +| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_51) | Resizes the width proportionally. | +| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_52) | Resizes the width proportionally. | +| [rotate(angle)](#rotate_angle_53) | Rotate image around the center. | +| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_54) | Rotates, flips, or rotates and flips the image. | | save() | Saves the image data to the underlying stream. | -| [save(file_path)](#save_file_path_48) | Saves the image to the specified file location. | -| [save(file_path, options)](#save_file_path_options_49) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_50) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, over_write)](#save_file_path_over_write_51) | Saves the object's data to the specified file location. | -| [save(stream)](#save_stream_52) | Saves the data. | -| [save(stream, options_base)](#save_stream_options_base_53) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_54) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream(stream)](#save_to_stream_stream_55) | Saves the object's data to the specified stream. | -| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_56) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_57) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_with_options(file_path, options)](#save_with_options_file_path_options_58) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_59) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_60) | Sets the image palette. | +| [save(file_path)](#save_file_path_55) | Saves the image to the specified file location. | +| [save(file_path, options)](#save_file_path_options_56) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_57) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, over_write)](#save_file_path_over_write_58) | Saves the object's data to the specified file location. | +| [save(stream)](#save_stream_59) | Saves the data. | +| [save(stream, options_base)](#save_stream_options_base_60) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_61) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream(stream)](#save_to_stream_stream_62) | Saves the object's data to the specified stream. | +| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_63) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_64) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_with_options(file_path, options)](#save_with_options_file_path_options_65) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_66) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_67) | Sets the image palette. | ### Constructor: CmxImagePage(cmx_page) {#CmxImagePage_cmx_page_1} @@ -329,7 +336,7 @@ Determines whether image can be saved to the specified file format represented b create(files) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -351,7 +358,7 @@ Creates the specified files. create(files, throw_exception_on_load_error) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -458,7 +465,130 @@ Creates the specified multipage create options. | [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | -### Method: get_default_options(args) {#get_default_options_args_15} +### Method: create_from_files(files) [static] {#create_from_files_files_15} + + +``` + create_from_files(files) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_files(files, throw_exception_on_load_error) [static] {#create_from_files_files_throw_exception_on_load_error_16} + + +``` + create_from_files(files, throw_exception_on_load_error) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | +| throw_exception_on_load_error | bool | if set to true throw exception on load error. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_images(images) [static] {#create_from_images_images_17} + + +``` + create_from_images(images) +``` + +Creates a new image using the specified images as pages + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_images(images, dispose_images) [static] {#create_from_images_images_dispose_images_18} + + +``` + create_from_images(images, dispose_images) +``` + +Creates a new image the specified images as pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | +| dispose_images | bool | if set to true [dispose images]. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_19} + + +``` + crop(left_shift, right_shift, top_shift, bottom_shift) +``` + +Crop image with shifts. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| left_shift | int | The left shift. | +| right_shift | int | The right shift. | +| top_shift | int | The top shift. | +| bottom_shift | int | The bottom shift. | + +### Method: crop(rectangle) {#crop_rectangle_20} + + +``` + crop(rectangle) +``` + +Crops the specified rectangle. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | + +### Method: get_default_options(args) {#get_default_options_args_21} ``` @@ -480,7 +610,7 @@ Gets the default options. | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Default options | -### Method: get_embedded_images() {#get_embedded_images__16} +### Method: get_embedded_images() {#get_embedded_images__22} ``` @@ -496,7 +626,7 @@ Gets the embedded images. | [EmbeddedImage[]](/imaging/python-net/aspose.imaging/embeddedimage) | Array of images | -### Method: get_file_format(file_path) [static] {#get_file_format_file_path_17} +### Method: get_file_format(file_path) [static] {#get_file_format_file_path_23} ``` @@ -518,7 +648,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format(stream) [static] {#get_file_format_stream_18} +### Method: get_file_format(stream) [static] {#get_file_format_stream_24} ``` @@ -540,7 +670,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_19} +### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_25} ``` @@ -562,7 +692,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_20} +### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_26} ``` @@ -587,7 +717,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_21} +### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_27} ``` @@ -611,7 +741,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_original_options() {#get_original_options__22} +### Method: get_original_options() {#get_original_options__28} ``` @@ -627,7 +757,7 @@ Gets the options based on the original file settings.
This can b | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options based on the original file settings. | -### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_23} +### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_29} ``` @@ -651,7 +781,7 @@ Gets a proportional height. | int | The proportional height. | -### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_24} +### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_30} ``` @@ -675,7 +805,7 @@ Gets a proportional width. | int | The proportional width. | -### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_25} +### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_31} ``` @@ -699,7 +829,7 @@ Converts to aps. | _io.BufferedRandom | The serialized stream | -### Method: load(file_path) [static] {#load_file_path_26} +### Method: load(file_path) [static] {#load_file_path_32} ``` @@ -721,7 +851,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(file_path, load_options) [static] {#load_file_path_load_options_27} +### Method: load(file_path, load_options) [static] {#load_file_path_load_options_33} ``` @@ -744,7 +874,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream) [static] {#load_stream_28} +### Method: load(stream) [static] {#load_stream_34} ``` @@ -766,7 +896,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream, load_options) [static] {#load_stream_load_options_29} +### Method: load(stream, load_options) [static] {#load_stream_load_options_35} ``` @@ -789,7 +919,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream(stream) [static] {#load_stream_stream_30} +### Method: load_stream(stream) [static] {#load_stream_stream_36} ``` @@ -811,7 +941,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_31} +### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_37} ``` @@ -834,7 +964,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_32} +### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_38} ``` @@ -857,7 +987,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: remove_background(settings) {#remove_background_settings_33} +### Method: remove_background(settings) {#remove_background_settings_39} ``` @@ -872,7 +1002,7 @@ Removes the background. | :- | :- | :- | | settings | [RemoveBackgroundSettings](/imaging/python-net/aspose.imaging/removebackgroundsettings) | The settings. | -### Method: resize(new_width, new_height) {#resize_new_width_new_height_34} +### Method: resize(new_width, new_height) {#resize_new_width_new_height_40} ``` @@ -888,14 +1018,14 @@ Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/ | new_width | int | The new width. | | new_height | int | The new height. | -### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_35} +### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_41} ``` resize(new_width, new_height, resize_type) ``` -Resizes the image. +Resizes the specified new width. **Parameters:** @@ -903,9 +1033,9 @@ Resizes the image. | :- | :- | :- | | new_width | int | The new width. | | new_height | int | The new height. | -| resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | +| resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_36} +### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_42} ``` @@ -922,7 +1052,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_37} +### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_43} ``` @@ -939,7 +1069,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_38} +### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_44} ``` @@ -956,7 +1086,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_39} +### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_45} ``` @@ -971,7 +1101,7 @@ Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RES | :- | :- | :- | | new_height | int | The new height. | -### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_40} +### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_46} ``` @@ -987,7 +1117,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_41} +### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_47} ``` @@ -1003,7 +1133,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_42} +### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_48} ``` @@ -1019,7 +1149,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_43} +### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_49} ``` @@ -1034,7 +1164,7 @@ Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESA | :- | :- | :- | | new_width | int | The new width. | -### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_44} +### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_50} ``` @@ -1050,7 +1180,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_45} +### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_51} ``` @@ -1066,7 +1196,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_46} +### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_52} ``` @@ -1082,7 +1212,22 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_47} +### Method: rotate(angle) {#rotate_angle_53} + + +``` + rotate(angle) +``` + +Rotate image around the center. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | + +### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_54} ``` @@ -1097,7 +1242,7 @@ Rotates, flips, or rotates and flips the image. | :- | :- | :- | | rotate_flip_type | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | Type of the rotate flip. | -### Method: save(file_path) {#save_file_path_48} +### Method: save(file_path) {#save_file_path_55} ``` @@ -1112,7 +1257,7 @@ Saves the image to the specified file location. | :- | :- | :- | | file_path | string | The file path to save the image to. | -### Method: save(file_path, options) {#save_file_path_options_49} +### Method: save(file_path, options) {#save_file_path_options_56} ``` @@ -1128,7 +1273,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_50} +### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_57} ``` @@ -1145,7 +1290,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: save(file_path, over_write) {#save_file_path_over_write_51} +### Method: save(file_path, over_write) {#save_file_path_over_write_58} ``` @@ -1161,7 +1306,7 @@ Saves the object's data to the specified file location. | file_path | string | The file path to save the object's data to. | | over_write | bool | if set to true over write the file contents, otherwise append will occur. | -### Method: save(stream) {#save_stream_52} +### Method: save(stream) {#save_stream_59} ``` @@ -1176,7 +1321,7 @@ Saves the data. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save data to. | -### Method: save(stream, options_base) {#save_stream_options_base_53} +### Method: save(stream, options_base) {#save_stream_options_base_60} ``` @@ -1192,7 +1337,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_54} +### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_61} ``` @@ -1209,7 +1354,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_to_stream(stream) {#save_to_stream_stream_55} +### Method: save_to_stream(stream) {#save_to_stream_stream_62} ``` @@ -1224,7 +1369,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_56} +### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_63} ``` @@ -1240,7 +1385,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_57} +### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_64} ``` @@ -1257,7 +1402,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_58} +### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_65} ``` @@ -1273,7 +1418,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_59} +### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_66} ``` @@ -1290,7 +1435,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_60} +### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_67} ``` diff --git a/english/python-net/aspose.imaging.fileformats.dicom/dicomimage/_index.md b/english/python-net/aspose.imaging.fileformats.dicom/dicomimage/_index.md index acc3d62172..f55dc28b41 100644 --- a/english/python-net/aspose.imaging.fileformats.dicom/dicomimage/_index.md +++ b/english/python-net/aspose.imaging.fileformats.dicom/dicomimage/_index.md @@ -86,108 +86,112 @@ url: /python-net/aspose.imaging.fileformats.dicom/dicomimage/ | [can_load_stream_with_options(stream, load_options)](#can_load_stream_with_options_stream_load_options_17) | Determines whether image can be loaded from the specified stream and optionally using the specified _loadOptions_. | | [can_load_with_options(file_path, load_options)](#can_load_with_options_file_path_load_options_18) | Determines whether image can be loaded from the specified file path and optionally using the specified open options. | | [can_save(options)](#can_save_options_19) | Determines whether image can be saved to the specified file format represented by the passed save options. | -| [create(files)](#create_files_20) | Creates the specified files. | -| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_21) | Creates the specified files. | +| [create(files)](#create_files_20) | Creates the multipage image containing the specified files. | +| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_21) | Creates the multipage image containing the specified files. | | [create(image_options, width, height)](#create_image_options_width_height_22) | Creates a new image using the specified create options. | | [create(images)](#create_images_23) | Creates a new image using the specified images as pages | | [create(images, dispose_images)](#create_images_dispose_images_24) | Creates a new image the specified images as pages. | | [create(multipage_create_options)](#create_multipage_create_options_25) | Creates the specified multipage create options. | -| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_26) | Adjust the cropping area of the image by applying shifts with this versatile method.
Perfect for developers who need precise control over the cropping process, ensuring
that important details are retained while eliminating unnecessary elements. | -| [crop(rectangle)](#crop_rectangle_27) | Crop the image to remove unwanted areas and focus on essential content with this
simple method. Ideal for developers seeking to customize the visual composition of
images, ensuring they convey the desired message effectively. | -| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_28) | Performs dithering on the current image. | -| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_29) | Enhance the current image by applying dithering effects with this straightforward
method. Perfect for developers aiming to add texture and depth to images,
improving their visual quality and overall appeal. | -| [filter(rectangle, options)](#filter_rectangle_options_30) | Effortlessly enhance specific areas of your image by applying filters to designated
rectangles. This method provides developers with precise control over
image manipulation, allowing for targeted adjustments to achieve desired
visual effects with ease. | -| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_31) | Gets an image 32-bit ARGB pixel. | -| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_32) | Gets the default 32-bit ARGB pixels array. | -| [get_default_options(args)](#get_default_options_args_33) | Gets the default options. | -| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_34) | Gets the default pixels array using partial pixel loader. | -| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_35) | Gets the default raw data array using partial pixel loader. | -| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_36) | Gets the default raw data array. | -| [get_file_format(file_path)](#get_file_format_file_path_37) | Gets the file format. | -| [get_file_format(stream)](#get_file_format_stream_38) | Gets the file format. | -| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_39) | Gets the file format. | -| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_40) | Gets rectangle which fits the current image. | -| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_41) | Gets rectangle which fits the current image. | -| [get_modify_date(use_default)](#get_modify_date_use_default_42) | Gets the date and time the resource image was last modified. | -| [get_original_options()](#get_original_options__43) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | -| [get_pixel(x, y)](#get_pixel_x_y_44) | Gets an image pixel. | -| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_45) | Gets a proportional height. | -| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_46) | Gets a proportional width. | -| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_47) | Converts to aps. | -| [get_skew_angle()](#get_skew_angle__48) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | +| [create_from_files(files)](#create_from_files_files_26) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_files(files, throw_exception_on_load_error)](#create_from_files_files_throw_exception_on_load_error_27) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_images(images)](#create_from_images_images_28) | Creates a new image using the specified images as pages | +| [create_from_images(images, dispose_images)](#create_from_images_images_dispose_images_29) | Creates a new image the specified images as pages. | +| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_30) | Adjust the cropping area of the image by applying shifts with this versatile method.
Perfect for developers who need precise control over the cropping process, ensuring
that important details are retained while eliminating unnecessary elements. | +| [crop(rectangle)](#crop_rectangle_31) | Crop the image to remove unwanted areas and focus on essential content with this
simple method. Ideal for developers seeking to customize the visual composition of
images, ensuring they convey the desired message effectively. | +| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_32) | Performs dithering on the current image. | +| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_33) | Enhance the current image by applying dithering effects with this straightforward
method. Perfect for developers aiming to add texture and depth to images,
improving their visual quality and overall appeal. | +| [filter(rectangle, options)](#filter_rectangle_options_34) | Effortlessly enhance specific areas of your image by applying filters to designated
rectangles. This method provides developers with precise control over
image manipulation, allowing for targeted adjustments to achieve desired
visual effects with ease. | +| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_35) | Gets an image 32-bit ARGB pixel. | +| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_36) | Gets the default 32-bit ARGB pixels array. | +| [get_default_options(args)](#get_default_options_args_37) | Gets the default options. | +| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_38) | Gets the default pixels array using partial pixel loader. | +| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_39) | Gets the default raw data array using partial pixel loader. | +| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_40) | Gets the default raw data array. | +| [get_file_format(file_path)](#get_file_format_file_path_41) | Gets the file format. | +| [get_file_format(stream)](#get_file_format_stream_42) | Gets the file format. | +| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_43) | Gets the file format. | +| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_44) | Gets rectangle which fits the current image. | +| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_45) | Gets rectangle which fits the current image. | +| [get_modify_date(use_default)](#get_modify_date_use_default_46) | Gets the date and time the resource image was last modified. | +| [get_original_options()](#get_original_options__47) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | +| [get_pixel(x, y)](#get_pixel_x_y_48) | Gets an image pixel. | +| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_49) | Gets a proportional height. | +| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_50) | Gets a proportional width. | +| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_51) | Converts to aps. | +| [get_skew_angle()](#get_skew_angle__52) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | | grayscale() | Easily transform images into their grayscale representation, simplifying visual
analysis and processing tasks. Perfect for developers seeking to enhance image clarity,
reduce complexity, and facilitate efficient grayscale-based algorithms
for diverse applications. | -| [insert_page(page_index)](#insert_page_page_index_49) | Insert a new page into the image's page list at a specified index with this intuitive
method. Ideal for developers seeking precise control over the arrangement of pages in
multi-page images, ensuring seamless organization and customization of image content. | -| [load(file_path)](#load_file_path_50) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(file_path, load_options)](#load_file_path_load_options_51) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(stream)](#load_stream_52) | Loads a new image from the specified stream. | -| [load(stream, load_options)](#load_stream_load_options_53) | Loads a new image from the specified stream. | -| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_54) | Loads 32-bit ARGB pixels. | -| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_55) | Loads 64-bit ARGB pixels. | -| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_56) | Loads pixels in CMYK format. | -| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_57) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_58) | Loads 32-bit ARGB pixels partially (by blocks). | -| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_59) | Loads 64-bit ARGB pixels partially by packs. | -| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_60) | Loads pixels partially by packs. | -| [load_pixels(rectangle)](#load_pixels_rectangle_61) | Loads pixels. | -| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_62) | Loads raw data. | -| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_63) | Loads raw data. | -| [load_stream(stream)](#load_stream_stream_64) | Loads a new image from the specified stream. | -| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_65) | Loads a new image from the specified stream. | -| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_66) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [insert_page(page_index)](#insert_page_page_index_53) | Insert a new page into the image's page list at a specified index with this intuitive
method. Ideal for developers seeking precise control over the arrangement of pages in
multi-page images, ensuring seamless organization and customization of image content. | +| [load(file_path)](#load_file_path_54) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path, load_options)](#load_file_path_load_options_55) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(stream)](#load_stream_56) | Loads a new image from the specified stream. | +| [load(stream, load_options)](#load_stream_load_options_57) | Loads a new image from the specified stream. | +| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_58) | Loads 32-bit ARGB pixels. | +| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_59) | Loads 64-bit ARGB pixels. | +| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_60) | Loads pixels in CMYK format. | +| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_61) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_62) | Loads 32-bit ARGB pixels partially (by blocks). | +| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_63) | Loads 64-bit ARGB pixels partially by packs. | +| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_64) | Loads pixels partially by packs. | +| [load_pixels(rectangle)](#load_pixels_rectangle_65) | Loads pixels. | +| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_66) | Loads raw data. | +| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_67) | Loads raw data. | +| [load_stream(stream)](#load_stream_stream_68) | Loads a new image from the specified stream. | +| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_69) | Loads a new image from the specified stream. | +| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_70) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | | normalize_angle() | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | -| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_67) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterCachedMultipageImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rastercachedmultipageimage/) methods. | -| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_68) | Reads the whole scan line by the specified scan line index. | -| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_69) | Reads the whole scan line by the specified scan line index. | +| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_71) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterCachedMultipageImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rastercachedmultipageimage/) methods. | +| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_72) | Reads the whole scan line by the specified scan line index. | +| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_73) | Reads the whole scan line by the specified scan line index. | | remove_metadata() | Removes this image instance metadata by setting this [IHasXmpData.xmp_data](/imaging/python-net/aspose.imaging.xmp/ihasxmpdata/) value to **None**. | -| [remove_page(page_index)](#remove_page_page_index_70) | Eliminate the page at the specified index from the page list with this convenient method.
Ideal for developers seeking precise control over the management of multi-page images,
ensuring seamless organization and customization of image content. | -| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_71) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_72) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_73) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_74) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_75) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [resize(new_width, new_height)](#resize_new_width_new_height_76) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_77) | Resize the image while maintaining its aspect ratio with this convenient method. Ideal
for developers seeking to adjust the image dimensions proportionally, ensuring
consistency and preserving the original content's proportions.
The proportional resize will resize each frame according to the ratio of _newWidth_/width and _newHeight_/height. | -| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_78) | Resizes the image. | -| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_79) | Resizes the image. | -| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_80) | Resizes the image. | -| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_81) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_82) | Adjust the height of the image while maintaining its aspect ratio with this
user-friendly method. Perfect for developers seeking to dynamically resize images
while preserving their proportions, ensuring optimal display and usability
in their applications. | -| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_83) | Resizes the height proportionally. | -| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_84) | Resizes the height proportionally. | -| [resize_proportional(new_width, new_height, resize_type)](#resize_proportional_new_width_new_height_resize_type_85) | Resize the image while maintaining its aspect ratio with this convenient method. Ideal
for developers seeking to adjust the image dimensions proportionally, ensuring
consistency and preserving the original content's proportions.
The proportional resize will resize each frame according to the ratio of _newWidth_/width and _newHeight_/height. | -| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_86) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_87) | Adjust the width of the image while maintaining its aspect ratio with this convenient
method. Ideal for developers seeking to resize images proportionally, ensuring
consistent and visually appealing results across different display environment. | -| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_88) | Resizes the width proportionally. | -| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_89) | Resizes the width proportionally. | -| [rotate(angle)](#rotate_angle_90) | Rotate image around the center. | -| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_91) | Rotate the image around its center with this convenient method. Ideal for developers
seeking to adjust image orientation dynamically, ensuring optimal presentation and
alignment within their applications. | -| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_92) | Easily manipulate the active frame by rotating, flipping, or performing both actions
simultaneously with this straightforward method. Ideal for developers who need to
dynamically adjust the orientation of specific frames within their image sequences,
ensuring optimal presentation and alignment. | -| [rotate_flip_all(rotate_flip)](#rotate_flip_all_rotate_flip_93) | Rotates the flip all. | +| [remove_page(page_index)](#remove_page_page_index_74) | Eliminate the page at the specified index from the page list with this convenient method.
Ideal for developers seeking precise control over the management of multi-page images,
ensuring seamless organization and customization of image content. | +| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_75) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_76) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_77) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_78) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_79) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [resize(new_width, new_height)](#resize_new_width_new_height_80) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_81) | Resize the image while maintaining its aspect ratio with this convenient method. Ideal
for developers seeking to adjust the image dimensions proportionally, ensuring
consistency and preserving the original content's proportions.
The proportional resize will resize each frame according to the ratio of _newWidth_/width and _newHeight_/height. | +| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_82) | Adjust the size of your image with this simple resizing method. Whether you need to
shrink or enlarge your image, this function ensures that your resizing needs are met
efficiently and accurately, making it perfect for developers seeking quick and easy
image size adjustments. | +| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_83) | Resizes the image. | +| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_84) | Resizes the image. | +| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_85) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_86) | Adjust the height of the image while maintaining its aspect ratio with this
user-friendly method. Perfect for developers seeking to dynamically resize images
while preserving their proportions, ensuring optimal display and usability
in their applications. | +| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_87) | Resizes the height proportionally. | +| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_88) | Resizes the height proportionally. | +| [resize_proportional(new_width, new_height, resize_type)](#resize_proportional_new_width_new_height_resize_type_89) | Resize the image while maintaining its aspect ratio with this convenient method. Ideal
for developers seeking to adjust the image dimensions proportionally, ensuring
consistency and preserving the original content's proportions.
The proportional resize will resize each frame according to the ratio of _newWidth_/width and _newHeight_/height. | +| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_90) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_91) | Adjust the width of the image while maintaining its aspect ratio with this convenient
method. Ideal for developers seeking to resize images proportionally, ensuring
consistent and visually appealing results across different display environment. | +| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_92) | Resizes the width proportionally. | +| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_93) | Resizes the width proportionally. | +| [rotate(angle)](#rotate_angle_94) | Rotate image around the center. | +| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_95) | Rotate the image around its center with this convenient method. Ideal for developers
seeking to adjust image orientation dynamically, ensuring optimal presentation and
alignment within their applications. | +| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_96) | Easily manipulate the active frame by rotating, flipping, or performing both actions
simultaneously with this straightforward method. Ideal for developers who need to
dynamically adjust the orientation of specific frames within their image sequences,
ensuring optimal presentation and alignment. | +| [rotate_flip_all(rotate_flip)](#rotate_flip_all_rotate_flip_97) | Rotates the flip all. | | save() | Saves the image data to the underlying stream. | -| [save(file_path)](#save_file_path_94) | Saves the image to the specified file location. | -| [save(file_path, options)](#save_file_path_options_95) | Preserve the object's data by saving it to the designated file (indexer + filename)
location along with specified file format and options. Ideal for developers seeking to
securely store data in various formats while maintaining flexibility and control over
saving parameters. | -| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_96) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, over_write)](#save_file_path_over_write_97) | Saves the object's data to the specified file location. | -| [save(stream)](#save_stream_98) | Saves the data. | -| [save(stream, options_base)](#save_stream_options_base_99) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_100) | Easily save your image data to a specified stream in the desired file format
using this convenient method. Whether you're working with JPEG, PNG, or another format,
this function ensures that your image data is saved efficiently and accurately,
making it ideal for developers looking to streamline their file-saving processes. | -| [save_all(file_path, options)](#save_all_file_path_options_101) | Preserve the object's data by saving it to the designated file (indexer + filename)
location along with specified file format and options. Ideal for developers seeking to
securely store data in various formats while maintaining flexibility and control over
saving parameters. | -| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_102) | Saves the 32-bit ARGB pixels. | -| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_103) | Saves the pixels. | -| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_104) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_105) | Saves pixels (format specific method). | -| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_106) | Saves the raw data. | -| [save_to_stream(stream)](#save_to_stream_stream_107) | Saves the object's data to the specified stream. | -| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_108) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_109) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_with_options(file_path, options)](#save_with_options_file_path_options_110) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_111) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_112) | Sets an image 32-bit ARGB pixel for the specified position. | -| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_113) | Sets the image palette. | -| [set_pixel(x, y, color)](#set_pixel_x_y_color_114) | Sets an image pixel for the specified position. | -| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_115) | Adjust the resolution of this [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/) with precision using this
straightforward method. Ideal for developers looking to tailor image resolution to
specific requirements, ensuring optimal display quality and file size management. | -| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_116) | Writes the whole scan line to the specified scan line index. | -| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_117) | Writes the whole scan line to the specified scan line index. | +| [save(file_path)](#save_file_path_98) | Saves the image to the specified file location. | +| [save(file_path, options)](#save_file_path_options_99) | Preserve the object's data by saving it to the designated file (indexer + filename)
location along with specified file format and options. Ideal for developers seeking to
securely store data in various formats while maintaining flexibility and control over
saving parameters. | +| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_100) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, over_write)](#save_file_path_over_write_101) | Saves the object's data to the specified file location. | +| [save(stream)](#save_stream_102) | Saves the data. | +| [save(stream, options_base)](#save_stream_options_base_103) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_104) | Easily save your image data to a specified stream in the desired file format
using this convenient method. Whether you're working with JPEG, PNG, or another format,
this function ensures that your image data is saved efficiently and accurately,
making it ideal for developers looking to streamline their file-saving processes. | +| [save_all(file_path, options)](#save_all_file_path_options_105) | Preserve the object's data by saving it to the designated file (indexer + filename)
location along with specified file format and options. Ideal for developers seeking to
securely store data in various formats while maintaining flexibility and control over
saving parameters. | +| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_106) | Saves the 32-bit ARGB pixels. | +| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_107) | Saves the pixels. | +| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_108) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_109) | Saves pixels (format specific method). | +| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_110) | Saves the raw data. | +| [save_to_stream(stream)](#save_to_stream_stream_111) | Saves the object's data to the specified stream. | +| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_112) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_113) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_with_options(file_path, options)](#save_with_options_file_path_options_114) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_115) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_116) | Sets an image 32-bit ARGB pixel for the specified position. | +| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_117) | Sets the image palette. | +| [set_pixel(x, y, color)](#set_pixel_x_y_color_118) | Sets an image pixel for the specified position. | +| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_119) | Adjust the resolution of this [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/) with precision using this
straightforward method. Ideal for developers looking to tailor image resolution to
specific requirements, ensuring optimal display quality and file size management. | +| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_120) | Writes the whole scan line to the specified scan line index. | +| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_121) | Writes the whole scan line to the specified scan line index. | ### Constructor: DicomImage(dicom_options, width, height) {#DicomImage_dicom_options_width_height_1} @@ -623,7 +627,7 @@ Determines whether image can be saved to the specified file format represented b create(files) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -645,7 +649,7 @@ Creates the specified files. create(files, throw_exception_on_load_error) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -752,7 +756,97 @@ Creates the specified multipage create options. | [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | -### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_26} +### Method: create_from_files(files) [static] {#create_from_files_files_26} + + +``` + create_from_files(files) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_files(files, throw_exception_on_load_error) [static] {#create_from_files_files_throw_exception_on_load_error_27} + + +``` + create_from_files(files, throw_exception_on_load_error) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | +| throw_exception_on_load_error | bool | if set to true throw exception on load error. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_images(images) [static] {#create_from_images_images_28} + + +``` + create_from_images(images) +``` + +Creates a new image using the specified images as pages + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_images(images, dispose_images) [static] {#create_from_images_images_dispose_images_29} + + +``` + create_from_images(images, dispose_images) +``` + +Creates a new image the specified images as pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | +| dispose_images | bool | if set to true [dispose images]. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_30} ``` @@ -770,7 +864,7 @@ Adjust the cropping area of the image by applying shifts with this versatile met | top_shift | int | The top shift. | | bottom_shift | int | The bottom shift. | -### Method: crop(rectangle) {#crop_rectangle_27} +### Method: crop(rectangle) {#crop_rectangle_31} ``` @@ -785,7 +879,7 @@ Crop the image to remove unwanted areas and focus on essential content with this | :- | :- | :- | | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | -### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_28} +### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_32} ``` @@ -801,7 +895,7 @@ Performs dithering on the current image. | dithering_method | [DitheringMethod](/imaging/python-net/aspose.imaging/ditheringmethod) | The dithering method. | | bits_count | int | The final bits count for dithering. | -### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_29} +### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_33} ``` @@ -818,7 +912,7 @@ Enhance the current image by applying dithering effects with this straightforwar | bits_count | int | The final bits count for dithering. | | custom_palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The custom palette for dithering. | -### Method: filter(rectangle, options) {#filter_rectangle_options_30} +### Method: filter(rectangle, options) {#filter_rectangle_options_34} ``` @@ -834,7 +928,7 @@ Effortlessly enhance specific areas of your image by applying filters to designa | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | | options | [FilterOptionsBase](/imaging/python-net/aspose.imaging.imagefilters.filteroptions/filteroptionsbase/) | The options. | -### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_31} +### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_35} ``` @@ -857,7 +951,7 @@ Gets an image 32-bit ARGB pixel. | int | The 32-bit ARGB pixel for the specified location. | -### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_32} +### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_36} ``` @@ -879,7 +973,7 @@ Gets the default 32-bit ARGB pixels array. | int | The default pixels array. | -### Method: get_default_options(args) {#get_default_options_args_33} +### Method: get_default_options(args) {#get_default_options_args_37} ``` @@ -901,7 +995,7 @@ Gets the default options. | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Default options | -### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_34} +### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_38} ``` @@ -917,7 +1011,7 @@ Gets the default pixels array using partial pixel loader. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to get pixels for. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_35} +### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_39} ``` @@ -934,7 +1028,7 @@ Gets the default raw data array using partial pixel loader. | partial_raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The partial raw data loader. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings. | -### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_36} +### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_40} ``` @@ -957,7 +1051,7 @@ Gets the default raw data array. | byte | The default raw data array. | -### Method: get_file_format(file_path) [static] {#get_file_format_file_path_37} +### Method: get_file_format(file_path) [static] {#get_file_format_file_path_41} ``` @@ -979,7 +1073,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format(stream) [static] {#get_file_format_stream_38} +### Method: get_file_format(stream) [static] {#get_file_format_stream_42} ``` @@ -1001,7 +1095,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_39} +### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_43} ``` @@ -1023,7 +1117,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_40} +### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_44} ``` @@ -1048,7 +1142,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_41} +### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_45} ``` @@ -1072,7 +1166,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_modify_date(use_default) {#get_modify_date_use_default_42} +### Method: get_modify_date(use_default) {#get_modify_date_use_default_46} ``` @@ -1094,7 +1188,7 @@ Gets the date and time the resource image was last modified. | datetime | The date and time the resource image was last modified. | -### Method: get_original_options() {#get_original_options__43} +### Method: get_original_options() {#get_original_options__47} ``` @@ -1110,7 +1204,7 @@ Gets the options based on the original file settings.
This can b | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options based on the original file settings. | -### Method: get_pixel(x, y) {#get_pixel_x_y_44} +### Method: get_pixel(x, y) {#get_pixel_x_y_48} ``` @@ -1133,7 +1227,7 @@ Gets an image pixel. | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified location. | -### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_45} +### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_49} ``` @@ -1157,7 +1251,7 @@ Gets a proportional height. | int | The proportional height. | -### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_46} +### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_50} ``` @@ -1181,7 +1275,7 @@ Gets a proportional width. | int | The proportional width. | -### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_47} +### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_51} ``` @@ -1205,7 +1299,7 @@ Converts to aps. | _io.BufferedRandom | The serialized stream | -### Method: get_skew_angle() {#get_skew_angle__48} +### Method: get_skew_angle() {#get_skew_angle__52} ``` @@ -1221,7 +1315,7 @@ Gets the skew angle.
This method is applicable to scanned text d | float | The skew angle, in degrees. | -### Method: insert_page(page_index) {#insert_page_page_index_49} +### Method: insert_page(page_index) {#insert_page_page_index_53} ``` @@ -1243,7 +1337,7 @@ Insert a new page into the image's page list at a specified index with this intu | [DicomPage](/imaging/python-net/aspose.imaging.fileformats.dicom/dicompage) | The newly created [DicomPage](/imaging/python-net/aspose.imaging.fileformats.dicom/dicompage/). | -### Method: load(file_path) [static] {#load_file_path_50} +### Method: load(file_path) [static] {#load_file_path_54} ``` @@ -1265,7 +1359,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(file_path, load_options) [static] {#load_file_path_load_options_51} +### Method: load(file_path, load_options) [static] {#load_file_path_load_options_55} ``` @@ -1288,7 +1382,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream) [static] {#load_stream_52} +### Method: load(stream) [static] {#load_stream_56} ``` @@ -1310,7 +1404,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream, load_options) [static] {#load_stream_load_options_53} +### Method: load(stream, load_options) [static] {#load_stream_load_options_57} ``` @@ -1333,7 +1427,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_54} +### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_58} ``` @@ -1355,7 +1449,7 @@ Loads 32-bit ARGB pixels. | int | The loaded 32-bit ARGB pixels array. | -### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_55} +### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_59} ``` @@ -1377,7 +1471,7 @@ Loads 64-bit ARGB pixels. | long | The loaded 64-bit ARGB pixels array. | -### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_56} +### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_60} ``` @@ -1399,7 +1493,7 @@ Loads pixels in CMYK format. | int | The loaded CMYK pixels presentes as 32-bit inateger values. | -### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_57} +### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_61} ``` @@ -1421,7 +1515,7 @@ Loads pixels in CMYK format.
This method is deprecated. Please u | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The loaded CMYK pixels array. | -### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_58} +### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_62} ``` @@ -1437,7 +1531,7 @@ Loads 32-bit ARGB pixels partially (by blocks). | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to load pixels from. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_59} +### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_63} ``` @@ -1453,7 +1547,7 @@ Loads 64-bit ARGB pixels partially by packs. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | partial_pixel_loader | [IPartialArgb64PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb64pixelloader) | The 64-bit ARGB pixel loader. | -### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_60} +### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_64} ``` @@ -1469,7 +1563,7 @@ Loads pixels partially by packs. | desired_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | pixel_loader | [IPartialPixelLoader](/imaging/python-net/aspose.imaging/ipartialpixelloader) | The pixel loader. | -### Method: load_pixels(rectangle) {#load_pixels_rectangle_61} +### Method: load_pixels(rectangle) {#load_pixels_rectangle_65} ``` @@ -1491,7 +1585,7 @@ Loads pixels. | [Color[]](/imaging/python-net/aspose.imaging/color) | The loaded pixels array. | -### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_62} +### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_66} ``` @@ -1509,7 +1603,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_63} +### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_67} ``` @@ -1526,7 +1620,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_stream(stream) [static] {#load_stream_stream_64} +### Method: load_stream(stream) [static] {#load_stream_stream_68} ``` @@ -1548,7 +1642,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_65} +### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_69} ``` @@ -1571,7 +1665,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_66} +### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_70} ``` @@ -1594,7 +1688,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_67} +### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_71} ``` @@ -1610,7 +1704,7 @@ Normalizes the angle.
This method is applicable to scanned text | resize_proportionally | bool | if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_68} +### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_72} ``` @@ -1632,7 +1726,7 @@ Reads the whole scan line by the specified scan line index. | int | The scan line 32-bit ARGB color values array. | -### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_69} +### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_73} ``` @@ -1654,7 +1748,7 @@ Reads the whole scan line by the specified scan line index. | [Color[]](/imaging/python-net/aspose.imaging/color) | The scan line pixel color values array. | -### Method: remove_page(page_index) {#remove_page_page_index_70} +### Method: remove_page(page_index) {#remove_page_page_index_74} ``` @@ -1669,7 +1763,7 @@ Eliminate the page at the specified index from the page list with this convenien | :- | :- | :- | | page_index | int | Index of the page. | -### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_71} +### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_75} ``` @@ -1686,7 +1780,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_72} +### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_76} ``` @@ -1703,7 +1797,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | | -### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_73} +### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_77} ``` @@ -1720,7 +1814,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_74} +### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_78} ``` @@ -1735,7 +1829,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | | -### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_75} +### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_79} ``` @@ -1750,7 +1844,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color_argb | int | New color ARGB value to replace non transparent colors with. | -### Method: resize(new_width, new_height) {#resize_new_width_new_height_76} +### Method: resize(new_width, new_height) {#resize_new_width_new_height_80} ``` @@ -1766,7 +1860,7 @@ Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/ | new_width | int | The new width. | | new_height | int | The new height. | -### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_77} +### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_81} ``` @@ -1783,14 +1877,14 @@ Resize the image while maintaining its aspect ratio with this convenient method. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_78} +### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_82} ``` resize(new_width, new_height, settings) ``` -Resizes the image. +Adjust the size of your image with this simple resizing method. Whether you need to
shrink or enlarge your image, this function ensures that your resizing needs are met
efficiently and accurately, making it perfect for developers seeking quick and easy
image size adjustments. **Parameters:** @@ -1800,7 +1894,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_79} +### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_83} ``` @@ -1817,7 +1911,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_80} +### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_84} ``` @@ -1834,7 +1928,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_81} +### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_85} ``` @@ -1849,7 +1943,7 @@ Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RES | :- | :- | :- | | new_height | int | The new height. | -### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_82} +### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_86} ``` @@ -1865,7 +1959,7 @@ Adjust the height of the image while maintaining its aspect ratio with this
| new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_83} +### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_87} ``` @@ -1881,7 +1975,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_84} +### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_88} ``` @@ -1897,7 +1991,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_proportional(new_width, new_height, resize_type) {#resize_proportional_new_width_new_height_resize_type_85} +### Method: resize_proportional(new_width, new_height, resize_type) {#resize_proportional_new_width_new_height_resize_type_89} ``` @@ -1914,7 +2008,7 @@ Resize the image while maintaining its aspect ratio with this convenient method. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_86} +### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_90} ``` @@ -1929,7 +2023,7 @@ Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESA | :- | :- | :- | | new_width | int | The new width. | -### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_87} +### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_91} ``` @@ -1945,7 +2039,7 @@ Adjust the width of the image while maintaining its aspect ratio with this conve | new_width | int | The new width. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_88} +### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_92} ``` @@ -1961,7 +2055,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_89} +### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_93} ``` @@ -1977,7 +2071,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: rotate(angle) {#rotate_angle_90} +### Method: rotate(angle) {#rotate_angle_94} ``` @@ -1992,7 +2086,7 @@ Rotate image around the center. | :- | :- | :- | | angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | -### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_91} +### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_95} ``` @@ -2009,7 +2103,7 @@ Rotate the image around its center with this convenient method. Ideal for develo | resize_proportionally | bool | if set to true you will have your image size changed
according to rotated rectangle (corner points) projections in other
case that leaves dimensions untouched and only
__internal__ image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_92} +### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_96} ``` @@ -2024,7 +2118,7 @@ Easily manipulate the active frame by rotating, flipping, or performing both act | :- | :- | :- | | rotate_flip_type | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | The rotate flip type. | -### Method: rotate_flip_all(rotate_flip) {#rotate_flip_all_rotate_flip_93} +### Method: rotate_flip_all(rotate_flip) {#rotate_flip_all_rotate_flip_97} ``` @@ -2039,7 +2133,7 @@ Rotates the flip all. | :- | :- | :- | | rotate_flip | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | The rotate flip. | -### Method: save(file_path) {#save_file_path_94} +### Method: save(file_path) {#save_file_path_98} ``` @@ -2054,7 +2148,7 @@ Saves the image to the specified file location. | :- | :- | :- | | file_path | string | The file path to save the image to. | -### Method: save(file_path, options) {#save_file_path_options_95} +### Method: save(file_path, options) {#save_file_path_options_99} ``` @@ -2070,7 +2164,7 @@ Preserve the object's data by saving it to the designated file (indexer + filena | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_96} +### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_100} ``` @@ -2087,7 +2181,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: save(file_path, over_write) {#save_file_path_over_write_97} +### Method: save(file_path, over_write) {#save_file_path_over_write_101} ``` @@ -2103,7 +2197,7 @@ Saves the object's data to the specified file location. | file_path | string | The file path to save the object's data to. | | over_write | bool | if set to true over write the file contents, otherwise append will occur. | -### Method: save(stream) {#save_stream_98} +### Method: save(stream) {#save_stream_102} ``` @@ -2118,7 +2212,7 @@ Saves the data. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save data to. | -### Method: save(stream, options_base) {#save_stream_options_base_99} +### Method: save(stream, options_base) {#save_stream_options_base_103} ``` @@ -2134,7 +2228,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_100} +### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_104} ``` @@ -2151,7 +2245,7 @@ Easily save your image data to a specified stream in the desired file format
This method is deprecated. Please use more eff | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The CMYK pixels array. | -### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_105} +### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_109} ``` @@ -2231,7 +2325,7 @@ Saves pixels (format specific method). | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | [Color[]](/imaging/python-net/aspose.imaging/color) | The pixels array. | -### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_106} +### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_110} ``` @@ -2249,7 +2343,7 @@ Saves the raw data. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The raw data rectangle. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings the data is in. | -### Method: save_to_stream(stream) {#save_to_stream_stream_107} +### Method: save_to_stream(stream) {#save_to_stream_stream_111} ``` @@ -2264,7 +2358,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_108} +### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_112} ``` @@ -2280,7 +2374,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_109} +### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_113} ``` @@ -2297,7 +2391,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_110} +### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_114} ``` @@ -2313,7 +2407,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_111} +### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_115} ``` @@ -2330,7 +2424,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_112} +### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_116} ``` @@ -2347,7 +2441,7 @@ Sets an image 32-bit ARGB pixel for the specified position. | y | int | The pixel y location. | | argb_32_color | int | The 32-bit ARGB pixel for the specified position. | -### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_113} +### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_117} ``` @@ -2363,7 +2457,7 @@ Sets the image palette. | palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The palette to set. | | update_colors | bool | if set to true colors will be updated according to the new palette; otherwise color indexes remain unchanged. Note that unchanged indexes may crash the image on loading if some indexes have no corresponding palette entries. | -### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_114} +### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_118} ``` @@ -2380,7 +2474,7 @@ Sets an image pixel for the specified position. | y | int | The pixel y location. | | color | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified position. | -### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_115} +### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_119} ``` @@ -2396,7 +2490,7 @@ Adjust the resolution of this [RasterImage](/imaging/python-net/aspose.imaging/r | dpi_x | double | The horizontal resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | | dpi_y | double | The vertical resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_116} +### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_120} ``` @@ -2412,7 +2506,7 @@ Writes the whole scan line to the specified scan line index. | scan_line_index | int | Zero based index of the scan line. | | argb_32_pixels | int | The 32-bit ARGB colors array to write. | -### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_117} +### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_121} ``` diff --git a/english/python-net/aspose.imaging.fileformats.dicom/dicompage/_index.md b/english/python-net/aspose.imaging.fileformats.dicom/dicompage/_index.md index b9c8d8c0f0..2da98d64f8 100644 --- a/english/python-net/aspose.imaging.fileformats.dicom/dicompage/_index.md +++ b/english/python-net/aspose.imaging.fileformats.dicom/dicompage/_index.md @@ -78,103 +78,107 @@ url: /python-net/aspose.imaging.fileformats.dicom/dicompage/ | [can_load_stream_with_options(stream, load_options)](#can_load_stream_with_options_stream_load_options_15) | Determines whether image can be loaded from the specified stream and optionally using the specified _loadOptions_. | | [can_load_with_options(file_path, load_options)](#can_load_with_options_file_path_load_options_16) | Determines whether image can be loaded from the specified file path and optionally using the specified open options. | | [can_save(options)](#can_save_options_17) | Determines whether image can be saved to the specified file format represented by the passed save options. | -| [create(files)](#create_files_18) | Creates the specified files. | -| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_19) | Creates the specified files. | +| [create(files)](#create_files_18) | Creates the multipage image containing the specified files. | +| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_19) | Creates the multipage image containing the specified files. | | [create(image_options, width, height)](#create_image_options_width_height_20) | Creates a new image using the specified create options. | | [create(images)](#create_images_21) | Creates a new image using the specified images as pages | | [create(images, dispose_images)](#create_images_dispose_images_22) | Creates a new image the specified images as pages. | | [create(multipage_create_options)](#create_multipage_create_options_23) | Creates the specified multipage create options. | -| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_24) | Crop image with shifts. | -| [crop(rectangle)](#crop_rectangle_25) | Cropping the image. | -| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_26) | Performs dithering on the current image. | -| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_27) | Performs dithering on the current image. | -| [filter(rectangle, options)](#filter_rectangle_options_28) | Filters the specified rectangle. | -| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_29) | Gets an image 32-bit ARGB pixel. | -| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_30) | Gets the default 32-bit ARGB pixels array. | -| [get_default_options(args)](#get_default_options_args_31) | Gets the default options. | -| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_32) | Gets the default pixels array using partial pixel loader. | -| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_33) | Gets the default raw data array using partial pixel loader. | -| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_34) | Gets the default raw data array. | -| [get_file_format(file_path)](#get_file_format_file_path_35) | Gets the file format. | -| [get_file_format(stream)](#get_file_format_stream_36) | Gets the file format. | -| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_37) | Gets the file format. | -| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_38) | Gets rectangle which fits the current image. | -| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_39) | Gets rectangle which fits the current image. | -| [get_modify_date(use_default)](#get_modify_date_use_default_40) | Gets the date and time the resource image was last modified. | -| [get_original_options()](#get_original_options__41) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | -| [get_pixel(x, y)](#get_pixel_x_y_42) | Gets an image pixel. | -| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_43) | Gets a proportional height. | -| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_44) | Gets a proportional width. | -| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_45) | Converts to aps. | -| [get_skew_angle()](#get_skew_angle__46) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | +| [create_from_files(files)](#create_from_files_files_24) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_files(files, throw_exception_on_load_error)](#create_from_files_files_throw_exception_on_load_error_25) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_images(images)](#create_from_images_images_26) | Creates a new image using the specified images as pages | +| [create_from_images(images, dispose_images)](#create_from_images_images_dispose_images_27) | Creates a new image the specified images as pages. | +| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_28) | Crop image with shifts. | +| [crop(rectangle)](#crop_rectangle_29) | Cropping the image. | +| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_30) | Performs dithering on the current image. | +| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_31) | Performs dithering on the current image. | +| [filter(rectangle, options)](#filter_rectangle_options_32) | Filters the specified rectangle. | +| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_33) | Gets an image 32-bit ARGB pixel. | +| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_34) | Gets the default 32-bit ARGB pixels array. | +| [get_default_options(args)](#get_default_options_args_35) | Gets the default options. | +| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_36) | Gets the default pixels array using partial pixel loader. | +| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_37) | Gets the default raw data array using partial pixel loader. | +| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_38) | Gets the default raw data array. | +| [get_file_format(file_path)](#get_file_format_file_path_39) | Gets the file format. | +| [get_file_format(stream)](#get_file_format_stream_40) | Gets the file format. | +| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_41) | Gets the file format. | +| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_42) | Gets rectangle which fits the current image. | +| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_43) | Gets rectangle which fits the current image. | +| [get_modify_date(use_default)](#get_modify_date_use_default_44) | Gets the date and time the resource image was last modified. | +| [get_original_options()](#get_original_options__45) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | +| [get_pixel(x, y)](#get_pixel_x_y_46) | Gets an image pixel. | +| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_47) | Gets a proportional height. | +| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_48) | Gets a proportional width. | +| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_49) | Converts to aps. | +| [get_skew_angle()](#get_skew_angle__50) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | | grayscale() | Transformation of an image to its grayscale representation | -| [load(file_path)](#load_file_path_47) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(file_path, load_options)](#load_file_path_load_options_48) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(stream)](#load_stream_49) | Loads a new image from the specified stream. | -| [load(stream, load_options)](#load_stream_load_options_50) | Loads a new image from the specified stream. | -| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_51) | Loads 32-bit ARGB pixels. | -| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_52) | Loads 64-bit ARGB pixels. | -| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_53) | Loads pixels in CMYK format. | -| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_54) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_55) | Loads 32-bit ARGB pixels partially (by blocks). | -| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_56) | Loads 64-bit ARGB pixels partially by packs. | -| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_57) | Loads pixels partially by packs. | -| [load_pixels(rectangle)](#load_pixels_rectangle_58) | Loads pixels. | -| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_59) | Loads raw data. | -| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_60) | Loads raw data. | -| [load_stream(stream)](#load_stream_stream_61) | Loads a new image from the specified stream. | -| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_62) | Loads a new image from the specified stream. | -| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_63) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path)](#load_file_path_51) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path, load_options)](#load_file_path_load_options_52) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(stream)](#load_stream_53) | Loads a new image from the specified stream. | +| [load(stream, load_options)](#load_stream_load_options_54) | Loads a new image from the specified stream. | +| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_55) | Loads 32-bit ARGB pixels. | +| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_56) | Loads 64-bit ARGB pixels. | +| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_57) | Loads pixels in CMYK format. | +| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_58) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_59) | Loads 32-bit ARGB pixels partially (by blocks). | +| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_60) | Loads 64-bit ARGB pixels partially by packs. | +| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_61) | Loads pixels partially by packs. | +| [load_pixels(rectangle)](#load_pixels_rectangle_62) | Loads pixels. | +| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_63) | Loads raw data. | +| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_64) | Loads raw data. | +| [load_stream(stream)](#load_stream_stream_65) | Loads a new image from the specified stream. | +| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_66) | Loads a new image from the specified stream. | +| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_67) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | | normalize_angle() | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | -| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_64) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | -| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_65) | Reads the whole scan line by the specified scan line index. | -| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_66) | Reads the whole scan line by the specified scan line index. | +| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_68) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | +| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_69) | Reads the whole scan line by the specified scan line index. | +| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_70) | Reads the whole scan line by the specified scan line index. | | remove_metadata() | Removes this image instance metadata by setting this [IHasXmpData.xmp_data](/imaging/python-net/aspose.imaging.xmp/ihasxmpdata/) value to **None**. | -| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_67) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_68) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_69) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_70) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_71) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [resize(new_width, new_height)](#resize_new_width_new_height_72) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_73) | Resizes the image. | -| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_74) | Resizes the image. | -| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_75) | Resizes the image. | -| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_76) | Resizes the image. | -| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_77) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_78) | Resizes the height proportionally. | -| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_79) | Resizes the height proportionally. | -| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_80) | Resizes the height proportionally. | -| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_81) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_82) | Resizes the width proportionally. | -| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_83) | Resizes the width proportionally. | -| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_84) | Resizes the width proportionally. | -| [rotate(angle)](#rotate_angle_85) | Rotate image around the center. | -| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_86) | Rotate image around the center. | -| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_87) | Rotates, flips, or rotates and flips the image. | +| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_71) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_72) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_73) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_74) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_75) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [resize(new_width, new_height)](#resize_new_width_new_height_76) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_77) | Resizes the image. | +| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_78) | Resizes the image. | +| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_79) | Resizes the image. | +| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_80) | Resizes the image. | +| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_81) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_82) | Resizes the height proportionally. | +| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_83) | Resizes the height proportionally. | +| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_84) | Resizes the height proportionally. | +| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_85) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_86) | Resizes the width proportionally. | +| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_87) | Resizes the width proportionally. | +| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_88) | Resizes the width proportionally. | +| [rotate(angle)](#rotate_angle_89) | Rotate image around the center. | +| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_90) | Rotate image around the center. | +| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_91) | Rotates, flips, or rotates and flips the image. | | save() | Saves the image data to the underlying stream. | -| [save(file_path)](#save_file_path_88) | Saves the image to the specified file location. | -| [save(file_path, options)](#save_file_path_options_89) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_90) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, over_write)](#save_file_path_over_write_91) | Saves the object's data to the specified file location. | -| [save(stream)](#save_stream_92) | Saves the data. | -| [save(stream, options_base)](#save_stream_options_base_93) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_94) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_95) | Saves the 32-bit ARGB pixels. | -| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_96) | Saves the pixels. | -| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_97) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_98) | Saves pixels (format specific method). | -| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_99) | Saves the raw data. | -| [save_to_stream(stream)](#save_to_stream_stream_100) | Saves the object's data to the specified stream. | -| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_101) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_102) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_with_options(file_path, options)](#save_with_options_file_path_options_103) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_104) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_105) | Sets an image 32-bit ARGB pixel for the specified position. | -| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_106) | Sets the image palette. | -| [set_pixel(x, y, color)](#set_pixel_x_y_color_107) | Sets an image pixel for the specified position. | -| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_108) | Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_109) | Writes the whole scan line to the specified scan line index. | -| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_110) | Writes the whole scan line to the specified scan line index. | +| [save(file_path)](#save_file_path_92) | Saves the image to the specified file location. | +| [save(file_path, options)](#save_file_path_options_93) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_94) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, over_write)](#save_file_path_over_write_95) | Saves the object's data to the specified file location. | +| [save(stream)](#save_stream_96) | Saves the data. | +| [save(stream, options_base)](#save_stream_options_base_97) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_98) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_99) | Saves the 32-bit ARGB pixels. | +| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_100) | Saves the pixels. | +| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_101) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_102) | Saves pixels (format specific method). | +| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_103) | Saves the raw data. | +| [save_to_stream(stream)](#save_to_stream_stream_104) | Saves the object's data to the specified stream. | +| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_105) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_106) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_with_options(file_path, options)](#save_with_options_file_path_options_107) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_108) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_109) | Sets an image 32-bit ARGB pixel for the specified position. | +| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_110) | Sets the image palette. | +| [set_pixel(x, y, color)](#set_pixel_x_y_color_111) | Sets an image pixel for the specified position. | +| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_112) | Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | +| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_113) | Writes the whole scan line to the specified scan line index. | +| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_114) | Writes the whole scan line to the specified scan line index. | ### Constructor: DicomPage(image, index) {#DicomPage_image_index_1} @@ -540,7 +544,7 @@ Determines whether image can be saved to the specified file format represented b create(files) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -562,7 +566,7 @@ Creates the specified files. create(files, throw_exception_on_load_error) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -669,7 +673,97 @@ Creates the specified multipage create options. | [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | -### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_24} +### Method: create_from_files(files) [static] {#create_from_files_files_24} + + +``` + create_from_files(files) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_files(files, throw_exception_on_load_error) [static] {#create_from_files_files_throw_exception_on_load_error_25} + + +``` + create_from_files(files, throw_exception_on_load_error) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | +| throw_exception_on_load_error | bool | if set to true throw exception on load error. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_images(images) [static] {#create_from_images_images_26} + + +``` + create_from_images(images) +``` + +Creates a new image using the specified images as pages + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_images(images, dispose_images) [static] {#create_from_images_images_dispose_images_27} + + +``` + create_from_images(images, dispose_images) +``` + +Creates a new image the specified images as pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | +| dispose_images | bool | if set to true [dispose images]. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_28} ``` @@ -687,7 +781,7 @@ Crop image with shifts. | top_shift | int | The top shift. | | bottom_shift | int | The bottom shift. | -### Method: crop(rectangle) {#crop_rectangle_25} +### Method: crop(rectangle) {#crop_rectangle_29} ``` @@ -702,7 +796,7 @@ Cropping the image. | :- | :- | :- | | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | -### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_26} +### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_30} ``` @@ -718,7 +812,7 @@ Performs dithering on the current image. | dithering_method | [DitheringMethod](/imaging/python-net/aspose.imaging/ditheringmethod) | The dithering method. | | bits_count | int | The final bits count for dithering. | -### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_27} +### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_31} ``` @@ -735,7 +829,7 @@ Performs dithering on the current image. | bits_count | int | The final bits count for dithering. | | custom_palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The custom palette for dithering. | -### Method: filter(rectangle, options) {#filter_rectangle_options_28} +### Method: filter(rectangle, options) {#filter_rectangle_options_32} ``` @@ -751,7 +845,7 @@ Filters the specified rectangle. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | | options | [FilterOptionsBase](/imaging/python-net/aspose.imaging.imagefilters.filteroptions/filteroptionsbase/) | The options. | -### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_29} +### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_33} ``` @@ -774,7 +868,7 @@ Gets an image 32-bit ARGB pixel. | int | The 32-bit ARGB pixel for the specified location. | -### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_30} +### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_34} ``` @@ -796,7 +890,7 @@ Gets the default 32-bit ARGB pixels array. | int | The default pixels array. | -### Method: get_default_options(args) {#get_default_options_args_31} +### Method: get_default_options(args) {#get_default_options_args_35} ``` @@ -818,7 +912,7 @@ Gets the default options. | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Default options | -### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_32} +### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_36} ``` @@ -834,7 +928,7 @@ Gets the default pixels array using partial pixel loader. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to get pixels for. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_33} +### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_37} ``` @@ -851,7 +945,7 @@ Gets the default raw data array using partial pixel loader. | partial_raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The partial raw data loader. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings. | -### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_34} +### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_38} ``` @@ -874,7 +968,7 @@ Gets the default raw data array. | byte | The default raw data array. | -### Method: get_file_format(file_path) [static] {#get_file_format_file_path_35} +### Method: get_file_format(file_path) [static] {#get_file_format_file_path_39} ``` @@ -896,7 +990,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format(stream) [static] {#get_file_format_stream_36} +### Method: get_file_format(stream) [static] {#get_file_format_stream_40} ``` @@ -918,7 +1012,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_37} +### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_41} ``` @@ -940,7 +1034,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_38} +### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_42} ``` @@ -965,7 +1059,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_39} +### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_43} ``` @@ -989,7 +1083,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_modify_date(use_default) {#get_modify_date_use_default_40} +### Method: get_modify_date(use_default) {#get_modify_date_use_default_44} ``` @@ -1011,7 +1105,7 @@ Gets the date and time the resource image was last modified. | datetime | The date and time the resource image was last modified. | -### Method: get_original_options() {#get_original_options__41} +### Method: get_original_options() {#get_original_options__45} ``` @@ -1027,7 +1121,7 @@ Gets the options based on the original file settings.
This can b | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options based on the original file settings. | -### Method: get_pixel(x, y) {#get_pixel_x_y_42} +### Method: get_pixel(x, y) {#get_pixel_x_y_46} ``` @@ -1050,7 +1144,7 @@ Gets an image pixel. | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified location. | -### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_43} +### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_47} ``` @@ -1074,7 +1168,7 @@ Gets a proportional height. | int | The proportional height. | -### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_44} +### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_48} ``` @@ -1098,7 +1192,7 @@ Gets a proportional width. | int | The proportional width. | -### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_45} +### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_49} ``` @@ -1122,7 +1216,7 @@ Converts to aps. | _io.BufferedRandom | The serialized stream | -### Method: get_skew_angle() {#get_skew_angle__46} +### Method: get_skew_angle() {#get_skew_angle__50} ``` @@ -1138,7 +1232,7 @@ Gets the skew angle.
This method is applicable to scanned text d | float | The skew angle, in degrees. | -### Method: load(file_path) [static] {#load_file_path_47} +### Method: load(file_path) [static] {#load_file_path_51} ``` @@ -1160,7 +1254,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(file_path, load_options) [static] {#load_file_path_load_options_48} +### Method: load(file_path, load_options) [static] {#load_file_path_load_options_52} ``` @@ -1183,7 +1277,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream) [static] {#load_stream_49} +### Method: load(stream) [static] {#load_stream_53} ``` @@ -1205,7 +1299,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream, load_options) [static] {#load_stream_load_options_50} +### Method: load(stream, load_options) [static] {#load_stream_load_options_54} ``` @@ -1228,7 +1322,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_51} +### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_55} ``` @@ -1250,7 +1344,7 @@ Loads 32-bit ARGB pixels. | int | The loaded 32-bit ARGB pixels array. | -### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_52} +### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_56} ``` @@ -1272,7 +1366,7 @@ Loads 64-bit ARGB pixels. | long | The loaded 64-bit ARGB pixels array. | -### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_53} +### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_57} ``` @@ -1294,7 +1388,7 @@ Loads pixels in CMYK format. | int | The loaded CMYK pixels presentes as 32-bit inateger values. | -### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_54} +### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_58} ``` @@ -1316,7 +1410,7 @@ Loads pixels in CMYK format.
This method is deprecated. Please u | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The loaded CMYK pixels array. | -### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_55} +### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_59} ``` @@ -1332,7 +1426,7 @@ Loads 32-bit ARGB pixels partially (by blocks). | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to load pixels from. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_56} +### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_60} ``` @@ -1348,7 +1442,7 @@ Loads 64-bit ARGB pixels partially by packs. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | partial_pixel_loader | [IPartialArgb64PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb64pixelloader) | The 64-bit ARGB pixel loader. | -### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_57} +### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_61} ``` @@ -1364,7 +1458,7 @@ Loads pixels partially by packs. | desired_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | pixel_loader | [IPartialPixelLoader](/imaging/python-net/aspose.imaging/ipartialpixelloader) | The pixel loader. | -### Method: load_pixels(rectangle) {#load_pixels_rectangle_58} +### Method: load_pixels(rectangle) {#load_pixels_rectangle_62} ``` @@ -1386,7 +1480,7 @@ Loads pixels. | [Color[]](/imaging/python-net/aspose.imaging/color) | The loaded pixels array. | -### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_59} +### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_63} ``` @@ -1404,7 +1498,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_60} +### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_64} ``` @@ -1421,7 +1515,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_stream(stream) [static] {#load_stream_stream_61} +### Method: load_stream(stream) [static] {#load_stream_stream_65} ``` @@ -1443,7 +1537,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_62} +### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_66} ``` @@ -1466,7 +1560,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_63} +### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_67} ``` @@ -1489,7 +1583,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_64} +### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_68} ``` @@ -1505,7 +1599,7 @@ Normalizes the angle.
This method is applicable to scanned text | resize_proportionally | bool | if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_65} +### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_69} ``` @@ -1527,7 +1621,7 @@ Reads the whole scan line by the specified scan line index. | int | The scan line 32-bit ARGB color values array. | -### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_66} +### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_70} ``` @@ -1549,7 +1643,7 @@ Reads the whole scan line by the specified scan line index. | [Color[]](/imaging/python-net/aspose.imaging/color) | The scan line pixel color values array. | -### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_67} +### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_71} ``` @@ -1566,7 +1660,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_68} +### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_72} ``` @@ -1583,7 +1677,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | New color to replace old color with. | -### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_69} +### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_73} ``` @@ -1600,7 +1694,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_70} +### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_74} ``` @@ -1615,7 +1709,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | New color to replace non transparent colors with. | -### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_71} +### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_75} ``` @@ -1630,7 +1724,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color_argb | int | New color ARGB value to replace non transparent colors with. | -### Method: resize(new_width, new_height) {#resize_new_width_new_height_72} +### Method: resize(new_width, new_height) {#resize_new_width_new_height_76} ``` @@ -1646,7 +1740,7 @@ Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/ | new_width | int | The new width. | | new_height | int | The new height. | -### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_73} +### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_77} ``` @@ -1663,7 +1757,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_74} +### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_78} ``` @@ -1680,7 +1774,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_75} +### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_79} ``` @@ -1697,7 +1791,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_76} +### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_80} ``` @@ -1714,7 +1808,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_77} +### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_81} ``` @@ -1729,7 +1823,7 @@ Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RES | :- | :- | :- | | new_height | int | The new height. | -### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_78} +### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_82} ``` @@ -1745,7 +1839,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_79} +### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_83} ``` @@ -1761,7 +1855,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_80} +### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_84} ``` @@ -1777,7 +1871,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_81} +### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_85} ``` @@ -1792,7 +1886,7 @@ Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESA | :- | :- | :- | | new_width | int | The new width. | -### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_82} +### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_86} ``` @@ -1808,7 +1902,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_83} +### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_87} ``` @@ -1824,7 +1918,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_84} +### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_88} ``` @@ -1840,7 +1934,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: rotate(angle) {#rotate_angle_85} +### Method: rotate(angle) {#rotate_angle_89} ``` @@ -1855,7 +1949,7 @@ Rotate image around the center. | :- | :- | :- | | angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | -### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_86} +### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_90} ``` @@ -1872,7 +1966,7 @@ Rotate image around the center. | resize_proportionally | bool | if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_87} +### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_91} ``` @@ -1887,7 +1981,7 @@ Rotates, flips, or rotates and flips the image. | :- | :- | :- | | rotate_flip_type | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | The rotate flip type. | -### Method: save(file_path) {#save_file_path_88} +### Method: save(file_path) {#save_file_path_92} ``` @@ -1902,7 +1996,7 @@ Saves the image to the specified file location. | :- | :- | :- | | file_path | string | The file path to save the image to. | -### Method: save(file_path, options) {#save_file_path_options_89} +### Method: save(file_path, options) {#save_file_path_options_93} ``` @@ -1918,7 +2012,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_90} +### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_94} ``` @@ -1935,7 +2029,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: save(file_path, over_write) {#save_file_path_over_write_91} +### Method: save(file_path, over_write) {#save_file_path_over_write_95} ``` @@ -1951,7 +2045,7 @@ Saves the object's data to the specified file location. | file_path | string | The file path to save the object's data to. | | over_write | bool | if set to true over write the file contents, otherwise append will occur. | -### Method: save(stream) {#save_stream_92} +### Method: save(stream) {#save_stream_96} ``` @@ -1966,7 +2060,7 @@ Saves the data. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save data to. | -### Method: save(stream, options_base) {#save_stream_options_base_93} +### Method: save(stream, options_base) {#save_stream_options_base_97} ``` @@ -1982,7 +2076,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_94} +### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_98} ``` @@ -1999,7 +2093,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_95} +### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_99} ``` @@ -2015,7 +2109,7 @@ Saves the 32-bit ARGB pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The 32-bit ARGB pixels array. | -### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_96} +### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_100} ``` @@ -2031,7 +2125,7 @@ Saves the pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The CMYK pixels presented as the 32-bit integer values. | -### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_97} +### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_101} ``` @@ -2047,7 +2141,7 @@ Saves the pixels.
This method is deprecated. Please use more eff | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The CMYK pixels array. | -### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_98} +### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_102} ``` @@ -2063,7 +2157,7 @@ Saves pixels (format specific method). | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | [Color[]](/imaging/python-net/aspose.imaging/color) | The 32-bit ARGB pixels array. | -### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_99} +### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_103} ``` @@ -2081,7 +2175,7 @@ Saves the raw data. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The raw data rectangle. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings the data is in. | -### Method: save_to_stream(stream) {#save_to_stream_stream_100} +### Method: save_to_stream(stream) {#save_to_stream_stream_104} ``` @@ -2096,7 +2190,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_101} +### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_105} ``` @@ -2112,7 +2206,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_102} +### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_106} ``` @@ -2129,7 +2223,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_103} +### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_107} ``` @@ -2145,7 +2239,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_104} +### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_108} ``` @@ -2162,7 +2256,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_105} +### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_109} ``` @@ -2179,7 +2273,7 @@ Sets an image 32-bit ARGB pixel for the specified position. | y | int | The pixel y location. | | argb_32_color | int | The 32-bit ARGB pixel for the specified position. | -### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_106} +### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_110} ``` @@ -2195,7 +2289,7 @@ Sets the image palette. | palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The palette to set. | | update_colors | bool | if set to true colors will be updated according to the new palette; otherwise color indexes remain unchanged. Note that unchanged indexes may crash the image on loading if some indexes have no corresponding palette entries. | -### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_107} +### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_111} ``` @@ -2212,7 +2306,7 @@ Sets an image pixel for the specified position. | y | int | The pixel y location. | | color | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified position. | -### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_108} +### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_112} ``` @@ -2228,7 +2322,7 @@ Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/ra | dpi_x | double | The horizontal resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | | dpi_y | double | The vertical resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_109} +### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_113} ``` @@ -2244,7 +2338,7 @@ Writes the whole scan line to the specified scan line index. | scan_line_index | int | Zero based index of the scan line. | | argb_32_pixels | int | The 32-bit ARGB colors array to write. | -### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_110} +### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_114} ``` diff --git a/english/python-net/aspose.imaging.fileformats.djvu/djvuimage/_index.md b/english/python-net/aspose.imaging.fileformats.djvu/djvuimage/_index.md index b63aeb66e6..27b75e9339 100644 --- a/english/python-net/aspose.imaging.fileformats.djvu/djvuimage/_index.md +++ b/english/python-net/aspose.imaging.fileformats.djvu/djvuimage/_index.md @@ -86,106 +86,110 @@ url: /python-net/aspose.imaging.fileformats.djvu/djvuimage/ | [can_load_stream_with_options(stream, load_options)](#can_load_stream_with_options_stream_load_options_15) | Determines whether image can be loaded from the specified stream and optionally using the specified _loadOptions_. | | [can_load_with_options(file_path, load_options)](#can_load_with_options_file_path_load_options_16) | Determines whether image can be loaded from the specified file path and optionally using the specified open options. | | [can_save(options)](#can_save_options_17) | Determines whether image can be saved to the specified file format represented by the passed save options. | -| [create(files)](#create_files_18) | Creates the specified files. | -| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_19) | Creates the specified files. | +| [create(files)](#create_files_18) | Creates the multipage image containing the specified files. | +| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_19) | Creates the multipage image containing the specified files. | | [create(image_options, width, height)](#create_image_options_width_height_20) | Creates a new image using the specified create options. | | [create(images)](#create_images_21) | Creates a new image using the specified images as pages | | [create(images, dispose_images)](#create_images_dispose_images_22) | Creates a new image the specified images as pages. | | [create(multipage_create_options)](#create_multipage_create_options_23) | Creates the specified multipage create options. | -| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_24) | Crop with shifts allows you to precisely adjust the position and dimensions of the
cropped area within an image. This feature is invaluable for refining compositions,
aligning elements, and emphasizing focal points in your visuals. By incorporating shifts
into the cropping process, you can achieve pixel-perfect precision and fine-tune the
framing of your images with ease. | -| [crop(rectangle)](#crop_rectangle_25) | "Crop" trims your image to focus on specific details or remove unwanted elements,
enhancing its composition and visual impact. Whether you're adjusting photos for social
media, creating website banners, or designing print materials, this tool helps you
refine your images with precision and clarity. | -| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_26) | Performs dithering on the current image. | -| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_27) | The "Dither" function applies a dithering effect to your image, enhancing its visual
quality by reducing banding and improving color transitions. Whether you're working
on digital art, photography, or graphic design projects, this feature adds a
professional touch to your images, making them appear smoother and more refined. | -| [filter(rectangle, options)](#filter_rectangle_options_28) | Apply filters to a specified rectangular area within the image to enhance or modify its
appearance. By targeting specific regions, this method allows for precise adjustments,
such as blurring, sharpening, or applying artistic effects, to achieve desired visual
outcomes. Fine-tuning filters on selected areas empowers users to customize image
aesthetics, improve clarity, and create artistic effects tailored to their preferences. | -| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_29) | Gets an image 32-bit ARGB pixel. | -| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_30) | Gets the default 32-bit ARGB pixels array. | -| [get_default_options(args)](#get_default_options_args_31) | Gets the default options. | -| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_32) | Gets the default pixels array using partial pixel loader. | -| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_33) | Gets the default raw data array using partial pixel loader. | -| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_34) | Gets the default raw data array. | -| [get_file_format(file_path)](#get_file_format_file_path_35) | Gets the file format. | -| [get_file_format(stream)](#get_file_format_stream_36) | Gets the file format. | -| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_37) | Gets the file format. | -| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_38) | Gets rectangle which fits the current image. | -| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_39) | Gets rectangle which fits the current image. | -| [get_modify_date(use_default)](#get_modify_date_use_default_40) | Gets the date and time the resource image was last modified. | -| [get_original_options()](#get_original_options__41) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | -| [get_pixel(x, y)](#get_pixel_x_y_42) | Gets an image pixel. | -| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_43) | Gets a proportional height. | -| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_44) | Gets a proportional width. | -| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_45) | Converts to aps. | -| [get_skew_angle()](#get_skew_angle__46) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | +| [create_from_files(files)](#create_from_files_files_24) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_files(files, throw_exception_on_load_error)](#create_from_files_files_throw_exception_on_load_error_25) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_images(images)](#create_from_images_images_26) | Creates a new image using the specified images as pages | +| [create_from_images(images, dispose_images)](#create_from_images_images_dispose_images_27) | Creates a new image the specified images as pages. | +| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_28) | Crop with shifts allows you to precisely adjust the position and dimensions of the
cropped area within an image. This feature is invaluable for refining compositions,
aligning elements, and emphasizing focal points in your visuals. By incorporating shifts
into the cropping process, you can achieve pixel-perfect precision and fine-tune the
framing of your images with ease. | +| [crop(rectangle)](#crop_rectangle_29) | "Crop" trims your image to focus on specific details or remove unwanted elements,
enhancing its composition and visual impact. Whether you're adjusting photos for social
media, creating website banners, or designing print materials, this tool helps you
refine your images with precision and clarity. | +| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_30) | Performs dithering on the current image. | +| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_31) | The "Dither" function applies a dithering effect to your image, enhancing its visual
quality by reducing banding and improving color transitions. Whether you're working
on digital art, photography, or graphic design projects, this feature adds a
professional touch to your images, making them appear smoother and more refined. | +| [filter(rectangle, options)](#filter_rectangle_options_32) | Apply filters to a specified rectangular area within the image to enhance or modify its
appearance. By targeting specific regions, this method allows for precise adjustments,
such as blurring, sharpening, or applying artistic effects, to achieve desired visual
outcomes. Fine-tuning filters on selected areas empowers users to customize image
aesthetics, improve clarity, and create artistic effects tailored to their preferences. | +| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_33) | Gets an image 32-bit ARGB pixel. | +| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_34) | Gets the default 32-bit ARGB pixels array. | +| [get_default_options(args)](#get_default_options_args_35) | Gets the default options. | +| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_36) | Gets the default pixels array using partial pixel loader. | +| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_37) | Gets the default raw data array using partial pixel loader. | +| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_38) | Gets the default raw data array. | +| [get_file_format(file_path)](#get_file_format_file_path_39) | Gets the file format. | +| [get_file_format(stream)](#get_file_format_stream_40) | Gets the file format. | +| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_41) | Gets the file format. | +| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_42) | Gets rectangle which fits the current image. | +| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_43) | Gets rectangle which fits the current image. | +| [get_modify_date(use_default)](#get_modify_date_use_default_44) | Gets the date and time the resource image was last modified. | +| [get_original_options()](#get_original_options__45) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | +| [get_pixel(x, y)](#get_pixel_x_y_46) | Gets an image pixel. | +| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_47) | Gets a proportional height. | +| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_48) | Gets a proportional width. | +| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_49) | Converts to aps. | +| [get_skew_angle()](#get_skew_angle__50) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | | grayscale() | Grayscale transformation converts an image to a black-and-white representation, where
each pixel's intensity is represented by a single value ranging from black to white.
This process removes color information, resulting in a monochromatic image. Grayscale
images are commonly used in applications where color is unnecessary or where simplicity
is preferred, such as document scanning, printing, and certain types of image analysis. | -| [load(file_path)](#load_file_path_47) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(file_path, load_options)](#load_file_path_load_options_48) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(stream)](#load_stream_49) | Load your DjVu document with this method. Streamline your process by quickly
accessing and importing your DjVu files into your application. | -| [load(stream, load_options)](#load_stream_load_options_50) | Import your DjVu document by utilizing this method with stream and loadOptions
parameters. Streamline your process by quickly accessing and importing DjVu files
into your application, providing flexibility and customization options to meet
your needs. | -| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_51) | Loads 32-bit ARGB pixels. | -| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_52) | Loads 64-bit ARGB pixels. | -| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_53) | Loads pixels in CMYK format. | -| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_54) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [load_document(stream)](#load_document_stream_55) | Load your DjVu document with this method. Streamline your process by quickly
accessing and importing your DjVu files into your application. | -| [load_document(stream, load_options)](#load_document_stream_load_options_56) | Import your DjVu document by utilizing this method with stream and loadOptions
parameters. Streamline your process by quickly accessing and importing DjVu files
into your application, providing flexibility and customization options to meet
your needs. | -| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_57) | Loads 32-bit ARGB pixels partially (by blocks). | -| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_58) | Loads 64-bit ARGB pixels partially by packs. | -| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_59) | Loads pixels partially by packs. | -| [load_pixels(rectangle)](#load_pixels_rectangle_60) | Loads pixels. | -| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_61) | Loads raw data. | -| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_62) | Loads raw data. | -| [load_stream(stream)](#load_stream_stream_63) | Loads a new image from the specified stream. | -| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_64) | Loads a new image from the specified stream. | -| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_65) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path)](#load_file_path_51) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path, load_options)](#load_file_path_load_options_52) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(stream)](#load_stream_53) | Load your DjVu document with this method. Streamline your process by quickly
accessing and importing your DjVu files into your application. | +| [load(stream, load_options)](#load_stream_load_options_54) | Import your DjVu document by utilizing this method with stream and loadOptions
parameters. Streamline your process by quickly accessing and importing DjVu files
into your application, providing flexibility and customization options to meet
your needs. | +| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_55) | Loads 32-bit ARGB pixels. | +| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_56) | Loads 64-bit ARGB pixels. | +| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_57) | Loads pixels in CMYK format. | +| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_58) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [load_document(stream)](#load_document_stream_59) | Load your DjVu document with this method. Streamline your process by quickly
accessing and importing your DjVu files into your application. | +| [load_document(stream, load_options)](#load_document_stream_load_options_60) | Import your DjVu document by utilizing this method with stream and loadOptions
parameters. Streamline your process by quickly accessing and importing DjVu files
into your application, providing flexibility and customization options to meet
your needs. | +| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_61) | Loads 32-bit ARGB pixels partially (by blocks). | +| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_62) | Loads 64-bit ARGB pixels partially by packs. | +| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_63) | Loads pixels partially by packs. | +| [load_pixels(rectangle)](#load_pixels_rectangle_64) | Loads pixels. | +| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_65) | Loads raw data. | +| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_66) | Loads raw data. | +| [load_stream(stream)](#load_stream_stream_67) | Loads a new image from the specified stream. | +| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_68) | Loads a new image from the specified stream. | +| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_69) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | | normalize_angle() | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | -| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_66) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterCachedMultipageImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rastercachedmultipageimage/) methods. | -| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_67) | Reads the whole scan line by the specified scan line index. | -| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_68) | Reads the whole scan line by the specified scan line index. | +| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_70) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterCachedMultipageImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rastercachedmultipageimage/) methods. | +| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_71) | Reads the whole scan line by the specified scan line index. | +| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_72) | Reads the whole scan line by the specified scan line index. | | remove_metadata() | Removes this image instance metadata by setting this [IHasXmpData.xmp_data](/imaging/python-net/aspose.imaging.xmp/ihasxmpdata/) value to **None**. | -| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_69) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_70) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_71) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_72) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_73) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [resize(new_width, new_height)](#resize_new_width_new_height_74) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_75) | Resizes the image. | -| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_76) | Resizes the image. | -| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_77) | Resizes the image. | -| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_78) | Resizes the image. | -| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_79) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_80) | The `ResizeHeightProportionally` method allows you to adjust the height of your
image while preserving its aspect ratio. This ensures that your image maintains
its proportions, preventing distortion and preserving its visual integrity.
Whether you're optimizing images for web pages, mobile apps, or print media, this
method ensures that your images look their best across different platforms and devices. | -| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_81) | Resizes the height proportionally. | -| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_82) | Resizes the height proportionally. | -| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_83) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_84) | The `ResizeWidthProportionally` method offers a convenient solution to adjust the
width of your image while maintaining its aspect ratio. By proportionally resizing
the width, you can ensure that your images remain visually appealing and
consistent across different devices and screen sizes, enhancing their versatility
and usability in various contexts. | -| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_85) | Resizes the width proportionally. | -| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_86) | Resizes the width proportionally. | -| [rotate(angle)](#rotate_angle_87) | Rotate image around the center. | -| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_88) | Rotate the image around its center with the Rotate method of the
RasterCachedMultipageImage class. This convenient feature allows you to easily
adjust the orientation of images while maintaining their center position,
enhancing your image manipulation capabilities. | -| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_89) | The `RotateFlip` method offers versatile manipulation options for your image, allowing
you to rotate, flip, or perform both operations on the active frame independently.
Whether you're editing photos, creating graphics, or enhancing digital art, this
method provides precise control over the orientation and composition of your images,
ensuring they meet your creative vision with ease and efficiency. | -| [rotate_flip_all(rotate_flip)](#rotate_flip_all_rotate_flip_90) | Rotates the flip all. | +| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_73) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_74) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_75) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_76) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_77) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [resize(new_width, new_height)](#resize_new_width_new_height_78) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_79) | Resize the image using the `Resize` method, providing a simple and effective way
to adjust the dimensions of your images according to your requirements. This
versatile functionality empowers you to easily scale images to your desired size,
enhancing their usability across various platforms and applications. | +| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_80) | Resize the image to the specified width and height while applying additional settings
as needed. This method enables users to adjust the dimensions of the image while
maintaining desired attributes such as aspect ratio, image quality, and compression
settings. By providing flexibility in resizing options, users can tailor the image to
fit specific requirements and optimize its appearance for various applications and
platforms. | +| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_81) | Resizes the image. | +| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_82) | Resizes the image. | +| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_83) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_84) | The `ResizeHeightProportionally` method allows you to adjust the height of your
image while preserving its aspect ratio. This ensures that your image maintains
its proportions, preventing distortion and preserving its visual integrity.
Whether you're optimizing images for web pages, mobile apps, or print media, this
method ensures that your images look their best across different platforms and devices. | +| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_85) | Resizes the height proportionally. | +| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_86) | Resizes the height proportionally. | +| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_87) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_88) | The `ResizeWidthProportionally` method offers a convenient solution to adjust the
width of your image while maintaining its aspect ratio. By proportionally resizing
the width, you can ensure that your images remain visually appealing and
consistent across different devices and screen sizes, enhancing their versatility
and usability in various contexts. | +| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_89) | Resizes the width proportionally. | +| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_90) | Resizes the width proportionally. | +| [rotate(angle)](#rotate_angle_91) | Rotate image around the center. | +| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_92) | Rotate the image around its center with the Rotate method of the
RasterCachedMultipageImage class. This convenient feature allows you to easily
adjust the orientation of images while maintaining their center position,
enhancing your image manipulation capabilities. | +| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_93) | The `RotateFlip` method offers versatile manipulation options for your image, allowing
you to rotate, flip, or perform both operations on the active frame independently.
Whether you're editing photos, creating graphics, or enhancing digital art, this
method provides precise control over the orientation and composition of your images,
ensuring they meet your creative vision with ease and efficiency. | +| [rotate_flip_all(rotate_flip)](#rotate_flip_all_rotate_flip_94) | Rotates the flip all. | | save() | Saves the image data to the underlying stream. | -| [save(file_path)](#save_file_path_91) | Saves the image to the specified file location. | -| [save(file_path, options)](#save_file_path_options_92) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_93) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, over_write)](#save_file_path_over_write_94) | Saves the object's data to the specified file location. | -| [save(stream)](#save_stream_95) | Saves the data. | -| [save(stream, options_base)](#save_stream_options_base_96) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_97) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_98) | Saves the 32-bit ARGB pixels. | -| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_99) | Saves the pixels. | -| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_100) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_101) | Saves pixels (format specific method). | -| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_102) | Saves the raw data. | -| [save_to_stream(stream)](#save_to_stream_stream_103) | Saves the object's data to the specified stream. | -| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_104) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_105) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_with_options(file_path, options)](#save_with_options_file_path_options_106) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_107) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_108) | Sets an image 32-bit ARGB pixel for the specified position. | -| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_109) | Sets the image palette. | -| [set_pixel(x, y, color)](#set_pixel_x_y_color_110) | Sets an image pixel for the specified position. | -| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_111) | Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_112) | Writes the whole scan line to the specified scan line index. | -| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_113) | Writes the whole scan line to the specified scan line index. | +| [save(file_path)](#save_file_path_95) | Saves the image to the specified file location. | +| [save(file_path, options)](#save_file_path_options_96) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_97) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, over_write)](#save_file_path_over_write_98) | Saves the object's data to the specified file location. | +| [save(stream)](#save_stream_99) | Saves the data. | +| [save(stream, options_base)](#save_stream_options_base_100) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_101) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_102) | Saves the 32-bit ARGB pixels. | +| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_103) | Saves the pixels. | +| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_104) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_105) | Saves pixels (format specific method). | +| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_106) | Saves the raw data. | +| [save_to_stream(stream)](#save_to_stream_stream_107) | Saves the object's data to the specified stream. | +| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_108) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_109) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_with_options(file_path, options)](#save_with_options_file_path_options_110) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_111) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_112) | Sets an image 32-bit ARGB pixel for the specified position. | +| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_113) | Sets the image palette. | +| [set_pixel(x, y, color)](#set_pixel_x_y_color_114) | Sets an image pixel for the specified position. | +| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_115) | Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | +| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_116) | Writes the whole scan line to the specified scan line index. | +| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_117) | Writes the whole scan line to the specified scan line index. | ### Constructor: DjvuImage(stream) {#DjvuImage_stream_1} @@ -579,7 +583,7 @@ Determines whether image can be saved to the specified file format represented b create(files) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -601,7 +605,7 @@ Creates the specified files. create(files, throw_exception_on_load_error) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -708,7 +712,97 @@ Creates the specified multipage create options. | [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | -### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_24} +### Method: create_from_files(files) [static] {#create_from_files_files_24} + + +``` + create_from_files(files) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_files(files, throw_exception_on_load_error) [static] {#create_from_files_files_throw_exception_on_load_error_25} + + +``` + create_from_files(files, throw_exception_on_load_error) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | +| throw_exception_on_load_error | bool | if set to true throw exception on load error. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_images(images) [static] {#create_from_images_images_26} + + +``` + create_from_images(images) +``` + +Creates a new image using the specified images as pages + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_images(images, dispose_images) [static] {#create_from_images_images_dispose_images_27} + + +``` + create_from_images(images, dispose_images) +``` + +Creates a new image the specified images as pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | +| dispose_images | bool | if set to true [dispose images]. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_28} ``` @@ -726,7 +820,7 @@ Crop with shifts allows you to precisely adjust the position and dimensions of t | top_shift | int | The top shift. | | bottom_shift | int | The bottom shift. | -### Method: crop(rectangle) {#crop_rectangle_25} +### Method: crop(rectangle) {#crop_rectangle_29} ``` @@ -747,7 +841,7 @@ Crop with shifts allows you to precisely adjust the position and dimensions of t **[Example # 1](#example_125)**: The following example crops a DJVU image. The cropping area is be specified v... -### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_26} +### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_30} ``` @@ -763,7 +857,7 @@ Performs dithering on the current image. | dithering_method | [DitheringMethod](/imaging/python-net/aspose.imaging/ditheringmethod) | The dithering method. | | bits_count | int | The final bits count for dithering. | -### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_27} +### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_31} ``` @@ -780,7 +874,7 @@ The "Dither" function applies a dithering effect to your image, enhancing its vi | bits_count | int | The final bits count for dithering. | | custom_palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The custom palette for dithering. | -### Method: filter(rectangle, options) {#filter_rectangle_options_28} +### Method: filter(rectangle, options) {#filter_rectangle_options_32} ``` @@ -796,7 +890,7 @@ Apply filters to a specified rectangular area within the image to enhance or mod | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | | options | [FilterOptionsBase](/imaging/python-net/aspose.imaging.imagefilters.filteroptions/filteroptionsbase/) | The options. | -### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_29} +### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_33} ``` @@ -819,7 +913,7 @@ Gets an image 32-bit ARGB pixel. | int | The 32-bit ARGB pixel for the specified location. | -### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_30} +### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_34} ``` @@ -841,7 +935,7 @@ Gets the default 32-bit ARGB pixels array. | int | The default pixels array. | -### Method: get_default_options(args) {#get_default_options_args_31} +### Method: get_default_options(args) {#get_default_options_args_35} ``` @@ -863,7 +957,7 @@ Gets the default options. | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Default options | -### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_32} +### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_36} ``` @@ -879,7 +973,7 @@ Gets the default pixels array using partial pixel loader. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to get pixels for. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_33} +### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_37} ``` @@ -896,7 +990,7 @@ Gets the default raw data array using partial pixel loader. | partial_raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The partial raw data loader. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings. | -### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_34} +### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_38} ``` @@ -919,7 +1013,7 @@ Gets the default raw data array. | byte | The default raw data array. | -### Method: get_file_format(file_path) [static] {#get_file_format_file_path_35} +### Method: get_file_format(file_path) [static] {#get_file_format_file_path_39} ``` @@ -941,7 +1035,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format(stream) [static] {#get_file_format_stream_36} +### Method: get_file_format(stream) [static] {#get_file_format_stream_40} ``` @@ -963,7 +1057,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_37} +### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_41} ``` @@ -985,7 +1079,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_38} +### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_42} ``` @@ -1010,7 +1104,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_39} +### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_43} ``` @@ -1034,7 +1128,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_modify_date(use_default) {#get_modify_date_use_default_40} +### Method: get_modify_date(use_default) {#get_modify_date_use_default_44} ``` @@ -1056,7 +1150,7 @@ Gets the date and time the resource image was last modified. | datetime | The date and time the resource image was last modified. | -### Method: get_original_options() {#get_original_options__41} +### Method: get_original_options() {#get_original_options__45} ``` @@ -1072,7 +1166,7 @@ Gets the options based on the original file settings.
This can b | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options based on the original file settings. | -### Method: get_pixel(x, y) {#get_pixel_x_y_42} +### Method: get_pixel(x, y) {#get_pixel_x_y_46} ``` @@ -1095,7 +1189,7 @@ Gets an image pixel. | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified location. | -### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_43} +### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_47} ``` @@ -1119,7 +1213,7 @@ Gets a proportional height. | int | The proportional height. | -### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_44} +### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_48} ``` @@ -1143,7 +1237,7 @@ Gets a proportional width. | int | The proportional width. | -### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_45} +### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_49} ``` @@ -1167,7 +1261,7 @@ Converts to aps. | _io.BufferedRandom | The serialized stream | -### Method: get_skew_angle() {#get_skew_angle__46} +### Method: get_skew_angle() {#get_skew_angle__50} ``` @@ -1183,7 +1277,7 @@ Gets the skew angle.
This method is applicable to scanned text d | float | The skew angle, in degrees. | -### Method: load(file_path) [static] {#load_file_path_47} +### Method: load(file_path) [static] {#load_file_path_51} ``` @@ -1205,7 +1299,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(file_path, load_options) [static] {#load_file_path_load_options_48} +### Method: load(file_path, load_options) [static] {#load_file_path_load_options_52} ``` @@ -1228,7 +1322,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream) [static] {#load_stream_49} +### Method: load(stream) [static] {#load_stream_53} ``` @@ -1250,7 +1344,7 @@ Load your DjVu document with this method. Streamline your process by quickly
This method is deprecated. Please u | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The loaded CMYK pixels array. | -### Method: load_document(stream) [static] {#load_document_stream_55} +### Method: load_document(stream) [static] {#load_document_stream_59} ``` @@ -1383,7 +1477,7 @@ Load your DjVu document with this method. Streamline your process by quickly
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_66} +### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_70} ``` @@ -1595,7 +1689,7 @@ Normalizes the angle.
This method is applicable to scanned text | resize_proportionally | bool | if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_67} +### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_71} ``` @@ -1617,7 +1711,7 @@ Reads the whole scan line by the specified scan line index. | int | The scan line 32-bit ARGB color values array. | -### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_68} +### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_72} ``` @@ -1639,7 +1733,7 @@ Reads the whole scan line by the specified scan line index. | [Color[]](/imaging/python-net/aspose.imaging/color) | The scan line pixel color values array. | -### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_69} +### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_73} ``` @@ -1656,7 +1750,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_70} +### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_74} ``` @@ -1673,7 +1767,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | | -### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_71} +### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_75} ``` @@ -1690,7 +1784,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_72} +### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_76} ``` @@ -1705,7 +1799,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | | -### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_73} +### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_77} ``` @@ -1720,7 +1814,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color_argb | int | New color ARGB value to replace non transparent colors with. | -### Method: resize(new_width, new_height) {#resize_new_width_new_height_74} +### Method: resize(new_width, new_height) {#resize_new_width_new_height_78} ``` @@ -1736,14 +1830,14 @@ Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/ | new_width | int | The new width. | | new_height | int | The new height. | -### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_75} +### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_79} ``` resize(new_width, new_height, resize_type) ``` -Resizes the image. +Resize the image using the `Resize` method, providing a simple and effective way
to adjust the dimensions of your images according to your requirements. This
versatile functionality empowers you to easily scale images to your desired size,
enhancing their usability across various platforms and applications. **Parameters:** @@ -1753,14 +1847,14 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_76} +### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_80} ``` resize(new_width, new_height, settings) ``` -Resizes the image. +Resize the image to the specified width and height while applying additional settings
as needed. This method enables users to adjust the dimensions of the image while
maintaining desired attributes such as aspect ratio, image quality, and compression
settings. By providing flexibility in resizing options, users can tailor the image to
fit specific requirements and optimize its appearance for various applications and
platforms. **Parameters:** @@ -1770,7 +1864,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_77} +### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_81} ``` @@ -1787,7 +1881,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_78} +### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_82} ``` @@ -1804,7 +1898,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_79} +### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_83} ``` @@ -1819,7 +1913,7 @@ Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RES | :- | :- | :- | | new_height | int | The new height. | -### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_80} +### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_84} ``` @@ -1835,7 +1929,7 @@ The `ResizeHeightProportionally` method allows you to adjust the height of your< | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_81} +### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_85} ``` @@ -1851,7 +1945,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_82} +### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_86} ``` @@ -1867,7 +1961,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_83} +### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_87} ``` @@ -1882,7 +1976,7 @@ Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESA | :- | :- | :- | | new_width | int | The new width. | -### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_84} +### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_88} ``` @@ -1898,7 +1992,7 @@ The `ResizeWidthProportionally` method offers a convenient solution to adjust th | new_width | int | The new width. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_85} +### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_89} ``` @@ -1914,7 +2008,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_86} +### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_90} ``` @@ -1930,7 +2024,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: rotate(angle) {#rotate_angle_87} +### Method: rotate(angle) {#rotate_angle_91} ``` @@ -1945,7 +2039,7 @@ Rotate image around the center. | :- | :- | :- | | angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | -### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_88} +### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_92} ``` @@ -1962,7 +2056,7 @@ Rotate the image around its center with the Rotate method of the
| resize_proportionally | bool | if set to true you will have your image size changed
according to rotated rectangle (corner points) projections in other
case that leaves dimensions untouched and only
__internal__ image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_89} +### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_93} ``` @@ -1977,7 +2071,7 @@ The `RotateFlip` method offers versatile manipulation options for your image, al | :- | :- | :- | | rotate_flip_type | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | The rotate flip type. | -### Method: rotate_flip_all(rotate_flip) {#rotate_flip_all_rotate_flip_90} +### Method: rotate_flip_all(rotate_flip) {#rotate_flip_all_rotate_flip_94} ``` @@ -1992,7 +2086,7 @@ Rotates the flip all. | :- | :- | :- | | rotate_flip | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | The rotate flip. | -### Method: save(file_path) {#save_file_path_91} +### Method: save(file_path) {#save_file_path_95} ``` @@ -2007,7 +2101,7 @@ Saves the image to the specified file location. | :- | :- | :- | | file_path | string | The file path to save the image to. | -### Method: save(file_path, options) {#save_file_path_options_92} +### Method: save(file_path, options) {#save_file_path_options_96} ``` @@ -2023,7 +2117,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_93} +### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_97} ``` @@ -2040,7 +2134,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: save(file_path, over_write) {#save_file_path_over_write_94} +### Method: save(file_path, over_write) {#save_file_path_over_write_98} ``` @@ -2056,7 +2150,7 @@ Saves the object's data to the specified file location. | file_path | string | The file path to save the object's data to. | | over_write | bool | if set to true over write the file contents, otherwise append will occur. | -### Method: save(stream) {#save_stream_95} +### Method: save(stream) {#save_stream_99} ``` @@ -2071,7 +2165,7 @@ Saves the data. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save data to. | -### Method: save(stream, options_base) {#save_stream_options_base_96} +### Method: save(stream, options_base) {#save_stream_options_base_100} ``` @@ -2087,7 +2181,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_97} +### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_101} ``` @@ -2104,7 +2198,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_98} +### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_102} ``` @@ -2120,7 +2214,7 @@ Saves the 32-bit ARGB pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The 32-bit ARGB pixels array. | -### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_99} +### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_103} ``` @@ -2136,7 +2230,7 @@ Saves the pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The CMYK pixels presented as the 32-bit integer values. | -### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_100} +### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_104} ``` @@ -2152,7 +2246,7 @@ Saves the pixels.
This method is deprecated. Please use more eff | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The CMYK pixels array. | -### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_101} +### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_105} ``` @@ -2168,7 +2262,7 @@ Saves pixels (format specific method). | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | [Color[]](/imaging/python-net/aspose.imaging/color) | The 32-bit ARGB pixels array. | -### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_102} +### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_106} ``` @@ -2186,7 +2280,7 @@ Saves the raw data. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The raw data rectangle. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings the data is in. | -### Method: save_to_stream(stream) {#save_to_stream_stream_103} +### Method: save_to_stream(stream) {#save_to_stream_stream_107} ``` @@ -2201,7 +2295,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_104} +### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_108} ``` @@ -2217,7 +2311,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_105} +### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_109} ``` @@ -2234,7 +2328,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_106} +### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_110} ``` @@ -2250,7 +2344,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_107} +### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_111} ``` @@ -2267,7 +2361,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_108} +### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_112} ``` @@ -2284,7 +2378,7 @@ Sets an image 32-bit ARGB pixel for the specified position. | y | int | The pixel y location. | | argb_32_color | int | The 32-bit ARGB pixel for the specified position. | -### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_109} +### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_113} ``` @@ -2300,7 +2394,7 @@ Sets the image palette. | palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The palette to set. | | update_colors | bool | if set to true colors will be updated according to the new palette; otherwise color indexes remain unchanged. Note that unchanged indexes may crash the image on loading if some indexes have no corresponding palette entries. | -### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_110} +### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_114} ``` @@ -2317,7 +2411,7 @@ Sets an image pixel for the specified position. | y | int | The pixel y location. | | color | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified position. | -### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_111} +### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_115} ``` @@ -2333,7 +2427,7 @@ Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/ra | dpi_x | double | The horizontal resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | | dpi_y | double | The vertical resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_112} +### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_116} ``` @@ -2349,7 +2443,7 @@ Writes the whole scan line to the specified scan line index. | scan_line_index | int | Zero based index of the scan line. | | argb_32_pixels | int | The 32-bit ARGB colors array to write. | -### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_113} +### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_117} ``` diff --git a/english/python-net/aspose.imaging.fileformats.djvu/djvupage/_index.md b/english/python-net/aspose.imaging.fileformats.djvu/djvupage/_index.md index 2bba64fdbd..9d0131e4f5 100644 --- a/english/python-net/aspose.imaging.fileformats.djvu/djvupage/_index.md +++ b/english/python-net/aspose.imaging.fileformats.djvu/djvupage/_index.md @@ -77,108 +77,112 @@ url: /python-net/aspose.imaging.fileformats.djvu/djvupage/ | [can_load_stream_with_options(stream, load_options)](#can_load_stream_with_options_stream_load_options_15) | Determines whether image can be loaded from the specified stream and optionally using the specified _loadOptions_. | | [can_load_with_options(file_path, load_options)](#can_load_with_options_file_path_load_options_16) | Determines whether image can be loaded from the specified file path and optionally using the specified open options. | | [can_save(options)](#can_save_options_17) | Determines whether image can be saved to the specified file format represented by the passed save options. | -| [create(files)](#create_files_18) | Creates the specified files. | -| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_19) | Creates the specified files. | +| [create(files)](#create_files_18) | Creates the multipage image containing the specified files. | +| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_19) | Creates the multipage image containing the specified files. | | [create(image_options, width, height)](#create_image_options_width_height_20) | Creates a new image using the specified create options. | | [create(images)](#create_images_21) | Creates a new image using the specified images as pages | | [create(images, dispose_images)](#create_images_dispose_images_22) | Creates a new image the specified images as pages. | | [create(multipage_create_options)](#create_multipage_create_options_23) | Creates the specified multipage create options. | -| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_24) | Crop image with shifts. | -| [crop(rectangle)](#crop_rectangle_25) | Cropping the image. | -| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_26) | Performs dithering on the current image. | -| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_27) | Performs dithering on the current image. | -| [extract_thumbnail_image()](#extract_thumbnail_image__28) | Extracts the thumbnail image from the Djvu page. | -| [filter(rectangle, options)](#filter_rectangle_options_29) | Filters the specified rectangle. | -| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_30) | Gets an image 32-bit ARGB pixel. | -| [get_background_image()](#get_background_image__31) | Gets the background image. | -| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_32) | Gets the default 32-bit ARGB pixels array. | -| [get_default_options(args)](#get_default_options_args_33) | Gets the default options. | -| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_34) | Gets the default pixels array using partial pixel loader. | -| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_35) | Gets the default raw data array using partial pixel loader. | -| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_36) | Gets the default raw data array. | -| [get_file_format(file_path)](#get_file_format_file_path_37) | Gets the file format. | -| [get_file_format(stream)](#get_file_format_stream_38) | Gets the file format. | -| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_39) | Gets the file format. | -| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_40) | Gets rectangle which fits the current image. | -| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_41) | Gets rectangle which fits the current image. | -| [get_foreground_image(subsample)](#get_foreground_image_subsample_42) | Gets the foreground image for the page | -| [get_modify_date(use_default)](#get_modify_date_use_default_43) | Gets the date and time the resource image was last modified. | -| [get_original_options()](#get_original_options__44) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | -| [get_pixel(x, y)](#get_pixel_x_y_45) | Gets an image pixel. | -| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_46) | Gets a proportional height. | -| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_47) | Gets a proportional width. | -| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_48) | Converts to aps. | -| [get_skew_angle()](#get_skew_angle__49) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | -| [get_text_for_location(rect)](#get_text_for_location_rect_50) | Gets the text for the rectangle location | -| [get_text_image(subsample)](#get_text_image_subsample_51) | Gets the text image. | +| [create_from_files(files)](#create_from_files_files_24) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_files(files, throw_exception_on_load_error)](#create_from_files_files_throw_exception_on_load_error_25) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_images(images)](#create_from_images_images_26) | Creates a new image using the specified images as pages | +| [create_from_images(images, dispose_images)](#create_from_images_images_dispose_images_27) | Creates a new image the specified images as pages. | +| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_28) | Crop image with shifts. | +| [crop(rectangle)](#crop_rectangle_29) | Cropping the image. | +| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_30) | Performs dithering on the current image. | +| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_31) | Performs dithering on the current image. | +| [extract_thumbnail_image()](#extract_thumbnail_image__32) | Extracts the thumbnail image from the Djvu page. | +| [filter(rectangle, options)](#filter_rectangle_options_33) | Filters the specified rectangle. | +| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_34) | Gets an image 32-bit ARGB pixel. | +| [get_background_image()](#get_background_image__35) | Gets the background image. | +| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_36) | Gets the default 32-bit ARGB pixels array. | +| [get_default_options(args)](#get_default_options_args_37) | Gets the default options. | +| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_38) | Gets the default pixels array using partial pixel loader. | +| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_39) | Gets the default raw data array using partial pixel loader. | +| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_40) | Gets the default raw data array. | +| [get_file_format(file_path)](#get_file_format_file_path_41) | Gets the file format. | +| [get_file_format(stream)](#get_file_format_stream_42) | Gets the file format. | +| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_43) | Gets the file format. | +| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_44) | Gets rectangle which fits the current image. | +| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_45) | Gets rectangle which fits the current image. | +| [get_foreground_image(subsample)](#get_foreground_image_subsample_46) | Gets the foreground image for the page | +| [get_modify_date(use_default)](#get_modify_date_use_default_47) | Gets the date and time the resource image was last modified. | +| [get_original_options()](#get_original_options__48) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | +| [get_pixel(x, y)](#get_pixel_x_y_49) | Gets an image pixel. | +| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_50) | Gets a proportional height. | +| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_51) | Gets a proportional width. | +| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_52) | Converts to aps. | +| [get_skew_angle()](#get_skew_angle__53) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | +| [get_text_for_location(rect)](#get_text_for_location_rect_54) | Gets the text for the rectangle location | +| [get_text_image(subsample)](#get_text_image_subsample_55) | Gets the text image. | | grayscale() | Transformation of an image to its grayscale representation | -| [load(file_path)](#load_file_path_52) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(file_path, load_options)](#load_file_path_load_options_53) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(stream)](#load_stream_54) | Loads a new image from the specified stream. | -| [load(stream, load_options)](#load_stream_load_options_55) | Loads a new image from the specified stream. | -| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_56) | Loads 32-bit ARGB pixels. | -| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_57) | Loads 64-bit ARGB pixels. | -| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_58) | Loads pixels in CMYK format. | -| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_59) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_60) | Loads 32-bit ARGB pixels partially (by blocks). | -| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_61) | Loads 64-bit ARGB pixels partially by packs. | -| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_62) | Loads pixels partially by packs. | -| [load_pixels(rectangle)](#load_pixels_rectangle_63) | Loads pixels. | -| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_64) | Loads raw data. | -| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_65) | Loads raw data. | -| [load_stream(stream)](#load_stream_stream_66) | Loads a new image from the specified stream. | -| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_67) | Loads a new image from the specified stream. | -| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_68) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path)](#load_file_path_56) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path, load_options)](#load_file_path_load_options_57) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(stream)](#load_stream_58) | Loads a new image from the specified stream. | +| [load(stream, load_options)](#load_stream_load_options_59) | Loads a new image from the specified stream. | +| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_60) | Loads 32-bit ARGB pixels. | +| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_61) | Loads 64-bit ARGB pixels. | +| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_62) | Loads pixels in CMYK format. | +| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_63) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_64) | Loads 32-bit ARGB pixels partially (by blocks). | +| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_65) | Loads 64-bit ARGB pixels partially by packs. | +| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_66) | Loads pixels partially by packs. | +| [load_pixels(rectangle)](#load_pixels_rectangle_67) | Loads pixels. | +| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_68) | Loads raw data. | +| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_69) | Loads raw data. | +| [load_stream(stream)](#load_stream_stream_70) | Loads a new image from the specified stream. | +| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_71) | Loads a new image from the specified stream. | +| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_72) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | | normalize_angle() | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | -| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_69) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | -| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_70) | Reads the whole scan line by the specified scan line index. | -| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_71) | Reads the whole scan line by the specified scan line index. | +| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_73) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | +| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_74) | Reads the whole scan line by the specified scan line index. | +| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_75) | Reads the whole scan line by the specified scan line index. | | remove_metadata() | Removes this image instance metadata by setting this [IHasXmpData.xmp_data](/imaging/python-net/aspose.imaging.xmp/ihasxmpdata/) value to **None**. | -| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_72) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_73) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_74) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_75) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_76) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [resize(new_width, new_height)](#resize_new_width_new_height_77) | Resizes the pages image to the new dimensions | -| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_78) | Resizes the image. | -| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_79) | Resizes the image. | -| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_80) | Resizes the image. | -| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_81) | Resizes the image. | -| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_82) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_83) | Resizes the height proportionally. | -| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_84) | Resizes the height proportionally. | -| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_85) | Resizes the height proportionally. | -| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_86) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_87) | Resizes the width proportionally. | -| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_88) | Resizes the width proportionally. | -| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_89) | Resizes the width proportionally. | -| [rotate(angle)](#rotate_angle_90) | Rotate image around the center. | -| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_91) | Rotate image around the center. | -| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_92) | Rotates, flips, or rotates and flips the image. | +| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_76) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_77) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_78) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_79) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_80) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [resize(new_width, new_height)](#resize_new_width_new_height_81) | Resizes the pages image to the new dimensions | +| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_82) | Resizes the image. | +| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_83) | Resizes the image. | +| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_84) | Resizes the image. | +| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_85) | Resizes the image. | +| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_86) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_87) | Resizes the height proportionally. | +| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_88) | Resizes the height proportionally. | +| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_89) | Resizes the height proportionally. | +| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_90) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_91) | Resizes the width proportionally. | +| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_92) | Resizes the width proportionally. | +| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_93) | Resizes the width proportionally. | +| [rotate(angle)](#rotate_angle_94) | Rotate image around the center. | +| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_95) | Rotate image around the center. | +| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_96) | Rotates, flips, or rotates and flips the image. | | save() | Saves the image data to the underlying stream. | -| [save(file_path)](#save_file_path_93) | Saves the image to the specified file location. | -| [save(file_path, options)](#save_file_path_options_94) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_95) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, over_write)](#save_file_path_over_write_96) | Saves the object's data to the specified file location. | -| [save(stream)](#save_stream_97) | Saves the data. | -| [save(stream, options_base)](#save_stream_options_base_98) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_99) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_100) | Saves the 32-bit ARGB pixels. | -| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_101) | Saves the pixels. | -| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_102) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_103) | Saves pixels (format specific method). | -| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_104) | Saves the raw data. | -| [save_to_stream(stream)](#save_to_stream_stream_105) | Saves the object's data to the specified stream. | -| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_106) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_107) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_with_options(file_path, options)](#save_with_options_file_path_options_108) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_109) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_110) | Sets an image 32-bit ARGB pixel for the specified position. | -| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_111) | Sets the image palette. | -| [set_pixel(x, y, color)](#set_pixel_x_y_color_112) | Sets an image pixel for the specified position. | -| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_113) | Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_114) | Writes the whole scan line to the specified scan line index. | -| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_115) | Writes the whole scan line to the specified scan line index. | +| [save(file_path)](#save_file_path_97) | Saves the image to the specified file location. | +| [save(file_path, options)](#save_file_path_options_98) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_99) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, over_write)](#save_file_path_over_write_100) | Saves the object's data to the specified file location. | +| [save(stream)](#save_stream_101) | Saves the data. | +| [save(stream, options_base)](#save_stream_options_base_102) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_103) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_104) | Saves the 32-bit ARGB pixels. | +| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_105) | Saves the pixels. | +| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_106) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_107) | Saves pixels (format specific method). | +| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_108) | Saves the raw data. | +| [save_to_stream(stream)](#save_to_stream_stream_109) | Saves the object's data to the specified stream. | +| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_110) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_111) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_with_options(file_path, options)](#save_with_options_file_path_options_112) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_113) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_114) | Sets an image 32-bit ARGB pixel for the specified position. | +| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_115) | Sets the image palette. | +| [set_pixel(x, y, color)](#set_pixel_x_y_color_116) | Sets an image pixel for the specified position. | +| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_117) | Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | +| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_118) | Writes the whole scan line to the specified scan line index. | +| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_119) | Writes the whole scan line to the specified scan line index. | ### Method: adjust_brightness(brightness) {#adjust_brightness_brightness_1} @@ -511,7 +515,7 @@ Determines whether image can be saved to the specified file format represented b create(files) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -533,7 +537,7 @@ Creates the specified files. create(files, throw_exception_on_load_error) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -640,7 +644,97 @@ Creates the specified multipage create options. | [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | -### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_24} +### Method: create_from_files(files) [static] {#create_from_files_files_24} + + +``` + create_from_files(files) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_files(files, throw_exception_on_load_error) [static] {#create_from_files_files_throw_exception_on_load_error_25} + + +``` + create_from_files(files, throw_exception_on_load_error) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | +| throw_exception_on_load_error | bool | if set to true throw exception on load error. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_images(images) [static] {#create_from_images_images_26} + + +``` + create_from_images(images) +``` + +Creates a new image using the specified images as pages + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_images(images, dispose_images) [static] {#create_from_images_images_dispose_images_27} + + +``` + create_from_images(images, dispose_images) +``` + +Creates a new image the specified images as pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | +| dispose_images | bool | if set to true [dispose images]. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_28} ``` @@ -658,7 +752,7 @@ Crop image with shifts. | top_shift | int | The top shift. | | bottom_shift | int | The bottom shift. | -### Method: crop(rectangle) {#crop_rectangle_25} +### Method: crop(rectangle) {#crop_rectangle_29} ``` @@ -673,7 +767,7 @@ Cropping the image. | :- | :- | :- | | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | -### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_26} +### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_30} ``` @@ -689,7 +783,7 @@ Performs dithering on the current image. | dithering_method | [DitheringMethod](/imaging/python-net/aspose.imaging/ditheringmethod) | The dithering method. | | bits_count | int | The final bits count for dithering. | -### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_27} +### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_31} ``` @@ -706,7 +800,7 @@ Performs dithering on the current image. | bits_count | int | The final bits count for dithering. | | custom_palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The custom palette for dithering. | -### Method: extract_thumbnail_image() {#extract_thumbnail_image__28} +### Method: extract_thumbnail_image() {#extract_thumbnail_image__32} ``` @@ -722,7 +816,7 @@ Extracts the thumbnail image from the Djvu page. | [DjvuRaster](/imaging/python-net/aspose.imaging.fileformats.djvu/djvuraster) | The Djvu raster image. | -### Method: filter(rectangle, options) {#filter_rectangle_options_29} +### Method: filter(rectangle, options) {#filter_rectangle_options_33} ``` @@ -738,7 +832,7 @@ Filters the specified rectangle. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | | options | [FilterOptionsBase](/imaging/python-net/aspose.imaging.imagefilters.filteroptions/filteroptionsbase/) | The options. | -### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_30} +### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_34} ``` @@ -761,7 +855,7 @@ Gets an image 32-bit ARGB pixel. | int | The 32-bit ARGB pixel for the specified location. | -### Method: get_background_image() {#get_background_image__31} +### Method: get_background_image() {#get_background_image__35} ``` @@ -777,7 +871,7 @@ Gets the background image. | [DjvuRaster](/imaging/python-net/aspose.imaging.fileformats.djvu/djvuraster) | The bitmap | -### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_32} +### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_36} ``` @@ -799,7 +893,7 @@ Gets the default 32-bit ARGB pixels array. | int | The default pixels array. | -### Method: get_default_options(args) {#get_default_options_args_33} +### Method: get_default_options(args) {#get_default_options_args_37} ``` @@ -821,7 +915,7 @@ Gets the default options. | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Default options | -### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_34} +### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_38} ``` @@ -837,7 +931,7 @@ Gets the default pixels array using partial pixel loader. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to get pixels for. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_35} +### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_39} ``` @@ -854,7 +948,7 @@ Gets the default raw data array using partial pixel loader. | partial_raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The partial raw data loader. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings. | -### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_36} +### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_40} ``` @@ -877,7 +971,7 @@ Gets the default raw data array. | byte | The default raw data array. | -### Method: get_file_format(file_path) [static] {#get_file_format_file_path_37} +### Method: get_file_format(file_path) [static] {#get_file_format_file_path_41} ``` @@ -899,7 +993,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format(stream) [static] {#get_file_format_stream_38} +### Method: get_file_format(stream) [static] {#get_file_format_stream_42} ``` @@ -921,7 +1015,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_39} +### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_43} ``` @@ -943,7 +1037,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_40} +### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_44} ``` @@ -968,7 +1062,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_41} +### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_45} ``` @@ -992,7 +1086,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_foreground_image(subsample) {#get_foreground_image_subsample_42} +### Method: get_foreground_image(subsample) {#get_foreground_image_subsample_46} ``` @@ -1014,7 +1108,7 @@ Gets the foreground image for the page | [DjvuRaster](/imaging/python-net/aspose.imaging.fileformats.djvu/djvuraster) | Bitmap image | -### Method: get_modify_date(use_default) {#get_modify_date_use_default_43} +### Method: get_modify_date(use_default) {#get_modify_date_use_default_47} ``` @@ -1036,7 +1130,7 @@ Gets the date and time the resource image was last modified. | datetime | The date and time the resource image was last modified. | -### Method: get_original_options() {#get_original_options__44} +### Method: get_original_options() {#get_original_options__48} ``` @@ -1052,7 +1146,7 @@ Gets the options based on the original file settings.
This can b | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options based on the original file settings. | -### Method: get_pixel(x, y) {#get_pixel_x_y_45} +### Method: get_pixel(x, y) {#get_pixel_x_y_49} ``` @@ -1075,7 +1169,7 @@ Gets an image pixel. | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified location. | -### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_46} +### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_50} ``` @@ -1099,7 +1193,7 @@ Gets a proportional height. | int | The proportional height. | -### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_47} +### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_51} ``` @@ -1123,7 +1217,7 @@ Gets a proportional width. | int | The proportional width. | -### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_48} +### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_52} ``` @@ -1147,7 +1241,7 @@ Converts to aps. | _io.BufferedRandom | The serialized stream | -### Method: get_skew_angle() {#get_skew_angle__49} +### Method: get_skew_angle() {#get_skew_angle__53} ``` @@ -1163,7 +1257,7 @@ Gets the skew angle.
This method is applicable to scanned text d | float | The skew angle, in degrees. | -### Method: get_text_for_location(rect) {#get_text_for_location_rect_50} +### Method: get_text_for_location(rect) {#get_text_for_location_rect_54} ``` @@ -1185,7 +1279,7 @@ Gets the text for the rectangle location | string | Text found on location | -### Method: get_text_image(subsample) {#get_text_image_subsample_51} +### Method: get_text_image(subsample) {#get_text_image_subsample_55} ``` @@ -1207,7 +1301,7 @@ Gets the text image. | [DjvuRaster](/imaging/python-net/aspose.imaging.fileformats.djvu/djvuraster) | The bitmap | -### Method: load(file_path) [static] {#load_file_path_52} +### Method: load(file_path) [static] {#load_file_path_56} ``` @@ -1229,7 +1323,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(file_path, load_options) [static] {#load_file_path_load_options_53} +### Method: load(file_path, load_options) [static] {#load_file_path_load_options_57} ``` @@ -1252,7 +1346,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream) [static] {#load_stream_54} +### Method: load(stream) [static] {#load_stream_58} ``` @@ -1274,7 +1368,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream, load_options) [static] {#load_stream_load_options_55} +### Method: load(stream, load_options) [static] {#load_stream_load_options_59} ``` @@ -1297,7 +1391,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_56} +### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_60} ``` @@ -1319,7 +1413,7 @@ Loads 32-bit ARGB pixels. | int | The loaded 32-bit ARGB pixels array. | -### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_57} +### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_61} ``` @@ -1341,7 +1435,7 @@ Loads 64-bit ARGB pixels. | long | The loaded 64-bit ARGB pixels array. | -### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_58} +### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_62} ``` @@ -1363,7 +1457,7 @@ Loads pixels in CMYK format. | int | The loaded CMYK pixels presentes as 32-bit inateger values. | -### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_59} +### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_63} ``` @@ -1385,7 +1479,7 @@ Loads pixels in CMYK format.
This method is deprecated. Please u | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The loaded CMYK pixels array. | -### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_60} +### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_64} ``` @@ -1401,7 +1495,7 @@ Loads 32-bit ARGB pixels partially (by blocks). | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to load pixels from. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_61} +### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_65} ``` @@ -1417,7 +1511,7 @@ Loads 64-bit ARGB pixels partially by packs. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | partial_pixel_loader | [IPartialArgb64PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb64pixelloader) | The 64-bit ARGB pixel loader. | -### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_62} +### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_66} ``` @@ -1433,7 +1527,7 @@ Loads pixels partially by packs. | desired_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | pixel_loader | [IPartialPixelLoader](/imaging/python-net/aspose.imaging/ipartialpixelloader) | The pixel loader. | -### Method: load_pixels(rectangle) {#load_pixels_rectangle_63} +### Method: load_pixels(rectangle) {#load_pixels_rectangle_67} ``` @@ -1455,7 +1549,7 @@ Loads pixels. | [Color[]](/imaging/python-net/aspose.imaging/color) | The loaded pixels array. | -### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_64} +### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_68} ``` @@ -1473,7 +1567,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_65} +### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_69} ``` @@ -1490,7 +1584,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_stream(stream) [static] {#load_stream_stream_66} +### Method: load_stream(stream) [static] {#load_stream_stream_70} ``` @@ -1512,7 +1606,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_67} +### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_71} ``` @@ -1535,7 +1629,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_68} +### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_72} ``` @@ -1558,7 +1652,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_69} +### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_73} ``` @@ -1574,7 +1668,7 @@ Normalizes the angle.
This method is applicable to scanned text | resize_proportionally | bool | if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_70} +### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_74} ``` @@ -1596,7 +1690,7 @@ Reads the whole scan line by the specified scan line index. | int | The scan line 32-bit ARGB color values array. | -### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_71} +### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_75} ``` @@ -1618,7 +1712,7 @@ Reads the whole scan line by the specified scan line index. | [Color[]](/imaging/python-net/aspose.imaging/color) | The scan line pixel color values array. | -### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_72} +### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_76} ``` @@ -1635,7 +1729,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_73} +### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_77} ``` @@ -1652,7 +1746,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | New color to replace old color with. | -### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_74} +### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_78} ``` @@ -1669,7 +1763,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_75} +### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_79} ``` @@ -1684,7 +1778,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | New color to replace non transparent colors with. | -### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_76} +### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_80} ``` @@ -1699,7 +1793,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color_argb | int | New color ARGB value to replace non transparent colors with. | -### Method: resize(new_width, new_height) {#resize_new_width_new_height_77} +### Method: resize(new_width, new_height) {#resize_new_width_new_height_81} ``` @@ -1715,7 +1809,7 @@ Resizes the pages image to the new dimensions | new_width | int | The new width. | | new_height | int | The new height. | -### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_78} +### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_82} ``` @@ -1732,7 +1826,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_79} +### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_83} ``` @@ -1749,7 +1843,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_80} +### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_84} ``` @@ -1766,7 +1860,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_81} +### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_85} ``` @@ -1783,7 +1877,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_82} +### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_86} ``` @@ -1798,7 +1892,7 @@ Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RES | :- | :- | :- | | new_height | int | The new height. | -### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_83} +### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_87} ``` @@ -1814,7 +1908,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_84} +### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_88} ``` @@ -1830,7 +1924,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_85} +### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_89} ``` @@ -1846,7 +1940,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_86} +### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_90} ``` @@ -1861,7 +1955,7 @@ Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESA | :- | :- | :- | | new_width | int | The new width. | -### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_87} +### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_91} ``` @@ -1877,7 +1971,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_88} +### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_92} ``` @@ -1893,7 +1987,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_89} +### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_93} ``` @@ -1909,7 +2003,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: rotate(angle) {#rotate_angle_90} +### Method: rotate(angle) {#rotate_angle_94} ``` @@ -1924,7 +2018,7 @@ Rotate image around the center. | :- | :- | :- | | angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | -### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_91} +### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_95} ``` @@ -1941,7 +2035,7 @@ Rotate image around the center. | resize_proportionally | bool | if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_92} +### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_96} ``` @@ -1956,7 +2050,7 @@ Rotates, flips, or rotates and flips the image. | :- | :- | :- | | rotate_flip_type | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | The rotate flip type. | -### Method: save(file_path) {#save_file_path_93} +### Method: save(file_path) {#save_file_path_97} ``` @@ -1971,7 +2065,7 @@ Saves the image to the specified file location. | :- | :- | :- | | file_path | string | The file path to save the image to. | -### Method: save(file_path, options) {#save_file_path_options_94} +### Method: save(file_path, options) {#save_file_path_options_98} ``` @@ -1987,7 +2081,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_95} +### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_99} ``` @@ -2004,7 +2098,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: save(file_path, over_write) {#save_file_path_over_write_96} +### Method: save(file_path, over_write) {#save_file_path_over_write_100} ``` @@ -2020,7 +2114,7 @@ Saves the object's data to the specified file location. | file_path | string | The file path to save the object's data to. | | over_write | bool | if set to true over write the file contents, otherwise append will occur. | -### Method: save(stream) {#save_stream_97} +### Method: save(stream) {#save_stream_101} ``` @@ -2035,7 +2129,7 @@ Saves the data. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save data to. | -### Method: save(stream, options_base) {#save_stream_options_base_98} +### Method: save(stream, options_base) {#save_stream_options_base_102} ``` @@ -2051,7 +2145,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_99} +### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_103} ``` @@ -2068,7 +2162,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_100} +### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_104} ``` @@ -2084,7 +2178,7 @@ Saves the 32-bit ARGB pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The 32-bit ARGB pixels array. | -### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_101} +### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_105} ``` @@ -2100,7 +2194,7 @@ Saves the pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The CMYK pixels presented as the 32-bit integer values. | -### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_102} +### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_106} ``` @@ -2116,7 +2210,7 @@ Saves the pixels.
This method is deprecated. Please use more eff | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The CMYK pixels array. | -### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_103} +### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_107} ``` @@ -2132,7 +2226,7 @@ Saves pixels (format specific method). | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | [Color[]](/imaging/python-net/aspose.imaging/color) | The 32-bit ARGB pixels array. | -### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_104} +### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_108} ``` @@ -2150,7 +2244,7 @@ Saves the raw data. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The raw data rectangle. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings the data is in. | -### Method: save_to_stream(stream) {#save_to_stream_stream_105} +### Method: save_to_stream(stream) {#save_to_stream_stream_109} ``` @@ -2165,7 +2259,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_106} +### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_110} ``` @@ -2181,7 +2275,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_107} +### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_111} ``` @@ -2198,7 +2292,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_108} +### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_112} ``` @@ -2214,7 +2308,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_109} +### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_113} ``` @@ -2231,7 +2325,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_110} +### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_114} ``` @@ -2248,7 +2342,7 @@ Sets an image 32-bit ARGB pixel for the specified position. | y | int | The pixel y location. | | argb_32_color | int | The 32-bit ARGB pixel for the specified position. | -### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_111} +### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_115} ``` @@ -2264,7 +2358,7 @@ Sets the image palette. | palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The palette to set. | | update_colors | bool | if set to true colors will be updated according to the new palette; otherwise color indexes remain unchanged. Note that unchanged indexes may crash the image on loading if some indexes have no corresponding palette entries. | -### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_112} +### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_116} ``` @@ -2281,7 +2375,7 @@ Sets an image pixel for the specified position. | y | int | The pixel y location. | | color | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified position. | -### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_113} +### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_117} ``` @@ -2297,7 +2391,7 @@ Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/ra | dpi_x | double | The horizontal resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | | dpi_y | double | The vertical resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_114} +### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_118} ``` @@ -2313,7 +2407,7 @@ Writes the whole scan line to the specified scan line index. | scan_line_index | int | Zero based index of the scan line. | | argb_32_pixels | int | The 32-bit ARGB colors array to write. | -### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_115} +### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_119} ``` diff --git a/english/python-net/aspose.imaging.fileformats.djvu/djvuraster/_index.md b/english/python-net/aspose.imaging.fileformats.djvu/djvuraster/_index.md index 7f655af8b9..0fcad3d554 100644 --- a/english/python-net/aspose.imaging.fileformats.djvu/djvuraster/_index.md +++ b/english/python-net/aspose.imaging.fileformats.djvu/djvuraster/_index.md @@ -73,103 +73,107 @@ url: /python-net/aspose.imaging.fileformats.djvu/djvuraster/ | [can_load_stream_with_options(stream, load_options)](#can_load_stream_with_options_stream_load_options_15) | Determines whether image can be loaded from the specified stream and optionally using the specified _loadOptions_. | | [can_load_with_options(file_path, load_options)](#can_load_with_options_file_path_load_options_16) | Determines whether image can be loaded from the specified file path and optionally using the specified open options. | | [can_save(options)](#can_save_options_17) | Determines whether image can be saved to the specified file format represented by the passed save options. | -| [create(files)](#create_files_18) | Creates the specified files. | -| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_19) | Creates the specified files. | +| [create(files)](#create_files_18) | Creates the multipage image containing the specified files. | +| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_19) | Creates the multipage image containing the specified files. | | [create(image_options, width, height)](#create_image_options_width_height_20) | Creates a new image using the specified create options. | | [create(images)](#create_images_21) | Creates a new image using the specified images as pages | | [create(images, dispose_images)](#create_images_dispose_images_22) | Creates a new image the specified images as pages. | | [create(multipage_create_options)](#create_multipage_create_options_23) | Creates the specified multipage create options. | -| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_24) | Crop image with shifts. | -| [crop(rectangle)](#crop_rectangle_25) | Cropping the image. | -| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_26) | Performs dithering on the current image. | -| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_27) | Performs dithering on the current image. | -| [filter(rectangle, options)](#filter_rectangle_options_28) | Filters the specified rectangle. | -| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_29) | Gets an image 32-bit ARGB pixel. | -| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_30) | Gets the default 32-bit ARGB pixels array. | -| [get_default_options(args)](#get_default_options_args_31) | Gets the default options. | -| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_32) | Gets the default pixels array using partial pixel loader. | -| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_33) | Gets the default raw data array using partial pixel loader. | -| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_34) | Gets the default raw data array. | -| [get_file_format(file_path)](#get_file_format_file_path_35) | Gets the file format. | -| [get_file_format(stream)](#get_file_format_stream_36) | Gets the file format. | -| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_37) | Gets the file format. | -| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_38) | Gets rectangle which fits the current image. | -| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_39) | Gets rectangle which fits the current image. | -| [get_modify_date(use_default)](#get_modify_date_use_default_40) | Gets the date and time the resource image was last modified. | -| [get_original_options()](#get_original_options__41) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | -| [get_pixel(x, y)](#get_pixel_x_y_42) | Gets an image pixel. | -| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_43) | Gets a proportional height. | -| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_44) | Gets a proportional width. | -| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_45) | Converts to aps. | -| [get_skew_angle()](#get_skew_angle__46) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | +| [create_from_files(files)](#create_from_files_files_24) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_files(files, throw_exception_on_load_error)](#create_from_files_files_throw_exception_on_load_error_25) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_images(images)](#create_from_images_images_26) | Creates a new image using the specified images as pages | +| [create_from_images(images, dispose_images)](#create_from_images_images_dispose_images_27) | Creates a new image the specified images as pages. | +| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_28) | Crop image with shifts. | +| [crop(rectangle)](#crop_rectangle_29) | Cropping the image. | +| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_30) | Performs dithering on the current image. | +| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_31) | Performs dithering on the current image. | +| [filter(rectangle, options)](#filter_rectangle_options_32) | Filters the specified rectangle. | +| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_33) | Gets an image 32-bit ARGB pixel. | +| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_34) | Gets the default 32-bit ARGB pixels array. | +| [get_default_options(args)](#get_default_options_args_35) | Gets the default options. | +| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_36) | Gets the default pixels array using partial pixel loader. | +| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_37) | Gets the default raw data array using partial pixel loader. | +| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_38) | Gets the default raw data array. | +| [get_file_format(file_path)](#get_file_format_file_path_39) | Gets the file format. | +| [get_file_format(stream)](#get_file_format_stream_40) | Gets the file format. | +| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_41) | Gets the file format. | +| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_42) | Gets rectangle which fits the current image. | +| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_43) | Gets rectangle which fits the current image. | +| [get_modify_date(use_default)](#get_modify_date_use_default_44) | Gets the date and time the resource image was last modified. | +| [get_original_options()](#get_original_options__45) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | +| [get_pixel(x, y)](#get_pixel_x_y_46) | Gets an image pixel. | +| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_47) | Gets a proportional height. | +| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_48) | Gets a proportional width. | +| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_49) | Converts to aps. | +| [get_skew_angle()](#get_skew_angle__50) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | | grayscale() | Transformation of an image to its grayscale representation | -| [load(file_path)](#load_file_path_47) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(file_path, load_options)](#load_file_path_load_options_48) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(stream)](#load_stream_49) | Loads a new image from the specified stream. | -| [load(stream, load_options)](#load_stream_load_options_50) | Loads a new image from the specified stream. | -| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_51) | Loads 32-bit ARGB pixels. | -| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_52) | Loads 64-bit ARGB pixels. | -| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_53) | Loads pixels in CMYK format. | -| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_54) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_55) | Loads 32-bit ARGB pixels partially (by blocks). | -| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_56) | Loads 64-bit ARGB pixels partially by packs. | -| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_57) | Loads pixels partially by packs. | -| [load_pixels(rectangle)](#load_pixels_rectangle_58) | Loads pixels. | -| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_59) | Loads raw data. | -| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_60) | Loads raw data. | -| [load_stream(stream)](#load_stream_stream_61) | Loads a new image from the specified stream. | -| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_62) | Loads a new image from the specified stream. | -| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_63) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path)](#load_file_path_51) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path, load_options)](#load_file_path_load_options_52) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(stream)](#load_stream_53) | Loads a new image from the specified stream. | +| [load(stream, load_options)](#load_stream_load_options_54) | Loads a new image from the specified stream. | +| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_55) | Loads 32-bit ARGB pixels. | +| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_56) | Loads 64-bit ARGB pixels. | +| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_57) | Loads pixels in CMYK format. | +| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_58) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_59) | Loads 32-bit ARGB pixels partially (by blocks). | +| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_60) | Loads 64-bit ARGB pixels partially by packs. | +| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_61) | Loads pixels partially by packs. | +| [load_pixels(rectangle)](#load_pixels_rectangle_62) | Loads pixels. | +| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_63) | Loads raw data. | +| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_64) | Loads raw data. | +| [load_stream(stream)](#load_stream_stream_65) | Loads a new image from the specified stream. | +| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_66) | Loads a new image from the specified stream. | +| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_67) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | | normalize_angle() | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | -| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_64) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | -| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_65) | Reads the whole scan line by the specified scan line index. | -| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_66) | Reads the whole scan line by the specified scan line index. | +| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_68) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | +| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_69) | Reads the whole scan line by the specified scan line index. | +| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_70) | Reads the whole scan line by the specified scan line index. | | remove_metadata() | Removes this image instance metadata by setting this [IHasXmpData.xmp_data](/imaging/python-net/aspose.imaging.xmp/ihasxmpdata/) value to **None**. | -| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_67) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_68) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_69) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_70) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_71) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [resize(new_width, new_height)](#resize_new_width_new_height_72) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_73) | Resizes the image. | -| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_74) | Resizes the image. | -| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_75) | Resizes the image. | -| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_76) | Resizes the image. | -| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_77) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_78) | Resizes the height proportionally. | -| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_79) | Resizes the height proportionally. | -| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_80) | Resizes the height proportionally. | -| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_81) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_82) | Resizes the width proportionally. | -| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_83) | Resizes the width proportionally. | -| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_84) | Resizes the width proportionally. | -| [rotate(angle)](#rotate_angle_85) | Rotate image around the center. | -| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_86) | Rotate image around the center. | -| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_87) | Rotates, flips, or rotates and flips the image. | +| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_71) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_72) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_73) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_74) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_75) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [resize(new_width, new_height)](#resize_new_width_new_height_76) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_77) | Resizes the image. | +| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_78) | Resizes the image. | +| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_79) | Resizes the image. | +| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_80) | Resizes the image. | +| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_81) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_82) | Resizes the height proportionally. | +| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_83) | Resizes the height proportionally. | +| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_84) | Resizes the height proportionally. | +| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_85) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_86) | Resizes the width proportionally. | +| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_87) | Resizes the width proportionally. | +| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_88) | Resizes the width proportionally. | +| [rotate(angle)](#rotate_angle_89) | Rotate image around the center. | +| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_90) | Rotate image around the center. | +| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_91) | Rotates, flips, or rotates and flips the image. | | save() | Saves the image data to the underlying stream. | -| [save(file_path)](#save_file_path_88) | Saves the image to the specified file location. | -| [save(file_path, options)](#save_file_path_options_89) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_90) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, over_write)](#save_file_path_over_write_91) | Saves the object's data to the specified file location. | -| [save(stream)](#save_stream_92) | Saves the data. | -| [save(stream, options_base)](#save_stream_options_base_93) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_94) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_95) | Saves the 32-bit ARGB pixels. | -| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_96) | Saves the pixels. | -| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_97) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_98) | Saves pixels (format specific method). | -| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_99) | Saves the raw data. | -| [save_to_stream(stream)](#save_to_stream_stream_100) | Saves the object's data to the specified stream. | -| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_101) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_102) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_with_options(file_path, options)](#save_with_options_file_path_options_103) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_104) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_105) | Sets an image 32-bit ARGB pixel for the specified position. | -| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_106) | Sets the image palette. | -| [set_pixel(x, y, color)](#set_pixel_x_y_color_107) | Sets an image pixel for the specified position. | -| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_108) | Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_109) | Writes the whole scan line to the specified scan line index. | -| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_110) | Writes the whole scan line to the specified scan line index. | +| [save(file_path)](#save_file_path_92) | Saves the image to the specified file location. | +| [save(file_path, options)](#save_file_path_options_93) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_94) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, over_write)](#save_file_path_over_write_95) | Saves the object's data to the specified file location. | +| [save(stream)](#save_stream_96) | Saves the data. | +| [save(stream, options_base)](#save_stream_options_base_97) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_98) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_99) | Saves the 32-bit ARGB pixels. | +| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_100) | Saves the pixels. | +| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_101) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_102) | Saves pixels (format specific method). | +| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_103) | Saves the raw data. | +| [save_to_stream(stream)](#save_to_stream_stream_104) | Saves the object's data to the specified stream. | +| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_105) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_106) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_with_options(file_path, options)](#save_with_options_file_path_options_107) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_108) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_109) | Sets an image 32-bit ARGB pixel for the specified position. | +| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_110) | Sets the image palette. | +| [set_pixel(x, y, color)](#set_pixel_x_y_color_111) | Sets an image pixel for the specified position. | +| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_112) | Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | +| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_113) | Writes the whole scan line to the specified scan line index. | +| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_114) | Writes the whole scan line to the specified scan line index. | ### Method: adjust_brightness(brightness) {#adjust_brightness_brightness_1} @@ -502,7 +506,7 @@ Determines whether image can be saved to the specified file format represented b create(files) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -524,7 +528,7 @@ Creates the specified files. create(files, throw_exception_on_load_error) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -631,7 +635,97 @@ Creates the specified multipage create options. | [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | -### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_24} +### Method: create_from_files(files) [static] {#create_from_files_files_24} + + +``` + create_from_files(files) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_files(files, throw_exception_on_load_error) [static] {#create_from_files_files_throw_exception_on_load_error_25} + + +``` + create_from_files(files, throw_exception_on_load_error) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | +| throw_exception_on_load_error | bool | if set to true throw exception on load error. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_images(images) [static] {#create_from_images_images_26} + + +``` + create_from_images(images) +``` + +Creates a new image using the specified images as pages + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_images(images, dispose_images) [static] {#create_from_images_images_dispose_images_27} + + +``` + create_from_images(images, dispose_images) +``` + +Creates a new image the specified images as pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | +| dispose_images | bool | if set to true [dispose images]. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_28} ``` @@ -649,7 +743,7 @@ Crop image with shifts. | top_shift | int | The top shift. | | bottom_shift | int | The bottom shift. | -### Method: crop(rectangle) {#crop_rectangle_25} +### Method: crop(rectangle) {#crop_rectangle_29} ``` @@ -664,7 +758,7 @@ Cropping the image. | :- | :- | :- | | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | -### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_26} +### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_30} ``` @@ -680,7 +774,7 @@ Performs dithering on the current image. | dithering_method | [DitheringMethod](/imaging/python-net/aspose.imaging/ditheringmethod) | The dithering method. | | bits_count | int | The final bits count for dithering. | -### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_27} +### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_31} ``` @@ -697,7 +791,7 @@ Performs dithering on the current image. | bits_count | int | The final bits count for dithering. | | custom_palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The custom palette for dithering. | -### Method: filter(rectangle, options) {#filter_rectangle_options_28} +### Method: filter(rectangle, options) {#filter_rectangle_options_32} ``` @@ -713,7 +807,7 @@ Filters the specified rectangle. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | | options | [FilterOptionsBase](/imaging/python-net/aspose.imaging.imagefilters.filteroptions/filteroptionsbase/) | The options. | -### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_29} +### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_33} ``` @@ -736,7 +830,7 @@ Gets an image 32-bit ARGB pixel. | int | The 32-bit ARGB pixel for the specified location. | -### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_30} +### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_34} ``` @@ -758,7 +852,7 @@ Gets the default 32-bit ARGB pixels array. | int | The default pixels array. | -### Method: get_default_options(args) {#get_default_options_args_31} +### Method: get_default_options(args) {#get_default_options_args_35} ``` @@ -780,7 +874,7 @@ Gets the default options. | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Default options | -### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_32} +### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_36} ``` @@ -796,7 +890,7 @@ Gets the default pixels array using partial pixel loader. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to get pixels for. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_33} +### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_37} ``` @@ -813,7 +907,7 @@ Gets the default raw data array using partial pixel loader. | partial_raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The partial raw data loader. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings. | -### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_34} +### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_38} ``` @@ -836,7 +930,7 @@ Gets the default raw data array. | byte | The default raw data array. | -### Method: get_file_format(file_path) [static] {#get_file_format_file_path_35} +### Method: get_file_format(file_path) [static] {#get_file_format_file_path_39} ``` @@ -858,7 +952,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format(stream) [static] {#get_file_format_stream_36} +### Method: get_file_format(stream) [static] {#get_file_format_stream_40} ``` @@ -880,7 +974,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_37} +### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_41} ``` @@ -902,7 +996,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_38} +### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_42} ``` @@ -927,7 +1021,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_39} +### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_43} ``` @@ -951,7 +1045,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_modify_date(use_default) {#get_modify_date_use_default_40} +### Method: get_modify_date(use_default) {#get_modify_date_use_default_44} ``` @@ -973,7 +1067,7 @@ Gets the date and time the resource image was last modified. | datetime | The date and time the resource image was last modified. | -### Method: get_original_options() {#get_original_options__41} +### Method: get_original_options() {#get_original_options__45} ``` @@ -989,7 +1083,7 @@ Gets the options based on the original file settings.
This can b | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options based on the original file settings. | -### Method: get_pixel(x, y) {#get_pixel_x_y_42} +### Method: get_pixel(x, y) {#get_pixel_x_y_46} ``` @@ -1012,7 +1106,7 @@ Gets an image pixel. | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified location. | -### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_43} +### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_47} ``` @@ -1036,7 +1130,7 @@ Gets a proportional height. | int | The proportional height. | -### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_44} +### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_48} ``` @@ -1060,7 +1154,7 @@ Gets a proportional width. | int | The proportional width. | -### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_45} +### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_49} ``` @@ -1084,7 +1178,7 @@ Converts to aps. | _io.BufferedRandom | The serialized stream | -### Method: get_skew_angle() {#get_skew_angle__46} +### Method: get_skew_angle() {#get_skew_angle__50} ``` @@ -1100,7 +1194,7 @@ Gets the skew angle.
This method is applicable to scanned text d | float | The skew angle, in degrees. | -### Method: load(file_path) [static] {#load_file_path_47} +### Method: load(file_path) [static] {#load_file_path_51} ``` @@ -1122,7 +1216,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(file_path, load_options) [static] {#load_file_path_load_options_48} +### Method: load(file_path, load_options) [static] {#load_file_path_load_options_52} ``` @@ -1145,7 +1239,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream) [static] {#load_stream_49} +### Method: load(stream) [static] {#load_stream_53} ``` @@ -1167,7 +1261,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream, load_options) [static] {#load_stream_load_options_50} +### Method: load(stream, load_options) [static] {#load_stream_load_options_54} ``` @@ -1190,7 +1284,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_51} +### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_55} ``` @@ -1212,7 +1306,7 @@ Loads 32-bit ARGB pixels. | int | The loaded 32-bit ARGB pixels array. | -### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_52} +### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_56} ``` @@ -1234,7 +1328,7 @@ Loads 64-bit ARGB pixels. | long | The loaded 64-bit ARGB pixels array. | -### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_53} +### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_57} ``` @@ -1256,7 +1350,7 @@ Loads pixels in CMYK format. | int | The loaded CMYK pixels presentes as 32-bit inateger values. | -### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_54} +### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_58} ``` @@ -1278,7 +1372,7 @@ Loads pixels in CMYK format.
This method is deprecated. Please u | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The loaded CMYK pixels array. | -### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_55} +### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_59} ``` @@ -1294,7 +1388,7 @@ Loads 32-bit ARGB pixels partially (by blocks). | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to load pixels from. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_56} +### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_60} ``` @@ -1310,7 +1404,7 @@ Loads 64-bit ARGB pixels partially by packs. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | partial_pixel_loader | [IPartialArgb64PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb64pixelloader) | The 64-bit ARGB pixel loader. | -### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_57} +### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_61} ``` @@ -1326,7 +1420,7 @@ Loads pixels partially by packs. | desired_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | pixel_loader | [IPartialPixelLoader](/imaging/python-net/aspose.imaging/ipartialpixelloader) | The pixel loader. | -### Method: load_pixels(rectangle) {#load_pixels_rectangle_58} +### Method: load_pixels(rectangle) {#load_pixels_rectangle_62} ``` @@ -1348,7 +1442,7 @@ Loads pixels. | [Color[]](/imaging/python-net/aspose.imaging/color) | The loaded pixels array. | -### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_59} +### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_63} ``` @@ -1366,7 +1460,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_60} +### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_64} ``` @@ -1383,7 +1477,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_stream(stream) [static] {#load_stream_stream_61} +### Method: load_stream(stream) [static] {#load_stream_stream_65} ``` @@ -1405,7 +1499,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_62} +### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_66} ``` @@ -1428,7 +1522,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_63} +### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_67} ``` @@ -1451,7 +1545,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_64} +### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_68} ``` @@ -1467,7 +1561,7 @@ Normalizes the angle.
This method is applicable to scanned text | resize_proportionally | bool | if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_65} +### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_69} ``` @@ -1489,7 +1583,7 @@ Reads the whole scan line by the specified scan line index. | int | The scan line 32-bit ARGB color values array. | -### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_66} +### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_70} ``` @@ -1511,7 +1605,7 @@ Reads the whole scan line by the specified scan line index. | [Color[]](/imaging/python-net/aspose.imaging/color) | The scan line pixel color values array. | -### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_67} +### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_71} ``` @@ -1528,7 +1622,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_68} +### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_72} ``` @@ -1545,7 +1639,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | New color to replace old color with. | -### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_69} +### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_73} ``` @@ -1562,7 +1656,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_70} +### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_74} ``` @@ -1577,7 +1671,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | New color to replace non transparent colors with. | -### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_71} +### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_75} ``` @@ -1592,7 +1686,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color_argb | int | New color ARGB value to replace non transparent colors with. | -### Method: resize(new_width, new_height) {#resize_new_width_new_height_72} +### Method: resize(new_width, new_height) {#resize_new_width_new_height_76} ``` @@ -1608,7 +1702,7 @@ Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/ | new_width | int | The new width. | | new_height | int | The new height. | -### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_73} +### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_77} ``` @@ -1625,7 +1719,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_74} +### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_78} ``` @@ -1642,7 +1736,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_75} +### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_79} ``` @@ -1659,7 +1753,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_76} +### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_80} ``` @@ -1676,7 +1770,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_77} +### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_81} ``` @@ -1691,7 +1785,7 @@ Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RES | :- | :- | :- | | new_height | int | The new height. | -### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_78} +### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_82} ``` @@ -1707,7 +1801,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_79} +### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_83} ``` @@ -1723,7 +1817,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_80} +### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_84} ``` @@ -1739,7 +1833,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_81} +### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_85} ``` @@ -1754,7 +1848,7 @@ Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESA | :- | :- | :- | | new_width | int | The new width. | -### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_82} +### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_86} ``` @@ -1770,7 +1864,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_83} +### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_87} ``` @@ -1786,7 +1880,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_84} +### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_88} ``` @@ -1802,7 +1896,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: rotate(angle) {#rotate_angle_85} +### Method: rotate(angle) {#rotate_angle_89} ``` @@ -1817,7 +1911,7 @@ Rotate image around the center. | :- | :- | :- | | angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | -### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_86} +### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_90} ``` @@ -1834,7 +1928,7 @@ Rotate image around the center. | resize_proportionally | bool | if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_87} +### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_91} ``` @@ -1849,7 +1943,7 @@ Rotates, flips, or rotates and flips the image. | :- | :- | :- | | rotate_flip_type | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | The rotate flip type. | -### Method: save(file_path) {#save_file_path_88} +### Method: save(file_path) {#save_file_path_92} ``` @@ -1864,7 +1958,7 @@ Saves the image to the specified file location. | :- | :- | :- | | file_path | string | The file path to save the image to. | -### Method: save(file_path, options) {#save_file_path_options_89} +### Method: save(file_path, options) {#save_file_path_options_93} ``` @@ -1880,7 +1974,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_90} +### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_94} ``` @@ -1897,7 +1991,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: save(file_path, over_write) {#save_file_path_over_write_91} +### Method: save(file_path, over_write) {#save_file_path_over_write_95} ``` @@ -1913,7 +2007,7 @@ Saves the object's data to the specified file location. | file_path | string | The file path to save the object's data to. | | over_write | bool | if set to true over write the file contents, otherwise append will occur. | -### Method: save(stream) {#save_stream_92} +### Method: save(stream) {#save_stream_96} ``` @@ -1928,7 +2022,7 @@ Saves the data. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save data to. | -### Method: save(stream, options_base) {#save_stream_options_base_93} +### Method: save(stream, options_base) {#save_stream_options_base_97} ``` @@ -1944,7 +2038,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_94} +### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_98} ``` @@ -1961,7 +2055,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_95} +### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_99} ``` @@ -1977,7 +2071,7 @@ Saves the 32-bit ARGB pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The 32-bit ARGB pixels array. | -### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_96} +### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_100} ``` @@ -1993,7 +2087,7 @@ Saves the pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The CMYK pixels presented as the 32-bit integer values. | -### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_97} +### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_101} ``` @@ -2009,7 +2103,7 @@ Saves the pixels.
This method is deprecated. Please use more eff | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The CMYK pixels array. | -### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_98} +### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_102} ``` @@ -2025,7 +2119,7 @@ Saves pixels (format specific method). | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | [Color[]](/imaging/python-net/aspose.imaging/color) | The 32-bit ARGB pixels array. | -### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_99} +### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_103} ``` @@ -2043,7 +2137,7 @@ Saves the raw data. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The raw data rectangle. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings the data is in. | -### Method: save_to_stream(stream) {#save_to_stream_stream_100} +### Method: save_to_stream(stream) {#save_to_stream_stream_104} ``` @@ -2058,7 +2152,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_101} +### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_105} ``` @@ -2074,7 +2168,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_102} +### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_106} ``` @@ -2091,7 +2185,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_103} +### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_107} ``` @@ -2107,7 +2201,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_104} +### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_108} ``` @@ -2124,7 +2218,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_105} +### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_109} ``` @@ -2141,7 +2235,7 @@ Sets an image 32-bit ARGB pixel for the specified position. | y | int | The pixel y location. | | argb_32_color | int | The 32-bit ARGB pixel for the specified position. | -### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_106} +### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_110} ``` @@ -2157,7 +2251,7 @@ Sets the image palette. | palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The palette to set. | | update_colors | bool | if set to true colors will be updated according to the new palette; otherwise color indexes remain unchanged. Note that unchanged indexes may crash the image on loading if some indexes have no corresponding palette entries. | -### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_107} +### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_111} ``` @@ -2174,7 +2268,7 @@ Sets an image pixel for the specified position. | y | int | The pixel y location. | | color | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified position. | -### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_108} +### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_112} ``` @@ -2190,7 +2284,7 @@ Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/ra | dpi_x | double | The horizontal resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | | dpi_y | double | The vertical resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_109} +### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_113} ``` @@ -2206,7 +2300,7 @@ Writes the whole scan line to the specified scan line index. | scan_line_index | int | Zero based index of the scan line. | | argb_32_pixels | int | The 32-bit ARGB colors array to write. | -### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_110} +### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_114} ``` diff --git a/english/python-net/aspose.imaging.fileformats.dng/dngimage/_index.md b/english/python-net/aspose.imaging.fileformats.dng/dngimage/_index.md index c1bbbb86c3..50be86518f 100644 --- a/english/python-net/aspose.imaging.fileformats.dng/dngimage/_index.md +++ b/english/python-net/aspose.imaging.fileformats.dng/dngimage/_index.md @@ -73,103 +73,107 @@ url: /python-net/aspose.imaging.fileformats.dng/dngimage/ | [can_load_stream_with_options(stream, load_options)](#can_load_stream_with_options_stream_load_options_15) | Determines whether image can be loaded from the specified stream and optionally using the specified _loadOptions_. | | [can_load_with_options(file_path, load_options)](#can_load_with_options_file_path_load_options_16) | Determines whether image can be loaded from the specified file path and optionally using the specified open options. | | [can_save(options)](#can_save_options_17) | Determines whether image can be saved to the specified file format represented by the passed save options. | -| [create(files)](#create_files_18) | Creates the specified files. | -| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_19) | Creates the specified files. | +| [create(files)](#create_files_18) | Creates the multipage image containing the specified files. | +| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_19) | Creates the multipage image containing the specified files. | | [create(image_options, width, height)](#create_image_options_width_height_20) | Creates a new image using the specified create options. | | [create(images)](#create_images_21) | Creates a new image using the specified images as pages | | [create(images, dispose_images)](#create_images_dispose_images_22) | Creates a new image the specified images as pages. | | [create(multipage_create_options)](#create_multipage_create_options_23) | Creates the specified multipage create options. | -| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_24) | Crop image with shifts. | -| [crop(rectangle)](#crop_rectangle_25) | Cropping the image. | -| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_26) | Performs dithering on the current image. | -| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_27) | Performs dithering on the current image. | -| [filter(rectangle, options)](#filter_rectangle_options_28) | Filters the specified rectangle. | -| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_29) | Gets an image 32-bit ARGB pixel. | -| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_30) | Gets the default 32-bit ARGB pixels array. | -| [get_default_options(args)](#get_default_options_args_31) | Gets the default options. | -| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_32) | Gets the default pixels array using partial pixel loader. | -| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_33) | Gets the default raw data array using partial pixel loader. | -| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_34) | Gets the default raw data array. | -| [get_file_format(file_path)](#get_file_format_file_path_35) | Gets the file format. | -| [get_file_format(stream)](#get_file_format_stream_36) | Gets the file format. | -| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_37) | Gets the file format. | -| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_38) | Gets rectangle which fits the current image. | -| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_39) | Gets rectangle which fits the current image. | -| [get_modify_date(use_default)](#get_modify_date_use_default_40) | Gets the date and time the resource image was last modified. | -| [get_original_options()](#get_original_options__41) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | -| [get_pixel(x, y)](#get_pixel_x_y_42) | Gets an image pixel. | -| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_43) | Gets a proportional height. | -| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_44) | Gets a proportional width. | -| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_45) | Converts to aps. | -| [get_skew_angle()](#get_skew_angle__46) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | +| [create_from_files(files)](#create_from_files_files_24) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_files(files, throw_exception_on_load_error)](#create_from_files_files_throw_exception_on_load_error_25) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_images(images)](#create_from_images_images_26) | Creates a new image using the specified images as pages | +| [create_from_images(images, dispose_images)](#create_from_images_images_dispose_images_27) | Creates a new image the specified images as pages. | +| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_28) | Crop image with shifts. | +| [crop(rectangle)](#crop_rectangle_29) | Cropping the image. | +| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_30) | Performs dithering on the current image. | +| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_31) | Performs dithering on the current image. | +| [filter(rectangle, options)](#filter_rectangle_options_32) | Filters the specified rectangle. | +| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_33) | Gets an image 32-bit ARGB pixel. | +| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_34) | Gets the default 32-bit ARGB pixels array. | +| [get_default_options(args)](#get_default_options_args_35) | Gets the default options. | +| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_36) | Gets the default pixels array using partial pixel loader. | +| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_37) | Gets the default raw data array using partial pixel loader. | +| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_38) | Gets the default raw data array. | +| [get_file_format(file_path)](#get_file_format_file_path_39) | Gets the file format. | +| [get_file_format(stream)](#get_file_format_stream_40) | Gets the file format. | +| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_41) | Gets the file format. | +| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_42) | Gets rectangle which fits the current image. | +| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_43) | Gets rectangle which fits the current image. | +| [get_modify_date(use_default)](#get_modify_date_use_default_44) | Gets the date and time the resource image was last modified. | +| [get_original_options()](#get_original_options__45) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | +| [get_pixel(x, y)](#get_pixel_x_y_46) | Gets an image pixel. | +| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_47) | Gets a proportional height. | +| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_48) | Gets a proportional width. | +| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_49) | Converts to aps. | +| [get_skew_angle()](#get_skew_angle__50) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | | grayscale() | Transformation of an image to its grayscale representation | -| [load(file_path)](#load_file_path_47) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(file_path, load_options)](#load_file_path_load_options_48) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(stream)](#load_stream_49) | Loads a new image from the specified stream. | -| [load(stream, load_options)](#load_stream_load_options_50) | Loads a new image from the specified stream. | -| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_51) | Loads 32-bit ARGB pixels. | -| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_52) | Loads 64-bit ARGB pixels. | -| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_53) | Loads pixels in CMYK format. | -| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_54) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_55) | Loads 32-bit ARGB pixels partially (by blocks). | -| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_56) | Loads 64-bit ARGB pixels partially by packs. | -| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_57) | Loads pixels partially by packs. | -| [load_pixels(rectangle)](#load_pixels_rectangle_58) | Loads pixels. | -| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_59) | Loads raw data. | -| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_60) | Loads raw data. | -| [load_stream(stream)](#load_stream_stream_61) | Loads a new image from the specified stream. | -| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_62) | Loads a new image from the specified stream. | -| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_63) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path)](#load_file_path_51) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path, load_options)](#load_file_path_load_options_52) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(stream)](#load_stream_53) | Loads a new image from the specified stream. | +| [load(stream, load_options)](#load_stream_load_options_54) | Loads a new image from the specified stream. | +| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_55) | Loads 32-bit ARGB pixels. | +| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_56) | Loads 64-bit ARGB pixels. | +| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_57) | Loads pixels in CMYK format. | +| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_58) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_59) | Loads 32-bit ARGB pixels partially (by blocks). | +| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_60) | Loads 64-bit ARGB pixels partially by packs. | +| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_61) | Loads pixels partially by packs. | +| [load_pixels(rectangle)](#load_pixels_rectangle_62) | Loads pixels. | +| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_63) | Loads raw data. | +| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_64) | Loads raw data. | +| [load_stream(stream)](#load_stream_stream_65) | Loads a new image from the specified stream. | +| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_66) | Loads a new image from the specified stream. | +| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_67) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | | normalize_angle() | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | -| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_64) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | -| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_65) | Reads the whole scan line by the specified scan line index. | -| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_66) | Reads the whole scan line by the specified scan line index. | +| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_68) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | +| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_69) | Reads the whole scan line by the specified scan line index. | +| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_70) | Reads the whole scan line by the specified scan line index. | | remove_metadata() | Removes this image instance metadata by setting this [IHasXmpData.xmp_data](/imaging/python-net/aspose.imaging.xmp/ihasxmpdata/) value to **None**. | -| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_67) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_68) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_69) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_70) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_71) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [resize(new_width, new_height)](#resize_new_width_new_height_72) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_73) | Resizes the image. | -| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_74) | Resizes the image. | -| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_75) | Resizes the image. | -| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_76) | Resizes the image. | -| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_77) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_78) | Resizes the height proportionally. | -| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_79) | Resizes the height proportionally. | -| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_80) | Resizes the height proportionally. | -| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_81) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_82) | Resizes the width proportionally. | -| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_83) | Resizes the width proportionally. | -| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_84) | Resizes the width proportionally. | -| [rotate(angle)](#rotate_angle_85) | Rotate image around the center. | -| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_86) | Rotate image around the center. | -| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_87) | Rotates, flips, or rotates and flips the image. | +| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_71) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_72) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_73) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_74) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_75) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [resize(new_width, new_height)](#resize_new_width_new_height_76) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_77) | Resizes the image. | +| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_78) | Resizes the image. | +| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_79) | Resizes the image. | +| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_80) | Resizes the image. | +| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_81) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_82) | Resizes the height proportionally. | +| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_83) | Resizes the height proportionally. | +| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_84) | Resizes the height proportionally. | +| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_85) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_86) | Resizes the width proportionally. | +| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_87) | Resizes the width proportionally. | +| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_88) | Resizes the width proportionally. | +| [rotate(angle)](#rotate_angle_89) | Rotate image around the center. | +| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_90) | Rotate image around the center. | +| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_91) | Rotates, flips, or rotates and flips the image. | | save() | Saves the image data to the underlying stream. | -| [save(file_path)](#save_file_path_88) | Saves the image to the specified file location. | -| [save(file_path, options)](#save_file_path_options_89) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_90) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, over_write)](#save_file_path_over_write_91) | Saves the object's data to the specified file location. | -| [save(stream)](#save_stream_92) | Saves the data. | -| [save(stream, options_base)](#save_stream_options_base_93) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_94) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_95) | Saves the 32-bit ARGB pixels. | -| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_96) | Saves the pixels. | -| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_97) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_98) | Saves pixels (format specific method). | -| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_99) | Saves the raw data. | -| [save_to_stream(stream)](#save_to_stream_stream_100) | Saves the object's data to the specified stream. | -| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_101) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_102) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_with_options(file_path, options)](#save_with_options_file_path_options_103) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_104) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_105) | Sets an image 32-bit ARGB pixel for the specified position. | -| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_106) | Sets the image palette. | -| [set_pixel(x, y, color)](#set_pixel_x_y_color_107) | Sets an image pixel for the specified position. | -| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_108) | Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_109) | Writes the whole scan line to the specified scan line index. | -| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_110) | Writes the whole scan line to the specified scan line index. | +| [save(file_path)](#save_file_path_92) | Saves the image to the specified file location. | +| [save(file_path, options)](#save_file_path_options_93) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_94) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, over_write)](#save_file_path_over_write_95) | Saves the object's data to the specified file location. | +| [save(stream)](#save_stream_96) | Saves the data. | +| [save(stream, options_base)](#save_stream_options_base_97) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_98) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_99) | Saves the 32-bit ARGB pixels. | +| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_100) | Saves the pixels. | +| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_101) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_102) | Saves pixels (format specific method). | +| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_103) | Saves the raw data. | +| [save_to_stream(stream)](#save_to_stream_stream_104) | Saves the object's data to the specified stream. | +| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_105) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_106) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_with_options(file_path, options)](#save_with_options_file_path_options_107) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_108) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_109) | Sets an image 32-bit ARGB pixel for the specified position. | +| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_110) | Sets the image palette. | +| [set_pixel(x, y, color)](#set_pixel_x_y_color_111) | Sets an image pixel for the specified position. | +| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_112) | Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | +| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_113) | Writes the whole scan line to the specified scan line index. | +| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_114) | Writes the whole scan line to the specified scan line index. | ### Method: adjust_brightness(brightness) {#adjust_brightness_brightness_1} @@ -502,7 +506,7 @@ Determines whether image can be saved to the specified file format represented b create(files) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -524,7 +528,7 @@ Creates the specified files. create(files, throw_exception_on_load_error) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -631,7 +635,97 @@ Creates the specified multipage create options. | [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | -### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_24} +### Method: create_from_files(files) [static] {#create_from_files_files_24} + + +``` + create_from_files(files) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_files(files, throw_exception_on_load_error) [static] {#create_from_files_files_throw_exception_on_load_error_25} + + +``` + create_from_files(files, throw_exception_on_load_error) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | +| throw_exception_on_load_error | bool | if set to true throw exception on load error. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_images(images) [static] {#create_from_images_images_26} + + +``` + create_from_images(images) +``` + +Creates a new image using the specified images as pages + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_images(images, dispose_images) [static] {#create_from_images_images_dispose_images_27} + + +``` + create_from_images(images, dispose_images) +``` + +Creates a new image the specified images as pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | +| dispose_images | bool | if set to true [dispose images]. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_28} ``` @@ -649,7 +743,7 @@ Crop image with shifts. | top_shift | int | The top shift. | | bottom_shift | int | The bottom shift. | -### Method: crop(rectangle) {#crop_rectangle_25} +### Method: crop(rectangle) {#crop_rectangle_29} ``` @@ -664,7 +758,7 @@ Cropping the image. | :- | :- | :- | | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | -### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_26} +### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_30} ``` @@ -680,7 +774,7 @@ Performs dithering on the current image. | dithering_method | [DitheringMethod](/imaging/python-net/aspose.imaging/ditheringmethod) | The dithering method. | | bits_count | int | The final bits count for dithering. | -### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_27} +### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_31} ``` @@ -697,7 +791,7 @@ Performs dithering on the current image. | bits_count | int | The final bits count for dithering. | | custom_palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The custom palette for dithering. | -### Method: filter(rectangle, options) {#filter_rectangle_options_28} +### Method: filter(rectangle, options) {#filter_rectangle_options_32} ``` @@ -713,7 +807,7 @@ Filters the specified rectangle. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | | options | [FilterOptionsBase](/imaging/python-net/aspose.imaging.imagefilters.filteroptions/filteroptionsbase/) | The options. | -### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_29} +### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_33} ``` @@ -736,7 +830,7 @@ Gets an image 32-bit ARGB pixel. | int | The 32-bit ARGB pixel for the specified location. | -### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_30} +### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_34} ``` @@ -758,7 +852,7 @@ Gets the default 32-bit ARGB pixels array. | int | The default pixels array. | -### Method: get_default_options(args) {#get_default_options_args_31} +### Method: get_default_options(args) {#get_default_options_args_35} ``` @@ -780,7 +874,7 @@ Gets the default options. | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Default options | -### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_32} +### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_36} ``` @@ -796,7 +890,7 @@ Gets the default pixels array using partial pixel loader. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to get pixels for. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_33} +### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_37} ``` @@ -813,7 +907,7 @@ Gets the default raw data array using partial pixel loader. | partial_raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The partial raw data loader. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings. | -### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_34} +### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_38} ``` @@ -836,7 +930,7 @@ Gets the default raw data array. | byte | The default raw data array. | -### Method: get_file_format(file_path) [static] {#get_file_format_file_path_35} +### Method: get_file_format(file_path) [static] {#get_file_format_file_path_39} ``` @@ -858,7 +952,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format(stream) [static] {#get_file_format_stream_36} +### Method: get_file_format(stream) [static] {#get_file_format_stream_40} ``` @@ -880,7 +974,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_37} +### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_41} ``` @@ -902,7 +996,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_38} +### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_42} ``` @@ -927,7 +1021,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_39} +### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_43} ``` @@ -951,7 +1045,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_modify_date(use_default) {#get_modify_date_use_default_40} +### Method: get_modify_date(use_default) {#get_modify_date_use_default_44} ``` @@ -973,7 +1067,7 @@ Gets the date and time the resource image was last modified. | datetime | The date and time the resource image was last modified. | -### Method: get_original_options() {#get_original_options__41} +### Method: get_original_options() {#get_original_options__45} ``` @@ -989,7 +1083,7 @@ Gets the options based on the original file settings.
This can b | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options based on the original file settings. | -### Method: get_pixel(x, y) {#get_pixel_x_y_42} +### Method: get_pixel(x, y) {#get_pixel_x_y_46} ``` @@ -1012,7 +1106,7 @@ Gets an image pixel. | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified location. | -### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_43} +### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_47} ``` @@ -1036,7 +1130,7 @@ Gets a proportional height. | int | The proportional height. | -### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_44} +### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_48} ``` @@ -1060,7 +1154,7 @@ Gets a proportional width. | int | The proportional width. | -### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_45} +### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_49} ``` @@ -1084,7 +1178,7 @@ Converts to aps. | _io.BufferedRandom | The serialized stream | -### Method: get_skew_angle() {#get_skew_angle__46} +### Method: get_skew_angle() {#get_skew_angle__50} ``` @@ -1100,7 +1194,7 @@ Gets the skew angle.
This method is applicable to scanned text d | float | The skew angle, in degrees. | -### Method: load(file_path) [static] {#load_file_path_47} +### Method: load(file_path) [static] {#load_file_path_51} ``` @@ -1122,7 +1216,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(file_path, load_options) [static] {#load_file_path_load_options_48} +### Method: load(file_path, load_options) [static] {#load_file_path_load_options_52} ``` @@ -1145,7 +1239,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream) [static] {#load_stream_49} +### Method: load(stream) [static] {#load_stream_53} ``` @@ -1167,7 +1261,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream, load_options) [static] {#load_stream_load_options_50} +### Method: load(stream, load_options) [static] {#load_stream_load_options_54} ``` @@ -1190,7 +1284,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_51} +### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_55} ``` @@ -1212,7 +1306,7 @@ Loads 32-bit ARGB pixels. | int | The loaded 32-bit ARGB pixels array. | -### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_52} +### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_56} ``` @@ -1234,7 +1328,7 @@ Loads 64-bit ARGB pixels. | long | The loaded 64-bit ARGB pixels array. | -### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_53} +### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_57} ``` @@ -1256,7 +1350,7 @@ Loads pixels in CMYK format. | int | The loaded CMYK pixels presentes as 32-bit inateger values. | -### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_54} +### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_58} ``` @@ -1278,7 +1372,7 @@ Loads pixels in CMYK format.
This method is deprecated. Please u | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The loaded CMYK pixels array. | -### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_55} +### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_59} ``` @@ -1294,7 +1388,7 @@ Loads 32-bit ARGB pixels partially (by blocks). | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to load pixels from. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_56} +### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_60} ``` @@ -1310,7 +1404,7 @@ Loads 64-bit ARGB pixels partially by packs. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | partial_pixel_loader | [IPartialArgb64PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb64pixelloader) | The 64-bit ARGB pixel loader. | -### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_57} +### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_61} ``` @@ -1326,7 +1420,7 @@ Loads pixels partially by packs. | desired_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | pixel_loader | [IPartialPixelLoader](/imaging/python-net/aspose.imaging/ipartialpixelloader) | The pixel loader. | -### Method: load_pixels(rectangle) {#load_pixels_rectangle_58} +### Method: load_pixels(rectangle) {#load_pixels_rectangle_62} ``` @@ -1348,7 +1442,7 @@ Loads pixels. | [Color[]](/imaging/python-net/aspose.imaging/color) | The loaded pixels array. | -### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_59} +### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_63} ``` @@ -1366,7 +1460,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_60} +### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_64} ``` @@ -1383,7 +1477,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_stream(stream) [static] {#load_stream_stream_61} +### Method: load_stream(stream) [static] {#load_stream_stream_65} ``` @@ -1405,7 +1499,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_62} +### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_66} ``` @@ -1428,7 +1522,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_63} +### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_67} ``` @@ -1451,7 +1545,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_64} +### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_68} ``` @@ -1467,7 +1561,7 @@ Normalizes the angle.
This method is applicable to scanned text | resize_proportionally | bool | if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_65} +### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_69} ``` @@ -1489,7 +1583,7 @@ Reads the whole scan line by the specified scan line index. | int | The scan line 32-bit ARGB color values array. | -### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_66} +### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_70} ``` @@ -1511,7 +1605,7 @@ Reads the whole scan line by the specified scan line index. | [Color[]](/imaging/python-net/aspose.imaging/color) | The scan line pixel color values array. | -### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_67} +### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_71} ``` @@ -1528,7 +1622,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_68} +### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_72} ``` @@ -1545,7 +1639,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | New color to replace old color with. | -### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_69} +### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_73} ``` @@ -1562,7 +1656,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_70} +### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_74} ``` @@ -1577,7 +1671,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | New color to replace non transparent colors with. | -### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_71} +### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_75} ``` @@ -1592,7 +1686,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color_argb | int | New color ARGB value to replace non transparent colors with. | -### Method: resize(new_width, new_height) {#resize_new_width_new_height_72} +### Method: resize(new_width, new_height) {#resize_new_width_new_height_76} ``` @@ -1608,7 +1702,7 @@ Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/ | new_width | int | The new width. | | new_height | int | The new height. | -### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_73} +### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_77} ``` @@ -1625,7 +1719,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_74} +### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_78} ``` @@ -1642,7 +1736,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_75} +### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_79} ``` @@ -1659,7 +1753,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_76} +### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_80} ``` @@ -1676,7 +1770,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_77} +### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_81} ``` @@ -1691,7 +1785,7 @@ Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RES | :- | :- | :- | | new_height | int | The new height. | -### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_78} +### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_82} ``` @@ -1707,7 +1801,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_79} +### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_83} ``` @@ -1723,7 +1817,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_80} +### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_84} ``` @@ -1739,7 +1833,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_81} +### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_85} ``` @@ -1754,7 +1848,7 @@ Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESA | :- | :- | :- | | new_width | int | The new width. | -### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_82} +### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_86} ``` @@ -1770,7 +1864,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_83} +### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_87} ``` @@ -1786,7 +1880,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_84} +### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_88} ``` @@ -1802,7 +1896,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: rotate(angle) {#rotate_angle_85} +### Method: rotate(angle) {#rotate_angle_89} ``` @@ -1817,7 +1911,7 @@ Rotate image around the center. | :- | :- | :- | | angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | -### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_86} +### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_90} ``` @@ -1834,7 +1928,7 @@ Rotate image around the center. | resize_proportionally | bool | if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_87} +### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_91} ``` @@ -1849,7 +1943,7 @@ Rotates, flips, or rotates and flips the image. | :- | :- | :- | | rotate_flip_type | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | The rotate flip type. | -### Method: save(file_path) {#save_file_path_88} +### Method: save(file_path) {#save_file_path_92} ``` @@ -1864,7 +1958,7 @@ Saves the image to the specified file location. | :- | :- | :- | | file_path | string | The file path to save the image to. | -### Method: save(file_path, options) {#save_file_path_options_89} +### Method: save(file_path, options) {#save_file_path_options_93} ``` @@ -1880,7 +1974,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_90} +### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_94} ``` @@ -1897,7 +1991,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: save(file_path, over_write) {#save_file_path_over_write_91} +### Method: save(file_path, over_write) {#save_file_path_over_write_95} ``` @@ -1913,7 +2007,7 @@ Saves the object's data to the specified file location. | file_path | string | The file path to save the object's data to. | | over_write | bool | if set to true over write the file contents, otherwise append will occur. | -### Method: save(stream) {#save_stream_92} +### Method: save(stream) {#save_stream_96} ``` @@ -1928,7 +2022,7 @@ Saves the data. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save data to. | -### Method: save(stream, options_base) {#save_stream_options_base_93} +### Method: save(stream, options_base) {#save_stream_options_base_97} ``` @@ -1944,7 +2038,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_94} +### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_98} ``` @@ -1961,7 +2055,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_95} +### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_99} ``` @@ -1977,7 +2071,7 @@ Saves the 32-bit ARGB pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The 32-bit ARGB pixels array. | -### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_96} +### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_100} ``` @@ -1993,7 +2087,7 @@ Saves the pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The CMYK pixels presented as the 32-bit integer values. | -### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_97} +### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_101} ``` @@ -2009,7 +2103,7 @@ Saves the pixels.
This method is deprecated. Please use more eff | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The CMYK pixels array. | -### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_98} +### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_102} ``` @@ -2025,7 +2119,7 @@ Saves pixels (format specific method). | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | [Color[]](/imaging/python-net/aspose.imaging/color) | The 32-bit ARGB pixels array. | -### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_99} +### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_103} ``` @@ -2043,7 +2137,7 @@ Saves the raw data. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The raw data rectangle. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings the data is in. | -### Method: save_to_stream(stream) {#save_to_stream_stream_100} +### Method: save_to_stream(stream) {#save_to_stream_stream_104} ``` @@ -2058,7 +2152,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_101} +### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_105} ``` @@ -2074,7 +2168,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_102} +### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_106} ``` @@ -2091,7 +2185,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_103} +### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_107} ``` @@ -2107,7 +2201,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_104} +### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_108} ``` @@ -2124,7 +2218,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_105} +### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_109} ``` @@ -2141,7 +2235,7 @@ Sets an image 32-bit ARGB pixel for the specified position. | y | int | The pixel y location. | | argb_32_color | int | The 32-bit ARGB pixel for the specified position. | -### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_106} +### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_110} ``` @@ -2157,7 +2251,7 @@ Sets the image palette. | palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The palette to set. | | update_colors | bool | if set to true colors will be updated according to the new palette; otherwise color indexes remain unchanged. Note that unchanged indexes may crash the image on loading if some indexes have no corresponding palette entries. | -### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_107} +### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_111} ``` @@ -2174,7 +2268,7 @@ Sets an image pixel for the specified position. | y | int | The pixel y location. | | color | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified position. | -### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_108} +### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_112} ``` @@ -2190,7 +2284,7 @@ Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/ra | dpi_x | double | The horizontal resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | | dpi_y | double | The vertical resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_109} +### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_113} ``` @@ -2206,7 +2300,7 @@ Writes the whole scan line to the specified scan line index. | scan_line_index | int | Zero based index of the scan line. | | argb_32_pixels | int | The 32-bit ARGB colors array to write. | -### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_110} +### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_114} ``` diff --git a/english/python-net/aspose.imaging.fileformats.emf/emfimage/_index.md b/english/python-net/aspose.imaging.fileformats.emf/emfimage/_index.md index 9d95bd8ca1..90369b4288 100644 --- a/english/python-net/aspose.imaging.fileformats.emf/emfimage/_index.md +++ b/english/python-net/aspose.imaging.fileformats.emf/emfimage/_index.md @@ -32,8 +32,8 @@ url: /python-net/aspose.imaging.fileformats.emf/emfimage/ | file_format | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | r | Access the file format value associated with the object. Easily determine the
format of the file associated with the object for streamlined processing and
compatibility checks. Simplify your workflow by retrieving the file format
information with ease. | | has_background_color | bool | r/w | Gets or sets a value indicating whether image has background color. | | header | [EmfMetafileHeader](/imaging/python-net/aspose.imaging.fileformats.emf.emf.records/emfmetafileheader/) | r/w | Retrieve or modify the EMF metafile header record with this property. Ideal for
managing metafile data efficiently within your application. Improve your workflow
with streamlined access to metafile header information. | -| height | int | r | Retrieve the image's height, facilitating accurate rendering and layout adjustments.
Accessing the height property ensures compatibility and seamless integration across
different platforms and applications. | -| height_f | float | r | Gets the object height, in inches. | +| height | int | r | Gets the object height. | +| height_f | float | r | Retrieve the image's height, facilitating accurate rendering and layout adjustments.
Accessing the height property ensures compatibility and seamless integration across
different platforms and applications. | | interrupt_monitor | [InterruptMonitor](/imaging/python-net/aspose.imaging.multithreading/interruptmonitor/) | r/w | Gets or sets the interrupt monitor. | | is_cached | bool | r | Access a value indicating whether the object's data is currently cached,
eliminating the need for additional data reading. Enhance efficiency by quickly
determining if cached data is available for immediate access. Optimize your
workflow with streamlined data retrieval processes. | | palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | r/w | Gets or sets the color palette. The color palette is not used when pixels are represented directly. | @@ -41,8 +41,8 @@ url: /python-net/aspose.imaging.fileformats.emf/emfimage/ | size | [Size](/imaging/python-net/aspose.imaging/size) | r | Gets the object size. | | size_f | [SizeF](/imaging/python-net/aspose.imaging/sizef) | r | Gets the object size, in inches. | | use_palette | bool | r | Gets a value indicating whether the image palette is used. | -| width | int | r | Access to the width of the image, providing essential information for precise
rendering and processing. Quickly retrieve the image's width to ensure compatibility
and proper layout within various applications and platforms. | -| width_f | float | r | Gets the object width, in inches. | +| width | int | r | Gets the object width. | +| width_f | float | r | Access to the width of the image, providing essential information for precise
rendering and processing. Quickly retrieve the image's width to ensure compatibility
and proper layout within various applications and platforms. | ## **Methods** | **Name** | **Description** | | :- | :- | @@ -55,66 +55,71 @@ url: /python-net/aspose.imaging.fileformats.emf/emfimage/ | [can_load_stream_with_options(stream, load_options)](#can_load_stream_with_options_stream_load_options_6) | Determines whether image can be loaded from the specified stream and optionally using the specified _loadOptions_. | | [can_load_with_options(file_path, load_options)](#can_load_with_options_file_path_load_options_7) | Determines whether image can be loaded from the specified file path and optionally using the specified open options. | | [can_save(options)](#can_save_options_8) | Determines whether image can be saved to the specified file format represented by the passed save options. | -| [create(files)](#create_files_9) | Creates the specified files. | -| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_10) | Creates the specified files. | +| [create(files)](#create_files_9) | Creates the multipage image containing the specified files. | +| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_10) | Creates the multipage image containing the specified files. | | [create(image_options, width, height)](#create_image_options_width_height_11) | Creates a new image using the specified create options. | | [create(images)](#create_images_12) | Creates a new image using the specified images as pages | | [create(images, dispose_images)](#create_images_dispose_images_13) | Creates a new image the specified images as pages. | | [create(multipage_create_options)](#create_multipage_create_options_14) | Creates the specified multipage create options. | -| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_15) | Crop image with shifts. | -| [crop(rectangle)](#crop_rectangle_16) | Crop the specified rectangle using this function. Ideal for refining image
composition and focusing on specific areas of interest within the image. Improve
visual clarity and highlight key details with precise cropping functionality. | -| [get_default_options(args)](#get_default_options_args_17) | Retrieve the default options for your image effortlessly. With this feature, you
can quickly access the preset configurations, ensuring seamless integration and
optimal performance for your projects. Ideal for streamlining your workflow and
achieving consistent results across your images. | -| [get_embedded_images()](#get_embedded_images__18) | Gets the embedded images. | -| [get_file_format(file_path)](#get_file_format_file_path_19) | Gets the file format. | -| [get_file_format(stream)](#get_file_format_stream_20) | Gets the file format. | -| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_21) | Gets the file format. | -| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_22) | Gets rectangle which fits the current image. | -| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_23) | Gets rectangle which fits the current image. | -| [get_missed_fonts()](#get_missed_fonts__24) | Returns the list of fonts which used inside metafile but not found. | -| [get_original_options()](#get_original_options__25) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | -| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_26) | Gets a proportional height. | -| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_27) | Gets a proportional width. | -| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_28) | Converts to aps. | -| [get_used_fonts()](#get_used_fonts__29) | Retrieve the list of fonts utilized within the metafile with this method. Gain
insights into font usage, facilitating efficient management and optimization of font
resources for enhanced rendering and display fidelity. | -| [load(file_path)](#load_file_path_30) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(file_path, load_options)](#load_file_path_load_options_31) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(stream)](#load_stream_32) | Loads a new image from the specified stream. | -| [load(stream, load_options)](#load_stream_load_options_33) | Loads a new image from the specified stream. | -| [load_stream(stream)](#load_stream_stream_34) | Loads a new image from the specified stream. | -| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_35) | Loads a new image from the specified stream. | -| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_36) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [create_from_files(files)](#create_from_files_files_15) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_files(files, throw_exception_on_load_error)](#create_from_files_files_throw_exception_on_load_error_16) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_images(images)](#create_from_images_images_17) | Creates a new image using the specified images as pages | +| [create_from_images(images, dispose_images)](#create_from_images_images_dispose_images_18) | Creates a new image the specified images as pages. | +| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_19) | Crop image with shifts. | +| [crop(rectangle)](#crop_rectangle_20) | Crops the specified rectangle. | +| [get_default_options(args)](#get_default_options_args_21) | Retrieve the default options for your image effortlessly. With this feature, you
can quickly access the preset configurations, ensuring seamless integration and
optimal performance for your projects. Ideal for streamlining your workflow and
achieving consistent results across your images. | +| [get_embedded_images()](#get_embedded_images__22) | Gets the embedded images. | +| [get_file_format(file_path)](#get_file_format_file_path_23) | Gets the file format. | +| [get_file_format(stream)](#get_file_format_stream_24) | Gets the file format. | +| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_25) | Gets the file format. | +| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_26) | Gets rectangle which fits the current image. | +| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_27) | Gets rectangle which fits the current image. | +| [get_missed_fonts()](#get_missed_fonts__28) | Returns the list of fonts which used inside metafile but not found. | +| [get_original_options()](#get_original_options__29) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | +| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_30) | Gets a proportional height. | +| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_31) | Gets a proportional width. | +| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_32) | Converts to aps. | +| [get_used_fonts()](#get_used_fonts__33) | Retrieve the list of fonts utilized within the metafile with this method. Gain
insights into font usage, facilitating efficient management and optimization of font
resources for enhanced rendering and display fidelity. | +| [load(file_path)](#load_file_path_34) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path, load_options)](#load_file_path_load_options_35) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(stream)](#load_stream_36) | Loads a new image from the specified stream. | +| [load(stream, load_options)](#load_stream_load_options_37) | Loads a new image from the specified stream. | +| [load_stream(stream)](#load_stream_stream_38) | Loads a new image from the specified stream. | +| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_39) | Loads a new image from the specified stream. | +| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_40) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | | remove_background() | Removes the background. | -| [remove_background(settings)](#remove_background_settings_37) | Removes the background. | +| [remove_background(settings)](#remove_background_settings_41) | Removes the background. | | remove_metadata() | Removes metadata. | -| [resize(new_width, new_height)](#resize_new_width_new_height_38) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_39) | Resizes the image. | -| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_40) | Resizes the image. | -| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_41) | Resizes the image. | -| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_42) | Resizes the image. | -| [resize_canvas(new_rectangle)](#resize_canvas_new_rectangle_43) | Resize the canvas with ease using this function. Perfect for adjusting the overall
dimensions of the image without altering its content. Enhance presentation and
prepare images for various display sizes effortlessly. | -| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_44) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_45) | Resizes the height proportionally. | -| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_46) | Resizes the height proportionally. | -| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_47) | Resizes the height proportionally. | -| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_48) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_49) | Resizes the width proportionally. | -| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_50) | Resizes the width proportionally. | -| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_51) | Resizes the width proportionally. | -| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_52) | Easily rotate, flip, or perform both operations simultaneously on your image using
this simple `RotateFlip()` method. Perfect for adjusting orientation and enhancing
visual appeal without hassle. Ideal for achieving the desired presentation of your
images in any project or application. | +| [resize(new_width, new_height)](#resize_new_width_new_height_42) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_43) | Resizes the specified new width. | +| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_44) | Resizes the image with extended options. | +| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_45) | Resizes the image. | +| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_46) | Resizes the image. | +| [resize_canvas(new_rectangle)](#resize_canvas_new_rectangle_47) | Resize the canvas with ease using this function. Perfect for adjusting the overall
dimensions of the image without altering its content. Enhance presentation and
prepare images for various display sizes effortlessly. | +| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_48) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_49) | Resizes the height proportionally. | +| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_50) | Resizes the height proportionally. | +| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_51) | Resizes the height proportionally. | +| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_52) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_53) | Resizes the width proportionally. | +| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_54) | Resizes the width proportionally. | +| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_55) | Resizes the width proportionally. | +| [rotate(angle)](#rotate_angle_56) | Rotate image around the center. | +| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_57) | Rotates, flips, or rotates and flips the image. | | save() | Saves the image data to the underlying stream. | -| [save(file_path)](#save_file_path_53) | Saves the image to the specified file location. | -| [save(file_path, options)](#save_file_path_options_54) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_55) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, over_write)](#save_file_path_over_write_56) | Saves the object's data to the specified file location. | -| [save(stream)](#save_stream_57) | Saves the data. | -| [save(stream, options_base)](#save_stream_options_base_58) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_59) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream(stream)](#save_to_stream_stream_60) | Saves the object's data to the specified stream. | -| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_61) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_62) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_with_options(file_path, options)](#save_with_options_file_path_options_63) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_64) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_65) | Enhance your image's color palette by setting it with the specified
`IColorPalette`. Achieve vivid, vibrant visuals with ease, ensuring your images
stand out and captivate viewers. Ideal for optimizing color schemes and achieving
the perfect look for your projects. | +| [save(file_path)](#save_file_path_58) | Saves the image to the specified file location. | +| [save(file_path, options)](#save_file_path_options_59) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_60) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, over_write)](#save_file_path_over_write_61) | Saves the object's data to the specified file location. | +| [save(stream)](#save_stream_62) | Saves the data. | +| [save(stream, options_base)](#save_stream_options_base_63) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_64) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream(stream)](#save_to_stream_stream_65) | Saves the object's data to the specified stream. | +| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_66) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_67) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_with_options(file_path, options)](#save_with_options_file_path_options_68) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_69) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_70) | Sets the image palette. | ### Constructor: EmfImage() {#EmfImage__1} @@ -329,7 +334,7 @@ Determines whether image can be saved to the specified file format represented b create(files) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -351,7 +356,7 @@ Creates the specified files. create(files, throw_exception_on_load_error) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -458,7 +463,97 @@ Creates the specified multipage create options. | [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | -### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_15} +### Method: create_from_files(files) [static] {#create_from_files_files_15} + + +``` + create_from_files(files) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_files(files, throw_exception_on_load_error) [static] {#create_from_files_files_throw_exception_on_load_error_16} + + +``` + create_from_files(files, throw_exception_on_load_error) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | +| throw_exception_on_load_error | bool | if set to true throw exception on load error. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_images(images) [static] {#create_from_images_images_17} + + +``` + create_from_images(images) +``` + +Creates a new image using the specified images as pages + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_images(images, dispose_images) [static] {#create_from_images_images_dispose_images_18} + + +``` + create_from_images(images, dispose_images) +``` + +Creates a new image the specified images as pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | +| dispose_images | bool | if set to true [dispose images]. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_19} ``` @@ -476,14 +571,14 @@ Crop image with shifts. | top_shift | int | The top shift. | | bottom_shift | int | The bottom shift. | -### Method: crop(rectangle) {#crop_rectangle_16} +### Method: crop(rectangle) {#crop_rectangle_20} ``` crop(rectangle) ``` -Crop the specified rectangle using this function. Ideal for refining image
composition and focusing on specific areas of interest within the image. Improve
visual clarity and highlight key details with precise cropping functionality. +Crops the specified rectangle. **Parameters:** @@ -491,7 +586,7 @@ Crop the specified rectangle using this function. Ideal for refining image
| :- | :- | :- | | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | -### Method: get_default_options(args) {#get_default_options_args_17} +### Method: get_default_options(args) {#get_default_options_args_21} ``` @@ -513,7 +608,7 @@ Retrieve the default options for your image effortlessly. With this feature, you | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Default options | -### Method: get_embedded_images() {#get_embedded_images__18} +### Method: get_embedded_images() {#get_embedded_images__22} ``` @@ -529,7 +624,7 @@ Gets the embedded images. | [EmbeddedImage[]](/imaging/python-net/aspose.imaging/embeddedimage) | Array of images | -### Method: get_file_format(file_path) [static] {#get_file_format_file_path_19} +### Method: get_file_format(file_path) [static] {#get_file_format_file_path_23} ``` @@ -551,7 +646,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format(stream) [static] {#get_file_format_stream_20} +### Method: get_file_format(stream) [static] {#get_file_format_stream_24} ``` @@ -573,7 +668,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_21} +### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_25} ``` @@ -595,7 +690,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_22} +### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_26} ``` @@ -620,7 +715,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_23} +### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_27} ``` @@ -644,7 +739,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_missed_fonts() {#get_missed_fonts__24} +### Method: get_missed_fonts() {#get_missed_fonts__28} ``` @@ -660,7 +755,7 @@ Returns the list of fonts which used inside metafile but not found. | string | The font list | -### Method: get_original_options() {#get_original_options__25} +### Method: get_original_options() {#get_original_options__29} ``` @@ -676,7 +771,7 @@ Gets the options based on the original file settings.
This can b | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options based on the original file settings. | -### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_26} +### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_30} ``` @@ -700,7 +795,7 @@ Gets a proportional height. | int | The proportional height. | -### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_27} +### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_31} ``` @@ -724,7 +819,7 @@ Gets a proportional width. | int | The proportional width. | -### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_28} +### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_32} ``` @@ -748,7 +843,7 @@ Converts to aps. | _io.BufferedRandom | The serialized stream | -### Method: get_used_fonts() {#get_used_fonts__29} +### Method: get_used_fonts() {#get_used_fonts__33} ``` @@ -764,7 +859,7 @@ Retrieve the list of fonts utilized within the metafile with this method. Gain < | string | The font list | -### Method: load(file_path) [static] {#load_file_path_30} +### Method: load(file_path) [static] {#load_file_path_34} ``` @@ -786,7 +881,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(file_path, load_options) [static] {#load_file_path_load_options_31} +### Method: load(file_path, load_options) [static] {#load_file_path_load_options_35} ``` @@ -809,7 +904,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream) [static] {#load_stream_32} +### Method: load(stream) [static] {#load_stream_36} ``` @@ -831,7 +926,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream, load_options) [static] {#load_stream_load_options_33} +### Method: load(stream, load_options) [static] {#load_stream_load_options_37} ``` @@ -854,7 +949,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream(stream) [static] {#load_stream_stream_34} +### Method: load_stream(stream) [static] {#load_stream_stream_38} ``` @@ -876,7 +971,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_35} +### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_39} ``` @@ -899,7 +994,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_36} +### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_40} ``` @@ -922,7 +1017,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: remove_background(settings) {#remove_background_settings_37} +### Method: remove_background(settings) {#remove_background_settings_41} ``` @@ -937,7 +1032,7 @@ Removes the background. | :- | :- | :- | | settings | [RemoveBackgroundSettings](/imaging/python-net/aspose.imaging/removebackgroundsettings) | The settings. | -### Method: resize(new_width, new_height) {#resize_new_width_new_height_38} +### Method: resize(new_width, new_height) {#resize_new_width_new_height_42} ``` @@ -953,14 +1048,14 @@ Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/ | new_width | int | The new width. | | new_height | int | The new height. | -### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_39} +### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_43} ``` resize(new_width, new_height, resize_type) ``` -Resizes the image. +Resizes the specified new width. **Parameters:** @@ -968,16 +1063,16 @@ Resizes the image. | :- | :- | :- | | new_width | int | The new width. | | new_height | int | The new height. | -| resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | +| resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_40} +### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_44} ``` resize(new_width, new_height, settings) ``` -Resizes the image. +Resizes the image with extended options. **Parameters:** @@ -987,7 +1082,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_41} +### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_45} ``` @@ -1004,7 +1099,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_42} +### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_46} ``` @@ -1021,7 +1116,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_canvas(new_rectangle) {#resize_canvas_new_rectangle_43} +### Method: resize_canvas(new_rectangle) {#resize_canvas_new_rectangle_47} ``` @@ -1036,7 +1131,7 @@ Resize the canvas with ease using this function. Perfect for adjusting the overa | :- | :- | :- | | new_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The new rectangle. | -### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_44} +### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_48} ``` @@ -1051,7 +1146,7 @@ Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RES | :- | :- | :- | | new_height | int | The new height. | -### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_45} +### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_49} ``` @@ -1067,7 +1162,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_46} +### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_50} ``` @@ -1083,7 +1178,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_47} +### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_51} ``` @@ -1099,7 +1194,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_48} +### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_52} ``` @@ -1114,7 +1209,7 @@ Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESA | :- | :- | :- | | new_width | int | The new width. | -### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_49} +### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_53} ``` @@ -1130,7 +1225,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_50} +### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_54} ``` @@ -1146,7 +1241,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_51} +### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_55} ``` @@ -1162,14 +1257,29 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_52} +### Method: rotate(angle) {#rotate_angle_56} + + +``` + rotate(angle) +``` + +Rotate image around the center. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | + +### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_57} ``` rotate_flip(rotate_flip_type) ``` -Easily rotate, flip, or perform both operations simultaneously on your image using
this simple `RotateFlip()` method. Perfect for adjusting orientation and enhancing
visual appeal without hassle. Ideal for achieving the desired presentation of your
images in any project or application. +Rotates, flips, or rotates and flips the image. **Parameters:** @@ -1177,7 +1287,7 @@ Easily rotate, flip, or perform both operations simultaneously on your image usi | :- | :- | :- | | rotate_flip_type | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | Type of the rotate flip. | -### Method: save(file_path) {#save_file_path_53} +### Method: save(file_path) {#save_file_path_58} ``` @@ -1192,7 +1302,7 @@ Saves the image to the specified file location. | :- | :- | :- | | file_path | string | The file path to save the image to. | -### Method: save(file_path, options) {#save_file_path_options_54} +### Method: save(file_path, options) {#save_file_path_options_59} ``` @@ -1208,7 +1318,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_55} +### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_60} ``` @@ -1225,7 +1335,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: save(file_path, over_write) {#save_file_path_over_write_56} +### Method: save(file_path, over_write) {#save_file_path_over_write_61} ``` @@ -1241,7 +1351,7 @@ Saves the object's data to the specified file location. | file_path | string | The file path to save the object's data to. | | over_write | bool | if set to true over write the file contents, otherwise append will occur. | -### Method: save(stream) {#save_stream_57} +### Method: save(stream) {#save_stream_62} ``` @@ -1256,7 +1366,7 @@ Saves the data. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save data to. | -### Method: save(stream, options_base) {#save_stream_options_base_58} +### Method: save(stream, options_base) {#save_stream_options_base_63} ``` @@ -1272,7 +1382,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_59} +### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_64} ``` @@ -1289,7 +1399,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_to_stream(stream) {#save_to_stream_stream_60} +### Method: save_to_stream(stream) {#save_to_stream_stream_65} ``` @@ -1304,7 +1414,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_61} +### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_66} ``` @@ -1320,7 +1430,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_62} +### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_67} ``` @@ -1337,7 +1447,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_63} +### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_68} ``` @@ -1353,7 +1463,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_64} +### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_69} ``` @@ -1370,14 +1480,14 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_65} +### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_70} ``` set_palette(palette, update_colors) ``` -Enhance your image's color palette by setting it with the specified
`IColorPalette`. Achieve vivid, vibrant visuals with ease, ensuring your images
stand out and captivate viewers. Ideal for optimizing color schemes and achieving
the perfect look for your projects. +Sets the image palette. **Parameters:** diff --git a/english/python-net/aspose.imaging.fileformats.emf/metaimage/_index.md b/english/python-net/aspose.imaging.fileformats.emf/metaimage/_index.md index ec7571ac93..cae1373479 100644 --- a/english/python-net/aspose.imaging.fileformats.emf/metaimage/_index.md +++ b/english/python-net/aspose.imaging.fileformats.emf/metaimage/_index.md @@ -49,66 +49,71 @@ url: /python-net/aspose.imaging.fileformats.emf/metaimage/ | [can_load_stream_with_options(stream, load_options)](#can_load_stream_with_options_stream_load_options_6) | Determines whether image can be loaded from the specified stream and optionally using the specified _loadOptions_. | | [can_load_with_options(file_path, load_options)](#can_load_with_options_file_path_load_options_7) | Determines whether image can be loaded from the specified file path and optionally using the specified open options. | | [can_save(options)](#can_save_options_8) | Determines whether image can be saved to the specified file format represented by the passed save options. | -| [create(files)](#create_files_9) | Creates the specified files. | -| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_10) | Creates the specified files. | +| [create(files)](#create_files_9) | Creates the multipage image containing the specified files. | +| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_10) | Creates the multipage image containing the specified files. | | [create(image_options, width, height)](#create_image_options_width_height_11) | Creates a new image using the specified create options. | | [create(images)](#create_images_12) | Creates a new image using the specified images as pages | | [create(images, dispose_images)](#create_images_dispose_images_13) | Creates a new image the specified images as pages. | | [create(multipage_create_options)](#create_multipage_create_options_14) | Creates the specified multipage create options. | -| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_15) | Crop image with shifts. | -| [crop(rectangle)](#crop_rectangle_16) | Crops the specified rectangle. | -| [get_default_options(args)](#get_default_options_args_17) | Gets the default options. | -| [get_embedded_images()](#get_embedded_images__18) | Gets the embedded images. | -| [get_file_format(file_path)](#get_file_format_file_path_19) | Gets the file format. | -| [get_file_format(stream)](#get_file_format_stream_20) | Gets the file format. | -| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_21) | Gets the file format. | -| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_22) | Gets rectangle which fits the current image. | -| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_23) | Gets rectangle which fits the current image. | -| [get_missed_fonts()](#get_missed_fonts__24) | Returns the list of fonts which used inside metafile but not found. | -| [get_original_options()](#get_original_options__25) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | -| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_26) | Gets a proportional height. | -| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_27) | Gets a proportional width. | -| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_28) | Converts to aps. | -| [get_used_fonts()](#get_used_fonts__29) | Returns the list of font which used inside metafile. | -| [load(file_path)](#load_file_path_30) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(file_path, load_options)](#load_file_path_load_options_31) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(stream)](#load_stream_32) | Loads a new image from the specified stream. | -| [load(stream, load_options)](#load_stream_load_options_33) | Loads a new image from the specified stream. | -| [load_stream(stream)](#load_stream_stream_34) | Loads a new image from the specified stream. | -| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_35) | Loads a new image from the specified stream. | -| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_36) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [create_from_files(files)](#create_from_files_files_15) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_files(files, throw_exception_on_load_error)](#create_from_files_files_throw_exception_on_load_error_16) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_images(images)](#create_from_images_images_17) | Creates a new image using the specified images as pages | +| [create_from_images(images, dispose_images)](#create_from_images_images_dispose_images_18) | Creates a new image the specified images as pages. | +| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_19) | Crop image with shifts. | +| [crop(rectangle)](#crop_rectangle_20) | Crops the specified rectangle. | +| [get_default_options(args)](#get_default_options_args_21) | Gets the default options. | +| [get_embedded_images()](#get_embedded_images__22) | Gets the embedded images. | +| [get_file_format(file_path)](#get_file_format_file_path_23) | Gets the file format. | +| [get_file_format(stream)](#get_file_format_stream_24) | Gets the file format. | +| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_25) | Gets the file format. | +| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_26) | Gets rectangle which fits the current image. | +| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_27) | Gets rectangle which fits the current image. | +| [get_missed_fonts()](#get_missed_fonts__28) | Returns the list of fonts which used inside metafile but not found. | +| [get_original_options()](#get_original_options__29) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | +| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_30) | Gets a proportional height. | +| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_31) | Gets a proportional width. | +| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_32) | Converts to aps. | +| [get_used_fonts()](#get_used_fonts__33) | Returns the list of font which used inside metafile. | +| [load(file_path)](#load_file_path_34) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path, load_options)](#load_file_path_load_options_35) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(stream)](#load_stream_36) | Loads a new image from the specified stream. | +| [load(stream, load_options)](#load_stream_load_options_37) | Loads a new image from the specified stream. | +| [load_stream(stream)](#load_stream_stream_38) | Loads a new image from the specified stream. | +| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_39) | Loads a new image from the specified stream. | +| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_40) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | | remove_background() | Removes the background. | -| [remove_background(settings)](#remove_background_settings_37) | Removes the background. | +| [remove_background(settings)](#remove_background_settings_41) | Removes the background. | | remove_metadata() | Removes metadata. | -| [resize(new_width, new_height)](#resize_new_width_new_height_38) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_39) | Resizes the image. | -| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_40) | Resizes the image. | -| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_41) | Resizes the image. | -| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_42) | Resizes the image. | -| [resize_canvas(new_rectangle)](#resize_canvas_new_rectangle_43) | Resizes the canvas. | -| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_44) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_45) | Resizes the height proportionally. | -| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_46) | Resizes the height proportionally. | -| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_47) | Resizes the height proportionally. | -| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_48) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_49) | Resizes the width proportionally. | -| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_50) | Resizes the width proportionally. | -| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_51) | Resizes the width proportionally. | -| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_52) | Rotates, flips, or rotates and flips the image. | +| [resize(new_width, new_height)](#resize_new_width_new_height_42) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_43) | Resizes the specified new width. | +| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_44) | Resizes the image with extended options. | +| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_45) | Resizes the image. | +| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_46) | Resizes the image. | +| [resize_canvas(new_rectangle)](#resize_canvas_new_rectangle_47) | Resizes the canvas. | +| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_48) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_49) | Resizes the height proportionally. | +| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_50) | Resizes the height proportionally. | +| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_51) | Resizes the height proportionally. | +| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_52) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_53) | Resizes the width proportionally. | +| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_54) | Resizes the width proportionally. | +| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_55) | Resizes the width proportionally. | +| [rotate(angle)](#rotate_angle_56) | Rotate image around the center. | +| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_57) | Rotates, flips, or rotates and flips the image. | | save() | Saves the image data to the underlying stream. | -| [save(file_path)](#save_file_path_53) | Saves the image to the specified file location. | -| [save(file_path, options)](#save_file_path_options_54) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_55) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, over_write)](#save_file_path_over_write_56) | Saves the object's data to the specified file location. | -| [save(stream)](#save_stream_57) | Saves the object's data to the specified stream. | -| [save(stream, options_base)](#save_stream_options_base_58) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_59) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream(stream)](#save_to_stream_stream_60) | Saves the object's data to the specified stream. | -| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_61) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_62) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_with_options(file_path, options)](#save_with_options_file_path_options_63) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_64) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_65) | Sets the image palette. | +| [save(file_path)](#save_file_path_58) | Saves the image to the specified file location. | +| [save(file_path, options)](#save_file_path_options_59) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_60) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, over_write)](#save_file_path_over_write_61) | Saves the object's data to the specified file location. | +| [save(stream)](#save_stream_62) | Saves the object's data to the specified stream. | +| [save(stream, options_base)](#save_stream_options_base_63) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_64) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream(stream)](#save_to_stream_stream_65) | Saves the object's data to the specified stream. | +| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_66) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_67) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_with_options(file_path, options)](#save_with_options_file_path_options_68) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_69) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_70) | Sets the image palette. | ### Method: can_load(file_path) [static] {#can_load_file_path_1} @@ -298,7 +303,7 @@ Determines whether image can be saved to the specified file format represented b create(files) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -320,7 +325,7 @@ Creates the specified files. create(files, throw_exception_on_load_error) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -427,7 +432,97 @@ Creates the specified multipage create options. | [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | -### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_15} +### Method: create_from_files(files) [static] {#create_from_files_files_15} + + +``` + create_from_files(files) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_files(files, throw_exception_on_load_error) [static] {#create_from_files_files_throw_exception_on_load_error_16} + + +``` + create_from_files(files, throw_exception_on_load_error) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | +| throw_exception_on_load_error | bool | if set to true throw exception on load error. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_images(images) [static] {#create_from_images_images_17} + + +``` + create_from_images(images) +``` + +Creates a new image using the specified images as pages + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_images(images, dispose_images) [static] {#create_from_images_images_dispose_images_18} + + +``` + create_from_images(images, dispose_images) +``` + +Creates a new image the specified images as pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | +| dispose_images | bool | if set to true [dispose images]. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_19} ``` @@ -445,7 +540,7 @@ Crop image with shifts. | top_shift | int | The top shift. | | bottom_shift | int | The bottom shift. | -### Method: crop(rectangle) {#crop_rectangle_16} +### Method: crop(rectangle) {#crop_rectangle_20} ``` @@ -460,7 +555,7 @@ Crops the specified rectangle. | :- | :- | :- | | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | -### Method: get_default_options(args) {#get_default_options_args_17} +### Method: get_default_options(args) {#get_default_options_args_21} ``` @@ -482,7 +577,7 @@ Gets the default options. | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Default options | -### Method: get_embedded_images() {#get_embedded_images__18} +### Method: get_embedded_images() {#get_embedded_images__22} ``` @@ -498,7 +593,7 @@ Gets the embedded images. | [EmbeddedImage[]](/imaging/python-net/aspose.imaging/embeddedimage) | Array of images | -### Method: get_file_format(file_path) [static] {#get_file_format_file_path_19} +### Method: get_file_format(file_path) [static] {#get_file_format_file_path_23} ``` @@ -520,7 +615,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format(stream) [static] {#get_file_format_stream_20} +### Method: get_file_format(stream) [static] {#get_file_format_stream_24} ``` @@ -542,7 +637,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_21} +### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_25} ``` @@ -564,7 +659,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_22} +### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_26} ``` @@ -589,7 +684,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_23} +### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_27} ``` @@ -613,7 +708,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_missed_fonts() {#get_missed_fonts__24} +### Method: get_missed_fonts() {#get_missed_fonts__28} ``` @@ -629,7 +724,7 @@ Returns the list of fonts which used inside metafile but not found. | string | The font list | -### Method: get_original_options() {#get_original_options__25} +### Method: get_original_options() {#get_original_options__29} ``` @@ -645,7 +740,7 @@ Gets the options based on the original file settings.
This can b | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options based on the original file settings. | -### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_26} +### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_30} ``` @@ -669,7 +764,7 @@ Gets a proportional height. | int | The proportional height. | -### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_27} +### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_31} ``` @@ -693,7 +788,7 @@ Gets a proportional width. | int | The proportional width. | -### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_28} +### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_32} ``` @@ -717,7 +812,7 @@ Converts to aps. | _io.BufferedRandom | The serialized stream | -### Method: get_used_fonts() {#get_used_fonts__29} +### Method: get_used_fonts() {#get_used_fonts__33} ``` @@ -733,7 +828,7 @@ Returns the list of font which used inside metafile. | string | The font list | -### Method: load(file_path) [static] {#load_file_path_30} +### Method: load(file_path) [static] {#load_file_path_34} ``` @@ -755,7 +850,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(file_path, load_options) [static] {#load_file_path_load_options_31} +### Method: load(file_path, load_options) [static] {#load_file_path_load_options_35} ``` @@ -778,7 +873,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream) [static] {#load_stream_32} +### Method: load(stream) [static] {#load_stream_36} ``` @@ -800,7 +895,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream, load_options) [static] {#load_stream_load_options_33} +### Method: load(stream, load_options) [static] {#load_stream_load_options_37} ``` @@ -823,7 +918,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream(stream) [static] {#load_stream_stream_34} +### Method: load_stream(stream) [static] {#load_stream_stream_38} ``` @@ -845,7 +940,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_35} +### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_39} ``` @@ -868,7 +963,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_36} +### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_40} ``` @@ -891,7 +986,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: remove_background(settings) {#remove_background_settings_37} +### Method: remove_background(settings) {#remove_background_settings_41} ``` @@ -906,7 +1001,7 @@ Removes the background. | :- | :- | :- | | settings | [RemoveBackgroundSettings](/imaging/python-net/aspose.imaging/removebackgroundsettings) | The settings. | -### Method: resize(new_width, new_height) {#resize_new_width_new_height_38} +### Method: resize(new_width, new_height) {#resize_new_width_new_height_42} ``` @@ -922,14 +1017,14 @@ Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/ | new_width | int | The new width. | | new_height | int | The new height. | -### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_39} +### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_43} ``` resize(new_width, new_height, resize_type) ``` -Resizes the image. +Resizes the specified new width. **Parameters:** @@ -937,16 +1032,16 @@ Resizes the image. | :- | :- | :- | | new_width | int | The new width. | | new_height | int | The new height. | -| resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | +| resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_40} +### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_44} ``` resize(new_width, new_height, settings) ``` -Resizes the image. +Resizes the image with extended options. **Parameters:** @@ -956,7 +1051,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_41} +### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_45} ``` @@ -973,7 +1068,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_42} +### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_46} ``` @@ -990,7 +1085,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_canvas(new_rectangle) {#resize_canvas_new_rectangle_43} +### Method: resize_canvas(new_rectangle) {#resize_canvas_new_rectangle_47} ``` @@ -1005,7 +1100,7 @@ Resizes the canvas. | :- | :- | :- | | new_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The new rectangle. | -### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_44} +### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_48} ``` @@ -1020,7 +1115,7 @@ Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RES | :- | :- | :- | | new_height | int | The new height. | -### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_45} +### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_49} ``` @@ -1036,7 +1131,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_46} +### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_50} ``` @@ -1052,7 +1147,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_47} +### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_51} ``` @@ -1068,7 +1163,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_48} +### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_52} ``` @@ -1083,7 +1178,7 @@ Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESA | :- | :- | :- | | new_width | int | The new width. | -### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_49} +### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_53} ``` @@ -1099,7 +1194,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_50} +### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_54} ``` @@ -1115,7 +1210,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_51} +### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_55} ``` @@ -1131,7 +1226,22 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_52} +### Method: rotate(angle) {#rotate_angle_56} + + +``` + rotate(angle) +``` + +Rotate image around the center. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | + +### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_57} ``` @@ -1146,7 +1256,7 @@ Rotates, flips, or rotates and flips the image. | :- | :- | :- | | rotate_flip_type | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | Type of the rotate flip. | -### Method: save(file_path) {#save_file_path_53} +### Method: save(file_path) {#save_file_path_58} ``` @@ -1161,7 +1271,7 @@ Saves the image to the specified file location. | :- | :- | :- | | file_path | string | The file path to save the image to. | -### Method: save(file_path, options) {#save_file_path_options_54} +### Method: save(file_path, options) {#save_file_path_options_59} ``` @@ -1177,7 +1287,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_55} +### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_60} ``` @@ -1194,7 +1304,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: save(file_path, over_write) {#save_file_path_over_write_56} +### Method: save(file_path, over_write) {#save_file_path_over_write_61} ``` @@ -1210,7 +1320,7 @@ Saves the object's data to the specified file location. | file_path | string | The file path to save the object's data to. | | over_write | bool | if set to true over write the file contents, otherwise append will occur. | -### Method: save(stream) {#save_stream_57} +### Method: save(stream) {#save_stream_62} ``` @@ -1225,7 +1335,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save(stream, options_base) {#save_stream_options_base_58} +### Method: save(stream, options_base) {#save_stream_options_base_63} ``` @@ -1241,7 +1351,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_59} +### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_64} ``` @@ -1258,7 +1368,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_to_stream(stream) {#save_to_stream_stream_60} +### Method: save_to_stream(stream) {#save_to_stream_stream_65} ``` @@ -1273,7 +1383,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_61} +### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_66} ``` @@ -1289,7 +1399,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_62} +### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_67} ``` @@ -1306,7 +1416,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_63} +### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_68} ``` @@ -1322,7 +1432,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_64} +### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_69} ``` @@ -1339,7 +1449,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_65} +### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_70} ``` diff --git a/english/python-net/aspose.imaging.fileformats.eps/epsimage/_index.md b/english/python-net/aspose.imaging.fileformats.eps/epsimage/_index.md index 3c280622d5..1086215e94 100644 --- a/english/python-net/aspose.imaging.fileformats.eps/epsimage/_index.md +++ b/english/python-net/aspose.imaging.fileformats.eps/epsimage/_index.md @@ -32,8 +32,8 @@ url: /python-net/aspose.imaging.fileformats.eps/epsimage/ | file_format | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | r | Access the file format of your image with this property. Retrieve essential
information about the format of your image file, facilitating compatibility and
efficient processing. Ideal for identifying the format of your image files for
seamless integration into your projects. | | has_background_color | bool | r/w | Gets or sets a value indicating whether image has background color. | | has_raster_preview | bool | r | Discover the presence of a raster preview effortlessly with this property. Access
the boolean value indicating whether the [EpsImage](/imaging/python-net/aspose.imaging.fileformats.eps/epsimage/) instance includes a
raster preview, empowering your image processing tasks with clarity and efficiency.
Ideal for streamlining workflow decisions based on the presence or absence of
raster previews in EPS images. | -| height | int | r | Access the height of the image using this property. Obtain the image's height with
ease, enabling seamless layout adjustments, aspect ratio calculations, and precise
rendering across different screen resolutions and display environments. | -| height_f | float | r | Gets the object height, in inches. | +| height | int | r | Gets the image height. | +| height_f | float | r | Access the height of the image using this property. Obtain the image's height with
ease, enabling seamless layout adjustments, aspect ratio calculations, and precise
rendering across different screen resolutions and display environments. | | interrupt_monitor | [InterruptMonitor](/imaging/python-net/aspose.imaging.multithreading/interruptmonitor/) | r/w | Gets or sets the interrupt monitor. | | is_cached | bool | r | This property provides a convenient way to check if the object's data is currently
cached, eliminating the need for additional data reading. It offers a quick and
efficient method to determine if the required information is readily available,
optimizing performance and reducing resource overhead in data-intensive operations. | | palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | r/w | Gets or sets the color palette. The color palette is not used when pixels are represented directly. | @@ -44,8 +44,8 @@ url: /python-net/aspose.imaging.fileformats.eps/epsimage/ | size_f | [SizeF](/imaging/python-net/aspose.imaging/sizef) | r | Gets the object size, in inches. | | title | string | r | This property retrieves the title extracted from the EPS Document Structuring
Conventions (DSC) comments embedded within the EPS file. It provides valuable
metadata about the content of the EPS file, aiding in document organization and
identification within compatible software applications. | | use_palette | bool | r | Gets a value indicating whether the image palette is used. | -| width | int | r | Retrieve the width of the image with this convenient property. Obtain the image's
width effortlessly, facilitating precise layout calculations, scaling operations,
and dimension-related tasks within your application. Ideal for ensuring accurate
rendering and display of images across various platforms and devices. | -| width_f | float | r | Gets the object width, in inches. | +| width | int | r | Gets the image width. | +| width_f | float | r | Retrieve the width of the image with this convenient property. Obtain the image's
width effortlessly, facilitating precise layout calculations, scaling operations,
and dimension-related tasks within your application. Ideal for ensuring accurate
rendering and display of images across various platforms and devices. | ## **Methods** | **Name** | **Description** | | :- | :- | @@ -58,63 +58,70 @@ url: /python-net/aspose.imaging.fileformats.eps/epsimage/ | [can_load_stream_with_options(stream, load_options)](#can_load_stream_with_options_stream_load_options_6) | Determines whether image can be loaded from the specified stream and optionally using the specified _loadOptions_. | | [can_load_with_options(file_path, load_options)](#can_load_with_options_file_path_load_options_7) | Determines whether image can be loaded from the specified file path and optionally using the specified open options. | | [can_save(options)](#can_save_options_8) | Determines whether image can be saved to the specified file format represented by the passed save options. | -| [create(files)](#create_files_9) | Creates the specified files. | -| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_10) | Creates the specified files. | +| [create(files)](#create_files_9) | Creates the multipage image containing the specified files. | +| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_10) | Creates the multipage image containing the specified files. | | [create(image_options, width, height)](#create_image_options_width_height_11) | Creates a new image using the specified create options. | | [create(images)](#create_images_12) | Creates a new image using the specified images as pages | | [create(images, dispose_images)](#create_images_dispose_images_13) | Creates a new image the specified images as pages. | | [create(multipage_create_options)](#create_multipage_create_options_14) | Creates the specified multipage create options. | -| [get_default_options(args)](#get_default_options_args_15) | Retrieve default options effortlessly to streamline image processing tasks. Access
preconfigured settings to expedite workflow and ensure consistent output quality
without manual configuration. | -| [get_embedded_images()](#get_embedded_images__16) | Gets the embedded images. | -| [get_file_format(file_path)](#get_file_format_file_path_17) | Gets the file format. | -| [get_file_format(stream)](#get_file_format_stream_18) | Gets the file format. | -| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_19) | Gets the file format. | -| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_20) | Gets rectangle which fits the current image. | -| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_21) | Gets rectangle which fits the current image. | -| [get_original_options()](#get_original_options__22) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | -| [get_preview_image(format)](#get_preview_image_format_23) | Retrieves the existing preview image in the specified _format_ or
returns **None** if none is found. This method offers flexibility in
accessing preview images tailored to specific formats, optimizing compatibility and
resource management within applications. | -| [get_preview_images()](#get_preview_images__24) | Accesses the preview images linked to the [EpsImage](/imaging/python-net/aspose.imaging.fileformats.eps/epsimage/) instance, allowing
seamless retrieval for inspection or utilization in applications. This method
provides convenient access to preview images, enhancing user interaction with the
image data. | -| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_25) | Gets a proportional height. | -| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_26) | Gets a proportional width. | -| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_27) | Converts to aps. | -| [load(file_path)](#load_file_path_28) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(file_path, load_options)](#load_file_path_load_options_29) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(stream)](#load_stream_30) | Loads a new image from the specified stream. | -| [load(stream, load_options)](#load_stream_load_options_31) | Loads a new image from the specified stream. | -| [load_stream(stream)](#load_stream_stream_32) | Loads a new image from the specified stream. | -| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_33) | Loads a new image from the specified stream. | -| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_34) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [create_from_files(files)](#create_from_files_files_15) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_files(files, throw_exception_on_load_error)](#create_from_files_files_throw_exception_on_load_error_16) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_images(images)](#create_from_images_images_17) | Creates a new image using the specified images as pages | +| [create_from_images(images, dispose_images)](#create_from_images_images_dispose_images_18) | Creates a new image the specified images as pages. | +| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_19) | Crop image with shifts. | +| [crop(rectangle)](#crop_rectangle_20) | Crops the specified rectangle. | +| [get_default_options(args)](#get_default_options_args_21) | Retrieve default options effortlessly to streamline image processing tasks. Access
preconfigured settings to expedite workflow and ensure consistent output quality
without manual configuration. | +| [get_embedded_images()](#get_embedded_images__22) | Gets the embedded images. | +| [get_file_format(file_path)](#get_file_format_file_path_23) | Gets the file format. | +| [get_file_format(stream)](#get_file_format_stream_24) | Gets the file format. | +| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_25) | Gets the file format. | +| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_26) | Gets rectangle which fits the current image. | +| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_27) | Gets rectangle which fits the current image. | +| [get_original_options()](#get_original_options__28) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | +| [get_preview_image(format)](#get_preview_image_format_29) | Retrieves the existing preview image in the specified _format_ or
returns **None** if none is found. This method offers flexibility in
accessing preview images tailored to specific formats, optimizing compatibility and
resource management within applications. | +| [get_preview_images()](#get_preview_images__30) | Accesses the preview images linked to the [EpsImage](/imaging/python-net/aspose.imaging.fileformats.eps/epsimage/) instance, allowing
seamless retrieval for inspection or utilization in applications. This method
provides convenient access to preview images, enhancing user interaction with the
image data. | +| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_31) | Gets a proportional height. | +| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_32) | Gets a proportional width. | +| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_33) | Converts to aps. | +| [load(file_path)](#load_file_path_34) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path, load_options)](#load_file_path_load_options_35) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(stream)](#load_stream_36) | Loads a new image from the specified stream. | +| [load(stream, load_options)](#load_stream_load_options_37) | Loads a new image from the specified stream. | +| [load_stream(stream)](#load_stream_stream_38) | Loads a new image from the specified stream. | +| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_39) | Loads a new image from the specified stream. | +| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_40) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | | remove_background() | Removes the background. | -| [remove_background(settings)](#remove_background_settings_35) | Removes the background. | +| [remove_background(settings)](#remove_background_settings_41) | Removes the background. | | remove_metadata() | Removes metadata. | -| [resize(new_width, new_height)](#resize_new_width_new_height_36) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_37) | This method resizes the image, adjusting its dimensions according to specified
parameters. It offers a straightforward way to modify the size of the image,
ensuring flexibility and ease of use for developers. | -| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_38) | This method resizes the image using predefined settings, allowing for efficient
adjustment of dimensions. It provides a convenient way to modify the image size
while maintaining control over various parameters, ensuring optimal results for
different use cases. | -| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_39) | This method resizes the image using predefined settings, allowing for efficient
adjustment of dimensions. It provides a convenient way to modify the image size
while maintaining control over various parameters, ensuring optimal results for
different use cases. | -| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_40) | This method resizes the image, adjusting its dimensions according to specified
parameters. It offers a straightforward way to modify the size of the image,
ensuring flexibility and ease of use for developers. | -| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_41) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_42) | Resizes the height proportionally. | -| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_43) | Resizes the height proportionally. | -| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_44) | Resizes the height proportionally. | -| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_45) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_46) | Resizes the width proportionally. | -| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_47) | Resizes the width proportionally. | -| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_48) | Resizes the width proportionally. | -| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_49) | This method facilitates versatile manipulation of the image by enabling rotation,
flipping, or both rotation and flipping simultaneously. It offers flexibility in
adjusting the orientation of the image to suit specific requirements, enhancing its
usability and visual appeal. | +| [resize(new_width, new_height)](#resize_new_width_new_height_42) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_43) | Resizes the specified new width. | +| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_44) | Resizes the image with extended options. | +| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_45) | Resizes the image. | +| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_46) | Resizes the image. | +| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_47) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_48) | Resizes the height proportionally. | +| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_49) | Resizes the height proportionally. | +| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_50) | Resizes the height proportionally. | +| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_51) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_52) | Resizes the width proportionally. | +| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_53) | Resizes the width proportionally. | +| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_54) | Resizes the width proportionally. | +| [rotate(angle)](#rotate_angle_55) | Rotate image around the center. | +| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_56) | Rotates, flips, or rotates and flips the image. | | save() | Saves the image data to the underlying stream. | -| [save(file_path)](#save_file_path_50) | Saves the image to the specified file location. | -| [save(file_path, options)](#save_file_path_options_51) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_52) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, over_write)](#save_file_path_over_write_53) | Saves the object's data to the specified file location. | -| [save(stream)](#save_stream_54) | Saves the data. | -| [save(stream, options_base)](#save_stream_options_base_55) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_56) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream(stream)](#save_to_stream_stream_57) | Saves the object's data to the specified stream. | -| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_58) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_59) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_with_options(file_path, options)](#save_with_options_file_path_options_60) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_61) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_62) | Customize image palettes to achieve unique color schemes and enhance visual appeal.
Tailor colors for specific effects and optimize image quality across different
platforms and devices with ease. | +| [save(file_path)](#save_file_path_57) | Saves the image to the specified file location. | +| [save(file_path, options)](#save_file_path_options_58) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_59) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, over_write)](#save_file_path_over_write_60) | Saves the object's data to the specified file location. | +| [save(stream)](#save_stream_61) | Saves the data. | +| [save(stream, options_base)](#save_stream_options_base_62) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_63) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream(stream)](#save_to_stream_stream_64) | Saves the object's data to the specified stream. | +| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_65) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_66) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_with_options(file_path, options)](#save_with_options_file_path_options_67) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_68) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_69) | Customize image palettes to achieve unique color schemes and enhance visual appeal.
Tailor colors for specific effects and optimize image quality across different
platforms and devices with ease. | ### Method: can_load(file_path) [static] {#can_load_file_path_1} @@ -304,7 +311,7 @@ Determines whether image can be saved to the specified file format represented b create(files) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -326,7 +333,7 @@ Creates the specified files. create(files, throw_exception_on_load_error) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -433,7 +440,130 @@ Creates the specified multipage create options. | [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | -### Method: get_default_options(args) {#get_default_options_args_15} +### Method: create_from_files(files) [static] {#create_from_files_files_15} + + +``` + create_from_files(files) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_files(files, throw_exception_on_load_error) [static] {#create_from_files_files_throw_exception_on_load_error_16} + + +``` + create_from_files(files, throw_exception_on_load_error) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | +| throw_exception_on_load_error | bool | if set to true throw exception on load error. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_images(images) [static] {#create_from_images_images_17} + + +``` + create_from_images(images) +``` + +Creates a new image using the specified images as pages + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_images(images, dispose_images) [static] {#create_from_images_images_dispose_images_18} + + +``` + create_from_images(images, dispose_images) +``` + +Creates a new image the specified images as pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | +| dispose_images | bool | if set to true [dispose images]. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_19} + + +``` + crop(left_shift, right_shift, top_shift, bottom_shift) +``` + +Crop image with shifts. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| left_shift | int | The left shift. | +| right_shift | int | The right shift. | +| top_shift | int | The top shift. | +| bottom_shift | int | The bottom shift. | + +### Method: crop(rectangle) {#crop_rectangle_20} + + +``` + crop(rectangle) +``` + +Crops the specified rectangle. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | + +### Method: get_default_options(args) {#get_default_options_args_21} ``` @@ -455,7 +585,7 @@ Retrieve default options effortlessly to streamline image processing tasks. Acce | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Default options | -### Method: get_embedded_images() {#get_embedded_images__16} +### Method: get_embedded_images() {#get_embedded_images__22} ``` @@ -471,7 +601,7 @@ Gets the embedded images. | [EmbeddedImage[]](/imaging/python-net/aspose.imaging/embeddedimage) | Array of images | -### Method: get_file_format(file_path) [static] {#get_file_format_file_path_17} +### Method: get_file_format(file_path) [static] {#get_file_format_file_path_23} ``` @@ -493,7 +623,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format(stream) [static] {#get_file_format_stream_18} +### Method: get_file_format(stream) [static] {#get_file_format_stream_24} ``` @@ -515,7 +645,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_19} +### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_25} ``` @@ -537,7 +667,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_20} +### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_26} ``` @@ -562,7 +692,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_21} +### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_27} ``` @@ -586,7 +716,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_original_options() {#get_original_options__22} +### Method: get_original_options() {#get_original_options__28} ``` @@ -602,7 +732,7 @@ Gets the options based on the original file settings.
This can b | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options based on the original file settings. | -### Method: get_preview_image(format) {#get_preview_image_format_23} +### Method: get_preview_image(format) {#get_preview_image_format_29} ``` @@ -624,7 +754,7 @@ Retrieves the existing preview image in the specified _format_ or
| [Image](/imaging/python-net/aspose.imaging/image) | The exisiting preview image or **None**. | -### Method: get_preview_images() {#get_preview_images__24} +### Method: get_preview_images() {#get_preview_images__30} ``` @@ -640,7 +770,7 @@ Accesses the preview images linked to the [EpsImage](/imaging/python-net/aspose. | list[Image] | The preview images. | -### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_25} +### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_31} ``` @@ -664,7 +794,7 @@ Gets a proportional height. | int | The proportional height. | -### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_26} +### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_32} ``` @@ -688,7 +818,7 @@ Gets a proportional width. | int | The proportional width. | -### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_27} +### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_33} ``` @@ -712,7 +842,7 @@ Converts to aps. | _io.BufferedRandom | The serialized stream | -### Method: load(file_path) [static] {#load_file_path_28} +### Method: load(file_path) [static] {#load_file_path_34} ``` @@ -734,7 +864,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(file_path, load_options) [static] {#load_file_path_load_options_29} +### Method: load(file_path, load_options) [static] {#load_file_path_load_options_35} ``` @@ -757,7 +887,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream) [static] {#load_stream_30} +### Method: load(stream) [static] {#load_stream_36} ``` @@ -779,7 +909,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream, load_options) [static] {#load_stream_load_options_31} +### Method: load(stream, load_options) [static] {#load_stream_load_options_37} ``` @@ -802,7 +932,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream(stream) [static] {#load_stream_stream_32} +### Method: load_stream(stream) [static] {#load_stream_stream_38} ``` @@ -824,7 +954,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_33} +### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_39} ``` @@ -847,7 +977,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_34} +### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_40} ``` @@ -870,7 +1000,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: remove_background(settings) {#remove_background_settings_35} +### Method: remove_background(settings) {#remove_background_settings_41} ``` @@ -885,7 +1015,7 @@ Removes the background. | :- | :- | :- | | settings | [RemoveBackgroundSettings](/imaging/python-net/aspose.imaging/removebackgroundsettings) | The settings. | -### Method: resize(new_width, new_height) {#resize_new_width_new_height_36} +### Method: resize(new_width, new_height) {#resize_new_width_new_height_42} ``` @@ -901,14 +1031,14 @@ Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/ | new_width | int | The new width. | | new_height | int | The new height. | -### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_37} +### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_43} ``` resize(new_width, new_height, resize_type) ``` -This method resizes the image, adjusting its dimensions according to specified
parameters. It offers a straightforward way to modify the size of the image,
ensuring flexibility and ease of use for developers. +Resizes the specified new width. **Parameters:** @@ -916,7 +1046,7 @@ This method resizes the image, adjusting its dimensions according to specified < | :- | :- | :- | | new_width | int | The new width. | | new_height | int | The new height. | -| resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | +| resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | **See also:** @@ -924,14 +1054,14 @@ This method resizes the image, adjusting its dimensions according to specified < **[Example # 1](#example_159)**: Resize EPS image and export it to PNG format. -### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_38} +### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_44} ``` resize(new_width, new_height, settings) ``` -This method resizes the image using predefined settings, allowing for efficient
adjustment of dimensions. It provides a convenient way to modify the image size
while maintaining control over various parameters, ensuring optimal results for
different use cases. +Resizes the image with extended options. **Parameters:** @@ -941,14 +1071,14 @@ This method resizes the image using predefined settings, allowing for efficient | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_39} +### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_45} ``` resize_by_settings(new_width, new_height, settings) ``` -This method resizes the image using predefined settings, allowing for efficient
adjustment of dimensions. It provides a convenient way to modify the image size
while maintaining control over various parameters, ensuring optimal results for
different use cases. +Resizes the image. **Parameters:** @@ -958,14 +1088,14 @@ This method resizes the image using predefined settings, allowing for efficient | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_40} +### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_46} ``` resize_by_type(new_width, new_height, resize_type) ``` -This method resizes the image, adjusting its dimensions according to specified
parameters. It offers a straightforward way to modify the size of the image,
ensuring flexibility and ease of use for developers. +Resizes the image. **Parameters:** @@ -975,7 +1105,7 @@ This method resizes the image, adjusting its dimensions according to specified < | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_41} +### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_47} ``` @@ -990,7 +1120,7 @@ Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RES | :- | :- | :- | | new_height | int | The new height. | -### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_42} +### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_48} ``` @@ -1006,7 +1136,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_43} +### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_49} ``` @@ -1022,7 +1152,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_44} +### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_50} ``` @@ -1038,7 +1168,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_45} +### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_51} ``` @@ -1053,7 +1183,7 @@ Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESA | :- | :- | :- | | new_width | int | The new width. | -### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_46} +### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_52} ``` @@ -1069,7 +1199,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_47} +### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_53} ``` @@ -1085,7 +1215,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_48} +### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_54} ``` @@ -1101,14 +1231,29 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_49} +### Method: rotate(angle) {#rotate_angle_55} + + +``` + rotate(angle) +``` + +Rotate image around the center. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | + +### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_56} ``` rotate_flip(rotate_flip_type) ``` -This method facilitates versatile manipulation of the image by enabling rotation,
flipping, or both rotation and flipping simultaneously. It offers flexibility in
adjusting the orientation of the image to suit specific requirements, enhancing its
usability and visual appeal. +Rotates, flips, or rotates and flips the image. **Parameters:** @@ -1116,7 +1261,7 @@ This method facilitates versatile manipulation of the image by enabling rotation | :- | :- | :- | | rotate_flip_type | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | Type of the rotate flip. | -### Method: save(file_path) {#save_file_path_50} +### Method: save(file_path) {#save_file_path_57} ``` @@ -1131,7 +1276,7 @@ Saves the image to the specified file location. | :- | :- | :- | | file_path | string | The file path to save the image to. | -### Method: save(file_path, options) {#save_file_path_options_51} +### Method: save(file_path, options) {#save_file_path_options_58} ``` @@ -1147,7 +1292,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_52} +### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_59} ``` @@ -1164,7 +1309,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: save(file_path, over_write) {#save_file_path_over_write_53} +### Method: save(file_path, over_write) {#save_file_path_over_write_60} ``` @@ -1180,7 +1325,7 @@ Saves the object's data to the specified file location. | file_path | string | The file path to save the object's data to. | | over_write | bool | if set to true over write the file contents, otherwise append will occur. | -### Method: save(stream) {#save_stream_54} +### Method: save(stream) {#save_stream_61} ``` @@ -1195,7 +1340,7 @@ Saves the data. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save data to. | -### Method: save(stream, options_base) {#save_stream_options_base_55} +### Method: save(stream, options_base) {#save_stream_options_base_62} ``` @@ -1211,7 +1356,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_56} +### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_63} ``` @@ -1228,7 +1373,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_to_stream(stream) {#save_to_stream_stream_57} +### Method: save_to_stream(stream) {#save_to_stream_stream_64} ``` @@ -1243,7 +1388,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_58} +### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_65} ``` @@ -1259,7 +1404,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_59} +### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_66} ``` @@ -1276,7 +1421,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_60} +### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_67} ``` @@ -1292,7 +1437,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_61} +### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_68} ``` @@ -1309,7 +1454,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_62} +### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_69} ``` diff --git a/english/python-net/aspose.imaging.fileformats.eps/epsoptions/_index.md b/english/python-net/aspose.imaging.fileformats.eps/epsoptions/_index.md index f143d867e3..339af14621 100644 --- a/english/python-net/aspose.imaging.fileformats.eps/epsoptions/_index.md +++ b/english/python-net/aspose.imaging.fileformats.eps/epsoptions/_index.md @@ -34,7 +34,7 @@ url: /python-net/aspose.imaging.fileformats.eps/epsoptions/ ## **Methods** | **Name** | **Description** | | :- | :- | -| [clone()](#clone__1) | Clones this instance. | +| [clone()](#clone__1) | Creates a memberwise clone of this instance. | ### Constructor: EpsOptions() {#EpsOptions__1} @@ -53,12 +53,12 @@ Initializes a new instance of the EpsOptions class clone() ``` -Clones this instance. +Creates a memberwise clone of this instance. **Returns** | Type | Description | | :- | :- | -| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Returns shallow copy of this instance | +| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | A memberwise clone of this instance. | diff --git a/english/python-net/aspose.imaging.fileformats.gif.blocks/gifframeblock/_index.md b/english/python-net/aspose.imaging.fileformats.gif.blocks/gifframeblock/_index.md index 332cfe0432..fff38b06a1 100644 --- a/english/python-net/aspose.imaging.fileformats.gif.blocks/gifframeblock/_index.md +++ b/english/python-net/aspose.imaging.fileformats.gif.blocks/gifframeblock/_index.md @@ -102,8 +102,8 @@ url: /python-net/aspose.imaging.fileformats.gif.blocks/gifframeblock/ | [can_load_stream_with_options(stream, load_options)](#can_load_stream_with_options_stream_load_options_15) | Determines whether image can be loaded from the specified stream and optionally using the specified _loadOptions_. | | [can_load_with_options(file_path, load_options)](#can_load_with_options_file_path_load_options_16) | Determines whether image can be loaded from the specified file path and optionally using the specified open options. | | [can_save(options)](#can_save_options_17) | Determines whether image can be saved to the specified file format represented by the passed save options. | -| [create(files)](#create_files_18) | Creates the specified files. | -| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_19) | Creates the specified files. | +| [create(files)](#create_files_18) | Creates the multipage image containing the specified files. | +| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_19) | Creates the multipage image containing the specified files. | | [create(image_options, width, height)](#create_image_options_width_height_20) | Creates a new image using the specified create options. | | [create(images)](#create_images_21) | Creates a new image using the specified images as pages | | [create(images, dispose_images)](#create_images_dispose_images_22) | Creates a new image the specified images as pages. | @@ -111,105 +111,109 @@ url: /python-net/aspose.imaging.fileformats.gif.blocks/gifframeblock/ | [create_flags(color_palette, is_palette_sorted, is_gif_frame_interlaced)](#create_flags_color_palette_is_palette_sorted_is_gif_frame_interlaced_24) | Creates the flags. | | [create_from_file_left_top(path, left, top)](#create_from_file_left_top_path_left_top_25) | Initializes a new instance of the [GifFrameBlock](/imaging/python-net/aspose.imaging.fileformats.gif.blocks/gifframeblock/) class. | | [create_from_file_left_top_pal_sorted_interlaced_code_size(path, left, top, is_palette_sorted, is_gif_frame_interlaced, lzw_code_size)](#create_from_file_left_top_pal_sorted_interlaced_code_size_path_left_top_is_palette_sorted_is_gif_frame_interlaced_lzw_code_size_26) | Initializes a new instance of the [GifFrameBlock](/imaging/python-net/aspose.imaging.fileformats.gif.blocks/gifframeblock/) class. | -| [create_from_image(image)](#create_from_image_image_27) | Initializes a new instance of the [GifFrameBlock](/imaging/python-net/aspose.imaging.fileformats.gif.blocks/gifframeblock/) class. | -| [create_from_image_left_top(image, left, top)](#create_from_image_left_top_image_left_top_28) | Initializes a new instance of the [GifFrameBlock](/imaging/python-net/aspose.imaging.fileformats.gif.blocks/gifframeblock/) class. | -| [create_from_image_left_top_pal_sorted_interlaced_code_size(image, left, top, is_palette_sorted, is_gif_frame_interlaced, lzw_code_size)](#create_from_image_left_top_pal_sorted_interlaced_code_size_image_left_top_is_palette_sorted_is_gif_frame_interlaced_lzw_code_size_29) | Initializes a new instance of the [GifFrameBlock](/imaging/python-net/aspose.imaging.fileformats.gif.blocks/gifframeblock/) class. | -| [create_from_stream(stream)](#create_from_stream_stream_30) | Initializes a new instance of the [GifFrameBlock](/imaging/python-net/aspose.imaging.fileformats.gif.blocks/gifframeblock/) class. | -| [create_from_stream_left_top(stream, left, top)](#create_from_stream_left_top_stream_left_top_31) | Initializes a new instance of the [GifFrameBlock](/imaging/python-net/aspose.imaging.fileformats.gif.blocks/gifframeblock/) class. | -| [create_from_stream_left_top_pal_sorted_interlaced_code_size(stream, left, top, is_palette_sorted, is_gif_frame_interlaced, lzw_code_size)](#create_from_stream_left_top_pal_sorted_interlaced_code_size_stream_left_top_is_palette_sorted_is_gif_frame_interlaced_lzw_code_size_32) | Initializes a new instance of the [GifFrameBlock](/imaging/python-net/aspose.imaging.fileformats.gif.blocks/gifframeblock/) class. | -| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_33) | Crop image with shifts. | -| [crop(rectangle)](#crop_rectangle_34) | Cropping the image. | -| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_35) | Performs dithering on the current image. | -| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_36) | Performs dithering on the current image. | -| [filter(rectangle, options)](#filter_rectangle_options_37) | Filters the specified rectangle. | -| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_38) | Gets an image 32-bit ARGB pixel. | -| [get_color_palette(frame_palette, container_palette)](#get_color_palette_frame_palette_container_palette_39) | Gets the associated color palette. | -| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_40) | Gets the default 32-bit ARGB pixels array. | -| [get_default_options(args)](#get_default_options_args_41) | Gets the default options. | -| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_42) | Gets the default pixels array using partial pixel loader. | -| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_43) | Gets the default raw data array using partial pixel loader. | -| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_44) | Gets the default raw data array. | -| [get_file_format(file_path)](#get_file_format_file_path_45) | Gets the file format. | -| [get_file_format(stream)](#get_file_format_stream_46) | Gets the file format. | -| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_47) | Gets the file format. | -| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_48) | Gets rectangle which fits the current image. | -| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_49) | Gets rectangle which fits the current image. | -| [get_full_frame()](#get_full_frame__50) | Gets the full frame. | -| [get_modify_date(use_default)](#get_modify_date_use_default_51) | Gets the date and time the resource image was last modified. | -| [get_original_options()](#get_original_options__52) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | -| [get_pixel(x, y)](#get_pixel_x_y_53) | Gets an image pixel. | -| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_54) | Gets a proportional height. | -| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_55) | Gets a proportional width. | -| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_56) | Converts to aps. | -| [get_skew_angle()](#get_skew_angle__57) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | +| [create_from_files(files)](#create_from_files_files_27) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_files(files, throw_exception_on_load_error)](#create_from_files_files_throw_exception_on_load_error_28) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_image(image)](#create_from_image_image_29) | Initializes a new instance of the [GifFrameBlock](/imaging/python-net/aspose.imaging.fileformats.gif.blocks/gifframeblock/) class. | +| [create_from_image_left_top(image, left, top)](#create_from_image_left_top_image_left_top_30) | Initializes a new instance of the [GifFrameBlock](/imaging/python-net/aspose.imaging.fileformats.gif.blocks/gifframeblock/) class. | +| [create_from_image_left_top_pal_sorted_interlaced_code_size(image, left, top, is_palette_sorted, is_gif_frame_interlaced, lzw_code_size)](#create_from_image_left_top_pal_sorted_interlaced_code_size_image_left_top_is_palette_sorted_is_gif_frame_interlaced_lzw_code_size_31) | Initializes a new instance of the [GifFrameBlock](/imaging/python-net/aspose.imaging.fileformats.gif.blocks/gifframeblock/) class. | +| [create_from_images(images)](#create_from_images_images_32) | Creates a new image using the specified images as pages | +| [create_from_images(images, dispose_images)](#create_from_images_images_dispose_images_33) | Creates a new image the specified images as pages. | +| [create_from_stream(stream)](#create_from_stream_stream_34) | Initializes a new instance of the [GifFrameBlock](/imaging/python-net/aspose.imaging.fileformats.gif.blocks/gifframeblock/) class. | +| [create_from_stream_left_top(stream, left, top)](#create_from_stream_left_top_stream_left_top_35) | Initializes a new instance of the [GifFrameBlock](/imaging/python-net/aspose.imaging.fileformats.gif.blocks/gifframeblock/) class. | +| [create_from_stream_left_top_pal_sorted_interlaced_code_size(stream, left, top, is_palette_sorted, is_gif_frame_interlaced, lzw_code_size)](#create_from_stream_left_top_pal_sorted_interlaced_code_size_stream_left_top_is_palette_sorted_is_gif_frame_interlaced_lzw_code_size_36) | Initializes a new instance of the [GifFrameBlock](/imaging/python-net/aspose.imaging.fileformats.gif.blocks/gifframeblock/) class. | +| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_37) | Crop image with shifts. | +| [crop(rectangle)](#crop_rectangle_38) | Cropping the image. | +| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_39) | Performs dithering on the current image. | +| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_40) | Performs dithering on the current image. | +| [filter(rectangle, options)](#filter_rectangle_options_41) | Filters the specified rectangle. | +| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_42) | Gets an image 32-bit ARGB pixel. | +| [get_color_palette(frame_palette, container_palette)](#get_color_palette_frame_palette_container_palette_43) | Gets the associated color palette. | +| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_44) | Gets the default 32-bit ARGB pixels array. | +| [get_default_options(args)](#get_default_options_args_45) | Gets the default options. | +| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_46) | Gets the default pixels array using partial pixel loader. | +| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_47) | Gets the default raw data array using partial pixel loader. | +| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_48) | Gets the default raw data array. | +| [get_file_format(file_path)](#get_file_format_file_path_49) | Gets the file format. | +| [get_file_format(stream)](#get_file_format_stream_50) | Gets the file format. | +| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_51) | Gets the file format. | +| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_52) | Gets rectangle which fits the current image. | +| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_53) | Gets rectangle which fits the current image. | +| [get_full_frame()](#get_full_frame__54) | Gets the full frame. | +| [get_modify_date(use_default)](#get_modify_date_use_default_55) | Gets the date and time the resource image was last modified. | +| [get_original_options()](#get_original_options__56) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | +| [get_pixel(x, y)](#get_pixel_x_y_57) | Gets an image pixel. | +| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_58) | Gets a proportional height. | +| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_59) | Gets a proportional width. | +| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_60) | Converts to aps. | +| [get_skew_angle()](#get_skew_angle__61) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | | grayscale() | Transformation of an image to its grayscale representation | -| [load(file_path)](#load_file_path_58) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(file_path, load_options)](#load_file_path_load_options_59) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(stream)](#load_stream_60) | Loads a new image from the specified stream. | -| [load(stream, load_options)](#load_stream_load_options_61) | Loads a new image from the specified stream. | -| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_62) | Loads 32-bit ARGB pixels. | -| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_63) | Loads 64-bit ARGB pixels. | -| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_64) | Loads pixels in CMYK format. | -| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_65) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_66) | Loads 32-bit ARGB pixels partially (by blocks). | -| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_67) | Loads 64-bit ARGB pixels partially by packs. | -| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_68) | Loads pixels partially by packs. | -| [load_pixels(rectangle)](#load_pixels_rectangle_69) | Loads pixels. | -| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_70) | Loads raw data. | -| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_71) | Loads raw data. | -| [load_stream(stream)](#load_stream_stream_72) | Loads a new image from the specified stream. | -| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_73) | Loads a new image from the specified stream. | -| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_74) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path)](#load_file_path_62) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path, load_options)](#load_file_path_load_options_63) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(stream)](#load_stream_64) | Loads a new image from the specified stream. | +| [load(stream, load_options)](#load_stream_load_options_65) | Loads a new image from the specified stream. | +| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_66) | Loads 32-bit ARGB pixels. | +| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_67) | Loads 64-bit ARGB pixels. | +| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_68) | Loads pixels in CMYK format. | +| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_69) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_70) | Loads 32-bit ARGB pixels partially (by blocks). | +| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_71) | Loads 64-bit ARGB pixels partially by packs. | +| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_72) | Loads pixels partially by packs. | +| [load_pixels(rectangle)](#load_pixels_rectangle_73) | Loads pixels. | +| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_74) | Loads raw data. | +| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_75) | Loads raw data. | +| [load_stream(stream)](#load_stream_stream_76) | Loads a new image from the specified stream. | +| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_77) | Loads a new image from the specified stream. | +| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_78) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | | normalize_angle() | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | -| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_75) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | -| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_76) | Reads the whole scan line by the specified scan line index. | -| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_77) | Reads the whole scan line by the specified scan line index. | +| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_79) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | +| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_80) | Reads the whole scan line by the specified scan line index. | +| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_81) | Reads the whole scan line by the specified scan line index. | | remove_metadata() | Removes this image instance metadata by setting this [IHasXmpData.xmp_data](/imaging/python-net/aspose.imaging.xmp/ihasxmpdata/) value to **None**. | -| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_78) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_79) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_80) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_81) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_82) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [resize(new_width, new_height)](#resize_new_width_new_height_83) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize(new_width, new_height, image_resize_settings)](#resize_new_width_new_height_image_resize_settings_84) | Resizes this [RasterCachedImage](/imaging/python-net/aspose.imaging/rastercachedimage/) instance. | -| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_85) | Resize current frame using full frame approach. | -| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_86) | Resizes the image. | -| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_87) | Resizes the image. | -| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_88) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_89) | Resizes the height proportionally. | -| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_90) | Resizes the height proportionally. | -| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_91) | Resizes the height proportionally. | -| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_92) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_93) | Resizes the width proportionally. | -| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_94) | Resizes the width proportionally. | -| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_95) | Resizes the width proportionally. | -| [rotate(angle)](#rotate_angle_96) | Rotate image around the center. | -| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_97) | Rotate image around the center. | -| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_98) | Rotates, flips, or rotates and flips the image. | +| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_82) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_83) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_84) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_85) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_86) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [resize(new_width, new_height)](#resize_new_width_new_height_87) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize(new_width, new_height, image_resize_settings)](#resize_new_width_new_height_image_resize_settings_88) | Resizes this [RasterCachedImage](/imaging/python-net/aspose.imaging/rastercachedimage/) instance. | +| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_89) | Resize current frame using full frame approach. | +| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_90) | Resizes the image. | +| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_91) | Resizes the image. | +| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_92) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_93) | Resizes the height proportionally. | +| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_94) | Resizes the height proportionally. | +| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_95) | Resizes the height proportionally. | +| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_96) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_97) | Resizes the width proportionally. | +| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_98) | Resizes the width proportionally. | +| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_99) | Resizes the width proportionally. | +| [rotate(angle)](#rotate_angle_100) | Rotate image around the center. | +| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_101) | Rotate image around the center. | +| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_102) | Rotates, flips, or rotates and flips the image. | | save() | Saves the image data to the underlying stream. | -| [save(file_path)](#save_file_path_99) | Saves the image to the specified file location. | -| [save(file_path, options)](#save_file_path_options_100) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_101) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, over_write)](#save_file_path_over_write_102) | Saves the object's data to the specified file location. | -| [save(stream)](#save_stream_103) | Saves the object's data to the specified stream. | -| [save(stream, options_base)](#save_stream_options_base_104) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_105) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_106) | Saves the 32-bit ARGB pixels. | -| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_107) | Saves the pixels. | -| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_108) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_109) | Saves pixels (format specific method). | -| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_110) | Saves the raw data. | -| [save_to_stream(stream)](#save_to_stream_stream_111) | Saves the object's data to the specified stream. | -| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_112) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_113) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_with_options(file_path, options)](#save_with_options_file_path_options_114) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_115) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_116) | Sets an image 32-bit ARGB pixel for the specified position. | -| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_117) | Sets the image palette. | -| [set_pixel(x, y, color)](#set_pixel_x_y_color_118) | Sets an image pixel for the specified position. | -| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_119) | Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_120) | Writes the whole scan line to the specified scan line index. | -| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_121) | Writes the whole scan line to the specified scan line index. | +| [save(file_path)](#save_file_path_103) | Saves the image to the specified file location. | +| [save(file_path, options)](#save_file_path_options_104) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_105) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, over_write)](#save_file_path_over_write_106) | Saves the object's data to the specified file location. | +| [save(stream)](#save_stream_107) | Saves the object's data to the specified stream. | +| [save(stream, options_base)](#save_stream_options_base_108) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_109) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_110) | Saves the 32-bit ARGB pixels. | +| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_111) | Saves the pixels. | +| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_112) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_113) | Saves pixels (format specific method). | +| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_114) | Saves the raw data. | +| [save_to_stream(stream)](#save_to_stream_stream_115) | Saves the object's data to the specified stream. | +| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_116) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_117) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_with_options(file_path, options)](#save_with_options_file_path_options_118) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_119) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_120) | Sets an image 32-bit ARGB pixel for the specified position. | +| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_121) | Sets the image palette. | +| [set_pixel(x, y, color)](#set_pixel_x_y_color_122) | Sets an image pixel for the specified position. | +| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_123) | Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | +| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_124) | Writes the whole scan line to the specified scan line index. | +| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_125) | Writes the whole scan line to the specified scan line index. | ### Constructor: GifFrameBlock(image) {#GifFrameBlock_image_1} @@ -764,7 +768,7 @@ Determines whether image can be saved to the specified file format represented b create(files) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -786,7 +790,7 @@ Creates the specified files. create(files, throw_exception_on_load_error) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -968,7 +972,52 @@ Initializes a new instance of the [GifFrameBlock](/imaging/python-net/aspose.ima | [GifFrameBlock](/imaging/python-net/aspose.imaging.fileformats.gif.blocks/gifframeblock) | | -### Method: create_from_image(image) [static] {#create_from_image_image_27} +### Method: create_from_files(files) [static] {#create_from_files_files_27} + + +``` + create_from_files(files) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_files(files, throw_exception_on_load_error) [static] {#create_from_files_files_throw_exception_on_load_error_28} + + +``` + create_from_files(files, throw_exception_on_load_error) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | +| throw_exception_on_load_error | bool | if set to true throw exception on load error. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_image(image) [static] {#create_from_image_image_29} ``` @@ -990,7 +1039,7 @@ Initializes a new instance of the [GifFrameBlock](/imaging/python-net/aspose.ima | [GifFrameBlock](/imaging/python-net/aspose.imaging.fileformats.gif.blocks/gifframeblock) | | -### Method: create_from_image_left_top(image, left, top) [static] {#create_from_image_left_top_image_left_top_28} +### Method: create_from_image_left_top(image, left, top) [static] {#create_from_image_left_top_image_left_top_30} ``` @@ -1014,7 +1063,7 @@ Initializes a new instance of the [GifFrameBlock](/imaging/python-net/aspose.ima | [GifFrameBlock](/imaging/python-net/aspose.imaging.fileformats.gif.blocks/gifframeblock) | | -### Method: create_from_image_left_top_pal_sorted_interlaced_code_size(image, left, top, is_palette_sorted, is_gif_frame_interlaced, lzw_code_size) [static] {#create_from_image_left_top_pal_sorted_interlaced_code_size_image_left_top_is_palette_sorted_is_gif_frame_interlaced_lzw_code_size_29} +### Method: create_from_image_left_top_pal_sorted_interlaced_code_size(image, left, top, is_palette_sorted, is_gif_frame_interlaced, lzw_code_size) [static] {#create_from_image_left_top_pal_sorted_interlaced_code_size_image_left_top_is_palette_sorted_is_gif_frame_interlaced_lzw_code_size_31} ``` @@ -1041,7 +1090,52 @@ Initializes a new instance of the [GifFrameBlock](/imaging/python-net/aspose.ima | [GifFrameBlock](/imaging/python-net/aspose.imaging.fileformats.gif.blocks/gifframeblock) | | -### Method: create_from_stream(stream) [static] {#create_from_stream_stream_30} +### Method: create_from_images(images) [static] {#create_from_images_images_32} + + +``` + create_from_images(images) +``` + +Creates a new image using the specified images as pages + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_images(images, dispose_images) [static] {#create_from_images_images_dispose_images_33} + + +``` + create_from_images(images, dispose_images) +``` + +Creates a new image the specified images as pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | +| dispose_images | bool | if set to true [dispose images]. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_stream(stream) [static] {#create_from_stream_stream_34} ``` @@ -1063,7 +1157,7 @@ Initializes a new instance of the [GifFrameBlock](/imaging/python-net/aspose.ima | [GifFrameBlock](/imaging/python-net/aspose.imaging.fileformats.gif.blocks/gifframeblock) | | -### Method: create_from_stream_left_top(stream, left, top) [static] {#create_from_stream_left_top_stream_left_top_31} +### Method: create_from_stream_left_top(stream, left, top) [static] {#create_from_stream_left_top_stream_left_top_35} ``` @@ -1087,7 +1181,7 @@ Initializes a new instance of the [GifFrameBlock](/imaging/python-net/aspose.ima | [GifFrameBlock](/imaging/python-net/aspose.imaging.fileformats.gif.blocks/gifframeblock) | | -### Method: create_from_stream_left_top_pal_sorted_interlaced_code_size(stream, left, top, is_palette_sorted, is_gif_frame_interlaced, lzw_code_size) [static] {#create_from_stream_left_top_pal_sorted_interlaced_code_size_stream_left_top_is_palette_sorted_is_gif_frame_interlaced_lzw_code_size_32} +### Method: create_from_stream_left_top_pal_sorted_interlaced_code_size(stream, left, top, is_palette_sorted, is_gif_frame_interlaced, lzw_code_size) [static] {#create_from_stream_left_top_pal_sorted_interlaced_code_size_stream_left_top_is_palette_sorted_is_gif_frame_interlaced_lzw_code_size_36} ``` @@ -1114,7 +1208,7 @@ Initializes a new instance of the [GifFrameBlock](/imaging/python-net/aspose.ima | [GifFrameBlock](/imaging/python-net/aspose.imaging.fileformats.gif.blocks/gifframeblock) | | -### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_33} +### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_37} ``` @@ -1132,7 +1226,7 @@ Crop image with shifts. | top_shift | int | The top shift. | | bottom_shift | int | The bottom shift. | -### Method: crop(rectangle) {#crop_rectangle_34} +### Method: crop(rectangle) {#crop_rectangle_38} ``` @@ -1147,7 +1241,7 @@ Cropping the image. | :- | :- | :- | | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | -### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_35} +### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_39} ``` @@ -1163,7 +1257,7 @@ Performs dithering on the current image. | dithering_method | [DitheringMethod](/imaging/python-net/aspose.imaging/ditheringmethod) | The dithering method. | | bits_count | int | The final bits count for dithering. | -### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_36} +### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_40} ``` @@ -1180,7 +1274,7 @@ Performs dithering on the current image. | bits_count | int | The final bits count for dithering. | | custom_palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The custom palette for dithering. | -### Method: filter(rectangle, options) {#filter_rectangle_options_37} +### Method: filter(rectangle, options) {#filter_rectangle_options_41} ``` @@ -1196,7 +1290,7 @@ Filters the specified rectangle. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | | options | [FilterOptionsBase](/imaging/python-net/aspose.imaging.imagefilters.filteroptions/filteroptionsbase/) | The options. | -### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_38} +### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_42} ``` @@ -1219,7 +1313,7 @@ Gets an image 32-bit ARGB pixel. | int | The 32-bit ARGB pixel for the specified location. | -### Method: get_color_palette(frame_palette, container_palette) [static] {#get_color_palette_frame_palette_container_palette_39} +### Method: get_color_palette(frame_palette, container_palette) [static] {#get_color_palette_frame_palette_container_palette_43} ``` @@ -1242,7 +1336,7 @@ Gets the associated color palette. | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The color palette. | -### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_40} +### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_44} ``` @@ -1264,7 +1358,7 @@ Gets the default 32-bit ARGB pixels array. | int | The default pixels array. | -### Method: get_default_options(args) {#get_default_options_args_41} +### Method: get_default_options(args) {#get_default_options_args_45} ``` @@ -1286,7 +1380,7 @@ Gets the default options. | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Default options | -### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_42} +### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_46} ``` @@ -1302,7 +1396,7 @@ Gets the default pixels array using partial pixel loader. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to get pixels for. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_43} +### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_47} ``` @@ -1319,7 +1413,7 @@ Gets the default raw data array using partial pixel loader. | partial_raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The partial raw data loader. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings. | -### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_44} +### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_48} ``` @@ -1342,7 +1436,7 @@ Gets the default raw data array. | byte | The default raw data array. | -### Method: get_file_format(file_path) [static] {#get_file_format_file_path_45} +### Method: get_file_format(file_path) [static] {#get_file_format_file_path_49} ``` @@ -1364,7 +1458,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format(stream) [static] {#get_file_format_stream_46} +### Method: get_file_format(stream) [static] {#get_file_format_stream_50} ``` @@ -1386,7 +1480,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_47} +### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_51} ``` @@ -1408,7 +1502,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_48} +### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_52} ``` @@ -1433,7 +1527,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_49} +### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_53} ``` @@ -1457,7 +1551,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_full_frame() {#get_full_frame__50} +### Method: get_full_frame() {#get_full_frame__54} ``` @@ -1473,7 +1567,7 @@ Gets the full frame. | [RasterImage](/imaging/python-net/aspose.imaging/rasterimage) | he RasterImage with full frame | -### Method: get_modify_date(use_default) {#get_modify_date_use_default_51} +### Method: get_modify_date(use_default) {#get_modify_date_use_default_55} ``` @@ -1495,7 +1589,7 @@ Gets the date and time the resource image was last modified. | datetime | The date and time the resource image was last modified. | -### Method: get_original_options() {#get_original_options__52} +### Method: get_original_options() {#get_original_options__56} ``` @@ -1511,7 +1605,7 @@ Gets the options based on the original file settings.
This can b | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options based on the original file settings. | -### Method: get_pixel(x, y) {#get_pixel_x_y_53} +### Method: get_pixel(x, y) {#get_pixel_x_y_57} ``` @@ -1534,7 +1628,7 @@ Gets an image pixel. | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified location. | -### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_54} +### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_58} ``` @@ -1558,7 +1652,7 @@ Gets a proportional height. | int | The proportional height. | -### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_55} +### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_59} ``` @@ -1582,7 +1676,7 @@ Gets a proportional width. | int | The proportional width. | -### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_56} +### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_60} ``` @@ -1606,7 +1700,7 @@ Converts to aps. | _io.BufferedRandom | The serialized stream | -### Method: get_skew_angle() {#get_skew_angle__57} +### Method: get_skew_angle() {#get_skew_angle__61} ``` @@ -1622,7 +1716,7 @@ Gets the skew angle.
This method is applicable to scanned text d | float | The skew angle, in degrees. | -### Method: load(file_path) [static] {#load_file_path_58} +### Method: load(file_path) [static] {#load_file_path_62} ``` @@ -1644,7 +1738,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(file_path, load_options) [static] {#load_file_path_load_options_59} +### Method: load(file_path, load_options) [static] {#load_file_path_load_options_63} ``` @@ -1667,7 +1761,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream) [static] {#load_stream_60} +### Method: load(stream) [static] {#load_stream_64} ``` @@ -1689,7 +1783,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream, load_options) [static] {#load_stream_load_options_61} +### Method: load(stream, load_options) [static] {#load_stream_load_options_65} ``` @@ -1712,7 +1806,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_62} +### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_66} ``` @@ -1734,7 +1828,7 @@ Loads 32-bit ARGB pixels. | int | The loaded 32-bit ARGB pixels array. | -### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_63} +### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_67} ``` @@ -1756,7 +1850,7 @@ Loads 64-bit ARGB pixels. | long | The loaded 64-bit ARGB pixels array. | -### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_64} +### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_68} ``` @@ -1778,7 +1872,7 @@ Loads pixels in CMYK format. | int | The loaded CMYK pixels presentes as 32-bit inateger values. | -### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_65} +### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_69} ``` @@ -1800,7 +1894,7 @@ Loads pixels in CMYK format.
This method is deprecated. Please u | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The loaded CMYK pixels array. | -### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_66} +### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_70} ``` @@ -1816,7 +1910,7 @@ Loads 32-bit ARGB pixels partially (by blocks). | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to load pixels from. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_67} +### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_71} ``` @@ -1832,7 +1926,7 @@ Loads 64-bit ARGB pixels partially by packs. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | partial_pixel_loader | [IPartialArgb64PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb64pixelloader) | The 64-bit ARGB pixel loader. | -### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_68} +### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_72} ``` @@ -1848,7 +1942,7 @@ Loads pixels partially by packs. | desired_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | pixel_loader | [IPartialPixelLoader](/imaging/python-net/aspose.imaging/ipartialpixelloader) | The pixel loader. | -### Method: load_pixels(rectangle) {#load_pixels_rectangle_69} +### Method: load_pixels(rectangle) {#load_pixels_rectangle_73} ``` @@ -1870,7 +1964,7 @@ Loads pixels. | [Color[]](/imaging/python-net/aspose.imaging/color) | The loaded pixels array. | -### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_70} +### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_74} ``` @@ -1888,7 +1982,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_71} +### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_75} ``` @@ -1905,7 +1999,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_stream(stream) [static] {#load_stream_stream_72} +### Method: load_stream(stream) [static] {#load_stream_stream_76} ``` @@ -1927,7 +2021,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_73} +### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_77} ``` @@ -1950,7 +2044,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_74} +### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_78} ``` @@ -1973,7 +2067,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_75} +### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_79} ``` @@ -1989,7 +2083,7 @@ Normalizes the angle.
This method is applicable to scanned text | resize_proportionally | bool | if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_76} +### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_80} ``` @@ -2011,7 +2105,7 @@ Reads the whole scan line by the specified scan line index. | int | The scan line 32-bit ARGB color values array. | -### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_77} +### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_81} ``` @@ -2033,7 +2127,7 @@ Reads the whole scan line by the specified scan line index. | [Color[]](/imaging/python-net/aspose.imaging/color) | The scan line pixel color values array. | -### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_78} +### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_82} ``` @@ -2050,7 +2144,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_79} +### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_83} ``` @@ -2067,7 +2161,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | | -### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_80} +### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_84} ``` @@ -2084,7 +2178,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_81} +### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_85} ``` @@ -2099,7 +2193,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | | -### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_82} +### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_86} ``` @@ -2114,7 +2208,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color_argb | int | New color ARGB value to replace non transparent colors with. | -### Method: resize(new_width, new_height) {#resize_new_width_new_height_83} +### Method: resize(new_width, new_height) {#resize_new_width_new_height_87} ``` @@ -2130,7 +2224,7 @@ Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/ | new_width | int | The new width. | | new_height | int | The new height. | -### Method: resize(new_width, new_height, image_resize_settings) {#resize_new_width_new_height_image_resize_settings_84} +### Method: resize(new_width, new_height, image_resize_settings) {#resize_new_width_new_height_image_resize_settings_88} ``` @@ -2147,7 +2241,7 @@ Resizes this [RasterCachedImage](/imaging/python-net/aspose.imaging/rastercached | new_height | int | New height. | | image_resize_settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | Resize settings. | -### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_85} +### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_89} ``` @@ -2164,7 +2258,7 @@ Resize current frame using full frame approach. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_86} +### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_90} ``` @@ -2181,7 +2275,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_87} +### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_91} ``` @@ -2198,7 +2292,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_88} +### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_92} ``` @@ -2213,7 +2307,7 @@ Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RES | :- | :- | :- | | new_height | int | The new height. | -### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_89} +### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_93} ``` @@ -2229,7 +2323,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_90} +### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_94} ``` @@ -2245,7 +2339,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_91} +### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_95} ``` @@ -2261,7 +2355,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_92} +### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_96} ``` @@ -2276,7 +2370,7 @@ Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESA | :- | :- | :- | | new_width | int | The new width. | -### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_93} +### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_97} ``` @@ -2292,7 +2386,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_94} +### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_98} ``` @@ -2308,7 +2402,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_95} +### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_99} ``` @@ -2324,7 +2418,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: rotate(angle) {#rotate_angle_96} +### Method: rotate(angle) {#rotate_angle_100} ``` @@ -2339,7 +2433,7 @@ Rotate image around the center. | :- | :- | :- | | angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | -### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_97} +### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_101} ``` @@ -2356,7 +2450,7 @@ Rotate image around the center. | resize_proportionally | bool | if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_98} +### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_102} ``` @@ -2371,7 +2465,7 @@ Rotates, flips, or rotates and flips the image. | :- | :- | :- | | rotate_flip_type | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | The rotate flip type. | -### Method: save(file_path) {#save_file_path_99} +### Method: save(file_path) {#save_file_path_103} ``` @@ -2386,7 +2480,7 @@ Saves the image to the specified file location. | :- | :- | :- | | file_path | string | The file path to save the image to. | -### Method: save(file_path, options) {#save_file_path_options_100} +### Method: save(file_path, options) {#save_file_path_options_104} ``` @@ -2402,7 +2496,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_101} +### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_105} ``` @@ -2419,7 +2513,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: save(file_path, over_write) {#save_file_path_over_write_102} +### Method: save(file_path, over_write) {#save_file_path_over_write_106} ``` @@ -2435,7 +2529,7 @@ Saves the object's data to the specified file location. | file_path | string | The file path to save the object's data to. | | over_write | bool | if set to true over write the file contents, otherwise append will occur. | -### Method: save(stream) {#save_stream_103} +### Method: save(stream) {#save_stream_107} ``` @@ -2450,7 +2544,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save(stream, options_base) {#save_stream_options_base_104} +### Method: save(stream, options_base) {#save_stream_options_base_108} ``` @@ -2466,7 +2560,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_105} +### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_109} ``` @@ -2483,7 +2577,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_106} +### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_110} ``` @@ -2499,7 +2593,7 @@ Saves the 32-bit ARGB pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The 32-bit ARGB pixels array. | -### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_107} +### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_111} ``` @@ -2515,7 +2609,7 @@ Saves the pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The CMYK pixels presented as the 32-bit integer values. | -### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_108} +### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_112} ``` @@ -2531,7 +2625,7 @@ Saves the pixels.
This method is deprecated. Please use more eff | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The CMYK pixels array. | -### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_109} +### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_113} ``` @@ -2547,7 +2641,7 @@ Saves pixels (format specific method). | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | [Color[]](/imaging/python-net/aspose.imaging/color) | The 32-bit ARGB pixels array. | -### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_110} +### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_114} ``` @@ -2565,7 +2659,7 @@ Saves the raw data. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The raw data rectangle. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings the data is in. | -### Method: save_to_stream(stream) {#save_to_stream_stream_111} +### Method: save_to_stream(stream) {#save_to_stream_stream_115} ``` @@ -2580,7 +2674,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_112} +### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_116} ``` @@ -2596,7 +2690,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_113} +### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_117} ``` @@ -2613,7 +2707,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_114} +### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_118} ``` @@ -2629,7 +2723,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_115} +### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_119} ``` @@ -2646,7 +2740,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_116} +### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_120} ``` @@ -2663,7 +2757,7 @@ Sets an image 32-bit ARGB pixel for the specified position. | y | int | The pixel y location. | | argb_32_color | int | The 32-bit ARGB pixel for the specified position. | -### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_117} +### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_121} ``` @@ -2679,7 +2773,7 @@ Sets the image palette. | palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The palette to set. | | update_colors | bool | if set to true colors will be updated according to the new palette; otherwise color indexes remain unchanged. Note that unchanged indexes may crash the image on loading if some indexes have no corresponding palette entries. | -### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_118} +### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_122} ``` @@ -2696,7 +2790,7 @@ Sets an image pixel for the specified position. | y | int | The pixel y location. | | color | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified position. | -### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_119} +### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_123} ``` @@ -2712,7 +2806,7 @@ Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/ra | dpi_x | double | The horizontal resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | | dpi_y | double | The vertical resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_120} +### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_124} ``` @@ -2728,7 +2822,7 @@ Writes the whole scan line to the specified scan line index. | scan_line_index | int | Zero based index of the scan line. | | argb_32_pixels | int | The 32-bit ARGB colors array to write. | -### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_121} +### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_125} ``` diff --git a/english/python-net/aspose.imaging.fileformats.gif/gifimage/_index.md b/english/python-net/aspose.imaging.fileformats.gif/gifimage/_index.md index 041df62547..7720a16e15 100644 --- a/english/python-net/aspose.imaging.fileformats.gif/gifimage/_index.md +++ b/english/python-net/aspose.imaging.fileformats.gif/gifimage/_index.md @@ -92,110 +92,114 @@ url: /python-net/aspose.imaging.fileformats.gif/gifimage/ | [can_load_with_options(file_path, load_options)](#can_load_with_options_file_path_load_options_18) | Determines whether image can be loaded from the specified file path and optionally using the specified open options. | | [can_save(options)](#can_save_options_19) | Determines whether image can be saved to the specified file format represented by the passed save options. | | clear_blocks() | Clearing all the GIF blocks removes any existing data stored within the image.
This operation effectively resets the image to an empty state, removing any
previously added blocks. Use this method when you need to start fresh with a clean
slate for creating or modifying a GIF image. | -| [create(files)](#create_files_20) | Creates the specified files. | -| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_21) | Creates the specified files. | +| [create(files)](#create_files_20) | Creates the multipage image containing the specified files. | +| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_21) | Creates the multipage image containing the specified files. | | [create(image_options, width, height)](#create_image_options_width_height_22) | Creates a new image using the specified create options. | | [create(images)](#create_images_23) | Creates a new image using the specified images as pages | | [create(images, dispose_images)](#create_images_dispose_images_24) | Creates a new image the specified images as pages. | | [create(multipage_create_options)](#create_multipage_create_options_25) | Creates the specified multipage create options. | -| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_26) | Crop image with shifts. | -| [crop(rectangle)](#crop_rectangle_27) | Crop the image using a specified rectangle area. This operation removes the outer
portion of the image, leaving only the selected region defined by the rectangle. | -| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_28) | Performs dithering on the current image. | -| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_29) | Apply dithering to the current image. This process enhances image quality by
reducing color banding and improving color transitions, resulting in a smoother
appearance. | -| [filter(rectangle, options)](#filter_rectangle_options_30) | Apply a specific filter to the designated area of the image, enhancing its visual
quality or altering its appearance as desired. This method selectively processes
pixels within the defined rectangle, allowing for targeted adjustments to be made
while preserving the integrity of the surrounding image data. | -| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_31) | Gets an image 32-bit ARGB pixel. | -| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_32) | Gets the default 32-bit ARGB pixels array. | -| [get_default_options(args)](#get_default_options_args_33) | Gets the default options. | -| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_34) | Gets the default pixels array using partial pixel loader. | -| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_35) | Gets the default raw data array using partial pixel loader. | -| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_36) | Gets the default raw data array. | -| [get_file_format(file_path)](#get_file_format_file_path_37) | Gets the file format. | -| [get_file_format(stream)](#get_file_format_stream_38) | Gets the file format. | -| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_39) | Gets the file format. | -| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_40) | Gets rectangle which fits the current image. | -| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_41) | Gets rectangle which fits the current image. | -| [get_modify_date(use_default)](#get_modify_date_use_default_42) | Gets the date and time the resource image was last modified. | -| [get_original_options()](#get_original_options__43) | Retrieve the original file settings-based options, crucial for maintaining fidelity
and consistency in image processing and manipulation. This method allows seamless
integration of file-specific parameters into subsequent operations, ensuring
accurate rendition and adherence to the image's inherent characteristics.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | -| [get_pixel(x, y)](#get_pixel_x_y_44) | Gets an image pixel. | -| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_45) | Gets a proportional height. | -| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_46) | Gets a proportional width. | -| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_47) | Converts to aps. | -| [get_skew_angle()](#get_skew_angle__48) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | +| [create_from_files(files)](#create_from_files_files_26) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_files(files, throw_exception_on_load_error)](#create_from_files_files_throw_exception_on_load_error_27) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_images(images)](#create_from_images_images_28) | Creates a new image using the specified images as pages | +| [create_from_images(images, dispose_images)](#create_from_images_images_dispose_images_29) | Creates a new image the specified images as pages. | +| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_30) | Crop image with shifts. | +| [crop(rectangle)](#crop_rectangle_31) | Crop the image using a specified rectangle area. This operation removes the outer
portion of the image, leaving only the selected region defined by the rectangle. | +| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_32) | Performs dithering on the current image. | +| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_33) | Apply dithering to the current image. This process enhances image quality by
reducing color banding and improving color transitions, resulting in a smoother
appearance. | +| [filter(rectangle, options)](#filter_rectangle_options_34) | Apply a specific filter to the designated area of the image, enhancing its visual
quality or altering its appearance as desired. This method selectively processes
pixels within the defined rectangle, allowing for targeted adjustments to be made
while preserving the integrity of the surrounding image data. | +| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_35) | Gets an image 32-bit ARGB pixel. | +| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_36) | Gets the default 32-bit ARGB pixels array. | +| [get_default_options(args)](#get_default_options_args_37) | Gets the default options. | +| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_38) | Gets the default pixels array using partial pixel loader. | +| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_39) | Gets the default raw data array using partial pixel loader. | +| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_40) | Gets the default raw data array. | +| [get_file_format(file_path)](#get_file_format_file_path_41) | Gets the file format. | +| [get_file_format(stream)](#get_file_format_stream_42) | Gets the file format. | +| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_43) | Gets the file format. | +| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_44) | Gets rectangle which fits the current image. | +| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_45) | Gets rectangle which fits the current image. | +| [get_modify_date(use_default)](#get_modify_date_use_default_46) | Gets the date and time the resource image was last modified. | +| [get_original_options()](#get_original_options__47) | Retrieve the original file settings-based options, crucial for maintaining fidelity
and consistency in image processing and manipulation. This method allows seamless
integration of file-specific parameters into subsequent operations, ensuring
accurate rendition and adherence to the image's inherent characteristics.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | +| [get_pixel(x, y)](#get_pixel_x_y_48) | Gets an image pixel. | +| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_49) | Gets a proportional height. | +| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_50) | Gets a proportional width. | +| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_51) | Converts to aps. | +| [get_skew_angle()](#get_skew_angle__52) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | | grayscale() | The transformation of an image to its grayscale representation converts the color
image into a grayscale version by removing color information while preserving
luminance. This process simplifies the image to shades of gray, making it suitable
for various applications such as printing, document processing, and grayscale
analysis. | -| [insert_block(index, block)](#insert_block_index_block_49) | Inserting a new GIF block allows you to add custom data at a specific position
within the image. This method enables you to place custom blocks at a desired
location in the GIF image, providing flexibility in organizing and structuring the
image data. | -| [load(file_path)](#load_file_path_50) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(file_path, load_options)](#load_file_path_load_options_51) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(stream)](#load_stream_52) | Loads a new image from the specified stream. | -| [load(stream, load_options)](#load_stream_load_options_53) | Loads a new image from the specified stream. | -| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_54) | Loads 32-bit ARGB pixels. | -| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_55) | Loads 64-bit ARGB pixels. | -| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_56) | Loads pixels in CMYK format. | -| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_57) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_58) | Loads 32-bit ARGB pixels partially (by blocks). | -| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_59) | Loads 64-bit ARGB pixels partially by packs. | -| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_60) | Loads pixels partially by packs. | -| [load_pixels(rectangle)](#load_pixels_rectangle_61) | Loads pixels. | -| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_62) | Loads raw data. | -| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_63) | Loads raw data. | -| [load_stream(stream)](#load_stream_stream_64) | Loads a new image from the specified stream. | -| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_65) | Loads a new image from the specified stream. | -| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_66) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [insert_block(index, block)](#insert_block_index_block_53) | Inserting a new GIF block allows you to add custom data at a specific position
within the image. This method enables you to place custom blocks at a desired
location in the GIF image, providing flexibility in organizing and structuring the
image data. | +| [load(file_path)](#load_file_path_54) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path, load_options)](#load_file_path_load_options_55) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(stream)](#load_stream_56) | Loads a new image from the specified stream. | +| [load(stream, load_options)](#load_stream_load_options_57) | Loads a new image from the specified stream. | +| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_58) | Loads 32-bit ARGB pixels. | +| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_59) | Loads 64-bit ARGB pixels. | +| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_60) | Loads pixels in CMYK format. | +| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_61) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_62) | Loads 32-bit ARGB pixels partially (by blocks). | +| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_63) | Loads 64-bit ARGB pixels partially by packs. | +| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_64) | Loads pixels partially by packs. | +| [load_pixels(rectangle)](#load_pixels_rectangle_65) | Loads pixels. | +| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_66) | Loads raw data. | +| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_67) | Loads raw data. | +| [load_stream(stream)](#load_stream_stream_68) | Loads a new image from the specified stream. | +| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_69) | Loads a new image from the specified stream. | +| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_70) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | | normalize_angle() | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | -| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_67) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterCachedMultipageImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rastercachedmultipageimage/) methods. | +| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_71) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterCachedMultipageImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rastercachedmultipageimage/) methods. | | order_blocks() | Ordering the GIF blocks according to the GIF specification ensures proper GIF
layout and compliance with the standard. This process involves arranging the
blocks in the correct sequence as defined by the specification. Additionally, it
may involve removing certain [GifGraphicsControlBlock](/imaging/python-net/aspose.imaging.fileformats.gif.blocks/gifgraphicscontrolblock/) instances that
are not necessary for the final layout. By adhering to the GIF specification, the
resulting image will be correctly structured and compatible with GIF viewing
applications. | -| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_68) | Reads the whole scan line by the specified scan line index. | -| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_69) | Reads the whole scan line by the specified scan line index. | -| [remove_block(block)](#remove_block_block_70) | Removing a GIF block removes specific data from the image, offering the ability to
clean up or modify the image structure. This method enables you to remove unwanted
or unnecessary blocks, optimizing the GIF image for efficient storage. Use this
functionality to eliminate outdated information from the image while preserving
its integrity and quality. | +| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_72) | Reads the whole scan line by the specified scan line index. | +| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_73) | Reads the whole scan line by the specified scan line index. | +| [remove_block(block)](#remove_block_block_74) | Removing a GIF block removes specific data from the image, offering the ability to
clean up or modify the image structure. This method enables you to remove unwanted
or unnecessary blocks, optimizing the GIF image for efficient storage. Use this
functionality to eliminate outdated information from the image while preserving
its integrity and quality. | | remove_metadata() | Removes this image instance metadata by setting this [IHasXmpData.xmp_data](/imaging/python-net/aspose.imaging.xmp/ihasxmpdata/) value to **None**. | -| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_71) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_72) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_73) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_74) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_75) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [resize(new_width, new_height)](#resize_new_width_new_height_76) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_77) | Resizes the image. | -| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_78) | Resizes this [Image](/imaging/python-net/aspose.imaging/image/) instance. | -| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_79) | Resizes the image. | -| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_80) | Resizes the image. | -| [resize_full_frame(new_width, new_height, resize_type)](#resize_full_frame_new_width_new_height_resize_type_81) | Resizing of the image while taking into account the full frames for each page in a
GIF, thus preventing potential artifacts from appearing. This method is essential
to maintain the integrity and quality of the image, especially when dealing with
animated GIFs or sequences of frames. | -| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_82) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_83) | Resizes the width proportionally. | -| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_84) | Resizes the height proportionally. | -| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_85) | Resizes the height proportionally. | -| [resize_proportional(new_width, new_height, resize_type)](#resize_proportional_new_width_new_height_resize_type_86) | Proportional resizing maintains the aspect ratio of the image while adjusting its
size, ensuring that the image does not appear stretched or distorted. This method
resizes the image proportionally, scaling both the width and height by the same factor.
The proportional resize will resize each frame according to the ratio of _newWidth_/width and _newHeight_/height. | -| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_87) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_88) | Resizes the width proportionally. | -| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_89) | Resizes the width proportionally. | -| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_90) | Resizes the width proportionally. | -| [rotate(angle)](#rotate_angle_91) | Rotate image around the center. | -| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_92) | This method rotates the image around its center point. By specifying the rotation
angle, you can rotate the image clockwise or counterclockwise to achieve the
desired orientation. This rotation helps adjust the image's presentation or
alignment without distorting its content. | -| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_93) | Perform rotation, flipping, or both on the active frame exclusively. This operation
applies transformations solely to the currently active frame of the image,
preserving the integrity of other frames in the sequence. | -| [rotate_flip_all(rotate_flip)](#rotate_flip_all_rotate_flip_94) | Rotates the flip all. | +| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_75) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_76) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_77) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_78) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_79) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [resize(new_width, new_height)](#resize_new_width_new_height_80) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_81) | Resizes this [Image](/imaging/python-net/aspose.imaging/image/) instance. | +| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_82) | Resizes this [Image](/imaging/python-net/aspose.imaging/image/) instance. | +| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_83) | Resizes the image. | +| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_84) | Resizes the image. | +| [resize_full_frame(new_width, new_height, resize_type)](#resize_full_frame_new_width_new_height_resize_type_85) | Resizing of the image while taking into account the full frames for each page in a
GIF, thus preventing potential artifacts from appearing. This method is essential
to maintain the integrity and quality of the image, especially when dealing with
animated GIFs or sequences of frames. | +| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_86) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_87) | Resizes the width proportionally. | +| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_88) | Resizes the height proportionally. | +| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_89) | Resizes the height proportionally. | +| [resize_proportional(new_width, new_height, resize_type)](#resize_proportional_new_width_new_height_resize_type_90) | Proportional resizing maintains the aspect ratio of the image while adjusting its
size, ensuring that the image does not appear stretched or distorted. This method
resizes the image proportionally, scaling both the width and height by the same factor.
The proportional resize will resize each frame according to the ratio of _newWidth_/width and _newHeight_/height. | +| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_91) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_92) | Resizes the width proportionally. | +| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_93) | Resizes the width proportionally. | +| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_94) | Resizes the width proportionally. | +| [rotate(angle)](#rotate_angle_95) | Rotate image around the center. | +| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_96) | This method rotates the image around its center point. By specifying the rotation
angle, you can rotate the image clockwise or counterclockwise to achieve the
desired orientation. This rotation helps adjust the image's presentation or
alignment without distorting its content. | +| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_97) | Perform rotation, flipping, or both on the active frame exclusively. This operation
applies transformations solely to the currently active frame of the image,
preserving the integrity of other frames in the sequence. | +| [rotate_flip_all(rotate_flip)](#rotate_flip_all_rotate_flip_98) | Rotates the flip all. | | save() | Saves the image data to the underlying stream. | -| [save(file_path)](#save_file_path_95) | Saves the image to the specified file location. | -| [save(file_path, options)](#save_file_path_options_96) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_97) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, over_write)](#save_file_path_over_write_98) | Saves the object's data to the specified file location. | -| [save(stream)](#save_stream_99) | Saves the object's data to the specified stream. | -| [save(stream, options_base)](#save_stream_options_base_100) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_101) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_102) | Saves the 32-bit ARGB pixels. | -| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_103) | Saves the pixels. | -| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_104) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_105) | Saves the pixels internal main. | -| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_106) | Saves the raw data. | -| [save_to_stream(stream)](#save_to_stream_stream_107) | Saves the object's data to the specified stream. | -| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_108) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_109) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_with_options(file_path, options)](#save_with_options_file_path_options_110) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_111) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_112) | Sets an image 32-bit ARGB pixel for the specified position. | -| [set_frame_time(time)](#set_frame_time_time_113) | Adjusts the duration of each frame in milliseconds, ensuring consistent timing
throughout the image sequence. This method uniformly sets the display time for
every frame, allowing for precise control over animation speed.
Changing this value will reset delay for all frames. | -| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_114) | Sets the image palette. | -| [set_pixel(x, y, color)](#set_pixel_x_y_color_115) | Sets an image pixel for the specified position. | -| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_116) | Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_117) | Writes the whole scan line to the specified scan line index. | -| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_118) | Writes the whole scan line to the specified scan line index. | +| [save(file_path)](#save_file_path_99) | Saves the image to the specified file location. | +| [save(file_path, options)](#save_file_path_options_100) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_101) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, over_write)](#save_file_path_over_write_102) | Saves the object's data to the specified file location. | +| [save(stream)](#save_stream_103) | Saves the object's data to the specified stream. | +| [save(stream, options_base)](#save_stream_options_base_104) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_105) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_106) | Saves the 32-bit ARGB pixels. | +| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_107) | Saves the pixels. | +| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_108) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_109) | Saves the pixels internal main. | +| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_110) | Saves the raw data. | +| [save_to_stream(stream)](#save_to_stream_stream_111) | Saves the object's data to the specified stream. | +| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_112) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_113) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_with_options(file_path, options)](#save_with_options_file_path_options_114) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_115) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_116) | Sets an image 32-bit ARGB pixel for the specified position. | +| [set_frame_time(time)](#set_frame_time_time_117) | Adjusts the duration of each frame in milliseconds, ensuring consistent timing
throughout the image sequence. This method uniformly sets the display time for
every frame, allowing for precise control over animation speed.
Changing this value will reset delay for all frames. | +| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_118) | Sets the image palette. | +| [set_pixel(x, y, color)](#set_pixel_x_y_color_119) | Sets an image pixel for the specified position. | +| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_120) | Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | +| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_121) | Writes the whole scan line to the specified scan line index. | +| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_122) | Writes the whole scan line to the specified scan line index. | ### Constructor: GifImage(first_frame) {#GifImage_first_frame_1} @@ -669,7 +673,7 @@ Determines whether image can be saved to the specified file format represented b create(files) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -691,7 +695,7 @@ Creates the specified files. create(files, throw_exception_on_load_error) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -798,7 +802,97 @@ Creates the specified multipage create options. | [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | -### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_26} +### Method: create_from_files(files) [static] {#create_from_files_files_26} + + +``` + create_from_files(files) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_files(files, throw_exception_on_load_error) [static] {#create_from_files_files_throw_exception_on_load_error_27} + + +``` + create_from_files(files, throw_exception_on_load_error) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | +| throw_exception_on_load_error | bool | if set to true throw exception on load error. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_images(images) [static] {#create_from_images_images_28} + + +``` + create_from_images(images) +``` + +Creates a new image using the specified images as pages + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_images(images, dispose_images) [static] {#create_from_images_images_dispose_images_29} + + +``` + create_from_images(images, dispose_images) +``` + +Creates a new image the specified images as pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | +| dispose_images | bool | if set to true [dispose images]. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_30} ``` @@ -816,7 +910,7 @@ Crop image with shifts. | top_shift | int | The top shift. | | bottom_shift | int | The bottom shift. | -### Method: crop(rectangle) {#crop_rectangle_27} +### Method: crop(rectangle) {#crop_rectangle_31} ``` @@ -831,7 +925,7 @@ Crop the image using a specified rectangle area. This operation removes the oute | :- | :- | :- | | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | -### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_28} +### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_32} ``` @@ -847,7 +941,7 @@ Performs dithering on the current image. | dithering_method | [DitheringMethod](/imaging/python-net/aspose.imaging/ditheringmethod) | The dithering method. | | bits_count | int | The final bits count for dithering. | -### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_29} +### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_33} ``` @@ -864,7 +958,7 @@ Apply dithering to the current image. This process enhances image quality by
This method is applicable to scanned text d | float | The skew angle, in degrees. | -### Method: insert_block(index, block) {#insert_block_index_block_49} +### Method: insert_block(index, block) {#insert_block_index_block_53} ``` @@ -1283,7 +1377,7 @@ Inserting a new GIF block allows you to add custom data at a specific position < | index | int | The zero-based element, at which block will be inserted. | | block | [IGifBlock](/imaging/python-net/aspose.imaging.fileformats.gif/igifblock) | The GIF block to add. | -### Method: load(file_path) [static] {#load_file_path_50} +### Method: load(file_path) [static] {#load_file_path_54} ``` @@ -1305,7 +1399,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(file_path, load_options) [static] {#load_file_path_load_options_51} +### Method: load(file_path, load_options) [static] {#load_file_path_load_options_55} ``` @@ -1328,7 +1422,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream) [static] {#load_stream_52} +### Method: load(stream) [static] {#load_stream_56} ``` @@ -1350,7 +1444,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream, load_options) [static] {#load_stream_load_options_53} +### Method: load(stream, load_options) [static] {#load_stream_load_options_57} ``` @@ -1373,7 +1467,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_54} +### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_58} ``` @@ -1395,7 +1489,7 @@ Loads 32-bit ARGB pixels. | int | The loaded 32-bit ARGB pixels array. | -### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_55} +### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_59} ``` @@ -1417,7 +1511,7 @@ Loads 64-bit ARGB pixels. | long | The loaded 64-bit ARGB pixels array. | -### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_56} +### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_60} ``` @@ -1439,7 +1533,7 @@ Loads pixels in CMYK format. | int | The loaded CMYK pixels presentes as 32-bit inateger values. | -### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_57} +### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_61} ``` @@ -1461,7 +1555,7 @@ Loads pixels in CMYK format.
This method is deprecated. Please u | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The loaded CMYK pixels array. | -### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_58} +### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_62} ``` @@ -1477,7 +1571,7 @@ Loads 32-bit ARGB pixels partially (by blocks). | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to load pixels from. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_59} +### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_63} ``` @@ -1493,7 +1587,7 @@ Loads 64-bit ARGB pixels partially by packs. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | partial_pixel_loader | [IPartialArgb64PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb64pixelloader) | The 64-bit ARGB pixel loader. | -### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_60} +### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_64} ``` @@ -1509,7 +1603,7 @@ Loads pixels partially by packs. | desired_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | pixel_loader | [IPartialPixelLoader](/imaging/python-net/aspose.imaging/ipartialpixelloader) | The pixel loader. | -### Method: load_pixels(rectangle) {#load_pixels_rectangle_61} +### Method: load_pixels(rectangle) {#load_pixels_rectangle_65} ``` @@ -1531,7 +1625,7 @@ Loads pixels. | [Color[]](/imaging/python-net/aspose.imaging/color) | The loaded pixels array. | -### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_62} +### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_66} ``` @@ -1549,7 +1643,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_63} +### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_67} ``` @@ -1566,7 +1660,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_stream(stream) [static] {#load_stream_stream_64} +### Method: load_stream(stream) [static] {#load_stream_stream_68} ``` @@ -1588,7 +1682,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_65} +### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_69} ``` @@ -1611,7 +1705,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_66} +### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_70} ``` @@ -1634,7 +1728,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_67} +### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_71} ``` @@ -1650,7 +1744,7 @@ Normalizes the angle.
This method is applicable to scanned text | resize_proportionally | bool | if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_68} +### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_72} ``` @@ -1672,7 +1766,7 @@ Reads the whole scan line by the specified scan line index. | int | The scan line 32-bit ARGB color values array. | -### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_69} +### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_73} ``` @@ -1694,7 +1788,7 @@ Reads the whole scan line by the specified scan line index. | [Color[]](/imaging/python-net/aspose.imaging/color) | The scan line pixel color values array. | -### Method: remove_block(block) {#remove_block_block_70} +### Method: remove_block(block) {#remove_block_block_74} ``` @@ -1709,7 +1803,7 @@ Removing a GIF block removes specific data from the image, offering the ability | :- | :- | :- | | block | [IGifBlock](/imaging/python-net/aspose.imaging.fileformats.gif/igifblock) | The block to remove. | -### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_71} +### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_75} ``` @@ -1726,7 +1820,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_72} +### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_76} ``` @@ -1743,7 +1837,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | | -### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_73} +### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_77} ``` @@ -1760,7 +1854,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_74} +### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_78} ``` @@ -1775,7 +1869,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | | -### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_75} +### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_79} ``` @@ -1790,7 +1884,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color_argb | int | New color ARGB value to replace non transparent colors with. | -### Method: resize(new_width, new_height) {#resize_new_width_new_height_76} +### Method: resize(new_width, new_height) {#resize_new_width_new_height_80} ``` @@ -1806,14 +1900,14 @@ Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/ | new_width | int | The new width. | | new_height | int | The new height. | -### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_77} +### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_81} ``` resize(new_width, new_height, resize_type) ``` -Resizes the image. +Resizes this [Image](/imaging/python-net/aspose.imaging/image/) instance. **Parameters:** @@ -1823,7 +1917,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_78} +### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_82} ``` @@ -1840,7 +1934,7 @@ Resizes this [Image](/imaging/python-net/aspose.imaging/image/) instance. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The settings. | -### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_79} +### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_83} ``` @@ -1857,7 +1951,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_80} +### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_84} ``` @@ -1874,7 +1968,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_full_frame(new_width, new_height, resize_type) {#resize_full_frame_new_width_new_height_resize_type_81} +### Method: resize_full_frame(new_width, new_height, resize_type) {#resize_full_frame_new_width_new_height_resize_type_85} ``` @@ -1891,7 +1985,7 @@ Resizing of the image while taking into account the full frames for each page in | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_82} +### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_86} ``` @@ -1906,7 +2000,7 @@ Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RES | :- | :- | :- | | new_height | int | The new height. | -### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_83} +### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_87} ``` @@ -1922,7 +2016,7 @@ Resizes the width proportionally. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_84} +### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_88} ``` @@ -1938,7 +2032,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_85} +### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_89} ``` @@ -1954,7 +2048,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_proportional(new_width, new_height, resize_type) {#resize_proportional_new_width_new_height_resize_type_86} +### Method: resize_proportional(new_width, new_height, resize_type) {#resize_proportional_new_width_new_height_resize_type_90} ``` @@ -1971,7 +2065,7 @@ Proportional resizing maintains the aspect ratio of the image while adjusting it | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_87} +### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_91} ``` @@ -1986,7 +2080,7 @@ Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESA | :- | :- | :- | | new_width | int | The new width. | -### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_88} +### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_92} ``` @@ -2002,7 +2096,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_89} +### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_93} ``` @@ -2018,7 +2112,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_90} +### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_94} ``` @@ -2034,7 +2128,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: rotate(angle) {#rotate_angle_91} +### Method: rotate(angle) {#rotate_angle_95} ``` @@ -2049,7 +2143,7 @@ Rotate image around the center. | :- | :- | :- | | angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | -### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_92} +### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_96} ``` @@ -2066,7 +2160,7 @@ This method rotates the image around its center point. By specifying the rotatio | resize_proportionally | bool | if set to true you will have your image size changed
according to rotated rectangle (corner points) projections in other
case that leaves dimensions untouched and only
__internal__ image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_93} +### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_97} ``` @@ -2081,7 +2175,7 @@ Perform rotation, flipping, or both on the active frame exclusively. This operat | :- | :- | :- | | rotate_flip_type | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | The rotate flip type. | -### Method: rotate_flip_all(rotate_flip) {#rotate_flip_all_rotate_flip_94} +### Method: rotate_flip_all(rotate_flip) {#rotate_flip_all_rotate_flip_98} ``` @@ -2096,7 +2190,7 @@ Rotates the flip all. | :- | :- | :- | | rotate_flip | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | The rotate flip. | -### Method: save(file_path) {#save_file_path_95} +### Method: save(file_path) {#save_file_path_99} ``` @@ -2111,7 +2205,7 @@ Saves the image to the specified file location. | :- | :- | :- | | file_path | string | The file path to save the image to. | -### Method: save(file_path, options) {#save_file_path_options_96} +### Method: save(file_path, options) {#save_file_path_options_100} ``` @@ -2127,7 +2221,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_97} +### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_101} ``` @@ -2144,7 +2238,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: save(file_path, over_write) {#save_file_path_over_write_98} +### Method: save(file_path, over_write) {#save_file_path_over_write_102} ``` @@ -2160,7 +2254,7 @@ Saves the object's data to the specified file location. | file_path | string | The file path to save the object's data to. | | over_write | bool | if set to true over write the file contents, otherwise append will occur. | -### Method: save(stream) {#save_stream_99} +### Method: save(stream) {#save_stream_103} ``` @@ -2175,7 +2269,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save(stream, options_base) {#save_stream_options_base_100} +### Method: save(stream, options_base) {#save_stream_options_base_104} ``` @@ -2191,7 +2285,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_101} +### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_105} ``` @@ -2208,7 +2302,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_102} +### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_106} ``` @@ -2224,7 +2318,7 @@ Saves the 32-bit ARGB pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The 32-bit ARGB pixels array. | -### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_103} +### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_107} ``` @@ -2240,7 +2334,7 @@ Saves the pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The CMYK pixels presented as the 32-bit integer values. | -### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_104} +### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_108} ``` @@ -2256,7 +2350,7 @@ Saves the pixels.
This method is deprecated. Please use more eff | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The CMYK pixels array. | -### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_105} +### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_109} ``` @@ -2272,7 +2366,7 @@ Saves the pixels internal main. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | | pixels | [Color[]](/imaging/python-net/aspose.imaging/color) | The pixels. | -### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_106} +### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_110} ``` @@ -2290,7 +2384,7 @@ Saves the raw data. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The raw data rectangle. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings the data is in. | -### Method: save_to_stream(stream) {#save_to_stream_stream_107} +### Method: save_to_stream(stream) {#save_to_stream_stream_111} ``` @@ -2305,7 +2399,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_108} +### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_112} ``` @@ -2321,7 +2415,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_109} +### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_113} ``` @@ -2338,7 +2432,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_110} +### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_114} ``` @@ -2354,7 +2448,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_111} +### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_115} ``` @@ -2371,7 +2465,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_112} +### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_116} ``` @@ -2388,7 +2482,7 @@ Sets an image 32-bit ARGB pixel for the specified position. | y | int | The pixel y location. | | argb_32_color | int | The 32-bit ARGB pixel for the specified position. | -### Method: set_frame_time(time) {#set_frame_time_time_113} +### Method: set_frame_time(time) {#set_frame_time_time_117} ``` @@ -2403,7 +2497,7 @@ Adjusts the duration of each frame in milliseconds, ensuring consistent timing < | :- | :- | :- | | time | ushort | The time of frame duration in milliseconds. | -### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_114} +### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_118} ``` @@ -2419,7 +2513,7 @@ Sets the image palette. | palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The palette to set. | | update_colors | bool | if set to true colors will be updated according to the new palette; otherwise color indexes remain unchanged. Note that unchanged indexes may crash the image on loading if some indexes have no corresponding palette entries. | -### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_115} +### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_119} ``` @@ -2436,7 +2530,7 @@ Sets an image pixel for the specified position. | y | int | The pixel y location. | | color | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified position. | -### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_116} +### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_120} ``` @@ -2452,7 +2546,7 @@ Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/ra | dpi_x | double | The horizontal resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | | dpi_y | double | The vertical resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_117} +### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_121} ``` @@ -2468,7 +2562,7 @@ Writes the whole scan line to the specified scan line index. | scan_line_index | int | Zero based index of the scan line. | | argb_32_pixels | int | The 32-bit ARGB colors array to write. | -### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_118} +### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_122} ``` diff --git a/english/python-net/aspose.imaging.fileformats.ico/icoimage/_index.md b/english/python-net/aspose.imaging.fileformats.ico/icoimage/_index.md index 9b3db6a23a..68abd414ee 100644 --- a/english/python-net/aspose.imaging.fileformats.ico/icoimage/_index.md +++ b/english/python-net/aspose.imaging.fileformats.ico/icoimage/_index.md @@ -83,105 +83,109 @@ url: /python-net/aspose.imaging.fileformats.ico/icoimage/ | [can_load_stream_with_options(stream, load_options)](#can_load_stream_with_options_stream_load_options_19) | Determines whether image can be loaded from the specified stream and optionally using the specified _loadOptions_. | | [can_load_with_options(file_path, load_options)](#can_load_with_options_file_path_load_options_20) | Determines whether image can be loaded from the specified file path and optionally using the specified open options. | | [can_save(options)](#can_save_options_21) | Determines whether image can be saved to the specified file format represented by the passed save options. | -| [create(files)](#create_files_22) | Creates the specified files. | -| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_23) | Creates the specified files. | +| [create(files)](#create_files_22) | Creates the multipage image containing the specified files. | +| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_23) | Creates the multipage image containing the specified files. | | [create(image_options, width, height)](#create_image_options_width_height_24) | Creates a new image using the specified create options. | | [create(images)](#create_images_25) | Creates a new image using the specified images as pages | | [create(images, dispose_images)](#create_images_dispose_images_26) | Creates a new image the specified images as pages. | | [create(multipage_create_options)](#create_multipage_create_options_27) | Creates the specified multipage create options. | -| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_28) | Crop image with shifts. | -| [crop(rectangle)](#crop_rectangle_29) | Cropping the image. | -| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_30) | Performs dithering on the current image. | -| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_31) | Performs dithering on the current image. | -| [filter(rectangle, options)](#filter_rectangle_options_32) | Filters the specified rectangle. | -| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_33) | Gets an image 32-bit ARGB pixel. | -| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_34) | Gets the default 32-bit ARGB pixels array. | -| [get_default_options(args)](#get_default_options_args_35) | Gets the default options. | -| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_36) | Gets the default pixels array using partial pixel loader. | -| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_37) | Gets the default raw data array using partial pixel loader. | -| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_38) | Gets the default raw data array. | -| [get_file_format(file_path)](#get_file_format_file_path_39) | Gets the file format. | -| [get_file_format(stream)](#get_file_format_stream_40) | Gets the file format. | -| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_41) | Gets the file format. | -| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_42) | Gets rectangle which fits the current image. | -| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_43) | Gets rectangle which fits the current image. | -| [get_modify_date(use_default)](#get_modify_date_use_default_44) | Gets the date and time the resource image was last modified. | -| [get_original_options()](#get_original_options__45) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | -| [get_pixel(x, y)](#get_pixel_x_y_46) | Gets an image pixel. | -| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_47) | Gets a proportional height. | -| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_48) | Gets a proportional width. | -| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_49) | Converts to aps. | -| [get_skew_angle()](#get_skew_angle__50) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | +| [create_from_files(files)](#create_from_files_files_28) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_files(files, throw_exception_on_load_error)](#create_from_files_files_throw_exception_on_load_error_29) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_images(images)](#create_from_images_images_30) | Creates a new image using the specified images as pages | +| [create_from_images(images, dispose_images)](#create_from_images_images_dispose_images_31) | Creates a new image the specified images as pages. | +| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_32) | Crop image with shifts. | +| [crop(rectangle)](#crop_rectangle_33) | Cropping the image. | +| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_34) | Performs dithering on the current image. | +| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_35) | Performs dithering on the current image. | +| [filter(rectangle, options)](#filter_rectangle_options_36) | Filters the specified rectangle. | +| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_37) | Gets an image 32-bit ARGB pixel. | +| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_38) | Gets the default 32-bit ARGB pixels array. | +| [get_default_options(args)](#get_default_options_args_39) | Gets the default options. | +| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_40) | Gets the default pixels array using partial pixel loader. | +| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_41) | Gets the default raw data array using partial pixel loader. | +| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_42) | Gets the default raw data array. | +| [get_file_format(file_path)](#get_file_format_file_path_43) | Gets the file format. | +| [get_file_format(stream)](#get_file_format_stream_44) | Gets the file format. | +| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_45) | Gets the file format. | +| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_46) | Gets rectangle which fits the current image. | +| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_47) | Gets rectangle which fits the current image. | +| [get_modify_date(use_default)](#get_modify_date_use_default_48) | Gets the date and time the resource image was last modified. | +| [get_original_options()](#get_original_options__49) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | +| [get_pixel(x, y)](#get_pixel_x_y_50) | Gets an image pixel. | +| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_51) | Gets a proportional height. | +| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_52) | Gets a proportional width. | +| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_53) | Converts to aps. | +| [get_skew_angle()](#get_skew_angle__54) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | | grayscale() | Transformation of an image to its grayscale representation | -| [load(file_path)](#load_file_path_51) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(file_path, load_options)](#load_file_path_load_options_52) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(stream)](#load_stream_53) | Loads a new image from the specified stream. | -| [load(stream, load_options)](#load_stream_load_options_54) | Loads a new image from the specified stream. | -| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_55) | Loads 32-bit ARGB pixels. | -| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_56) | Loads 64-bit ARGB pixels. | -| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_57) | Loads pixels in CMYK format. | -| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_58) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_59) | Loads 32-bit ARGB pixels partially (by blocks). | -| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_60) | Loads 64-bit ARGB pixels partially by packs. | -| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_61) | Loads pixels partially by packs. | -| [load_pixels(rectangle)](#load_pixels_rectangle_62) | Loads pixels. | -| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_63) | Loads raw data. | -| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_64) | Loads raw data. | -| [load_stream(stream)](#load_stream_stream_65) | Loads a new image from the specified stream. | -| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_66) | Loads a new image from the specified stream. | -| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_67) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path)](#load_file_path_55) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path, load_options)](#load_file_path_load_options_56) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(stream)](#load_stream_57) | Loads a new image from the specified stream. | +| [load(stream, load_options)](#load_stream_load_options_58) | Loads a new image from the specified stream. | +| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_59) | Loads 32-bit ARGB pixels. | +| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_60) | Loads 64-bit ARGB pixels. | +| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_61) | Loads pixels in CMYK format. | +| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_62) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_63) | Loads 32-bit ARGB pixels partially (by blocks). | +| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_64) | Loads 64-bit ARGB pixels partially by packs. | +| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_65) | Loads pixels partially by packs. | +| [load_pixels(rectangle)](#load_pixels_rectangle_66) | Loads pixels. | +| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_67) | Loads raw data. | +| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_68) | Loads raw data. | +| [load_stream(stream)](#load_stream_stream_69) | Loads a new image from the specified stream. | +| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_70) | Loads a new image from the specified stream. | +| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_71) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | | normalize_angle() | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | -| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_68) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterCachedMultipageImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rastercachedmultipageimage/) methods. | -| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_69) | Reads the whole scan line by the specified scan line index. | -| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_70) | Reads the whole scan line by the specified scan line index. | +| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_72) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterCachedMultipageImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rastercachedmultipageimage/) methods. | +| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_73) | Reads the whole scan line by the specified scan line index. | +| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_74) | Reads the whole scan line by the specified scan line index. | | remove_metadata() | Removes this image instance metadata by setting this [IHasXmpData.xmp_data](/imaging/python-net/aspose.imaging.xmp/ihasxmpdata/) value to **None**. | -| [remove_page(index)](#remove_page_index_71) | Fine-tune your ICO image by removing a specific image entry located at the
designated ***index*** within the file. This method provides precise
control over your image composition, allowing you to refine your ICO file with ease. | -| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_72) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_73) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_74) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_75) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_76) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [resize(new_width, new_height)](#resize_new_width_new_height_77) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_78) | Resizes the image. | -| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_79) | Resizes the image. | -| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_80) | Resizes the image. | -| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_81) | Resizes the image. | -| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_82) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_83) | Resizes the width proportionally. | -| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_84) | Resizes the height proportionally. | -| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_85) | Resizes the height proportionally. | -| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_86) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_87) | Resizes the width proportionally. | -| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_88) | Resizes the width proportionally. | -| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_89) | Resizes the width proportionally. | -| [rotate(angle)](#rotate_angle_90) | Rotate image around the center. | -| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_91) | [RasterCachedMultipageImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rastercachedmultipageimage/) image around the center. | -| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_92) | Rotates, flips, or rotates and flips all pages. | -| [rotate_flip_all(rotate_flip)](#rotate_flip_all_rotate_flip_93) | Rotates the flip all. | +| [remove_page(index)](#remove_page_index_75) | Fine-tune your ICO image by removing a specific image entry located at the
designated ***index*** within the file. This method provides precise
control over your image composition, allowing you to refine your ICO file with ease. | +| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_76) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_77) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_78) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_79) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_80) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [resize(new_width, new_height)](#resize_new_width_new_height_81) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_82) | Resizes the image. | +| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_83) | Resizes the image. | +| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_84) | Resizes the image. | +| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_85) | Resizes the image. | +| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_86) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_87) | Resizes the width proportionally. | +| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_88) | Resizes the height proportionally. | +| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_89) | Resizes the height proportionally. | +| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_90) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_91) | Resizes the width proportionally. | +| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_92) | Resizes the width proportionally. | +| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_93) | Resizes the width proportionally. | +| [rotate(angle)](#rotate_angle_94) | Rotate image around the center. | +| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_95) | [RasterCachedMultipageImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rastercachedmultipageimage/) image around the center. | +| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_96) | Rotates, flips, or rotates and flips all pages. | +| [rotate_flip_all(rotate_flip)](#rotate_flip_all_rotate_flip_97) | Rotates the flip all. | | save() | Saves the image data to the underlying stream. | -| [save(file_path)](#save_file_path_94) | Saves the image to the specified file location. | -| [save(file_path, options)](#save_file_path_options_95) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_96) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, over_write)](#save_file_path_over_write_97) | Saves the object's data to the specified file location. | -| [save(stream)](#save_stream_98) | Saves the data. | -| [save(stream, options_base)](#save_stream_options_base_99) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_100) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_101) | Saves the 32-bit ARGB pixels. | -| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_102) | Saves the pixels. | -| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_103) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_104) | Saves the pixels internal main. | -| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_105) | Saves the raw data. | -| [save_to_stream(stream)](#save_to_stream_stream_106) | Saves the object's data to the specified stream. | -| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_107) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_108) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_with_options(file_path, options)](#save_with_options_file_path_options_109) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_110) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_111) | Sets an image 32-bit ARGB pixel for the specified position. | -| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_112) | Sets the image palette. | -| [set_pixel(x, y, color)](#set_pixel_x_y_color_113) | Sets an image pixel for the specified position. | -| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_114) | Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_115) | Writes the whole scan line to the specified scan line index. | -| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_116) | Writes the whole scan line to the specified scan line index. | +| [save(file_path)](#save_file_path_98) | Saves the image to the specified file location. | +| [save(file_path, options)](#save_file_path_options_99) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_100) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, over_write)](#save_file_path_over_write_101) | Saves the object's data to the specified file location. | +| [save(stream)](#save_stream_102) | Saves the data. | +| [save(stream, options_base)](#save_stream_options_base_103) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_104) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_105) | Saves the 32-bit ARGB pixels. | +| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_106) | Saves the pixels. | +| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_107) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_108) | Saves the pixels internal main. | +| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_109) | Saves the raw data. | +| [save_to_stream(stream)](#save_to_stream_stream_110) | Saves the object's data to the specified stream. | +| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_111) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_112) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_with_options(file_path, options)](#save_with_options_file_path_options_113) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_114) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_115) | Sets an image 32-bit ARGB pixel for the specified position. | +| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_116) | Sets the image palette. | +| [set_pixel(x, y, color)](#set_pixel_x_y_color_117) | Sets an image pixel for the specified position. | +| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_118) | Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | +| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_119) | Writes the whole scan line to the specified scan line index. | +| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_120) | Writes the whole scan line to the specified scan line index. | ### Constructor: IcoImage(image, ico_options) {#IcoImage_image_ico_options_1} @@ -608,7 +612,7 @@ Determines whether image can be saved to the specified file format represented b create(files) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -630,7 +634,7 @@ Creates the specified files. create(files, throw_exception_on_load_error) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -737,7 +741,97 @@ Creates the specified multipage create options. | [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | -### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_28} +### Method: create_from_files(files) [static] {#create_from_files_files_28} + + +``` + create_from_files(files) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_files(files, throw_exception_on_load_error) [static] {#create_from_files_files_throw_exception_on_load_error_29} + + +``` + create_from_files(files, throw_exception_on_load_error) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | +| throw_exception_on_load_error | bool | if set to true throw exception on load error. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_images(images) [static] {#create_from_images_images_30} + + +``` + create_from_images(images) +``` + +Creates a new image using the specified images as pages + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_images(images, dispose_images) [static] {#create_from_images_images_dispose_images_31} + + +``` + create_from_images(images, dispose_images) +``` + +Creates a new image the specified images as pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | +| dispose_images | bool | if set to true [dispose images]. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_32} ``` @@ -755,7 +849,7 @@ Crop image with shifts. | top_shift | int | The top shift. | | bottom_shift | int | The bottom shift. | -### Method: crop(rectangle) {#crop_rectangle_29} +### Method: crop(rectangle) {#crop_rectangle_33} ``` @@ -770,7 +864,7 @@ Cropping the image. | :- | :- | :- | | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | -### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_30} +### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_34} ``` @@ -786,7 +880,7 @@ Performs dithering on the current image. | dithering_method | [DitheringMethod](/imaging/python-net/aspose.imaging/ditheringmethod) | The dithering method. | | bits_count | int | The final bits count for dithering. | -### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_31} +### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_35} ``` @@ -803,7 +897,7 @@ Performs dithering on the current image. | bits_count | int | The final bits count for dithering. | | custom_palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The custom palette for dithering. | -### Method: filter(rectangle, options) {#filter_rectangle_options_32} +### Method: filter(rectangle, options) {#filter_rectangle_options_36} ``` @@ -819,7 +913,7 @@ Filters the specified rectangle. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | | options | [FilterOptionsBase](/imaging/python-net/aspose.imaging.imagefilters.filteroptions/filteroptionsbase/) | The options. | -### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_33} +### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_37} ``` @@ -842,7 +936,7 @@ Gets an image 32-bit ARGB pixel. | int | The 32-bit ARGB pixel for the specified location. | -### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_34} +### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_38} ``` @@ -864,7 +958,7 @@ Gets the default 32-bit ARGB pixels array. | int | The default pixels array. | -### Method: get_default_options(args) {#get_default_options_args_35} +### Method: get_default_options(args) {#get_default_options_args_39} ``` @@ -886,7 +980,7 @@ Gets the default options. | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Default options | -### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_36} +### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_40} ``` @@ -902,7 +996,7 @@ Gets the default pixels array using partial pixel loader. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to get pixels for. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_37} +### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_41} ``` @@ -919,7 +1013,7 @@ Gets the default raw data array using partial pixel loader. | partial_raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The partial raw data loader. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings. | -### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_38} +### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_42} ``` @@ -942,7 +1036,7 @@ Gets the default raw data array. | byte | The default raw data array. | -### Method: get_file_format(file_path) [static] {#get_file_format_file_path_39} +### Method: get_file_format(file_path) [static] {#get_file_format_file_path_43} ``` @@ -964,7 +1058,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format(stream) [static] {#get_file_format_stream_40} +### Method: get_file_format(stream) [static] {#get_file_format_stream_44} ``` @@ -986,7 +1080,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_41} +### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_45} ``` @@ -1008,7 +1102,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_42} +### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_46} ``` @@ -1033,7 +1127,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_43} +### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_47} ``` @@ -1057,7 +1151,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_modify_date(use_default) {#get_modify_date_use_default_44} +### Method: get_modify_date(use_default) {#get_modify_date_use_default_48} ``` @@ -1079,7 +1173,7 @@ Gets the date and time the resource image was last modified. | datetime | The date and time the resource image was last modified. | -### Method: get_original_options() {#get_original_options__45} +### Method: get_original_options() {#get_original_options__49} ``` @@ -1095,7 +1189,7 @@ Gets the options based on the original file settings.
This can b | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options based on the original file settings. | -### Method: get_pixel(x, y) {#get_pixel_x_y_46} +### Method: get_pixel(x, y) {#get_pixel_x_y_50} ``` @@ -1118,7 +1212,7 @@ Gets an image pixel. | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified location. | -### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_47} +### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_51} ``` @@ -1142,7 +1236,7 @@ Gets a proportional height. | int | The proportional height. | -### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_48} +### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_52} ``` @@ -1166,7 +1260,7 @@ Gets a proportional width. | int | The proportional width. | -### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_49} +### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_53} ``` @@ -1190,7 +1284,7 @@ Converts to aps. | _io.BufferedRandom | The serialized stream | -### Method: get_skew_angle() {#get_skew_angle__50} +### Method: get_skew_angle() {#get_skew_angle__54} ``` @@ -1206,7 +1300,7 @@ Gets the skew angle.
This method is applicable to scanned text d | float | The skew angle, in degrees. | -### Method: load(file_path) [static] {#load_file_path_51} +### Method: load(file_path) [static] {#load_file_path_55} ``` @@ -1228,7 +1322,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(file_path, load_options) [static] {#load_file_path_load_options_52} +### Method: load(file_path, load_options) [static] {#load_file_path_load_options_56} ``` @@ -1251,7 +1345,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream) [static] {#load_stream_53} +### Method: load(stream) [static] {#load_stream_57} ``` @@ -1273,7 +1367,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream, load_options) [static] {#load_stream_load_options_54} +### Method: load(stream, load_options) [static] {#load_stream_load_options_58} ``` @@ -1296,7 +1390,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_55} +### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_59} ``` @@ -1318,7 +1412,7 @@ Loads 32-bit ARGB pixels. | int | The loaded 32-bit ARGB pixels array. | -### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_56} +### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_60} ``` @@ -1340,7 +1434,7 @@ Loads 64-bit ARGB pixels. | long | The loaded 64-bit ARGB pixels array. | -### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_57} +### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_61} ``` @@ -1362,7 +1456,7 @@ Loads pixels in CMYK format. | int | The loaded CMYK pixels presentes as 32-bit inateger values. | -### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_58} +### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_62} ``` @@ -1384,7 +1478,7 @@ Loads pixels in CMYK format.
This method is deprecated. Please u | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The loaded CMYK pixels array. | -### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_59} +### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_63} ``` @@ -1400,7 +1494,7 @@ Loads 32-bit ARGB pixels partially (by blocks). | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to load pixels from. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_60} +### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_64} ``` @@ -1416,7 +1510,7 @@ Loads 64-bit ARGB pixels partially by packs. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | partial_pixel_loader | [IPartialArgb64PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb64pixelloader) | The 64-bit ARGB pixel loader. | -### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_61} +### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_65} ``` @@ -1432,7 +1526,7 @@ Loads pixels partially by packs. | desired_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | pixel_loader | [IPartialPixelLoader](/imaging/python-net/aspose.imaging/ipartialpixelloader) | The pixel loader. | -### Method: load_pixels(rectangle) {#load_pixels_rectangle_62} +### Method: load_pixels(rectangle) {#load_pixels_rectangle_66} ``` @@ -1454,7 +1548,7 @@ Loads pixels. | [Color[]](/imaging/python-net/aspose.imaging/color) | The loaded pixels array. | -### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_63} +### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_67} ``` @@ -1472,7 +1566,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_64} +### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_68} ``` @@ -1489,7 +1583,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_stream(stream) [static] {#load_stream_stream_65} +### Method: load_stream(stream) [static] {#load_stream_stream_69} ``` @@ -1511,7 +1605,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_66} +### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_70} ``` @@ -1534,7 +1628,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_67} +### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_71} ``` @@ -1557,7 +1651,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_68} +### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_72} ``` @@ -1573,7 +1667,7 @@ Normalizes the angle.
This method is applicable to scanned text | resize_proportionally | bool | if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_69} +### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_73} ``` @@ -1595,7 +1689,7 @@ Reads the whole scan line by the specified scan line index. | int | The scan line 32-bit ARGB color values array. | -### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_70} +### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_74} ``` @@ -1617,7 +1711,7 @@ Reads the whole scan line by the specified scan line index. | [Color[]](/imaging/python-net/aspose.imaging/color) | The scan line pixel color values array. | -### Method: remove_page(index) {#remove_page_index_71} +### Method: remove_page(index) {#remove_page_index_75} ``` @@ -1632,7 +1726,7 @@ Fine-tune your ICO image by removing a specific image entry located at the
| :- | :- | :- | | index | int | The index. | -### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_72} +### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_76} ``` @@ -1649,7 +1743,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_73} +### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_77} ``` @@ -1666,7 +1760,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | | -### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_74} +### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_78} ``` @@ -1683,7 +1777,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_75} +### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_79} ``` @@ -1698,7 +1792,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | | -### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_76} +### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_80} ``` @@ -1713,7 +1807,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color_argb | int | New color ARGB value to replace non transparent colors with. | -### Method: resize(new_width, new_height) {#resize_new_width_new_height_77} +### Method: resize(new_width, new_height) {#resize_new_width_new_height_81} ``` @@ -1729,7 +1823,7 @@ Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/ | new_width | int | The new width. | | new_height | int | The new height. | -### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_78} +### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_82} ``` @@ -1746,7 +1840,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_79} +### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_83} ``` @@ -1763,7 +1857,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_80} +### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_84} ``` @@ -1780,7 +1874,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_81} +### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_85} ``` @@ -1797,7 +1891,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_82} +### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_86} ``` @@ -1812,7 +1906,7 @@ Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RES | :- | :- | :- | | new_height | int | The new height. | -### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_83} +### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_87} ``` @@ -1828,7 +1922,7 @@ Resizes the width proportionally. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_84} +### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_88} ``` @@ -1844,7 +1938,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_85} +### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_89} ``` @@ -1860,7 +1954,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_86} +### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_90} ``` @@ -1875,7 +1969,7 @@ Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESA | :- | :- | :- | | new_width | int | The new width. | -### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_87} +### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_91} ``` @@ -1891,7 +1985,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_88} +### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_92} ``` @@ -1907,7 +2001,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_89} +### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_93} ``` @@ -1923,7 +2017,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: rotate(angle) {#rotate_angle_90} +### Method: rotate(angle) {#rotate_angle_94} ``` @@ -1938,7 +2032,7 @@ Rotate image around the center. | :- | :- | :- | | angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | -### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_91} +### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_95} ``` @@ -1955,7 +2049,7 @@ Rotate image around the center. | resize_proportionally | bool | if set to true you will have your image size changed
according to rotated rectangle (corner points) projections in other
case that leaves dimensions untouched and only
__internal__ image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_92} +### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_96} ``` @@ -1970,7 +2064,7 @@ Rotates, flips, or rotates and flips all pages. | :- | :- | :- | | rotate_flip_type | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | The rotate flip type. | -### Method: rotate_flip_all(rotate_flip) {#rotate_flip_all_rotate_flip_93} +### Method: rotate_flip_all(rotate_flip) {#rotate_flip_all_rotate_flip_97} ``` @@ -1985,7 +2079,7 @@ Rotates the flip all. | :- | :- | :- | | rotate_flip | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | The rotate flip. | -### Method: save(file_path) {#save_file_path_94} +### Method: save(file_path) {#save_file_path_98} ``` @@ -2000,7 +2094,7 @@ Saves the image to the specified file location. | :- | :- | :- | | file_path | string | The file path to save the image to. | -### Method: save(file_path, options) {#save_file_path_options_95} +### Method: save(file_path, options) {#save_file_path_options_99} ``` @@ -2016,7 +2110,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_96} +### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_100} ``` @@ -2033,7 +2127,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: save(file_path, over_write) {#save_file_path_over_write_97} +### Method: save(file_path, over_write) {#save_file_path_over_write_101} ``` @@ -2049,7 +2143,7 @@ Saves the object's data to the specified file location. | file_path | string | The file path to save the object's data to. | | over_write | bool | if set to true over write the file contents, otherwise append will occur. | -### Method: save(stream) {#save_stream_98} +### Method: save(stream) {#save_stream_102} ``` @@ -2064,7 +2158,7 @@ Saves the data. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save data to. | -### Method: save(stream, options_base) {#save_stream_options_base_99} +### Method: save(stream, options_base) {#save_stream_options_base_103} ``` @@ -2080,7 +2174,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_100} +### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_104} ``` @@ -2097,7 +2191,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_101} +### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_105} ``` @@ -2113,7 +2207,7 @@ Saves the 32-bit ARGB pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The 32-bit ARGB pixels array. | -### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_102} +### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_106} ``` @@ -2129,7 +2223,7 @@ Saves the pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The CMYK pixels presented as the 32-bit integer values. | -### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_103} +### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_107} ``` @@ -2145,7 +2239,7 @@ Saves the pixels.
This method is deprecated. Please use more eff | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The CMYK pixels array. | -### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_104} +### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_108} ``` @@ -2161,7 +2255,7 @@ Saves the pixels internal main. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | | pixels | [Color[]](/imaging/python-net/aspose.imaging/color) | The pixels. | -### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_105} +### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_109} ``` @@ -2179,7 +2273,7 @@ Saves the raw data. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The raw data rectangle. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings the data is in. | -### Method: save_to_stream(stream) {#save_to_stream_stream_106} +### Method: save_to_stream(stream) {#save_to_stream_stream_110} ``` @@ -2194,7 +2288,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_107} +### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_111} ``` @@ -2210,7 +2304,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_108} +### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_112} ``` @@ -2227,7 +2321,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_109} +### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_113} ``` @@ -2243,7 +2337,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_110} +### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_114} ``` @@ -2260,7 +2354,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_111} +### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_115} ``` @@ -2277,7 +2371,7 @@ Sets an image 32-bit ARGB pixel for the specified position. | y | int | The pixel y location. | | argb_32_color | int | The 32-bit ARGB pixel for the specified position. | -### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_112} +### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_116} ``` @@ -2293,7 +2387,7 @@ Sets the image palette. | palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The palette to set. | | update_colors | bool | if set to true colors will be updated according to the new palette; otherwise color indexes remain unchanged. Note that unchanged indexes may crash the image on loading if some indexes have no corresponding palette entries. | -### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_113} +### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_117} ``` @@ -2310,7 +2404,7 @@ Sets an image pixel for the specified position. | y | int | The pixel y location. | | color | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified position. | -### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_114} +### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_118} ``` @@ -2326,7 +2420,7 @@ Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/ra | dpi_x | double | The horizontal resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | | dpi_y | double | The vertical resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_115} +### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_119} ``` @@ -2342,7 +2436,7 @@ Writes the whole scan line to the specified scan line index. | scan_line_index | int | Zero based index of the scan line. | | argb_32_pixels | int | The 32-bit ARGB colors array to write. | -### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_116} +### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_120} ``` diff --git a/english/python-net/aspose.imaging.fileformats.jpeg/jpegimage/_index.md b/english/python-net/aspose.imaging.fileformats.jpeg/jpegimage/_index.md index a280615cd0..995bd6f336 100644 --- a/english/python-net/aspose.imaging.fileformats.jpeg/jpegimage/_index.md +++ b/english/python-net/aspose.imaging.fileformats.jpeg/jpegimage/_index.md @@ -90,105 +90,109 @@ url: /python-net/aspose.imaging.fileformats.jpeg/jpegimage/ | [can_load_stream_with_options(stream, load_options)](#can_load_stream_with_options_stream_load_options_15) | Determines whether image can be loaded from the specified stream and optionally using the specified _loadOptions_. | | [can_load_with_options(file_path, load_options)](#can_load_with_options_file_path_load_options_16) | Determines whether image can be loaded from the specified file path and optionally using the specified open options. | | [can_save(options)](#can_save_options_17) | Determines whether image can be saved to the specified file format represented by the passed save options. | -| [create(files)](#create_files_18) | Creates the specified files. | -| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_19) | Creates the specified files. | +| [create(files)](#create_files_18) | Creates the multipage image containing the specified files. | +| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_19) | Creates the multipage image containing the specified files. | | [create(image_options, width, height)](#create_image_options_width_height_20) | Creates a new image using the specified create options. | | [create(images)](#create_images_21) | Creates a new image using the specified images as pages | | [create(images, dispose_images)](#create_images_dispose_images_22) | Creates a new image the specified images as pages. | | [create(multipage_create_options)](#create_multipage_create_options_23) | Creates the specified multipage create options. | -| [create_from_image(raster_image)](#create_from_image_raster_image_24) | Initializes a new instance of the [JpegImage](/imaging/python-net/aspose.imaging.fileformats.jpeg/jpegimage/) class. | -| [create_from_stream(stream)](#create_from_stream_stream_25) | Initializes a new instance of the [JpegImage](/imaging/python-net/aspose.imaging.fileformats.jpeg/jpegimage/) class. | -| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_26) | Crop image with shifts. | -| [crop(rectangle)](#crop_rectangle_27) | Cropping the image. | -| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_28) | Performs dithering on the current image. | -| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_29) | Performs dithering on the current image. | -| [filter(rectangle, options)](#filter_rectangle_options_30) | Filters the specified rectangle. | -| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_31) | Gets an image 32-bit ARGB pixel. | -| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_32) | Gets the default 32-bit ARGB pixels array. | -| [get_default_options(args)](#get_default_options_args_33) | Gets the default options. | -| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_34) | Gets the default pixels array using partial pixel loader. | -| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_35) | Gets the default raw data array using partial pixel loader. | -| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_36) | Gets the default raw data array. | -| [get_file_format(file_path)](#get_file_format_file_path_37) | Gets the file format. | -| [get_file_format(stream)](#get_file_format_stream_38) | Gets the file format. | -| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_39) | Gets the file format. | -| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_40) | Gets rectangle which fits the current image. | -| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_41) | Gets rectangle which fits the current image. | -| [get_modify_date(use_default)](#get_modify_date_use_default_42) | Retrieves the date and time when the resource image underwent its latest
modification. This method provides valuable metadata, enabling users to track and
manage updates to the image file effectively. By accessing this information, users
can ensure the integrity and currency of their image assets, facilitating informed
decision-making regarding image usage and maintenance. | -| [get_original_options()](#get_original_options__43) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | -| [get_pixel(x, y)](#get_pixel_x_y_44) | Gets an image pixel. | -| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_45) | Gets a proportional height. | -| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_46) | Gets a proportional width. | -| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_47) | Converts to aps. | -| [get_skew_angle()](#get_skew_angle__48) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | +| [create_from_files(files)](#create_from_files_files_24) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_files(files, throw_exception_on_load_error)](#create_from_files_files_throw_exception_on_load_error_25) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_image(raster_image)](#create_from_image_raster_image_26) | Initializes a new instance of the [JpegImage](/imaging/python-net/aspose.imaging.fileformats.jpeg/jpegimage/) class. | +| [create_from_images(images)](#create_from_images_images_27) | Creates a new image using the specified images as pages | +| [create_from_images(images, dispose_images)](#create_from_images_images_dispose_images_28) | Creates a new image the specified images as pages. | +| [create_from_stream(stream)](#create_from_stream_stream_29) | Initializes a new instance of the [JpegImage](/imaging/python-net/aspose.imaging.fileformats.jpeg/jpegimage/) class. | +| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_30) | Crop image with shifts. | +| [crop(rectangle)](#crop_rectangle_31) | Cropping the image. | +| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_32) | Performs dithering on the current image. | +| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_33) | Performs dithering on the current image. | +| [filter(rectangle, options)](#filter_rectangle_options_34) | Filters the specified rectangle. | +| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_35) | Gets an image 32-bit ARGB pixel. | +| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_36) | Gets the default 32-bit ARGB pixels array. | +| [get_default_options(args)](#get_default_options_args_37) | Gets the default options. | +| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_38) | Gets the default pixels array using partial pixel loader. | +| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_39) | Gets the default raw data array using partial pixel loader. | +| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_40) | Gets the default raw data array. | +| [get_file_format(file_path)](#get_file_format_file_path_41) | Gets the file format. | +| [get_file_format(stream)](#get_file_format_stream_42) | Gets the file format. | +| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_43) | Gets the file format. | +| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_44) | Gets rectangle which fits the current image. | +| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_45) | Gets rectangle which fits the current image. | +| [get_modify_date(use_default)](#get_modify_date_use_default_46) | Retrieves the date and time when the resource image underwent its latest
modification. This method provides valuable metadata, enabling users to track and
manage updates to the image file effectively. By accessing this information, users
can ensure the integrity and currency of their image assets, facilitating informed
decision-making regarding image usage and maintenance. | +| [get_original_options()](#get_original_options__47) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | +| [get_pixel(x, y)](#get_pixel_x_y_48) | Gets an image pixel. | +| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_49) | Gets a proportional height. | +| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_50) | Gets a proportional width. | +| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_51) | Converts to aps. | +| [get_skew_angle()](#get_skew_angle__52) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | | grayscale() | Transformation of an image to its grayscale representation | -| [load(file_path)](#load_file_path_49) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(file_path, load_options)](#load_file_path_load_options_50) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(stream)](#load_stream_51) | Loads a new image from the specified stream. | -| [load(stream, load_options)](#load_stream_load_options_52) | Loads a new image from the specified stream. | -| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_53) | Loads 32-bit ARGB pixels. | -| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_54) | Loads 64-bit ARGB pixels. | -| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_55) | Loads pixels in CMYK format. | -| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_56) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_57) | Loads 32-bit ARGB pixels partially (by blocks). | -| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_58) | Loads 64-bit ARGB pixels partially by packs. | -| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_59) | Loads pixels partially by packs. | -| [load_pixels(rectangle)](#load_pixels_rectangle_60) | Loads pixels. | -| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_61) | Loads raw data. | -| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_62) | Loads raw data. | -| [load_stream(stream)](#load_stream_stream_63) | Loads a new image from the specified stream. | -| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_64) | Loads a new image from the specified stream. | -| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_65) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path)](#load_file_path_53) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path, load_options)](#load_file_path_load_options_54) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(stream)](#load_stream_55) | Loads a new image from the specified stream. | +| [load(stream, load_options)](#load_stream_load_options_56) | Loads a new image from the specified stream. | +| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_57) | Loads 32-bit ARGB pixels. | +| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_58) | Loads 64-bit ARGB pixels. | +| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_59) | Loads pixels in CMYK format. | +| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_60) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_61) | Loads 32-bit ARGB pixels partially (by blocks). | +| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_62) | Loads 64-bit ARGB pixels partially by packs. | +| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_63) | Loads pixels partially by packs. | +| [load_pixels(rectangle)](#load_pixels_rectangle_64) | Loads pixels. | +| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_65) | Loads raw data. | +| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_66) | Loads raw data. | +| [load_stream(stream)](#load_stream_stream_67) | Loads a new image from the specified stream. | +| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_68) | Loads a new image from the specified stream. | +| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_69) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | | normalize_angle() | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | -| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_66) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | -| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_67) | Reads the whole scan line by the specified scan line index. | -| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_68) | Reads the whole scan line by the specified scan line index. | +| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_70) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | +| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_71) | Reads the whole scan line by the specified scan line index. | +| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_72) | Reads the whole scan line by the specified scan line index. | | remove_metadata() | Removes this image instance metadata by setting this [IHasXmpData.xmp_data](/imaging/python-net/aspose.imaging.xmp/ihasxmpdata/) and [IHasExifData.exif_data](/imaging/python-net/aspose.imaging.exif/ihasexifdata/) values to **None**. | -| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_69) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_70) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_71) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_72) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_73) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [resize(new_width, new_height)](#resize_new_width_new_height_74) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_75) | Resizes the image. | -| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_76) | Resizes the image. | -| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_77) | Resizes the image. | -| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_78) | Resizes the image. | -| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_79) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_80) | Resizes the height proportionally. | -| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_81) | Resizes the height proportionally. | -| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_82) | Resizes the height proportionally. | -| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_83) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_84) | Resizes the width proportionally. | -| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_85) | Resizes the width proportionally. | -| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_86) | Resizes the width proportionally. | -| [rotate(angle)](#rotate_angle_87) | Rotate image around the center. | -| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_88) | Rotate image around the center. | -| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_89) | Rotates, flips, or rotates and flips the image. | +| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_73) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_74) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_75) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_76) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_77) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [resize(new_width, new_height)](#resize_new_width_new_height_78) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_79) | Resizes the image. | +| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_80) | Resizes the image. | +| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_81) | Resizes the image. | +| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_82) | Resizes the image. | +| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_83) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_84) | Resizes the height proportionally. | +| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_85) | Resizes the height proportionally. | +| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_86) | Resizes the height proportionally. | +| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_87) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_88) | Resizes the width proportionally. | +| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_89) | Resizes the width proportionally. | +| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_90) | Resizes the width proportionally. | +| [rotate(angle)](#rotate_angle_91) | Rotate image around the center. | +| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_92) | Rotate image around the center. | +| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_93) | Rotates, flips, or rotates and flips the image. | | save() | Saves the image data to the underlying stream. | -| [save(file_path)](#save_file_path_90) | Saves the image to the specified file location. | -| [save(file_path, options)](#save_file_path_options_91) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_92) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, over_write)](#save_file_path_over_write_93) | Saves the object's data to the specified file location. | -| [save(stream)](#save_stream_94) | Saves the object's data to the specified stream. | -| [save(stream, options_base)](#save_stream_options_base_95) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_96) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_97) | Saves the 32-bit ARGB pixels. | -| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_98) | Saves the pixels. | -| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_99) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_100) | Saves pixels (format specific method). | -| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_101) | Saves the raw data. | -| [save_to_stream(stream)](#save_to_stream_stream_102) | Saves the object's data to the specified stream. | -| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_103) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_104) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_with_options(file_path, options)](#save_with_options_file_path_options_105) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_106) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_107) | Sets an image 32-bit ARGB pixel for the specified position. | -| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_108) | Sets the image palette. | -| [set_pixel(x, y, color)](#set_pixel_x_y_color_109) | Sets an image pixel for the specified position. | -| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_110) | Establishes the resolution for the specified [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/), ensuring
accurate scaling and printing capabilities. This method empowers users to tailor
the image resolution to suit their specific requirements, whether for digital
display or physical reproduction. By setting the resolution, users can optimize
image quality and ensure compatibility with various output devices and mediums,
enhancing the overall visual experience and usability of the image. | -| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_111) | Writes the whole scan line to the specified scan line index. | -| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_112) | Writes the whole scan line to the specified scan line index. | +| [save(file_path)](#save_file_path_94) | Saves the image to the specified file location. | +| [save(file_path, options)](#save_file_path_options_95) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_96) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, over_write)](#save_file_path_over_write_97) | Saves the object's data to the specified file location. | +| [save(stream)](#save_stream_98) | Saves the object's data to the specified stream. | +| [save(stream, options_base)](#save_stream_options_base_99) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_100) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_101) | Saves the 32-bit ARGB pixels. | +| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_102) | Saves the pixels. | +| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_103) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_104) | Saves pixels (format specific method). | +| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_105) | Saves the raw data. | +| [save_to_stream(stream)](#save_to_stream_stream_106) | Saves the object's data to the specified stream. | +| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_107) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_108) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_with_options(file_path, options)](#save_with_options_file_path_options_109) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_110) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_111) | Sets an image 32-bit ARGB pixel for the specified position. | +| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_112) | Sets the image palette. | +| [set_pixel(x, y, color)](#set_pixel_x_y_color_113) | Sets an image pixel for the specified position. | +| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_114) | Establishes the resolution for the specified [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/), ensuring
accurate scaling and printing capabilities. This method empowers users to tailor
the image resolution to suit their specific requirements, whether for digital
display or physical reproduction. By setting the resolution, users can optimize
image quality and ensure compatibility with various output devices and mediums,
enhancing the overall visual experience and usability of the image. | +| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_115) | Writes the whole scan line to the specified scan line index. | +| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_116) | Writes the whole scan line to the specified scan line index. | ### Constructor: JpegImage(jpeg_options, width, height) {#JpegImage_jpeg_options_width_height_1} @@ -611,7 +615,7 @@ Determines whether image can be saved to the specified file format represented b create(files) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -633,7 +637,7 @@ Creates the specified files. create(files, throw_exception_on_load_error) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -740,7 +744,52 @@ Creates the specified multipage create options. | [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | -### Method: create_from_image(raster_image) [static] {#create_from_image_raster_image_24} +### Method: create_from_files(files) [static] {#create_from_files_files_24} + + +``` + create_from_files(files) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_files(files, throw_exception_on_load_error) [static] {#create_from_files_files_throw_exception_on_load_error_25} + + +``` + create_from_files(files, throw_exception_on_load_error) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | +| throw_exception_on_load_error | bool | if set to true throw exception on load error. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_image(raster_image) [static] {#create_from_image_raster_image_26} ``` @@ -762,7 +811,52 @@ Initializes a new instance of the [JpegImage](/imaging/python-net/aspose.imaging | [JpegImage](/imaging/python-net/aspose.imaging.fileformats.jpeg/jpegimage) | | -### Method: create_from_stream(stream) [static] {#create_from_stream_stream_25} +### Method: create_from_images(images) [static] {#create_from_images_images_27} + + +``` + create_from_images(images) +``` + +Creates a new image using the specified images as pages + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_images(images, dispose_images) [static] {#create_from_images_images_dispose_images_28} + + +``` + create_from_images(images, dispose_images) +``` + +Creates a new image the specified images as pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | +| dispose_images | bool | if set to true [dispose images]. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_stream(stream) [static] {#create_from_stream_stream_29} ``` @@ -784,7 +878,7 @@ Initializes a new instance of the [JpegImage](/imaging/python-net/aspose.imaging | [JpegImage](/imaging/python-net/aspose.imaging.fileformats.jpeg/jpegimage) | | -### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_26} +### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_30} ``` @@ -802,7 +896,7 @@ Crop image with shifts. | top_shift | int | The top shift. | | bottom_shift | int | The bottom shift. | -### Method: crop(rectangle) {#crop_rectangle_27} +### Method: crop(rectangle) {#crop_rectangle_31} ``` @@ -817,7 +911,7 @@ Cropping the image. | :- | :- | :- | | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | -### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_28} +### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_32} ``` @@ -833,7 +927,7 @@ Performs dithering on the current image. | dithering_method | [DitheringMethod](/imaging/python-net/aspose.imaging/ditheringmethod) | The dithering method. | | bits_count | int | The final bits count for dithering. | -### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_29} +### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_33} ``` @@ -850,7 +944,7 @@ Performs dithering on the current image. | bits_count | int | The final bits count for dithering. | | custom_palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The custom palette for dithering. | -### Method: filter(rectangle, options) {#filter_rectangle_options_30} +### Method: filter(rectangle, options) {#filter_rectangle_options_34} ``` @@ -866,7 +960,7 @@ Filters the specified rectangle. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | | options | [FilterOptionsBase](/imaging/python-net/aspose.imaging.imagefilters.filteroptions/filteroptionsbase/) | The options. | -### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_31} +### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_35} ``` @@ -889,7 +983,7 @@ Gets an image 32-bit ARGB pixel. | int | The 32-bit ARGB pixel for the specified location. | -### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_32} +### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_36} ``` @@ -911,7 +1005,7 @@ Gets the default 32-bit ARGB pixels array. | int | The default pixels array. | -### Method: get_default_options(args) {#get_default_options_args_33} +### Method: get_default_options(args) {#get_default_options_args_37} ``` @@ -933,7 +1027,7 @@ Gets the default options. | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Default options | -### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_34} +### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_38} ``` @@ -949,7 +1043,7 @@ Gets the default pixels array using partial pixel loader. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to get pixels for. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_35} +### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_39} ``` @@ -966,7 +1060,7 @@ Gets the default raw data array using partial pixel loader. | partial_raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The partial raw data loader. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings. | -### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_36} +### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_40} ``` @@ -989,7 +1083,7 @@ Gets the default raw data array. | byte | The default raw data array. | -### Method: get_file_format(file_path) [static] {#get_file_format_file_path_37} +### Method: get_file_format(file_path) [static] {#get_file_format_file_path_41} ``` @@ -1011,7 +1105,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format(stream) [static] {#get_file_format_stream_38} +### Method: get_file_format(stream) [static] {#get_file_format_stream_42} ``` @@ -1033,7 +1127,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_39} +### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_43} ``` @@ -1055,7 +1149,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_40} +### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_44} ``` @@ -1080,7 +1174,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_41} +### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_45} ``` @@ -1104,7 +1198,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_modify_date(use_default) {#get_modify_date_use_default_42} +### Method: get_modify_date(use_default) {#get_modify_date_use_default_46} ``` @@ -1126,7 +1220,7 @@ Retrieves the date and time when the resource image underwent its latest
| datetime | The date and time the resource image was last modified. | -### Method: get_original_options() {#get_original_options__43} +### Method: get_original_options() {#get_original_options__47} ``` @@ -1142,7 +1236,7 @@ Gets the options based on the original file settings.
This can b | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options based on the original file settings. | -### Method: get_pixel(x, y) {#get_pixel_x_y_44} +### Method: get_pixel(x, y) {#get_pixel_x_y_48} ``` @@ -1165,7 +1259,7 @@ Gets an image pixel. | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified location. | -### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_45} +### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_49} ``` @@ -1189,7 +1283,7 @@ Gets a proportional height. | int | The proportional height. | -### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_46} +### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_50} ``` @@ -1213,7 +1307,7 @@ Gets a proportional width. | int | The proportional width. | -### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_47} +### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_51} ``` @@ -1237,7 +1331,7 @@ Converts to aps. | _io.BufferedRandom | The serialized stream | -### Method: get_skew_angle() {#get_skew_angle__48} +### Method: get_skew_angle() {#get_skew_angle__52} ``` @@ -1253,7 +1347,7 @@ Gets the skew angle.
This method is applicable to scanned text d | float | The skew angle, in degrees. | -### Method: load(file_path) [static] {#load_file_path_49} +### Method: load(file_path) [static] {#load_file_path_53} ``` @@ -1275,7 +1369,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(file_path, load_options) [static] {#load_file_path_load_options_50} +### Method: load(file_path, load_options) [static] {#load_file_path_load_options_54} ``` @@ -1298,7 +1392,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream) [static] {#load_stream_51} +### Method: load(stream) [static] {#load_stream_55} ``` @@ -1320,7 +1414,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream, load_options) [static] {#load_stream_load_options_52} +### Method: load(stream, load_options) [static] {#load_stream_load_options_56} ``` @@ -1343,7 +1437,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_53} +### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_57} ``` @@ -1365,7 +1459,7 @@ Loads 32-bit ARGB pixels. | int | The loaded 32-bit ARGB pixels array. | -### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_54} +### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_58} ``` @@ -1387,7 +1481,7 @@ Loads 64-bit ARGB pixels. | long | The loaded 64-bit ARGB pixels array. | -### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_55} +### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_59} ``` @@ -1409,7 +1503,7 @@ Loads pixels in CMYK format. | int | The loaded CMYK pixels presentes as 32-bit inateger values. | -### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_56} +### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_60} ``` @@ -1431,7 +1525,7 @@ Loads pixels in CMYK format.
This method is deprecated. Please u | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The loaded CMYK pixels array. | -### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_57} +### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_61} ``` @@ -1447,7 +1541,7 @@ Loads 32-bit ARGB pixels partially (by blocks). | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to load pixels from. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_58} +### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_62} ``` @@ -1463,7 +1557,7 @@ Loads 64-bit ARGB pixels partially by packs. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | partial_pixel_loader | [IPartialArgb64PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb64pixelloader) | The 64-bit ARGB pixel loader. | -### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_59} +### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_63} ``` @@ -1479,7 +1573,7 @@ Loads pixels partially by packs. | desired_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | pixel_loader | [IPartialPixelLoader](/imaging/python-net/aspose.imaging/ipartialpixelloader) | The pixel loader. | -### Method: load_pixels(rectangle) {#load_pixels_rectangle_60} +### Method: load_pixels(rectangle) {#load_pixels_rectangle_64} ``` @@ -1501,7 +1595,7 @@ Loads pixels. | [Color[]](/imaging/python-net/aspose.imaging/color) | The loaded pixels array. | -### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_61} +### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_65} ``` @@ -1519,7 +1613,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_62} +### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_66} ``` @@ -1536,7 +1630,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_stream(stream) [static] {#load_stream_stream_63} +### Method: load_stream(stream) [static] {#load_stream_stream_67} ``` @@ -1558,7 +1652,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_64} +### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_68} ``` @@ -1581,7 +1675,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_65} +### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_69} ``` @@ -1604,7 +1698,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_66} +### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_70} ``` @@ -1620,7 +1714,7 @@ Normalizes the angle.
This method is applicable to scanned text | resize_proportionally | bool | if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_67} +### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_71} ``` @@ -1642,7 +1736,7 @@ Reads the whole scan line by the specified scan line index. | int | The scan line 32-bit ARGB color values array. | -### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_68} +### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_72} ``` @@ -1664,7 +1758,7 @@ Reads the whole scan line by the specified scan line index. | [Color[]](/imaging/python-net/aspose.imaging/color) | The scan line pixel color values array. | -### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_69} +### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_73} ``` @@ -1681,7 +1775,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_70} +### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_74} ``` @@ -1698,7 +1792,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | New color to replace old color with. | -### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_71} +### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_75} ``` @@ -1715,7 +1809,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_72} +### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_76} ``` @@ -1730,7 +1824,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | New color to replace non transparent colors with. | -### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_73} +### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_77} ``` @@ -1745,7 +1839,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color_argb | int | New color ARGB value to replace non transparent colors with. | -### Method: resize(new_width, new_height) {#resize_new_width_new_height_74} +### Method: resize(new_width, new_height) {#resize_new_width_new_height_78} ``` @@ -1761,7 +1855,7 @@ Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/ | new_width | int | The new width. | | new_height | int | The new height. | -### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_75} +### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_79} ``` @@ -1778,7 +1872,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_76} +### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_80} ``` @@ -1795,7 +1889,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_77} +### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_81} ``` @@ -1812,7 +1906,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_78} +### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_82} ``` @@ -1829,7 +1923,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_79} +### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_83} ``` @@ -1844,7 +1938,7 @@ Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RES | :- | :- | :- | | new_height | int | The new height. | -### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_80} +### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_84} ``` @@ -1860,7 +1954,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_81} +### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_85} ``` @@ -1876,7 +1970,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_82} +### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_86} ``` @@ -1892,7 +1986,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_83} +### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_87} ``` @@ -1907,7 +2001,7 @@ Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESA | :- | :- | :- | | new_width | int | The new width. | -### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_84} +### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_88} ``` @@ -1923,7 +2017,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_85} +### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_89} ``` @@ -1939,7 +2033,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_86} +### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_90} ``` @@ -1955,7 +2049,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: rotate(angle) {#rotate_angle_87} +### Method: rotate(angle) {#rotate_angle_91} ``` @@ -1970,7 +2064,7 @@ Rotate image around the center. | :- | :- | :- | | angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | -### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_88} +### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_92} ``` @@ -1987,7 +2081,7 @@ Rotate image around the center. | resize_proportionally | bool | if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_89} +### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_93} ``` @@ -2002,7 +2096,7 @@ Rotates, flips, or rotates and flips the image. | :- | :- | :- | | rotate_flip_type | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | The rotate flip type. | -### Method: save(file_path) {#save_file_path_90} +### Method: save(file_path) {#save_file_path_94} ``` @@ -2017,7 +2111,7 @@ Saves the image to the specified file location. | :- | :- | :- | | file_path | string | The file path to save the image to. | -### Method: save(file_path, options) {#save_file_path_options_91} +### Method: save(file_path, options) {#save_file_path_options_95} ``` @@ -2033,7 +2127,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_92} +### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_96} ``` @@ -2050,7 +2144,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: save(file_path, over_write) {#save_file_path_over_write_93} +### Method: save(file_path, over_write) {#save_file_path_over_write_97} ``` @@ -2066,7 +2160,7 @@ Saves the object's data to the specified file location. | file_path | string | The file path to save the object's data to. | | over_write | bool | if set to true over write the file contents, otherwise append will occur. | -### Method: save(stream) {#save_stream_94} +### Method: save(stream) {#save_stream_98} ``` @@ -2081,7 +2175,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save(stream, options_base) {#save_stream_options_base_95} +### Method: save(stream, options_base) {#save_stream_options_base_99} ``` @@ -2097,7 +2191,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_96} +### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_100} ``` @@ -2114,7 +2208,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_97} +### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_101} ``` @@ -2130,7 +2224,7 @@ Saves the 32-bit ARGB pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The 32-bit ARGB pixels array. | -### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_98} +### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_102} ``` @@ -2146,7 +2240,7 @@ Saves the pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The CMYK pixels presented as the 32-bit integer values. | -### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_99} +### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_103} ``` @@ -2162,7 +2256,7 @@ Saves the pixels.
This method is deprecated. Please use more eff | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The CMYK pixels array. | -### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_100} +### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_104} ``` @@ -2178,7 +2272,7 @@ Saves pixels (format specific method). | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | [Color[]](/imaging/python-net/aspose.imaging/color) | The 32-bit ARGB pixels array. | -### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_101} +### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_105} ``` @@ -2196,7 +2290,7 @@ Saves the raw data. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The raw data rectangle. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings the data is in. | -### Method: save_to_stream(stream) {#save_to_stream_stream_102} +### Method: save_to_stream(stream) {#save_to_stream_stream_106} ``` @@ -2211,7 +2305,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_103} +### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_107} ``` @@ -2227,7 +2321,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_104} +### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_108} ``` @@ -2244,7 +2338,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_105} +### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_109} ``` @@ -2260,7 +2354,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_106} +### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_110} ``` @@ -2277,7 +2371,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_107} +### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_111} ``` @@ -2294,7 +2388,7 @@ Sets an image 32-bit ARGB pixel for the specified position. | y | int | The pixel y location. | | argb_32_color | int | The 32-bit ARGB pixel for the specified position. | -### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_108} +### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_112} ``` @@ -2310,7 +2404,7 @@ Sets the image palette. | palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The palette to set. | | update_colors | bool | if set to true colors will be updated according to the new palette; otherwise color indexes remain unchanged. Note that unchanged indexes may crash the image on loading if some indexes have no corresponding palette entries. | -### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_109} +### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_113} ``` @@ -2327,7 +2421,7 @@ Sets an image pixel for the specified position. | y | int | The pixel y location. | | color | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified position. | -### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_110} +### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_114} ``` @@ -2343,7 +2437,7 @@ Establishes the resolution for the specified [RasterImage](/imaging/python-net/a | dpi_x | double | The horizontal resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | | dpi_y | double | The vertical resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_111} +### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_115} ``` @@ -2359,7 +2453,7 @@ Writes the whole scan line to the specified scan line index. | scan_line_index | int | Zero based index of the scan line. | | argb_32_pixels | int | The 32-bit ARGB colors array to write. | -### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_112} +### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_116} ``` diff --git a/english/python-net/aspose.imaging.fileformats.jpeg2000/jpeg2000image/_index.md b/english/python-net/aspose.imaging.fileformats.jpeg2000/jpeg2000image/_index.md index 4ff98a9755..14811cc7a7 100644 --- a/english/python-net/aspose.imaging.fileformats.jpeg2000/jpeg2000image/_index.md +++ b/english/python-net/aspose.imaging.fileformats.jpeg2000/jpeg2000image/_index.md @@ -86,111 +86,115 @@ url: /python-net/aspose.imaging.fileformats.jpeg2000/jpeg2000image/ | [can_load_stream_with_options(stream, load_options)](#can_load_stream_with_options_stream_load_options_15) | Determines whether image can be loaded from the specified stream and optionally using the specified _loadOptions_. | | [can_load_with_options(file_path, load_options)](#can_load_with_options_file_path_load_options_16) | Determines whether image can be loaded from the specified file path and optionally using the specified open options. | | [can_save(options)](#can_save_options_17) | Determines whether image can be saved to the specified file format represented by the passed save options. | -| [create(files)](#create_files_18) | Creates the specified files. | -| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_19) | Creates the specified files. | +| [create(files)](#create_files_18) | Creates the multipage image containing the specified files. | +| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_19) | Creates the multipage image containing the specified files. | | [create(image_options, width, height)](#create_image_options_width_height_20) | Creates a new image using the specified create options. | | [create(images)](#create_images_21) | Creates a new image using the specified images as pages | | [create(images, dispose_images)](#create_images_dispose_images_22) | Creates a new image the specified images as pages. | | [create(multipage_create_options)](#create_multipage_create_options_23) | Creates the specified multipage create options. | | [create_from_file_with_bpp(path, bits_per_pixel)](#create_from_file_with_bpp_path_bits_per_pixel_24) | Initializes a new instance of the [Jpeg2000Image](/imaging/python-net/aspose.imaging.fileformats.jpeg2000/jpeg2000image/) class. | -| [create_from_image(image)](#create_from_image_image_25) | Initializes a new instance of the [Jpeg2000Image](/imaging/python-net/aspose.imaging.fileformats.jpeg2000/jpeg2000image/) class. | -| [create_from_image_with_bpp(raster_image, bits_per_pixel)](#create_from_image_with_bpp_raster_image_bits_per_pixel_26) | Initializes a new instance of the [Jpeg2000Image](/imaging/python-net/aspose.imaging.fileformats.jpeg2000/jpeg2000image/) class. | -| [create_from_stream(stream)](#create_from_stream_stream_27) | Initializes a new instance of the [Jpeg2000Image](/imaging/python-net/aspose.imaging.fileformats.jpeg2000/jpeg2000image/) class. | -| [create_from_stream_with_bpp(stream, bits_per_pixel)](#create_from_stream_with_bpp_stream_bits_per_pixel_28) | Initializes a new instance of the [Jpeg2000Image](/imaging/python-net/aspose.imaging.fileformats.jpeg2000/jpeg2000image/) class. | -| [create_with_width_height(width, height)](#create_with_width_height_width_height_29) | Initializes a new instance of the [Jpeg2000Image](/imaging/python-net/aspose.imaging.fileformats.jpeg2000/jpeg2000image/) class. | -| [create_with_width_height_bitscount(width, height, bits_count)](#create_with_width_height_bitscount_width_height_bits_count_30) | Initializes a new instance of the [Jpeg2000Image](/imaging/python-net/aspose.imaging.fileformats.jpeg2000/jpeg2000image/) class. | -| [create_with_width_height_options(width, height, options)](#create_with_width_height_options_width_height_options_31) | Initializes a new instance of the [Jpeg2000Image](/imaging/python-net/aspose.imaging.fileformats.jpeg2000/jpeg2000image/) class. | -| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_32) | Crop image with shifts. | -| [crop(rectangle)](#crop_rectangle_33) | Cropping the image. | -| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_34) | Performs dithering on the current image. | -| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_35) | Performs dithering on the current image. | -| [filter(rectangle, options)](#filter_rectangle_options_36) | Filters the specified rectangle. | -| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_37) | Gets an image 32-bit ARGB pixel. | -| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_38) | Gets the default 32-bit ARGB pixels array. | -| [get_default_options(args)](#get_default_options_args_39) | Gets the default options. | -| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_40) | Gets the default pixels array using partial pixel loader. | -| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_41) | Gets the default raw data array using partial pixel loader. | -| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_42) | Gets the default raw data array. | -| [get_file_format(file_path)](#get_file_format_file_path_43) | Gets the file format. | -| [get_file_format(stream)](#get_file_format_stream_44) | Gets the file format. | -| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_45) | Gets the file format. | -| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_46) | Gets rectangle which fits the current image. | -| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_47) | Gets rectangle which fits the current image. | -| [get_modify_date(use_default)](#get_modify_date_use_default_48) | Gets the date and time the resource image was last modified. | -| [get_original_options()](#get_original_options__49) | Retrieve the image options based on the original file settings. This method is
beneficial for maintaining the bit-depth and other parameters of the original
image, ensuring consistency and preserving the integrity of the image data.
Accessing these options facilitates seamless handling and processing of the image
while retaining its original characteristics.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | -| [get_pixel(x, y)](#get_pixel_x_y_50) | Gets an image pixel. | -| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_51) | Gets a proportional height. | -| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_52) | Gets a proportional width. | -| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_53) | Converts to aps. | -| [get_skew_angle()](#get_skew_angle__54) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | +| [create_from_files(files)](#create_from_files_files_25) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_files(files, throw_exception_on_load_error)](#create_from_files_files_throw_exception_on_load_error_26) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_image(image)](#create_from_image_image_27) | Initializes a new instance of the [Jpeg2000Image](/imaging/python-net/aspose.imaging.fileformats.jpeg2000/jpeg2000image/) class. | +| [create_from_image_with_bpp(raster_image, bits_per_pixel)](#create_from_image_with_bpp_raster_image_bits_per_pixel_28) | Initializes a new instance of the [Jpeg2000Image](/imaging/python-net/aspose.imaging.fileformats.jpeg2000/jpeg2000image/) class. | +| [create_from_images(images)](#create_from_images_images_29) | Creates a new image using the specified images as pages | +| [create_from_images(images, dispose_images)](#create_from_images_images_dispose_images_30) | Creates a new image the specified images as pages. | +| [create_from_stream(stream)](#create_from_stream_stream_31) | Initializes a new instance of the [Jpeg2000Image](/imaging/python-net/aspose.imaging.fileformats.jpeg2000/jpeg2000image/) class. | +| [create_from_stream_with_bpp(stream, bits_per_pixel)](#create_from_stream_with_bpp_stream_bits_per_pixel_32) | Initializes a new instance of the [Jpeg2000Image](/imaging/python-net/aspose.imaging.fileformats.jpeg2000/jpeg2000image/) class. | +| [create_with_width_height(width, height)](#create_with_width_height_width_height_33) | Initializes a new instance of the [Jpeg2000Image](/imaging/python-net/aspose.imaging.fileformats.jpeg2000/jpeg2000image/) class. | +| [create_with_width_height_bitscount(width, height, bits_count)](#create_with_width_height_bitscount_width_height_bits_count_34) | Initializes a new instance of the [Jpeg2000Image](/imaging/python-net/aspose.imaging.fileformats.jpeg2000/jpeg2000image/) class. | +| [create_with_width_height_options(width, height, options)](#create_with_width_height_options_width_height_options_35) | Initializes a new instance of the [Jpeg2000Image](/imaging/python-net/aspose.imaging.fileformats.jpeg2000/jpeg2000image/) class. | +| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_36) | Crop image with shifts. | +| [crop(rectangle)](#crop_rectangle_37) | Cropping the image. | +| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_38) | Performs dithering on the current image. | +| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_39) | Performs dithering on the current image. | +| [filter(rectangle, options)](#filter_rectangle_options_40) | Filters the specified rectangle. | +| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_41) | Gets an image 32-bit ARGB pixel. | +| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_42) | Gets the default 32-bit ARGB pixels array. | +| [get_default_options(args)](#get_default_options_args_43) | Gets the default options. | +| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_44) | Gets the default pixels array using partial pixel loader. | +| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_45) | Gets the default raw data array using partial pixel loader. | +| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_46) | Gets the default raw data array. | +| [get_file_format(file_path)](#get_file_format_file_path_47) | Gets the file format. | +| [get_file_format(stream)](#get_file_format_stream_48) | Gets the file format. | +| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_49) | Gets the file format. | +| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_50) | Gets rectangle which fits the current image. | +| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_51) | Gets rectangle which fits the current image. | +| [get_modify_date(use_default)](#get_modify_date_use_default_52) | Gets the date and time the resource image was last modified. | +| [get_original_options()](#get_original_options__53) | Retrieve the image options based on the original file settings. This method is
beneficial for maintaining the bit-depth and other parameters of the original
image, ensuring consistency and preserving the integrity of the image data.
Accessing these options facilitates seamless handling and processing of the image
while retaining its original characteristics.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | +| [get_pixel(x, y)](#get_pixel_x_y_54) | Gets an image pixel. | +| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_55) | Gets a proportional height. | +| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_56) | Gets a proportional width. | +| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_57) | Converts to aps. | +| [get_skew_angle()](#get_skew_angle__58) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | | grayscale() | Transformation of an image to its grayscale representation | -| [load(file_path)](#load_file_path_55) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(file_path, load_options)](#load_file_path_load_options_56) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(stream)](#load_stream_57) | Loads a new image from the specified stream. | -| [load(stream, load_options)](#load_stream_load_options_58) | Loads a new image from the specified stream. | -| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_59) | Loads 32-bit ARGB pixels. | -| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_60) | Loads 64-bit ARGB pixels. | -| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_61) | Loads pixels in CMYK format. | -| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_62) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_63) | Loads 32-bit ARGB pixels partially (by blocks). | -| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_64) | Loads 64-bit ARGB pixels partially by packs. | -| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_65) | Loads pixels partially by packs. | -| [load_pixels(rectangle)](#load_pixels_rectangle_66) | Loads pixels. | -| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_67) | Loads raw data. | -| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_68) | Loads raw data. | -| [load_stream(stream)](#load_stream_stream_69) | Loads a new image from the specified stream. | -| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_70) | Loads a new image from the specified stream. | -| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_71) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path)](#load_file_path_59) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path, load_options)](#load_file_path_load_options_60) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(stream)](#load_stream_61) | Loads a new image from the specified stream. | +| [load(stream, load_options)](#load_stream_load_options_62) | Loads a new image from the specified stream. | +| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_63) | Loads 32-bit ARGB pixels. | +| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_64) | Loads 64-bit ARGB pixels. | +| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_65) | Loads pixels in CMYK format. | +| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_66) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_67) | Loads 32-bit ARGB pixels partially (by blocks). | +| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_68) | Loads 64-bit ARGB pixels partially by packs. | +| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_69) | Loads pixels partially by packs. | +| [load_pixels(rectangle)](#load_pixels_rectangle_70) | Loads pixels. | +| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_71) | Loads raw data. | +| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_72) | Loads raw data. | +| [load_stream(stream)](#load_stream_stream_73) | Loads a new image from the specified stream. | +| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_74) | Loads a new image from the specified stream. | +| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_75) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | | normalize_angle() | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | -| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_72) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | -| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_73) | Reads the whole scan line by the specified scan line index. | -| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_74) | Reads the whole scan line by the specified scan line index. | +| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_76) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | +| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_77) | Reads the whole scan line by the specified scan line index. | +| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_78) | Reads the whole scan line by the specified scan line index. | | remove_metadata() | Removes this image instance metadata by setting this [IHasXmpData.xmp_data](/imaging/python-net/aspose.imaging.xmp/ihasxmpdata/) value to **None**. | -| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_75) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_76) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_77) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_78) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_79) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [resize(new_width, new_height)](#resize_new_width_new_height_80) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_81) | Resizes the image. | -| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_82) | Resizes the image. | -| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_83) | Resizes the image. | -| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_84) | Resizes the image. | -| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_85) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_86) | Resizes the height proportionally. | -| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_87) | Resizes the height proportionally. | -| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_88) | Resizes the height proportionally. | -| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_89) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_90) | Resizes the width proportionally. | -| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_91) | Resizes the width proportionally. | -| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_92) | Resizes the width proportionally. | -| [rotate(angle)](#rotate_angle_93) | Rotate image around the center. | -| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_94) | Rotate image around the center. | -| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_95) | Rotates, flips, or rotates and flips the image. | +| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_79) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_80) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_81) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_82) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_83) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [resize(new_width, new_height)](#resize_new_width_new_height_84) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_85) | Resizes the image. | +| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_86) | Resizes the image. | +| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_87) | Resizes the image. | +| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_88) | Resizes the image. | +| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_89) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_90) | Resizes the height proportionally. | +| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_91) | Resizes the height proportionally. | +| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_92) | Resizes the height proportionally. | +| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_93) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_94) | Resizes the width proportionally. | +| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_95) | Resizes the width proportionally. | +| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_96) | Resizes the width proportionally. | +| [rotate(angle)](#rotate_angle_97) | Rotate image around the center. | +| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_98) | Rotate image around the center. | +| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_99) | Rotates, flips, or rotates and flips the image. | | save() | Saves the image data to the underlying stream. | -| [save(file_path)](#save_file_path_96) | Saves the image to the specified file location. | -| [save(file_path, options)](#save_file_path_options_97) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_98) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, over_write)](#save_file_path_over_write_99) | Saves the object's data to the specified file location. | -| [save(stream)](#save_stream_100) | Saves the object's data to the specified stream | -| [save(stream, options_base)](#save_stream_options_base_101) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_102) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_103) | Saves the 32-bit ARGB pixels. | -| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_104) | Saves the pixels. | -| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_105) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_106) | Saves pixels (format specific method). | -| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_107) | Saves the raw data. | -| [save_to_stream(stream)](#save_to_stream_stream_108) | Saves the object's data to the specified stream. | -| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_109) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_110) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_with_options(file_path, options)](#save_with_options_file_path_options_111) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_112) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_113) | Sets an image 32-bit ARGB pixel for the specified position. | -| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_114) | Sets the image palette. | -| [set_pixel(x, y, color)](#set_pixel_x_y_color_115) | Sets an image pixel for the specified position. | -| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_116) | Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_117) | Writes the whole scan line to the specified scan line index. | -| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_118) | Writes the whole scan line to the specified scan line index. | +| [save(file_path)](#save_file_path_100) | Saves the image to the specified file location. | +| [save(file_path, options)](#save_file_path_options_101) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_102) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, over_write)](#save_file_path_over_write_103) | Saves the object's data to the specified file location. | +| [save(stream)](#save_stream_104) | Saves the object's data to the specified stream | +| [save(stream, options_base)](#save_stream_options_base_105) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_106) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_107) | Saves the 32-bit ARGB pixels. | +| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_108) | Saves the pixels. | +| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_109) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_110) | Saves pixels (format specific method). | +| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_111) | Saves the raw data. | +| [save_to_stream(stream)](#save_to_stream_stream_112) | Saves the object's data to the specified stream. | +| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_113) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_114) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_with_options(file_path, options)](#save_with_options_file_path_options_115) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_116) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_117) | Sets an image 32-bit ARGB pixel for the specified position. | +| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_118) | Sets the image palette. | +| [set_pixel(x, y, color)](#set_pixel_x_y_color_119) | Sets an image pixel for the specified position. | +| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_120) | Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | +| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_121) | Writes the whole scan line to the specified scan line index. | +| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_122) | Writes the whole scan line to the specified scan line index. | ### Constructor: Jpeg2000Image(image) {#Jpeg2000Image_image_1} @@ -684,7 +688,7 @@ Determines whether image can be saved to the specified file format represented b create(files) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -706,7 +710,7 @@ Creates the specified files. create(files, throw_exception_on_load_error) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -836,7 +840,52 @@ Initializes a new instance of the [Jpeg2000Image](/imaging/python-net/aspose.ima | [Jpeg2000Image](/imaging/python-net/aspose.imaging.fileformats.jpeg2000/jpeg2000image) | | -### Method: create_from_image(image) [static] {#create_from_image_image_25} +### Method: create_from_files(files) [static] {#create_from_files_files_25} + + +``` + create_from_files(files) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_files(files, throw_exception_on_load_error) [static] {#create_from_files_files_throw_exception_on_load_error_26} + + +``` + create_from_files(files, throw_exception_on_load_error) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | +| throw_exception_on_load_error | bool | if set to true throw exception on load error. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_image(image) [static] {#create_from_image_image_27} ``` @@ -858,7 +907,7 @@ Initializes a new instance of the [Jpeg2000Image](/imaging/python-net/aspose.ima | [Jpeg2000Image](/imaging/python-net/aspose.imaging.fileformats.jpeg2000/jpeg2000image) | | -### Method: create_from_image_with_bpp(raster_image, bits_per_pixel) [static] {#create_from_image_with_bpp_raster_image_bits_per_pixel_26} +### Method: create_from_image_with_bpp(raster_image, bits_per_pixel) [static] {#create_from_image_with_bpp_raster_image_bits_per_pixel_28} ``` @@ -881,7 +930,52 @@ Initializes a new instance of the [Jpeg2000Image](/imaging/python-net/aspose.ima | [Jpeg2000Image](/imaging/python-net/aspose.imaging.fileformats.jpeg2000/jpeg2000image) | | -### Method: create_from_stream(stream) [static] {#create_from_stream_stream_27} +### Method: create_from_images(images) [static] {#create_from_images_images_29} + + +``` + create_from_images(images) +``` + +Creates a new image using the specified images as pages + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_images(images, dispose_images) [static] {#create_from_images_images_dispose_images_30} + + +``` + create_from_images(images, dispose_images) +``` + +Creates a new image the specified images as pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | +| dispose_images | bool | if set to true [dispose images]. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_stream(stream) [static] {#create_from_stream_stream_31} ``` @@ -903,7 +997,7 @@ Initializes a new instance of the [Jpeg2000Image](/imaging/python-net/aspose.ima | [Jpeg2000Image](/imaging/python-net/aspose.imaging.fileformats.jpeg2000/jpeg2000image) | | -### Method: create_from_stream_with_bpp(stream, bits_per_pixel) [static] {#create_from_stream_with_bpp_stream_bits_per_pixel_28} +### Method: create_from_stream_with_bpp(stream, bits_per_pixel) [static] {#create_from_stream_with_bpp_stream_bits_per_pixel_32} ``` @@ -926,7 +1020,7 @@ Initializes a new instance of the [Jpeg2000Image](/imaging/python-net/aspose.ima | [Jpeg2000Image](/imaging/python-net/aspose.imaging.fileformats.jpeg2000/jpeg2000image) | | -### Method: create_with_width_height(width, height) [static] {#create_with_width_height_width_height_29} +### Method: create_with_width_height(width, height) [static] {#create_with_width_height_width_height_33} ``` @@ -949,7 +1043,7 @@ Initializes a new instance of the [Jpeg2000Image](/imaging/python-net/aspose.ima | [Jpeg2000Image](/imaging/python-net/aspose.imaging.fileformats.jpeg2000/jpeg2000image) | | -### Method: create_with_width_height_bitscount(width, height, bits_count) [static] {#create_with_width_height_bitscount_width_height_bits_count_30} +### Method: create_with_width_height_bitscount(width, height, bits_count) [static] {#create_with_width_height_bitscount_width_height_bits_count_34} ``` @@ -973,7 +1067,7 @@ Initializes a new instance of the [Jpeg2000Image](/imaging/python-net/aspose.ima | [Jpeg2000Image](/imaging/python-net/aspose.imaging.fileformats.jpeg2000/jpeg2000image) | | -### Method: create_with_width_height_options(width, height, options) [static] {#create_with_width_height_options_width_height_options_31} +### Method: create_with_width_height_options(width, height, options) [static] {#create_with_width_height_options_width_height_options_35} ``` @@ -997,7 +1091,7 @@ Initializes a new instance of the [Jpeg2000Image](/imaging/python-net/aspose.ima | [Jpeg2000Image](/imaging/python-net/aspose.imaging.fileformats.jpeg2000/jpeg2000image) | | -### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_32} +### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_36} ``` @@ -1015,7 +1109,7 @@ Crop image with shifts. | top_shift | int | The top shift. | | bottom_shift | int | The bottom shift. | -### Method: crop(rectangle) {#crop_rectangle_33} +### Method: crop(rectangle) {#crop_rectangle_37} ``` @@ -1030,7 +1124,7 @@ Cropping the image. | :- | :- | :- | | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | -### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_34} +### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_38} ``` @@ -1046,7 +1140,7 @@ Performs dithering on the current image. | dithering_method | [DitheringMethod](/imaging/python-net/aspose.imaging/ditheringmethod) | The dithering method. | | bits_count | int | The final bits count for dithering. | -### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_35} +### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_39} ``` @@ -1063,7 +1157,7 @@ Performs dithering on the current image. | bits_count | int | The final bits count for dithering. | | custom_palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The custom palette for dithering. | -### Method: filter(rectangle, options) {#filter_rectangle_options_36} +### Method: filter(rectangle, options) {#filter_rectangle_options_40} ``` @@ -1079,7 +1173,7 @@ Filters the specified rectangle. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | | options | [FilterOptionsBase](/imaging/python-net/aspose.imaging.imagefilters.filteroptions/filteroptionsbase/) | The options. | -### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_37} +### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_41} ``` @@ -1102,7 +1196,7 @@ Gets an image 32-bit ARGB pixel. | int | The 32-bit ARGB pixel for the specified location. | -### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_38} +### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_42} ``` @@ -1124,7 +1218,7 @@ Gets the default 32-bit ARGB pixels array. | int | The default pixels array. | -### Method: get_default_options(args) {#get_default_options_args_39} +### Method: get_default_options(args) {#get_default_options_args_43} ``` @@ -1146,7 +1240,7 @@ Gets the default options. | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Default options | -### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_40} +### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_44} ``` @@ -1162,7 +1256,7 @@ Gets the default pixels array using partial pixel loader. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to get pixels for. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_41} +### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_45} ``` @@ -1179,7 +1273,7 @@ Gets the default raw data array using partial pixel loader. | partial_raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The partial raw data loader. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings. | -### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_42} +### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_46} ``` @@ -1202,7 +1296,7 @@ Gets the default raw data array. | byte | The default raw data array. | -### Method: get_file_format(file_path) [static] {#get_file_format_file_path_43} +### Method: get_file_format(file_path) [static] {#get_file_format_file_path_47} ``` @@ -1224,7 +1318,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format(stream) [static] {#get_file_format_stream_44} +### Method: get_file_format(stream) [static] {#get_file_format_stream_48} ``` @@ -1246,7 +1340,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_45} +### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_49} ``` @@ -1268,7 +1362,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_46} +### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_50} ``` @@ -1293,7 +1387,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_47} +### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_51} ``` @@ -1317,7 +1411,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_modify_date(use_default) {#get_modify_date_use_default_48} +### Method: get_modify_date(use_default) {#get_modify_date_use_default_52} ``` @@ -1339,7 +1433,7 @@ Gets the date and time the resource image was last modified. | datetime | The date and time the resource image was last modified. | -### Method: get_original_options() {#get_original_options__49} +### Method: get_original_options() {#get_original_options__53} ``` @@ -1355,7 +1449,7 @@ Retrieve the image options based on the original file settings. This method is < | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options based on the original file settings. | -### Method: get_pixel(x, y) {#get_pixel_x_y_50} +### Method: get_pixel(x, y) {#get_pixel_x_y_54} ``` @@ -1378,7 +1472,7 @@ Gets an image pixel. | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified location. | -### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_51} +### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_55} ``` @@ -1402,7 +1496,7 @@ Gets a proportional height. | int | The proportional height. | -### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_52} +### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_56} ``` @@ -1426,7 +1520,7 @@ Gets a proportional width. | int | The proportional width. | -### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_53} +### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_57} ``` @@ -1450,7 +1544,7 @@ Converts to aps. | _io.BufferedRandom | The serialized stream | -### Method: get_skew_angle() {#get_skew_angle__54} +### Method: get_skew_angle() {#get_skew_angle__58} ``` @@ -1466,7 +1560,7 @@ Gets the skew angle.
This method is applicable to scanned text d | float | The skew angle, in degrees. | -### Method: load(file_path) [static] {#load_file_path_55} +### Method: load(file_path) [static] {#load_file_path_59} ``` @@ -1488,7 +1582,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(file_path, load_options) [static] {#load_file_path_load_options_56} +### Method: load(file_path, load_options) [static] {#load_file_path_load_options_60} ``` @@ -1511,7 +1605,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream) [static] {#load_stream_57} +### Method: load(stream) [static] {#load_stream_61} ``` @@ -1533,7 +1627,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream, load_options) [static] {#load_stream_load_options_58} +### Method: load(stream, load_options) [static] {#load_stream_load_options_62} ``` @@ -1556,7 +1650,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_59} +### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_63} ``` @@ -1578,7 +1672,7 @@ Loads 32-bit ARGB pixels. | int | The loaded 32-bit ARGB pixels array. | -### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_60} +### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_64} ``` @@ -1600,7 +1694,7 @@ Loads 64-bit ARGB pixels. | long | The loaded 64-bit ARGB pixels array. | -### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_61} +### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_65} ``` @@ -1622,7 +1716,7 @@ Loads pixels in CMYK format. | int | The loaded CMYK pixels presentes as 32-bit inateger values. | -### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_62} +### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_66} ``` @@ -1644,7 +1738,7 @@ Loads pixels in CMYK format.
This method is deprecated. Please u | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The loaded CMYK pixels array. | -### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_63} +### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_67} ``` @@ -1660,7 +1754,7 @@ Loads 32-bit ARGB pixels partially (by blocks). | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to load pixels from. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_64} +### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_68} ``` @@ -1676,7 +1770,7 @@ Loads 64-bit ARGB pixels partially by packs. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | partial_pixel_loader | [IPartialArgb64PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb64pixelloader) | The 64-bit ARGB pixel loader. | -### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_65} +### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_69} ``` @@ -1692,7 +1786,7 @@ Loads pixels partially by packs. | desired_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | pixel_loader | [IPartialPixelLoader](/imaging/python-net/aspose.imaging/ipartialpixelloader) | The pixel loader. | -### Method: load_pixels(rectangle) {#load_pixels_rectangle_66} +### Method: load_pixels(rectangle) {#load_pixels_rectangle_70} ``` @@ -1714,7 +1808,7 @@ Loads pixels. | [Color[]](/imaging/python-net/aspose.imaging/color) | The loaded pixels array. | -### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_67} +### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_71} ``` @@ -1732,7 +1826,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_68} +### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_72} ``` @@ -1749,7 +1843,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_stream(stream) [static] {#load_stream_stream_69} +### Method: load_stream(stream) [static] {#load_stream_stream_73} ``` @@ -1771,7 +1865,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_70} +### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_74} ``` @@ -1794,7 +1888,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_71} +### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_75} ``` @@ -1817,7 +1911,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_72} +### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_76} ``` @@ -1833,7 +1927,7 @@ Normalizes the angle.
This method is applicable to scanned text | resize_proportionally | bool | if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_73} +### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_77} ``` @@ -1855,7 +1949,7 @@ Reads the whole scan line by the specified scan line index. | int | The scan line 32-bit ARGB color values array. | -### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_74} +### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_78} ``` @@ -1877,7 +1971,7 @@ Reads the whole scan line by the specified scan line index. | [Color[]](/imaging/python-net/aspose.imaging/color) | The scan line pixel color values array. | -### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_75} +### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_79} ``` @@ -1894,7 +1988,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_76} +### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_80} ``` @@ -1911,7 +2005,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | New color to replace old color with. | -### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_77} +### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_81} ``` @@ -1928,7 +2022,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_78} +### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_82} ``` @@ -1943,7 +2037,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | New color to replace non transparent colors with. | -### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_79} +### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_83} ``` @@ -1958,7 +2052,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color_argb | int | New color ARGB value to replace non transparent colors with. | -### Method: resize(new_width, new_height) {#resize_new_width_new_height_80} +### Method: resize(new_width, new_height) {#resize_new_width_new_height_84} ``` @@ -1974,7 +2068,7 @@ Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/ | new_width | int | The new width. | | new_height | int | The new height. | -### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_81} +### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_85} ``` @@ -1991,7 +2085,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_82} +### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_86} ``` @@ -2008,7 +2102,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_83} +### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_87} ``` @@ -2025,7 +2119,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_84} +### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_88} ``` @@ -2042,7 +2136,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_85} +### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_89} ``` @@ -2057,7 +2151,7 @@ Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RES | :- | :- | :- | | new_height | int | The new height. | -### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_86} +### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_90} ``` @@ -2073,7 +2167,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_87} +### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_91} ``` @@ -2089,7 +2183,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_88} +### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_92} ``` @@ -2105,7 +2199,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_89} +### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_93} ``` @@ -2120,7 +2214,7 @@ Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESA | :- | :- | :- | | new_width | int | The new width. | -### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_90} +### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_94} ``` @@ -2136,7 +2230,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_91} +### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_95} ``` @@ -2152,7 +2246,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_92} +### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_96} ``` @@ -2168,7 +2262,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: rotate(angle) {#rotate_angle_93} +### Method: rotate(angle) {#rotate_angle_97} ``` @@ -2183,7 +2277,7 @@ Rotate image around the center. | :- | :- | :- | | angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | -### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_94} +### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_98} ``` @@ -2200,7 +2294,7 @@ Rotate image around the center. | resize_proportionally | bool | if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_95} +### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_99} ``` @@ -2215,7 +2309,7 @@ Rotates, flips, or rotates and flips the image. | :- | :- | :- | | rotate_flip_type | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | The rotate flip type. | -### Method: save(file_path) {#save_file_path_96} +### Method: save(file_path) {#save_file_path_100} ``` @@ -2230,7 +2324,7 @@ Saves the image to the specified file location. | :- | :- | :- | | file_path | string | The file path to save the image to. | -### Method: save(file_path, options) {#save_file_path_options_97} +### Method: save(file_path, options) {#save_file_path_options_101} ``` @@ -2246,7 +2340,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_98} +### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_102} ``` @@ -2263,7 +2357,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: save(file_path, over_write) {#save_file_path_over_write_99} +### Method: save(file_path, over_write) {#save_file_path_over_write_103} ``` @@ -2279,7 +2373,7 @@ Saves the object's data to the specified file location. | file_path | string | The file path to save the object's data to. | | over_write | bool | if set to true over write the file contents, otherwise append will occur. | -### Method: save(stream) {#save_stream_100} +### Method: save(stream) {#save_stream_104} ``` @@ -2294,7 +2388,7 @@ Saves the object's data to the specified stream | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to | -### Method: save(stream, options_base) {#save_stream_options_base_101} +### Method: save(stream, options_base) {#save_stream_options_base_105} ``` @@ -2310,7 +2404,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_102} +### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_106} ``` @@ -2327,7 +2421,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_103} +### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_107} ``` @@ -2343,7 +2437,7 @@ Saves the 32-bit ARGB pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The 32-bit ARGB pixels array. | -### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_104} +### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_108} ``` @@ -2359,7 +2453,7 @@ Saves the pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The CMYK pixels presented as the 32-bit integer values. | -### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_105} +### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_109} ``` @@ -2375,7 +2469,7 @@ Saves the pixels.
This method is deprecated. Please use more eff | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The CMYK pixels array. | -### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_106} +### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_110} ``` @@ -2391,7 +2485,7 @@ Saves pixels (format specific method). | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | [Color[]](/imaging/python-net/aspose.imaging/color) | The 32-bit ARGB pixels array. | -### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_107} +### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_111} ``` @@ -2409,7 +2503,7 @@ Saves the raw data. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The raw data rectangle. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings the data is in. | -### Method: save_to_stream(stream) {#save_to_stream_stream_108} +### Method: save_to_stream(stream) {#save_to_stream_stream_112} ``` @@ -2424,7 +2518,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_109} +### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_113} ``` @@ -2440,7 +2534,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_110} +### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_114} ``` @@ -2457,7 +2551,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_111} +### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_115} ``` @@ -2473,7 +2567,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_112} +### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_116} ``` @@ -2490,7 +2584,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_113} +### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_117} ``` @@ -2507,7 +2601,7 @@ Sets an image 32-bit ARGB pixel for the specified position. | y | int | The pixel y location. | | argb_32_color | int | The 32-bit ARGB pixel for the specified position. | -### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_114} +### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_118} ``` @@ -2523,7 +2617,7 @@ Sets the image palette. | palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The palette to set. | | update_colors | bool | if set to true colors will be updated according to the new palette; otherwise color indexes remain unchanged. Note that unchanged indexes may crash the image on loading if some indexes have no corresponding palette entries. | -### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_115} +### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_119} ``` @@ -2540,7 +2634,7 @@ Sets an image pixel for the specified position. | y | int | The pixel y location. | | color | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified position. | -### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_116} +### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_120} ``` @@ -2556,7 +2650,7 @@ Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/ra | dpi_x | double | The horizontal resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | | dpi_y | double | The vertical resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_117} +### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_121} ``` @@ -2572,7 +2666,7 @@ Writes the whole scan line to the specified scan line index. | scan_line_index | int | Zero based index of the scan line. | | argb_32_pixels | int | The 32-bit ARGB colors array to write. | -### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_118} +### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_122} ``` diff --git a/english/python-net/aspose.imaging.fileformats.opendocument/odgimage/_index.md b/english/python-net/aspose.imaging.fileformats.opendocument/odgimage/_index.md index 15e70699e4..08de8979e5 100644 --- a/english/python-net/aspose.imaging.fileformats.opendocument/odgimage/_index.md +++ b/english/python-net/aspose.imaging.fileformats.opendocument/odgimage/_index.md @@ -32,7 +32,7 @@ url: /python-net/aspose.imaging.fileformats.opendocument/odgimage/ | disposed | bool | r | Gets a value indicating whether this instance is disposed. | | file_format | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | r | Gets a value of file format | | has_background_color | bool | r/w | Gets or sets a value indicating whether image has background color. | -| height | int | r | Returns the height of the image, denoting the vertical dimension in pixels. This
property is crucial for understanding the image's overall size and proportions,
facilitating accurate display and processing of image content. | +| height | int | r | Gets the object height. | | height_f | float | r | Gets the object height, in inches. | | interrupt_monitor | [InterruptMonitor](/imaging/python-net/aspose.imaging.multithreading/interruptmonitor/) | r/w | Gets or sets the interrupt monitor. | | is_cached | bool | r | Obtains a boolean value indicating whether the data of the object is currently
cached, thus eliminating the need for data reading. This property serves as an
optimization indicator, enhancing performance by minimizing redundant data access
operation. | @@ -44,7 +44,7 @@ url: /python-net/aspose.imaging.fileformats.opendocument/odgimage/ | size | [Size](/imaging/python-net/aspose.imaging/size) | r | Gets the object size. | | size_f | [SizeF](/imaging/python-net/aspose.imaging/sizef) | r | Gets the object size, in inches. | | use_palette | bool | r | Gets a value indicating whether the image palette is used. | -| width | int | r | Retrieves the width of the image, indicating the horizontal dimension in pixels. This
property provides essential information about the image's size, enabling precise
rendering, manipulation, and analysis of image data. | +| width | int | r | Gets the object width. | | width_f | float | r | Gets the object width, in inches. | ## **Methods** | **Name** | **Description** | @@ -58,61 +58,68 @@ url: /python-net/aspose.imaging.fileformats.opendocument/odgimage/ | [can_load_stream_with_options(stream, load_options)](#can_load_stream_with_options_stream_load_options_6) | Determines whether image can be loaded from the specified stream and optionally using the specified _loadOptions_. | | [can_load_with_options(file_path, load_options)](#can_load_with_options_file_path_load_options_7) | Determines whether image can be loaded from the specified file path and optionally using the specified open options. | | [can_save(options)](#can_save_options_8) | Determines whether image can be saved to the specified file format represented by the passed save options. | -| [create(files)](#create_files_9) | Creates the specified files. | -| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_10) | Creates the specified files. | +| [create(files)](#create_files_9) | Creates the multipage image containing the specified files. | +| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_10) | Creates the multipage image containing the specified files. | | [create(image_options, width, height)](#create_image_options_width_height_11) | Creates a new image using the specified create options. | | [create(images)](#create_images_12) | Creates a new image using the specified images as pages | | [create(images, dispose_images)](#create_images_dispose_images_13) | Creates a new image the specified images as pages. | | [create(multipage_create_options)](#create_multipage_create_options_14) | Creates the specified multipage create options. | -| [get_default_options(args)](#get_default_options_args_15) | This property provides access to the default options associated with an image.
By retrieving these options, developers can quickly ascertain the default
settings applied to the image, facilitating the creation of new instances or the
modification of existing ones based on these presets. | -| [get_embedded_images()](#get_embedded_images__16) | Gets the embedded images. | -| [get_file_format(file_path)](#get_file_format_file_path_17) | Gets the file format. | -| [get_file_format(stream)](#get_file_format_stream_18) | Gets the file format. | -| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_19) | Gets the file format. | -| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_20) | Gets rectangle which fits the current image. | -| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_21) | Gets rectangle which fits the current image. | -| [get_original_options()](#get_original_options__22) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | -| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_23) | Gets a proportional height. | -| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_24) | Gets a proportional width. | -| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_25) | Converts to aps. | -| [load(file_path)](#load_file_path_26) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(file_path, load_options)](#load_file_path_load_options_27) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(stream)](#load_stream_28) | Loads a new image from the specified stream. | -| [load(stream, load_options)](#load_stream_load_options_29) | Loads a new image from the specified stream. | -| [load_stream(stream)](#load_stream_stream_30) | Loads a new image from the specified stream. | -| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_31) | Loads a new image from the specified stream. | -| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_32) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [create_from_files(files)](#create_from_files_files_15) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_files(files, throw_exception_on_load_error)](#create_from_files_files_throw_exception_on_load_error_16) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_images(images)](#create_from_images_images_17) | Creates a new image using the specified images as pages | +| [create_from_images(images, dispose_images)](#create_from_images_images_dispose_images_18) | Creates a new image the specified images as pages. | +| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_19) | Crop image with shifts. | +| [crop(rectangle)](#crop_rectangle_20) | Crops the specified rectangle. | +| [get_default_options(args)](#get_default_options_args_21) | This property provides access to the default options associated with an image.
By retrieving these options, developers can quickly ascertain the default
settings applied to the image, facilitating the creation of new instances or the
modification of existing ones based on these presets. | +| [get_embedded_images()](#get_embedded_images__22) | Gets the embedded images. | +| [get_file_format(file_path)](#get_file_format_file_path_23) | Gets the file format. | +| [get_file_format(stream)](#get_file_format_stream_24) | Gets the file format. | +| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_25) | Gets the file format. | +| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_26) | Gets rectangle which fits the current image. | +| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_27) | Gets rectangle which fits the current image. | +| [get_original_options()](#get_original_options__28) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | +| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_29) | Gets a proportional height. | +| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_30) | Gets a proportional width. | +| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_31) | Converts to aps. | +| [load(file_path)](#load_file_path_32) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path, load_options)](#load_file_path_load_options_33) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(stream)](#load_stream_34) | Loads a new image from the specified stream. | +| [load(stream, load_options)](#load_stream_load_options_35) | Loads a new image from the specified stream. | +| [load_stream(stream)](#load_stream_stream_36) | Loads a new image from the specified stream. | +| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_37) | Loads a new image from the specified stream. | +| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_38) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | | remove_background() | Removes the background. | -| [remove_background(settings)](#remove_background_settings_33) | Removes the background. | +| [remove_background(settings)](#remove_background_settings_39) | Removes the background. | | remove_metadata() | Removes metadata. | -| [resize(new_width, new_height)](#resize_new_width_new_height_34) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_35) | Resizes the image. | -| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_36) | Resizes the image. | -| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_37) | Resizes the image. | -| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_38) | Resizes the image. | -| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_39) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_40) | Resizes the height proportionally. | -| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_41) | Resizes the height proportionally. | -| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_42) | Resizes the height proportionally. | -| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_43) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_44) | Resizes the width proportionally. | -| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_45) | Resizes the width proportionally. | -| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_46) | Resizes the width proportionally. | -| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_47) | This versatile method apply various transformations to images, including
rotation and flipping, to achieve desired orientations and visual effects. With
intuitive parameters, you can specify the degree of rotation and the type of
flipping (horizontal, vertical, or both) to precisely manipulate the image as needed. | +| [resize(new_width, new_height)](#resize_new_width_new_height_40) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_41) | Resizes the image. | +| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_42) | Resizes the image. | +| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_43) | Resizes the image. | +| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_44) | Resizes the image. | +| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_45) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_46) | Resizes the height proportionally. | +| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_47) | Resizes the height proportionally. | +| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_48) | Resizes the height proportionally. | +| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_49) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_50) | Resizes the width proportionally. | +| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_51) | Resizes the width proportionally. | +| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_52) | Resizes the width proportionally. | +| [rotate(angle)](#rotate_angle_53) | Rotate image around the center. | +| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_54) | Rotates, flips, or rotates and flips the image. | | save() | Saves the image data to the underlying stream. | -| [save(file_path)](#save_file_path_48) | Saves the image to the specified file location. | -| [save(file_path, options)](#save_file_path_options_49) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_50) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, over_write)](#save_file_path_over_write_51) | Saves the object's data to the specified file location. | -| [save(stream)](#save_stream_52) | Saves the data. | -| [save(stream, options_base)](#save_stream_options_base_53) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_54) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream(stream)](#save_to_stream_stream_55) | Saves the object's data to the specified stream. | -| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_56) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_57) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_with_options(file_path, options)](#save_with_options_file_path_options_58) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_59) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_60) | Sets the image palette. | +| [save(file_path)](#save_file_path_55) | Saves the image to the specified file location. | +| [save(file_path, options)](#save_file_path_options_56) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_57) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, over_write)](#save_file_path_over_write_58) | Saves the object's data to the specified file location. | +| [save(stream)](#save_stream_59) | Saves the data. | +| [save(stream, options_base)](#save_stream_options_base_60) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_61) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream(stream)](#save_to_stream_stream_62) | Saves the object's data to the specified stream. | +| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_63) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_64) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_with_options(file_path, options)](#save_with_options_file_path_options_65) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_66) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_67) | Sets the image palette. | ### Constructor: OdgImage(stream_container) {#OdgImage_stream_container_1} @@ -333,7 +340,7 @@ Determines whether image can be saved to the specified file format represented b create(files) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -355,7 +362,7 @@ Creates the specified files. create(files, throw_exception_on_load_error) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -462,7 +469,130 @@ Creates the specified multipage create options. | [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | -### Method: get_default_options(args) {#get_default_options_args_15} +### Method: create_from_files(files) [static] {#create_from_files_files_15} + + +``` + create_from_files(files) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_files(files, throw_exception_on_load_error) [static] {#create_from_files_files_throw_exception_on_load_error_16} + + +``` + create_from_files(files, throw_exception_on_load_error) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | +| throw_exception_on_load_error | bool | if set to true throw exception on load error. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_images(images) [static] {#create_from_images_images_17} + + +``` + create_from_images(images) +``` + +Creates a new image using the specified images as pages + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_images(images, dispose_images) [static] {#create_from_images_images_dispose_images_18} + + +``` + create_from_images(images, dispose_images) +``` + +Creates a new image the specified images as pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | +| dispose_images | bool | if set to true [dispose images]. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_19} + + +``` + crop(left_shift, right_shift, top_shift, bottom_shift) +``` + +Crop image with shifts. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| left_shift | int | The left shift. | +| right_shift | int | The right shift. | +| top_shift | int | The top shift. | +| bottom_shift | int | The bottom shift. | + +### Method: crop(rectangle) {#crop_rectangle_20} + + +``` + crop(rectangle) +``` + +Crops the specified rectangle. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | + +### Method: get_default_options(args) {#get_default_options_args_21} ``` @@ -484,7 +614,7 @@ This property provides access to the default options associated with an image. < | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Default options | -### Method: get_embedded_images() {#get_embedded_images__16} +### Method: get_embedded_images() {#get_embedded_images__22} ``` @@ -500,7 +630,7 @@ Gets the embedded images. | [EmbeddedImage[]](/imaging/python-net/aspose.imaging/embeddedimage) | Array of images | -### Method: get_file_format(file_path) [static] {#get_file_format_file_path_17} +### Method: get_file_format(file_path) [static] {#get_file_format_file_path_23} ``` @@ -522,7 +652,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format(stream) [static] {#get_file_format_stream_18} +### Method: get_file_format(stream) [static] {#get_file_format_stream_24} ``` @@ -544,7 +674,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_19} +### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_25} ``` @@ -566,7 +696,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_20} +### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_26} ``` @@ -591,7 +721,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_21} +### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_27} ``` @@ -615,7 +745,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_original_options() {#get_original_options__22} +### Method: get_original_options() {#get_original_options__28} ``` @@ -631,7 +761,7 @@ Gets the options based on the original file settings.
This can b | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options based on the original file settings. | -### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_23} +### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_29} ``` @@ -655,7 +785,7 @@ Gets a proportional height. | int | The proportional height. | -### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_24} +### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_30} ``` @@ -679,7 +809,7 @@ Gets a proportional width. | int | The proportional width. | -### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_25} +### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_31} ``` @@ -703,7 +833,7 @@ Converts to aps. | _io.BufferedRandom | The serialized stream | -### Method: load(file_path) [static] {#load_file_path_26} +### Method: load(file_path) [static] {#load_file_path_32} ``` @@ -725,7 +855,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(file_path, load_options) [static] {#load_file_path_load_options_27} +### Method: load(file_path, load_options) [static] {#load_file_path_load_options_33} ``` @@ -748,7 +878,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream) [static] {#load_stream_28} +### Method: load(stream) [static] {#load_stream_34} ``` @@ -770,7 +900,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream, load_options) [static] {#load_stream_load_options_29} +### Method: load(stream, load_options) [static] {#load_stream_load_options_35} ``` @@ -793,7 +923,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream(stream) [static] {#load_stream_stream_30} +### Method: load_stream(stream) [static] {#load_stream_stream_36} ``` @@ -815,7 +945,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_31} +### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_37} ``` @@ -838,7 +968,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_32} +### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_38} ``` @@ -861,7 +991,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: remove_background(settings) {#remove_background_settings_33} +### Method: remove_background(settings) {#remove_background_settings_39} ``` @@ -876,7 +1006,7 @@ Removes the background. | :- | :- | :- | | settings | [RemoveBackgroundSettings](/imaging/python-net/aspose.imaging/removebackgroundsettings) | The settings. | -### Method: resize(new_width, new_height) {#resize_new_width_new_height_34} +### Method: resize(new_width, new_height) {#resize_new_width_new_height_40} ``` @@ -892,7 +1022,7 @@ Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/ | new_width | int | The new width. | | new_height | int | The new height. | -### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_35} +### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_41} ``` @@ -909,7 +1039,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_36} +### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_42} ``` @@ -926,7 +1056,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_37} +### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_43} ``` @@ -943,7 +1073,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_38} +### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_44} ``` @@ -960,7 +1090,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_39} +### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_45} ``` @@ -975,7 +1105,7 @@ Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RES | :- | :- | :- | | new_height | int | The new height. | -### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_40} +### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_46} ``` @@ -991,7 +1121,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_41} +### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_47} ``` @@ -1007,7 +1137,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_42} +### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_48} ``` @@ -1023,7 +1153,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_43} +### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_49} ``` @@ -1038,7 +1168,7 @@ Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESA | :- | :- | :- | | new_width | int | The new width. | -### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_44} +### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_50} ``` @@ -1054,7 +1184,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_45} +### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_51} ``` @@ -1070,7 +1200,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_46} +### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_52} ``` @@ -1086,14 +1216,29 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_47} +### Method: rotate(angle) {#rotate_angle_53} + + +``` + rotate(angle) +``` + +Rotate image around the center. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | + +### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_54} ``` rotate_flip(rotate_flip_type) ``` -This versatile method apply various transformations to images, including
rotation and flipping, to achieve desired orientations and visual effects. With
intuitive parameters, you can specify the degree of rotation and the type of
flipping (horizontal, vertical, or both) to precisely manipulate the image as needed. +Rotates, flips, or rotates and flips the image. **Parameters:** @@ -1101,7 +1246,7 @@ This versatile method apply various transformations to images, including
| :- | :- | :- | | rotate_flip_type | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | Type of the rotate flip. | -### Method: save(file_path) {#save_file_path_48} +### Method: save(file_path) {#save_file_path_55} ``` @@ -1116,7 +1261,7 @@ Saves the image to the specified file location. | :- | :- | :- | | file_path | string | The file path to save the image to. | -### Method: save(file_path, options) {#save_file_path_options_49} +### Method: save(file_path, options) {#save_file_path_options_56} ``` @@ -1132,7 +1277,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_50} +### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_57} ``` @@ -1149,7 +1294,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: save(file_path, over_write) {#save_file_path_over_write_51} +### Method: save(file_path, over_write) {#save_file_path_over_write_58} ``` @@ -1165,7 +1310,7 @@ Saves the object's data to the specified file location. | file_path | string | The file path to save the object's data to. | | over_write | bool | if set to true over write the file contents, otherwise append will occur. | -### Method: save(stream) {#save_stream_52} +### Method: save(stream) {#save_stream_59} ``` @@ -1180,7 +1325,7 @@ Saves the data. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save data to. | -### Method: save(stream, options_base) {#save_stream_options_base_53} +### Method: save(stream, options_base) {#save_stream_options_base_60} ``` @@ -1196,7 +1341,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_54} +### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_61} ``` @@ -1213,7 +1358,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_to_stream(stream) {#save_to_stream_stream_55} +### Method: save_to_stream(stream) {#save_to_stream_stream_62} ``` @@ -1228,7 +1373,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_56} +### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_63} ``` @@ -1244,7 +1389,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_57} +### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_64} ``` @@ -1261,7 +1406,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_58} +### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_65} ``` @@ -1277,7 +1422,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_59} +### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_66} ``` @@ -1294,7 +1439,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_60} +### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_67} ``` diff --git a/english/python-net/aspose.imaging.fileformats.opendocument/odimage/_index.md b/english/python-net/aspose.imaging.fileformats.opendocument/odimage/_index.md index 4671a7be1c..6619065d2c 100644 --- a/english/python-net/aspose.imaging.fileformats.opendocument/odimage/_index.md +++ b/english/python-net/aspose.imaging.fileformats.opendocument/odimage/_index.md @@ -27,7 +27,7 @@ url: /python-net/aspose.imaging.fileformats.opendocument/odimage/ | disposed | bool | r | Gets a value indicating whether this instance is disposed. | | file_format | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | r | Gets a value of file format | | has_background_color | bool | r/w | Gets or sets a value indicating whether image has background color. | -| height | int | r | Returns the height of the image, denoting the vertical dimension in pixels. This
property is crucial for understanding the image's overall size and proportions,
facilitating accurate display and processing of image content. | +| height | int | r | Gets the image height. | | height_f | float | r | Gets the object height, in inches. | | interrupt_monitor | [InterruptMonitor](/imaging/python-net/aspose.imaging.multithreading/interruptmonitor/) | r/w | Gets or sets the interrupt monitor. | | is_cached | bool | r | Obtains a boolean value indicating whether the data of the object is currently
cached, thus eliminating the need for data reading. This property serves as an
optimization indicator, enhancing performance by minimizing redundant data access
operation. | @@ -39,7 +39,7 @@ url: /python-net/aspose.imaging.fileformats.opendocument/odimage/ | size | [Size](/imaging/python-net/aspose.imaging/size) | r | Gets the object size. | | size_f | [SizeF](/imaging/python-net/aspose.imaging/sizef) | r | Gets the object size, in inches. | | use_palette | bool | r | Gets a value indicating whether the image palette is used. | -| width | int | r | Retrieves the width of the image, indicating the horizontal dimension in pixels. This
property provides essential information about the image's size, enabling precise
rendering, manipulation, and analysis of image data. | +| width | int | r | Gets the image width. | | width_f | float | r | Gets the object width, in inches. | ## **Methods** | **Name** | **Description** | @@ -53,61 +53,68 @@ url: /python-net/aspose.imaging.fileformats.opendocument/odimage/ | [can_load_stream_with_options(stream, load_options)](#can_load_stream_with_options_stream_load_options_6) | Determines whether image can be loaded from the specified stream and optionally using the specified _loadOptions_. | | [can_load_with_options(file_path, load_options)](#can_load_with_options_file_path_load_options_7) | Determines whether image can be loaded from the specified file path and optionally using the specified open options. | | [can_save(options)](#can_save_options_8) | Determines whether image can be saved to the specified file format represented by the passed save options. | -| [create(files)](#create_files_9) | Creates the specified files. | -| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_10) | Creates the specified files. | +| [create(files)](#create_files_9) | Creates the multipage image containing the specified files. | +| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_10) | Creates the multipage image containing the specified files. | | [create(image_options, width, height)](#create_image_options_width_height_11) | Creates a new image using the specified create options. | | [create(images)](#create_images_12) | Creates a new image using the specified images as pages | | [create(images, dispose_images)](#create_images_dispose_images_13) | Creates a new image the specified images as pages. | | [create(multipage_create_options)](#create_multipage_create_options_14) | Creates the specified multipage create options. | -| [get_default_options(args)](#get_default_options_args_15) | Gets the default options. | -| [get_embedded_images()](#get_embedded_images__16) | Gets the embedded images. | -| [get_file_format(file_path)](#get_file_format_file_path_17) | Gets the file format. | -| [get_file_format(stream)](#get_file_format_stream_18) | Gets the file format. | -| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_19) | Gets the file format. | -| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_20) | Gets rectangle which fits the current image. | -| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_21) | Gets rectangle which fits the current image. | -| [get_original_options()](#get_original_options__22) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | -| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_23) | Gets a proportional height. | -| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_24) | Gets a proportional width. | -| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_25) | Converts to aps. | -| [load(file_path)](#load_file_path_26) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(file_path, load_options)](#load_file_path_load_options_27) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(stream)](#load_stream_28) | Loads a new image from the specified stream. | -| [load(stream, load_options)](#load_stream_load_options_29) | Loads a new image from the specified stream. | -| [load_stream(stream)](#load_stream_stream_30) | Loads a new image from the specified stream. | -| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_31) | Loads a new image from the specified stream. | -| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_32) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [create_from_files(files)](#create_from_files_files_15) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_files(files, throw_exception_on_load_error)](#create_from_files_files_throw_exception_on_load_error_16) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_images(images)](#create_from_images_images_17) | Creates a new image using the specified images as pages | +| [create_from_images(images, dispose_images)](#create_from_images_images_dispose_images_18) | Creates a new image the specified images as pages. | +| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_19) | Crop image with shifts. | +| [crop(rectangle)](#crop_rectangle_20) | Crops the specified rectangle. | +| [get_default_options(args)](#get_default_options_args_21) | Gets the default options. | +| [get_embedded_images()](#get_embedded_images__22) | Gets the embedded images. | +| [get_file_format(file_path)](#get_file_format_file_path_23) | Gets the file format. | +| [get_file_format(stream)](#get_file_format_stream_24) | Gets the file format. | +| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_25) | Gets the file format. | +| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_26) | Gets rectangle which fits the current image. | +| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_27) | Gets rectangle which fits the current image. | +| [get_original_options()](#get_original_options__28) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | +| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_29) | Gets a proportional height. | +| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_30) | Gets a proportional width. | +| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_31) | Converts to aps. | +| [load(file_path)](#load_file_path_32) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path, load_options)](#load_file_path_load_options_33) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(stream)](#load_stream_34) | Loads a new image from the specified stream. | +| [load(stream, load_options)](#load_stream_load_options_35) | Loads a new image from the specified stream. | +| [load_stream(stream)](#load_stream_stream_36) | Loads a new image from the specified stream. | +| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_37) | Loads a new image from the specified stream. | +| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_38) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | | remove_background() | Removes the background. | -| [remove_background(settings)](#remove_background_settings_33) | Removes the background. | +| [remove_background(settings)](#remove_background_settings_39) | Removes the background. | | remove_metadata() | Removes metadata. | -| [resize(new_width, new_height)](#resize_new_width_new_height_34) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_35) | Resizes the image. | -| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_36) | Resizes the image. | -| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_37) | Resizes the image. | -| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_38) | Resizes the image. | -| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_39) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_40) | Resizes the height proportionally. | -| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_41) | Resizes the height proportionally. | -| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_42) | Resizes the height proportionally. | -| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_43) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_44) | Resizes the width proportionally. | -| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_45) | Resizes the width proportionally. | -| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_46) | Resizes the width proportionally. | -| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_47) | This method provides functionality to rotate, flip, or perform both operations
simultaneously on the image. It allows users to manipulate the orientation of the
image according to their specific requirements. With support for rotation angles
and flip directions, it offers flexibility in transforming the image to desired
orientations or orientations. | +| [resize(new_width, new_height)](#resize_new_width_new_height_40) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_41) | Resizes the image. | +| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_42) | Resizes the image. | +| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_43) | Resizes the image. | +| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_44) | Resizes the image. | +| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_45) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_46) | Resizes the height proportionally. | +| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_47) | Resizes the height proportionally. | +| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_48) | Resizes the height proportionally. | +| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_49) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_50) | Resizes the width proportionally. | +| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_51) | Resizes the width proportionally. | +| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_52) | Resizes the width proportionally. | +| [rotate(angle)](#rotate_angle_53) | Rotate image around the center. | +| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_54) | Rotates, flips, or rotates and flips the image. | | save() | Saves the image data to the underlying stream. | -| [save(file_path)](#save_file_path_48) | Saves the image to the specified file location. | -| [save(file_path, options)](#save_file_path_options_49) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_50) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, over_write)](#save_file_path_over_write_51) | Saves the object's data to the specified file location. | -| [save(stream)](#save_stream_52) | Saves the data. | -| [save(stream, options_base)](#save_stream_options_base_53) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_54) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream(stream)](#save_to_stream_stream_55) | Saves the object's data to the specified stream. | -| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_56) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_57) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_with_options(file_path, options)](#save_with_options_file_path_options_58) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_59) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_60) | Sets the image palette. | +| [save(file_path)](#save_file_path_55) | Saves the image to the specified file location. | +| [save(file_path, options)](#save_file_path_options_56) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_57) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, over_write)](#save_file_path_over_write_58) | Saves the object's data to the specified file location. | +| [save(stream)](#save_stream_59) | Saves the data. | +| [save(stream, options_base)](#save_stream_options_base_60) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_61) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream(stream)](#save_to_stream_stream_62) | Saves the object's data to the specified stream. | +| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_63) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_64) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_with_options(file_path, options)](#save_with_options_file_path_options_65) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_66) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_67) | Sets the image palette. | ### Method: can_load(file_path) [static] {#can_load_file_path_1} @@ -297,7 +304,7 @@ Determines whether image can be saved to the specified file format represented b create(files) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -319,7 +326,7 @@ Creates the specified files. create(files, throw_exception_on_load_error) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -426,7 +433,130 @@ Creates the specified multipage create options. | [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | -### Method: get_default_options(args) {#get_default_options_args_15} +### Method: create_from_files(files) [static] {#create_from_files_files_15} + + +``` + create_from_files(files) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_files(files, throw_exception_on_load_error) [static] {#create_from_files_files_throw_exception_on_load_error_16} + + +``` + create_from_files(files, throw_exception_on_load_error) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | +| throw_exception_on_load_error | bool | if set to true throw exception on load error. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_images(images) [static] {#create_from_images_images_17} + + +``` + create_from_images(images) +``` + +Creates a new image using the specified images as pages + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_images(images, dispose_images) [static] {#create_from_images_images_dispose_images_18} + + +``` + create_from_images(images, dispose_images) +``` + +Creates a new image the specified images as pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | +| dispose_images | bool | if set to true [dispose images]. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_19} + + +``` + crop(left_shift, right_shift, top_shift, bottom_shift) +``` + +Crop image with shifts. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| left_shift | int | The left shift. | +| right_shift | int | The right shift. | +| top_shift | int | The top shift. | +| bottom_shift | int | The bottom shift. | + +### Method: crop(rectangle) {#crop_rectangle_20} + + +``` + crop(rectangle) +``` + +Crops the specified rectangle. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | + +### Method: get_default_options(args) {#get_default_options_args_21} ``` @@ -448,7 +578,7 @@ Gets the default options. | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Default options | -### Method: get_embedded_images() {#get_embedded_images__16} +### Method: get_embedded_images() {#get_embedded_images__22} ``` @@ -464,7 +594,7 @@ Gets the embedded images. | [EmbeddedImage[]](/imaging/python-net/aspose.imaging/embeddedimage) | Array of images | -### Method: get_file_format(file_path) [static] {#get_file_format_file_path_17} +### Method: get_file_format(file_path) [static] {#get_file_format_file_path_23} ``` @@ -486,7 +616,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format(stream) [static] {#get_file_format_stream_18} +### Method: get_file_format(stream) [static] {#get_file_format_stream_24} ``` @@ -508,7 +638,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_19} +### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_25} ``` @@ -530,7 +660,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_20} +### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_26} ``` @@ -555,7 +685,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_21} +### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_27} ``` @@ -579,7 +709,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_original_options() {#get_original_options__22} +### Method: get_original_options() {#get_original_options__28} ``` @@ -595,7 +725,7 @@ Gets the options based on the original file settings.
This can b | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options based on the original file settings. | -### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_23} +### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_29} ``` @@ -619,7 +749,7 @@ Gets a proportional height. | int | The proportional height. | -### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_24} +### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_30} ``` @@ -643,7 +773,7 @@ Gets a proportional width. | int | The proportional width. | -### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_25} +### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_31} ``` @@ -667,7 +797,7 @@ Converts to aps. | _io.BufferedRandom | The serialized stream | -### Method: load(file_path) [static] {#load_file_path_26} +### Method: load(file_path) [static] {#load_file_path_32} ``` @@ -689,7 +819,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(file_path, load_options) [static] {#load_file_path_load_options_27} +### Method: load(file_path, load_options) [static] {#load_file_path_load_options_33} ``` @@ -712,7 +842,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream) [static] {#load_stream_28} +### Method: load(stream) [static] {#load_stream_34} ``` @@ -734,7 +864,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream, load_options) [static] {#load_stream_load_options_29} +### Method: load(stream, load_options) [static] {#load_stream_load_options_35} ``` @@ -757,7 +887,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream(stream) [static] {#load_stream_stream_30} +### Method: load_stream(stream) [static] {#load_stream_stream_36} ``` @@ -779,7 +909,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_31} +### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_37} ``` @@ -802,7 +932,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_32} +### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_38} ``` @@ -825,7 +955,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: remove_background(settings) {#remove_background_settings_33} +### Method: remove_background(settings) {#remove_background_settings_39} ``` @@ -840,7 +970,7 @@ Removes the background. | :- | :- | :- | | settings | [RemoveBackgroundSettings](/imaging/python-net/aspose.imaging/removebackgroundsettings) | The settings. | -### Method: resize(new_width, new_height) {#resize_new_width_new_height_34} +### Method: resize(new_width, new_height) {#resize_new_width_new_height_40} ``` @@ -856,7 +986,7 @@ Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/ | new_width | int | The new width. | | new_height | int | The new height. | -### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_35} +### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_41} ``` @@ -873,7 +1003,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_36} +### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_42} ``` @@ -890,7 +1020,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_37} +### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_43} ``` @@ -907,7 +1037,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_38} +### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_44} ``` @@ -924,7 +1054,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_39} +### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_45} ``` @@ -939,7 +1069,7 @@ Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RES | :- | :- | :- | | new_height | int | The new height. | -### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_40} +### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_46} ``` @@ -955,7 +1085,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_41} +### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_47} ``` @@ -971,7 +1101,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_42} +### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_48} ``` @@ -987,7 +1117,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_43} +### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_49} ``` @@ -1002,7 +1132,7 @@ Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESA | :- | :- | :- | | new_width | int | The new width. | -### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_44} +### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_50} ``` @@ -1018,7 +1148,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_45} +### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_51} ``` @@ -1034,7 +1164,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_46} +### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_52} ``` @@ -1050,14 +1180,29 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_47} +### Method: rotate(angle) {#rotate_angle_53} + + +``` + rotate(angle) +``` + +Rotate image around the center. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | + +### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_54} ``` rotate_flip(rotate_flip_type) ``` -This method provides functionality to rotate, flip, or perform both operations
simultaneously on the image. It allows users to manipulate the orientation of the
image according to their specific requirements. With support for rotation angles
and flip directions, it offers flexibility in transforming the image to desired
orientations or orientations. +Rotates, flips, or rotates and flips the image. **Parameters:** @@ -1065,7 +1210,7 @@ This method provides functionality to rotate, flip, or perform both operations < | :- | :- | :- | | rotate_flip_type | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | Type of the rotate flip. | -### Method: save(file_path) {#save_file_path_48} +### Method: save(file_path) {#save_file_path_55} ``` @@ -1080,7 +1225,7 @@ Saves the image to the specified file location. | :- | :- | :- | | file_path | string | The file path to save the image to. | -### Method: save(file_path, options) {#save_file_path_options_49} +### Method: save(file_path, options) {#save_file_path_options_56} ``` @@ -1096,7 +1241,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_50} +### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_57} ``` @@ -1113,7 +1258,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: save(file_path, over_write) {#save_file_path_over_write_51} +### Method: save(file_path, over_write) {#save_file_path_over_write_58} ``` @@ -1129,7 +1274,7 @@ Saves the object's data to the specified file location. | file_path | string | The file path to save the object's data to. | | over_write | bool | if set to true over write the file contents, otherwise append will occur. | -### Method: save(stream) {#save_stream_52} +### Method: save(stream) {#save_stream_59} ``` @@ -1144,7 +1289,7 @@ Saves the data. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save data to. | -### Method: save(stream, options_base) {#save_stream_options_base_53} +### Method: save(stream, options_base) {#save_stream_options_base_60} ``` @@ -1160,7 +1305,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_54} +### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_61} ``` @@ -1177,7 +1322,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_to_stream(stream) {#save_to_stream_stream_55} +### Method: save_to_stream(stream) {#save_to_stream_stream_62} ``` @@ -1192,7 +1337,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_56} +### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_63} ``` @@ -1208,7 +1353,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_57} +### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_64} ``` @@ -1225,7 +1370,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_58} +### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_65} ``` @@ -1241,7 +1386,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_59} +### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_66} ``` @@ -1258,7 +1403,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_60} +### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_67} ``` diff --git a/english/python-net/aspose.imaging.fileformats.opendocument/otgimage/_index.md b/english/python-net/aspose.imaging.fileformats.opendocument/otgimage/_index.md index 1747d4c966..eacc332df8 100644 --- a/english/python-net/aspose.imaging.fileformats.opendocument/otgimage/_index.md +++ b/english/python-net/aspose.imaging.fileformats.opendocument/otgimage/_index.md @@ -32,7 +32,7 @@ url: /python-net/aspose.imaging.fileformats.opendocument/otgimage/ | disposed | bool | r | Gets a value indicating whether this instance is disposed. | | file_format | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | r | This property provides access to the OTG file format, offering crucial insights
into the type of data encapsulated within the image file. It serves as a pivotal
reference point for software developers, enabling them to effectively handle OTG
files within their applications. By utilizing this property, you can
ascertain the specific format of the image file, facilitating seamless
integration and manipulation of OTG files in their software systems. | | has_background_color | bool | r/w | Gets or sets a value indicating whether image has background color. | -| height | int | r | Returns the height of the image, denoting the vertical dimension in pixels. This
property is crucial for understanding the image's overall size and proportions,
facilitating accurate display and processing of image content. | +| height | int | r | Gets the object height. | | height_f | float | r | Gets the object height, in inches. | | interrupt_monitor | [InterruptMonitor](/imaging/python-net/aspose.imaging.multithreading/interruptmonitor/) | r/w | Gets or sets the interrupt monitor. | | is_cached | bool | r | Obtains a boolean value indicating whether the data of the object is currently
cached, thus eliminating the need for data reading. This property serves as an
optimization indicator, enhancing performance by minimizing redundant data access
operation. | @@ -44,7 +44,7 @@ url: /python-net/aspose.imaging.fileformats.opendocument/otgimage/ | size | [Size](/imaging/python-net/aspose.imaging/size) | r | Gets the object size. | | size_f | [SizeF](/imaging/python-net/aspose.imaging/sizef) | r | Gets the object size, in inches. | | use_palette | bool | r | Gets a value indicating whether the image palette is used. | -| width | int | r | Retrieves the width of the image, indicating the horizontal dimension in pixels. This
property provides essential information about the image's size, enabling precise
rendering, manipulation, and analysis of image data. | +| width | int | r | Gets the object width. | | width_f | float | r | Gets the object width, in inches. | ## **Methods** | **Name** | **Description** | @@ -58,61 +58,68 @@ url: /python-net/aspose.imaging.fileformats.opendocument/otgimage/ | [can_load_stream_with_options(stream, load_options)](#can_load_stream_with_options_stream_load_options_6) | Determines whether image can be loaded from the specified stream and optionally using the specified _loadOptions_. | | [can_load_with_options(file_path, load_options)](#can_load_with_options_file_path_load_options_7) | Determines whether image can be loaded from the specified file path and optionally using the specified open options. | | [can_save(options)](#can_save_options_8) | Determines whether image can be saved to the specified file format represented by the passed save options. | -| [create(files)](#create_files_9) | Creates the specified files. | -| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_10) | Creates the specified files. | +| [create(files)](#create_files_9) | Creates the multipage image containing the specified files. | +| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_10) | Creates the multipage image containing the specified files. | | [create(image_options, width, height)](#create_image_options_width_height_11) | Creates a new image using the specified create options. | | [create(images)](#create_images_12) | Creates a new image using the specified images as pages | | [create(images, dispose_images)](#create_images_dispose_images_13) | Creates a new image the specified images as pages. | | [create(multipage_create_options)](#create_multipage_create_options_14) | Creates the specified multipage create options. | -| [get_default_options(args)](#get_default_options_args_15) | Retrieves the default options configured for the image, providing a convenient
way to access and modify the default settings. This property ensures consistency
in operations by offering predefined settings that align with common use cases,
simplifying the development process. | -| [get_embedded_images()](#get_embedded_images__16) | Gets the embedded images. | -| [get_file_format(file_path)](#get_file_format_file_path_17) | Gets the file format. | -| [get_file_format(stream)](#get_file_format_stream_18) | Gets the file format. | -| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_19) | Gets the file format. | -| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_20) | Gets rectangle which fits the current image. | -| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_21) | Gets rectangle which fits the current image. | -| [get_original_options()](#get_original_options__22) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | -| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_23) | Gets a proportional height. | -| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_24) | Gets a proportional width. | -| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_25) | Converts to aps. | -| [load(file_path)](#load_file_path_26) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(file_path, load_options)](#load_file_path_load_options_27) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(stream)](#load_stream_28) | Loads a new image from the specified stream. | -| [load(stream, load_options)](#load_stream_load_options_29) | Loads a new image from the specified stream. | -| [load_stream(stream)](#load_stream_stream_30) | Loads a new image from the specified stream. | -| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_31) | Loads a new image from the specified stream. | -| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_32) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [create_from_files(files)](#create_from_files_files_15) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_files(files, throw_exception_on_load_error)](#create_from_files_files_throw_exception_on_load_error_16) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_images(images)](#create_from_images_images_17) | Creates a new image using the specified images as pages | +| [create_from_images(images, dispose_images)](#create_from_images_images_dispose_images_18) | Creates a new image the specified images as pages. | +| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_19) | Crop image with shifts. | +| [crop(rectangle)](#crop_rectangle_20) | Crops the specified rectangle. | +| [get_default_options(args)](#get_default_options_args_21) | Retrieves the default options configured for the image, providing a convenient
way to access and modify the default settings. This property ensures consistency
in operations by offering predefined settings that align with common use cases,
simplifying the development process. | +| [get_embedded_images()](#get_embedded_images__22) | Gets the embedded images. | +| [get_file_format(file_path)](#get_file_format_file_path_23) | Gets the file format. | +| [get_file_format(stream)](#get_file_format_stream_24) | Gets the file format. | +| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_25) | Gets the file format. | +| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_26) | Gets rectangle which fits the current image. | +| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_27) | Gets rectangle which fits the current image. | +| [get_original_options()](#get_original_options__28) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | +| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_29) | Gets a proportional height. | +| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_30) | Gets a proportional width. | +| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_31) | Converts to aps. | +| [load(file_path)](#load_file_path_32) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path, load_options)](#load_file_path_load_options_33) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(stream)](#load_stream_34) | Loads a new image from the specified stream. | +| [load(stream, load_options)](#load_stream_load_options_35) | Loads a new image from the specified stream. | +| [load_stream(stream)](#load_stream_stream_36) | Loads a new image from the specified stream. | +| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_37) | Loads a new image from the specified stream. | +| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_38) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | | remove_background() | Removes the background. | -| [remove_background(settings)](#remove_background_settings_33) | Removes the background. | +| [remove_background(settings)](#remove_background_settings_39) | Removes the background. | | remove_metadata() | Removes metadata. | -| [resize(new_width, new_height)](#resize_new_width_new_height_34) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_35) | Resizes the image. | -| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_36) | Resizes the image. | -| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_37) | Resizes the image. | -| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_38) | Resizes the image. | -| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_39) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_40) | Resizes the height proportionally. | -| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_41) | Resizes the height proportionally. | -| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_42) | Resizes the height proportionally. | -| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_43) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_44) | Resizes the width proportionally. | -| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_45) | Resizes the width proportionally. | -| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_46) | Resizes the width proportionally. | -| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_47) | This method provides functionality to rotate, flip, or perform both operations
simultaneously on the image. It allows users to manipulate the orientation of the
image according to their specific requirements. With support for rotation angles
and flip directions, it offers flexibility in transforming the image to desired
orientations or orientations. | +| [resize(new_width, new_height)](#resize_new_width_new_height_40) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_41) | Resizes the image. | +| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_42) | Resizes the image. | +| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_43) | Resizes the image. | +| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_44) | Resizes the image. | +| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_45) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_46) | Resizes the height proportionally. | +| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_47) | Resizes the height proportionally. | +| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_48) | Resizes the height proportionally. | +| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_49) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_50) | Resizes the width proportionally. | +| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_51) | Resizes the width proportionally. | +| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_52) | Resizes the width proportionally. | +| [rotate(angle)](#rotate_angle_53) | Rotate image around the center. | +| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_54) | Rotates, flips, or rotates and flips the image. | | save() | Saves the image data to the underlying stream. | -| [save(file_path)](#save_file_path_48) | Saves the image to the specified file location. | -| [save(file_path, options)](#save_file_path_options_49) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_50) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, over_write)](#save_file_path_over_write_51) | Saves the object's data to the specified file location. | -| [save(stream)](#save_stream_52) | Saves the data. | -| [save(stream, options_base)](#save_stream_options_base_53) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_54) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream(stream)](#save_to_stream_stream_55) | Saves the object's data to the specified stream. | -| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_56) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_57) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_with_options(file_path, options)](#save_with_options_file_path_options_58) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_59) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_60) | Sets the image palette. | +| [save(file_path)](#save_file_path_55) | Saves the image to the specified file location. | +| [save(file_path, options)](#save_file_path_options_56) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_57) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, over_write)](#save_file_path_over_write_58) | Saves the object's data to the specified file location. | +| [save(stream)](#save_stream_59) | Saves the data. | +| [save(stream, options_base)](#save_stream_options_base_60) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_61) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream(stream)](#save_to_stream_stream_62) | Saves the object's data to the specified stream. | +| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_63) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_64) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_with_options(file_path, options)](#save_with_options_file_path_options_65) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_66) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_67) | Sets the image palette. | ### Constructor: OtgImage(stream_container) {#OtgImage_stream_container_1} @@ -333,7 +340,7 @@ Determines whether image can be saved to the specified file format represented b create(files) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -355,7 +362,7 @@ Creates the specified files. create(files, throw_exception_on_load_error) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -462,7 +469,130 @@ Creates the specified multipage create options. | [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | -### Method: get_default_options(args) {#get_default_options_args_15} +### Method: create_from_files(files) [static] {#create_from_files_files_15} + + +``` + create_from_files(files) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_files(files, throw_exception_on_load_error) [static] {#create_from_files_files_throw_exception_on_load_error_16} + + +``` + create_from_files(files, throw_exception_on_load_error) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | +| throw_exception_on_load_error | bool | if set to true throw exception on load error. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_images(images) [static] {#create_from_images_images_17} + + +``` + create_from_images(images) +``` + +Creates a new image using the specified images as pages + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_images(images, dispose_images) [static] {#create_from_images_images_dispose_images_18} + + +``` + create_from_images(images, dispose_images) +``` + +Creates a new image the specified images as pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | +| dispose_images | bool | if set to true [dispose images]. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_19} + + +``` + crop(left_shift, right_shift, top_shift, bottom_shift) +``` + +Crop image with shifts. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| left_shift | int | The left shift. | +| right_shift | int | The right shift. | +| top_shift | int | The top shift. | +| bottom_shift | int | The bottom shift. | + +### Method: crop(rectangle) {#crop_rectangle_20} + + +``` + crop(rectangle) +``` + +Crops the specified rectangle. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | + +### Method: get_default_options(args) {#get_default_options_args_21} ``` @@ -484,7 +614,7 @@ Retrieves the default options configured for the image, providing a convenient < | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Default options | -### Method: get_embedded_images() {#get_embedded_images__16} +### Method: get_embedded_images() {#get_embedded_images__22} ``` @@ -500,7 +630,7 @@ Gets the embedded images. | [EmbeddedImage[]](/imaging/python-net/aspose.imaging/embeddedimage) | Array of images | -### Method: get_file_format(file_path) [static] {#get_file_format_file_path_17} +### Method: get_file_format(file_path) [static] {#get_file_format_file_path_23} ``` @@ -522,7 +652,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format(stream) [static] {#get_file_format_stream_18} +### Method: get_file_format(stream) [static] {#get_file_format_stream_24} ``` @@ -544,7 +674,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_19} +### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_25} ``` @@ -566,7 +696,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_20} +### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_26} ``` @@ -591,7 +721,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_21} +### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_27} ``` @@ -615,7 +745,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_original_options() {#get_original_options__22} +### Method: get_original_options() {#get_original_options__28} ``` @@ -631,7 +761,7 @@ Gets the options based on the original file settings.
This can b | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options based on the original file settings. | -### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_23} +### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_29} ``` @@ -655,7 +785,7 @@ Gets a proportional height. | int | The proportional height. | -### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_24} +### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_30} ``` @@ -679,7 +809,7 @@ Gets a proportional width. | int | The proportional width. | -### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_25} +### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_31} ``` @@ -703,7 +833,7 @@ Converts to aps. | _io.BufferedRandom | The serialized stream | -### Method: load(file_path) [static] {#load_file_path_26} +### Method: load(file_path) [static] {#load_file_path_32} ``` @@ -725,7 +855,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(file_path, load_options) [static] {#load_file_path_load_options_27} +### Method: load(file_path, load_options) [static] {#load_file_path_load_options_33} ``` @@ -748,7 +878,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream) [static] {#load_stream_28} +### Method: load(stream) [static] {#load_stream_34} ``` @@ -770,7 +900,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream, load_options) [static] {#load_stream_load_options_29} +### Method: load(stream, load_options) [static] {#load_stream_load_options_35} ``` @@ -793,7 +923,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream(stream) [static] {#load_stream_stream_30} +### Method: load_stream(stream) [static] {#load_stream_stream_36} ``` @@ -815,7 +945,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_31} +### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_37} ``` @@ -838,7 +968,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_32} +### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_38} ``` @@ -861,7 +991,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: remove_background(settings) {#remove_background_settings_33} +### Method: remove_background(settings) {#remove_background_settings_39} ``` @@ -876,7 +1006,7 @@ Removes the background. | :- | :- | :- | | settings | [RemoveBackgroundSettings](/imaging/python-net/aspose.imaging/removebackgroundsettings) | The settings. | -### Method: resize(new_width, new_height) {#resize_new_width_new_height_34} +### Method: resize(new_width, new_height) {#resize_new_width_new_height_40} ``` @@ -892,7 +1022,7 @@ Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/ | new_width | int | The new width. | | new_height | int | The new height. | -### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_35} +### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_41} ``` @@ -909,7 +1039,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_36} +### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_42} ``` @@ -926,7 +1056,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_37} +### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_43} ``` @@ -943,7 +1073,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_38} +### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_44} ``` @@ -960,7 +1090,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_39} +### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_45} ``` @@ -975,7 +1105,7 @@ Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RES | :- | :- | :- | | new_height | int | The new height. | -### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_40} +### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_46} ``` @@ -991,7 +1121,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_41} +### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_47} ``` @@ -1007,7 +1137,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_42} +### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_48} ``` @@ -1023,7 +1153,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_43} +### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_49} ``` @@ -1038,7 +1168,7 @@ Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESA | :- | :- | :- | | new_width | int | The new width. | -### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_44} +### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_50} ``` @@ -1054,7 +1184,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_45} +### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_51} ``` @@ -1070,7 +1200,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_46} +### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_52} ``` @@ -1086,14 +1216,29 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_47} +### Method: rotate(angle) {#rotate_angle_53} + + +``` + rotate(angle) +``` + +Rotate image around the center. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | + +### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_54} ``` rotate_flip(rotate_flip_type) ``` -This method provides functionality to rotate, flip, or perform both operations
simultaneously on the image. It allows users to manipulate the orientation of the
image according to their specific requirements. With support for rotation angles
and flip directions, it offers flexibility in transforming the image to desired
orientations or orientations. +Rotates, flips, or rotates and flips the image. **Parameters:** @@ -1101,7 +1246,7 @@ This method provides functionality to rotate, flip, or perform both operations < | :- | :- | :- | | rotate_flip_type | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | Type of the rotate flip. | -### Method: save(file_path) {#save_file_path_48} +### Method: save(file_path) {#save_file_path_55} ``` @@ -1116,7 +1261,7 @@ Saves the image to the specified file location. | :- | :- | :- | | file_path | string | The file path to save the image to. | -### Method: save(file_path, options) {#save_file_path_options_49} +### Method: save(file_path, options) {#save_file_path_options_56} ``` @@ -1132,7 +1277,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_50} +### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_57} ``` @@ -1149,7 +1294,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: save(file_path, over_write) {#save_file_path_over_write_51} +### Method: save(file_path, over_write) {#save_file_path_over_write_58} ``` @@ -1165,7 +1310,7 @@ Saves the object's data to the specified file location. | file_path | string | The file path to save the object's data to. | | over_write | bool | if set to true over write the file contents, otherwise append will occur. | -### Method: save(stream) {#save_stream_52} +### Method: save(stream) {#save_stream_59} ``` @@ -1180,7 +1325,7 @@ Saves the data. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save data to. | -### Method: save(stream, options_base) {#save_stream_options_base_53} +### Method: save(stream, options_base) {#save_stream_options_base_60} ``` @@ -1196,7 +1341,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_54} +### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_61} ``` @@ -1213,7 +1358,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_to_stream(stream) {#save_to_stream_stream_55} +### Method: save_to_stream(stream) {#save_to_stream_stream_62} ``` @@ -1228,7 +1373,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_56} +### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_63} ``` @@ -1244,7 +1389,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_57} +### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_64} ``` @@ -1261,7 +1406,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_58} +### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_65} ``` @@ -1277,7 +1422,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_59} +### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_66} ``` @@ -1294,7 +1439,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_60} +### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_67} ``` diff --git a/english/python-net/aspose.imaging.fileformats.png/pngimage/_index.md b/english/python-net/aspose.imaging.fileformats.png/pngimage/_index.md index 7c8e66d3ec..ad13e621e9 100644 --- a/english/python-net/aspose.imaging.fileformats.png/pngimage/_index.md +++ b/english/python-net/aspose.imaging.fileformats.png/pngimage/_index.md @@ -85,110 +85,114 @@ url: /python-net/aspose.imaging.fileformats.png/pngimage/ | [can_load_stream_with_options(stream, load_options)](#can_load_stream_with_options_stream_load_options_15) | Determines whether image can be loaded from the specified stream and optionally using the specified _loadOptions_. | | [can_load_with_options(file_path, load_options)](#can_load_with_options_file_path_load_options_16) | Determines whether image can be loaded from the specified file path and optionally using the specified open options. | | [can_save(options)](#can_save_options_17) | Determines whether image can be saved to the specified file format represented by the passed save options. | -| [create(files)](#create_files_18) | Creates the specified files. | -| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_19) | Creates the specified files. | +| [create(files)](#create_files_18) | Creates the multipage image containing the specified files. | +| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_19) | Creates the multipage image containing the specified files. | | [create(image_options, width, height)](#create_image_options_width_height_20) | Creates a new image using the specified create options. | | [create(images)](#create_images_21) | Creates a new image using the specified images as pages | | [create(images, dispose_images)](#create_images_dispose_images_22) | Creates a new image the specified images as pages. | | [create(multipage_create_options)](#create_multipage_create_options_23) | Creates the specified multipage create options. | | [create_from_file_with_color_type(path, color_type)](#create_from_file_with_color_type_path_color_type_24) | Initializes a new instance of the [PngImage](/imaging/python-net/aspose.imaging.fileformats.png/pngimage/) class. | -| [create_from_image(raster_image)](#create_from_image_raster_image_25) | Initializes a new instance of the [PngImage](/imaging/python-net/aspose.imaging.fileformats.png/pngimage/) class. | -| [create_from_image_with_color_type(raster_image, color_type)](#create_from_image_with_color_type_raster_image_color_type_26) | Initializes a new instance of the [PngImage](/imaging/python-net/aspose.imaging.fileformats.png/pngimage/) class. | -| [create_from_stream(stream)](#create_from_stream_stream_27) | Initializes a new instance of the [PngImage](/imaging/python-net/aspose.imaging.fileformats.png/pngimage/) class. | -| [create_with_width_height(width, height)](#create_with_width_height_width_height_28) | Initializes a new instance of the [PngImage](/imaging/python-net/aspose.imaging.fileformats.png/pngimage/) class. | -| [create_with_width_height_color_type(width, height, color_type)](#create_with_width_height_color_type_width_height_color_type_29) | Initializes a new instance of the [PngImage](/imaging/python-net/aspose.imaging.fileformats.png/pngimage/) class. | -| [create_with_width_height_options(png_options, width, height)](#create_with_width_height_options_png_options_width_height_30) | Initializes a new instance of the [PngImage](/imaging/python-net/aspose.imaging.fileformats.png/pngimage/) class. | -| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_31) | Crop image with shifts. | -| [crop(rectangle)](#crop_rectangle_32) | Cropping the image. | -| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_33) | Performs dithering on the current image. | -| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_34) | Performs dithering on the current image. | -| [filter(rectangle, options)](#filter_rectangle_options_35) | Filters the specified rectangle. | -| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_36) | Gets an image 32-bit ARGB pixel. | -| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_37) | Gets the default 32-bit ARGB pixels array. | -| [get_default_options(args)](#get_default_options_args_38) | Gets the default options. | -| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_39) | Gets the default pixels array using partial pixel loader. | -| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_40) | Gets the default raw data array using partial pixel loader. | -| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_41) | Gets the default raw data array. | -| [get_file_format(file_path)](#get_file_format_file_path_42) | Gets the file format. | -| [get_file_format(stream)](#get_file_format_stream_43) | Gets the file format. | -| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_44) | Gets the file format. | -| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_45) | Gets rectangle which fits the current image. | -| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_46) | Gets rectangle which fits the current image. | -| [get_modify_date(use_default)](#get_modify_date_use_default_47) | Retrieves the timestamp indicating the most recent modification of the resource
image. This method provides access to vital metadata, enabling applications to
ascertain when the image was last altered, facilitating version tracking and
content management. | -| [get_original_options()](#get_original_options__48) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | -| [get_pixel(x, y)](#get_pixel_x_y_49) | Gets an image pixel. | -| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_50) | Gets a proportional height. | -| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_51) | Gets a proportional width. | -| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_52) | Converts to aps. | -| [get_skew_angle()](#get_skew_angle__53) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | +| [create_from_files(files)](#create_from_files_files_25) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_files(files, throw_exception_on_load_error)](#create_from_files_files_throw_exception_on_load_error_26) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_image(raster_image)](#create_from_image_raster_image_27) | Initializes a new instance of the [PngImage](/imaging/python-net/aspose.imaging.fileformats.png/pngimage/) class. | +| [create_from_image_with_color_type(raster_image, color_type)](#create_from_image_with_color_type_raster_image_color_type_28) | Initializes a new instance of the [PngImage](/imaging/python-net/aspose.imaging.fileformats.png/pngimage/) class. | +| [create_from_images(images)](#create_from_images_images_29) | Creates a new image using the specified images as pages | +| [create_from_images(images, dispose_images)](#create_from_images_images_dispose_images_30) | Creates a new image the specified images as pages. | +| [create_from_stream(stream)](#create_from_stream_stream_31) | Initializes a new instance of the [PngImage](/imaging/python-net/aspose.imaging.fileformats.png/pngimage/) class. | +| [create_with_width_height(width, height)](#create_with_width_height_width_height_32) | Initializes a new instance of the [PngImage](/imaging/python-net/aspose.imaging.fileformats.png/pngimage/) class. | +| [create_with_width_height_color_type(width, height, color_type)](#create_with_width_height_color_type_width_height_color_type_33) | Initializes a new instance of the [PngImage](/imaging/python-net/aspose.imaging.fileformats.png/pngimage/) class. | +| [create_with_width_height_options(png_options, width, height)](#create_with_width_height_options_png_options_width_height_34) | Initializes a new instance of the [PngImage](/imaging/python-net/aspose.imaging.fileformats.png/pngimage/) class. | +| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_35) | Crop image with shifts. | +| [crop(rectangle)](#crop_rectangle_36) | Cropping the image. | +| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_37) | Performs dithering on the current image. | +| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_38) | Performs dithering on the current image. | +| [filter(rectangle, options)](#filter_rectangle_options_39) | Filters the specified rectangle. | +| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_40) | Gets an image 32-bit ARGB pixel. | +| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_41) | Gets the default 32-bit ARGB pixels array. | +| [get_default_options(args)](#get_default_options_args_42) | Gets the default options. | +| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_43) | Gets the default pixels array using partial pixel loader. | +| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_44) | Gets the default raw data array using partial pixel loader. | +| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_45) | Gets the default raw data array. | +| [get_file_format(file_path)](#get_file_format_file_path_46) | Gets the file format. | +| [get_file_format(stream)](#get_file_format_stream_47) | Gets the file format. | +| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_48) | Gets the file format. | +| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_49) | Gets rectangle which fits the current image. | +| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_50) | Gets rectangle which fits the current image. | +| [get_modify_date(use_default)](#get_modify_date_use_default_51) | Retrieves the timestamp indicating the most recent modification of the resource
image. This method provides access to vital metadata, enabling applications to
ascertain when the image was last altered, facilitating version tracking and
content management. | +| [get_original_options()](#get_original_options__52) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | +| [get_pixel(x, y)](#get_pixel_x_y_53) | Gets an image pixel. | +| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_54) | Gets a proportional height. | +| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_55) | Gets a proportional width. | +| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_56) | Converts to aps. | +| [get_skew_angle()](#get_skew_angle__57) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | | grayscale() | Transformation of an image to its grayscale representation | -| [load(file_path)](#load_file_path_54) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(file_path, load_options)](#load_file_path_load_options_55) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(stream)](#load_stream_56) | Loads a new image from the specified stream. | -| [load(stream, load_options)](#load_stream_load_options_57) | Loads a new image from the specified stream. | -| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_58) | Loads 32-bit ARGB pixels. | -| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_59) | Loads 64-bit ARGB pixels. | -| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_60) | Loads pixels in CMYK format. | -| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_61) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_62) | Loads 32-bit ARGB pixels partially (by blocks). | -| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_63) | Loads 64-bit ARGB pixels partially by packs. | -| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_64) | Loads pixels partially by packs. | -| [load_pixels(rectangle)](#load_pixels_rectangle_65) | Loads pixels. | -| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_66) | Loads raw data. | -| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_67) | Loads raw data. | -| [load_stream(stream)](#load_stream_stream_68) | Loads a new image from the specified stream. | -| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_69) | Loads a new image from the specified stream. | -| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_70) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path)](#load_file_path_58) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path, load_options)](#load_file_path_load_options_59) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(stream)](#load_stream_60) | Loads a new image from the specified stream. | +| [load(stream, load_options)](#load_stream_load_options_61) | Loads a new image from the specified stream. | +| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_62) | Loads 32-bit ARGB pixels. | +| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_63) | Loads 64-bit ARGB pixels. | +| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_64) | Loads pixels in CMYK format. | +| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_65) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_66) | Loads 32-bit ARGB pixels partially (by blocks). | +| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_67) | Loads 64-bit ARGB pixels partially by packs. | +| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_68) | Loads pixels partially by packs. | +| [load_pixels(rectangle)](#load_pixels_rectangle_69) | Loads pixels. | +| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_70) | Loads raw data. | +| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_71) | Loads raw data. | +| [load_stream(stream)](#load_stream_stream_72) | Loads a new image from the specified stream. | +| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_73) | Loads a new image from the specified stream. | +| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_74) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | | normalize_angle() | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | -| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_71) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | -| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_72) | Reads the whole scan line by the specified scan line index. | -| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_73) | Reads the whole scan line by the specified scan line index. | +| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_75) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | +| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_76) | Reads the whole scan line by the specified scan line index. | +| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_77) | Reads the whole scan line by the specified scan line index. | | remove_metadata() | Removes this image instance metadata by setting this [IHasXmpData.xmp_data](/imaging/python-net/aspose.imaging.xmp/ihasxmpdata/) value to **None**. | -| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_74) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_75) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_76) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_77) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_78) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [resize(new_width, new_height)](#resize_new_width_new_height_79) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_80) | Resizes the image. | -| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_81) | Resizes the image. | -| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_82) | Resizes the image. | -| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_83) | Resizes the image. | -| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_84) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_85) | Resizes the height proportionally. | -| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_86) | Resizes the height proportionally. | -| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_87) | Resizes the height proportionally. | -| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_88) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_89) | Resizes the width proportionally. | -| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_90) | Resizes the width proportionally. | -| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_91) | Resizes the width proportionally. | -| [rotate(angle)](#rotate_angle_92) | Rotate image around the center. | -| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_93) | Rotate image around the center. | -| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_94) | Rotates, flips, or rotates and flips the image. | +| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_78) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_79) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_80) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_81) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_82) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [resize(new_width, new_height)](#resize_new_width_new_height_83) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_84) | Resizes the image. | +| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_85) | Resizes the image. | +| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_86) | Resizes the image. | +| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_87) | Resizes the image. | +| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_88) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_89) | Resizes the height proportionally. | +| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_90) | Resizes the height proportionally. | +| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_91) | Resizes the height proportionally. | +| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_92) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_93) | Resizes the width proportionally. | +| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_94) | Resizes the width proportionally. | +| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_95) | Resizes the width proportionally. | +| [rotate(angle)](#rotate_angle_96) | Rotate image around the center. | +| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_97) | Rotate image around the center. | +| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_98) | Rotates, flips, or rotates and flips the image. | | save() | Saves the image data to the underlying stream. | -| [save(file_path)](#save_file_path_95) | Saves the image to the specified file location. | -| [save(file_path, options)](#save_file_path_options_96) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_97) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, over_write)](#save_file_path_over_write_98) | Saves the object's data to the specified file location. | -| [save(stream)](#save_stream_99) | The save data. | -| [save(stream, options_base)](#save_stream_options_base_100) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_101) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_102) | Saves the 32-bit ARGB pixels. | -| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_103) | Saves the pixels. | -| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_104) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_105) | Saves pixels (format specific method). | -| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_106) | Saves the raw data. | -| [save_to_stream(stream)](#save_to_stream_stream_107) | Saves the object's data to the specified stream. | -| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_108) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_109) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_with_options(file_path, options)](#save_with_options_file_path_options_110) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_111) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_112) | Sets an image 32-bit ARGB pixel for the specified position. | -| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_113) | Sets the image palette. | -| [set_pixel(x, y, color)](#set_pixel_x_y_color_114) | Sets an image pixel for the specified position. | -| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_115) | Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_116) | Writes the whole scan line to the specified scan line index. | -| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_117) | Writes the whole scan line to the specified scan line index. | +| [save(file_path)](#save_file_path_99) | Saves the image to the specified file location. | +| [save(file_path, options)](#save_file_path_options_100) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_101) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, over_write)](#save_file_path_over_write_102) | Saves the object's data to the specified file location. | +| [save(stream)](#save_stream_103) | The save data. | +| [save(stream, options_base)](#save_stream_options_base_104) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_105) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_106) | Saves the 32-bit ARGB pixels. | +| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_107) | Saves the pixels. | +| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_108) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_109) | Saves pixels (format specific method). | +| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_110) | Saves the raw data. | +| [save_to_stream(stream)](#save_to_stream_stream_111) | Saves the object's data to the specified stream. | +| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_112) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_113) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_with_options(file_path, options)](#save_with_options_file_path_options_114) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_115) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_116) | Sets an image 32-bit ARGB pixel for the specified position. | +| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_117) | Sets the image palette. | +| [set_pixel(x, y, color)](#set_pixel_x_y_color_118) | Sets an image pixel for the specified position. | +| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_119) | Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | +| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_120) | Writes the whole scan line to the specified scan line index. | +| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_121) | Writes the whole scan line to the specified scan line index. | ### Constructor: PngImage(path) {#PngImage_path_1} @@ -672,7 +676,7 @@ Determines whether image can be saved to the specified file format represented b create(files) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -694,7 +698,7 @@ Creates the specified files. create(files, throw_exception_on_load_error) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -824,7 +828,52 @@ Initializes a new instance of the [PngImage](/imaging/python-net/aspose.imaging. | [PngImage](/imaging/python-net/aspose.imaging.fileformats.png/pngimage) | | -### Method: create_from_image(raster_image) [static] {#create_from_image_raster_image_25} +### Method: create_from_files(files) [static] {#create_from_files_files_25} + + +``` + create_from_files(files) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_files(files, throw_exception_on_load_error) [static] {#create_from_files_files_throw_exception_on_load_error_26} + + +``` + create_from_files(files, throw_exception_on_load_error) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | +| throw_exception_on_load_error | bool | if set to true throw exception on load error. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_image(raster_image) [static] {#create_from_image_raster_image_27} ``` @@ -846,7 +895,7 @@ Initializes a new instance of the [PngImage](/imaging/python-net/aspose.imaging. | [PngImage](/imaging/python-net/aspose.imaging.fileformats.png/pngimage) | | -### Method: create_from_image_with_color_type(raster_image, color_type) [static] {#create_from_image_with_color_type_raster_image_color_type_26} +### Method: create_from_image_with_color_type(raster_image, color_type) [static] {#create_from_image_with_color_type_raster_image_color_type_28} ``` @@ -869,7 +918,52 @@ Initializes a new instance of the [PngImage](/imaging/python-net/aspose.imaging. | [PngImage](/imaging/python-net/aspose.imaging.fileformats.png/pngimage) | | -### Method: create_from_stream(stream) [static] {#create_from_stream_stream_27} +### Method: create_from_images(images) [static] {#create_from_images_images_29} + + +``` + create_from_images(images) +``` + +Creates a new image using the specified images as pages + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_images(images, dispose_images) [static] {#create_from_images_images_dispose_images_30} + + +``` + create_from_images(images, dispose_images) +``` + +Creates a new image the specified images as pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | +| dispose_images | bool | if set to true [dispose images]. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_stream(stream) [static] {#create_from_stream_stream_31} ``` @@ -891,7 +985,7 @@ Initializes a new instance of the [PngImage](/imaging/python-net/aspose.imaging. | [PngImage](/imaging/python-net/aspose.imaging.fileformats.png/pngimage) | | -### Method: create_with_width_height(width, height) [static] {#create_with_width_height_width_height_28} +### Method: create_with_width_height(width, height) [static] {#create_with_width_height_width_height_32} ``` @@ -914,7 +1008,7 @@ Initializes a new instance of the [PngImage](/imaging/python-net/aspose.imaging. | [PngImage](/imaging/python-net/aspose.imaging.fileformats.png/pngimage) | | -### Method: create_with_width_height_color_type(width, height, color_type) [static] {#create_with_width_height_color_type_width_height_color_type_29} +### Method: create_with_width_height_color_type(width, height, color_type) [static] {#create_with_width_height_color_type_width_height_color_type_33} ``` @@ -938,7 +1032,7 @@ Initializes a new instance of the [PngImage](/imaging/python-net/aspose.imaging. | [PngImage](/imaging/python-net/aspose.imaging.fileformats.png/pngimage) | | -### Method: create_with_width_height_options(png_options, width, height) [static] {#create_with_width_height_options_png_options_width_height_30} +### Method: create_with_width_height_options(png_options, width, height) [static] {#create_with_width_height_options_png_options_width_height_34} ``` @@ -962,7 +1056,7 @@ Initializes a new instance of the [PngImage](/imaging/python-net/aspose.imaging. | [PngImage](/imaging/python-net/aspose.imaging.fileformats.png/pngimage) | | -### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_31} +### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_35} ``` @@ -980,7 +1074,7 @@ Crop image with shifts. | top_shift | int | The top shift. | | bottom_shift | int | The bottom shift. | -### Method: crop(rectangle) {#crop_rectangle_32} +### Method: crop(rectangle) {#crop_rectangle_36} ``` @@ -995,7 +1089,7 @@ Cropping the image. | :- | :- | :- | | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | -### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_33} +### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_37} ``` @@ -1011,7 +1105,7 @@ Performs dithering on the current image. | dithering_method | [DitheringMethod](/imaging/python-net/aspose.imaging/ditheringmethod) | The dithering method. | | bits_count | int | The final bits count for dithering. | -### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_34} +### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_38} ``` @@ -1028,7 +1122,7 @@ Performs dithering on the current image. | bits_count | int | The final bits count for dithering. | | custom_palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The custom palette for dithering. | -### Method: filter(rectangle, options) {#filter_rectangle_options_35} +### Method: filter(rectangle, options) {#filter_rectangle_options_39} ``` @@ -1044,7 +1138,7 @@ Filters the specified rectangle. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | | options | [FilterOptionsBase](/imaging/python-net/aspose.imaging.imagefilters.filteroptions/filteroptionsbase/) | The options. | -### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_36} +### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_40} ``` @@ -1067,7 +1161,7 @@ Gets an image 32-bit ARGB pixel. | int | The 32-bit ARGB pixel for the specified location. | -### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_37} +### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_41} ``` @@ -1089,7 +1183,7 @@ Gets the default 32-bit ARGB pixels array. | int | The default pixels array. | -### Method: get_default_options(args) {#get_default_options_args_38} +### Method: get_default_options(args) {#get_default_options_args_42} ``` @@ -1111,7 +1205,7 @@ Gets the default options. | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Default options | -### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_39} +### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_43} ``` @@ -1127,7 +1221,7 @@ Gets the default pixels array using partial pixel loader. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to get pixels for. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_40} +### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_44} ``` @@ -1144,7 +1238,7 @@ Gets the default raw data array using partial pixel loader. | partial_raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The partial raw data loader. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings. | -### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_41} +### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_45} ``` @@ -1167,7 +1261,7 @@ Gets the default raw data array. | byte | The default raw data array. | -### Method: get_file_format(file_path) [static] {#get_file_format_file_path_42} +### Method: get_file_format(file_path) [static] {#get_file_format_file_path_46} ``` @@ -1189,7 +1283,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format(stream) [static] {#get_file_format_stream_43} +### Method: get_file_format(stream) [static] {#get_file_format_stream_47} ``` @@ -1211,7 +1305,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_44} +### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_48} ``` @@ -1233,7 +1327,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_45} +### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_49} ``` @@ -1258,7 +1352,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_46} +### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_50} ``` @@ -1282,7 +1376,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_modify_date(use_default) {#get_modify_date_use_default_47} +### Method: get_modify_date(use_default) {#get_modify_date_use_default_51} ``` @@ -1304,7 +1398,7 @@ Retrieves the timestamp indicating the most recent modification of the resource | datetime | The date and time the resource image was last modified. | -### Method: get_original_options() {#get_original_options__48} +### Method: get_original_options() {#get_original_options__52} ``` @@ -1320,7 +1414,7 @@ Gets the options based on the original file settings.
This can b | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options based on the original file settings. | -### Method: get_pixel(x, y) {#get_pixel_x_y_49} +### Method: get_pixel(x, y) {#get_pixel_x_y_53} ``` @@ -1343,7 +1437,7 @@ Gets an image pixel. | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified location. | -### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_50} +### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_54} ``` @@ -1367,7 +1461,7 @@ Gets a proportional height. | int | The proportional height. | -### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_51} +### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_55} ``` @@ -1391,7 +1485,7 @@ Gets a proportional width. | int | The proportional width. | -### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_52} +### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_56} ``` @@ -1415,7 +1509,7 @@ Converts to aps. | _io.BufferedRandom | The serialized stream | -### Method: get_skew_angle() {#get_skew_angle__53} +### Method: get_skew_angle() {#get_skew_angle__57} ``` @@ -1431,7 +1525,7 @@ Gets the skew angle.
This method is applicable to scanned text d | float | The skew angle, in degrees. | -### Method: load(file_path) [static] {#load_file_path_54} +### Method: load(file_path) [static] {#load_file_path_58} ``` @@ -1453,7 +1547,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(file_path, load_options) [static] {#load_file_path_load_options_55} +### Method: load(file_path, load_options) [static] {#load_file_path_load_options_59} ``` @@ -1476,7 +1570,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream) [static] {#load_stream_56} +### Method: load(stream) [static] {#load_stream_60} ``` @@ -1498,7 +1592,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream, load_options) [static] {#load_stream_load_options_57} +### Method: load(stream, load_options) [static] {#load_stream_load_options_61} ``` @@ -1521,7 +1615,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_58} +### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_62} ``` @@ -1543,7 +1637,7 @@ Loads 32-bit ARGB pixels. | int | The loaded 32-bit ARGB pixels array. | -### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_59} +### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_63} ``` @@ -1565,7 +1659,7 @@ Loads 64-bit ARGB pixels. | long | The loaded 64-bit ARGB pixels array. | -### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_60} +### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_64} ``` @@ -1587,7 +1681,7 @@ Loads pixels in CMYK format. | int | The loaded CMYK pixels presentes as 32-bit inateger values. | -### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_61} +### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_65} ``` @@ -1609,7 +1703,7 @@ Loads pixels in CMYK format.
This method is deprecated. Please u | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The loaded CMYK pixels array. | -### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_62} +### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_66} ``` @@ -1625,7 +1719,7 @@ Loads 32-bit ARGB pixels partially (by blocks). | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to load pixels from. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_63} +### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_67} ``` @@ -1641,7 +1735,7 @@ Loads 64-bit ARGB pixels partially by packs. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | partial_pixel_loader | [IPartialArgb64PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb64pixelloader) | The 64-bit ARGB pixel loader. | -### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_64} +### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_68} ``` @@ -1657,7 +1751,7 @@ Loads pixels partially by packs. | desired_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | pixel_loader | [IPartialPixelLoader](/imaging/python-net/aspose.imaging/ipartialpixelloader) | The pixel loader. | -### Method: load_pixels(rectangle) {#load_pixels_rectangle_65} +### Method: load_pixels(rectangle) {#load_pixels_rectangle_69} ``` @@ -1679,7 +1773,7 @@ Loads pixels. | [Color[]](/imaging/python-net/aspose.imaging/color) | The loaded pixels array. | -### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_66} +### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_70} ``` @@ -1697,7 +1791,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_67} +### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_71} ``` @@ -1714,7 +1808,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_stream(stream) [static] {#load_stream_stream_68} +### Method: load_stream(stream) [static] {#load_stream_stream_72} ``` @@ -1736,7 +1830,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_69} +### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_73} ``` @@ -1759,7 +1853,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_70} +### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_74} ``` @@ -1782,7 +1876,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_71} +### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_75} ``` @@ -1798,7 +1892,7 @@ Normalizes the angle.
This method is applicable to scanned text | resize_proportionally | bool | if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_72} +### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_76} ``` @@ -1820,7 +1914,7 @@ Reads the whole scan line by the specified scan line index. | int | The scan line 32-bit ARGB color values array. | -### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_73} +### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_77} ``` @@ -1842,7 +1936,7 @@ Reads the whole scan line by the specified scan line index. | [Color[]](/imaging/python-net/aspose.imaging/color) | The scan line pixel color values array. | -### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_74} +### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_78} ``` @@ -1859,7 +1953,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_75} +### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_79} ``` @@ -1876,7 +1970,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | New color to replace old color with. | -### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_76} +### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_80} ``` @@ -1893,7 +1987,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_77} +### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_81} ``` @@ -1908,7 +2002,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | New color to replace non transparent colors with. | -### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_78} +### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_82} ``` @@ -1923,7 +2017,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color_argb | int | New color ARGB value to replace non transparent colors with. | -### Method: resize(new_width, new_height) {#resize_new_width_new_height_79} +### Method: resize(new_width, new_height) {#resize_new_width_new_height_83} ``` @@ -1939,7 +2033,7 @@ Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/ | new_width | int | The new width. | | new_height | int | The new height. | -### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_80} +### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_84} ``` @@ -1956,7 +2050,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_81} +### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_85} ``` @@ -1973,7 +2067,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_82} +### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_86} ``` @@ -1990,7 +2084,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_83} +### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_87} ``` @@ -2007,7 +2101,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_84} +### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_88} ``` @@ -2022,7 +2116,7 @@ Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RES | :- | :- | :- | | new_height | int | The new height. | -### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_85} +### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_89} ``` @@ -2038,7 +2132,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_86} +### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_90} ``` @@ -2054,7 +2148,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_87} +### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_91} ``` @@ -2070,7 +2164,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_88} +### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_92} ``` @@ -2085,7 +2179,7 @@ Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESA | :- | :- | :- | | new_width | int | The new width. | -### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_89} +### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_93} ``` @@ -2101,7 +2195,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_90} +### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_94} ``` @@ -2117,7 +2211,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_91} +### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_95} ``` @@ -2133,7 +2227,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: rotate(angle) {#rotate_angle_92} +### Method: rotate(angle) {#rotate_angle_96} ``` @@ -2148,7 +2242,7 @@ Rotate image around the center. | :- | :- | :- | | angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | -### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_93} +### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_97} ``` @@ -2165,7 +2259,7 @@ Rotate image around the center. | resize_proportionally | bool | if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_94} +### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_98} ``` @@ -2180,7 +2274,7 @@ Rotates, flips, or rotates and flips the image. | :- | :- | :- | | rotate_flip_type | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | The rotate flip type. | -### Method: save(file_path) {#save_file_path_95} +### Method: save(file_path) {#save_file_path_99} ``` @@ -2195,7 +2289,7 @@ Saves the image to the specified file location. | :- | :- | :- | | file_path | string | The file path to save the image to. | -### Method: save(file_path, options) {#save_file_path_options_96} +### Method: save(file_path, options) {#save_file_path_options_100} ``` @@ -2211,7 +2305,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_97} +### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_101} ``` @@ -2228,7 +2322,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: save(file_path, over_write) {#save_file_path_over_write_98} +### Method: save(file_path, over_write) {#save_file_path_over_write_102} ``` @@ -2244,7 +2338,7 @@ Saves the object's data to the specified file location. | file_path | string | The file path to save the object's data to. | | over_write | bool | if set to true over write the file contents, otherwise append will occur. | -### Method: save(stream) {#save_stream_99} +### Method: save(stream) {#save_stream_103} ``` @@ -2259,7 +2353,7 @@ The save data. | :- | :- | :- | | stream | _io.BufferedRandom | The stream. | -### Method: save(stream, options_base) {#save_stream_options_base_100} +### Method: save(stream, options_base) {#save_stream_options_base_104} ``` @@ -2275,7 +2369,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_101} +### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_105} ``` @@ -2292,7 +2386,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_102} +### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_106} ``` @@ -2308,7 +2402,7 @@ Saves the 32-bit ARGB pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The 32-bit ARGB pixels array. | -### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_103} +### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_107} ``` @@ -2324,7 +2418,7 @@ Saves the pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The CMYK pixels presented as the 32-bit integer values. | -### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_104} +### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_108} ``` @@ -2340,7 +2434,7 @@ Saves the pixels.
This method is deprecated. Please use more eff | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The CMYK pixels array. | -### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_105} +### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_109} ``` @@ -2356,7 +2450,7 @@ Saves pixels (format specific method). | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | [Color[]](/imaging/python-net/aspose.imaging/color) | The 32-bit ARGB pixels array. | -### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_106} +### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_110} ``` @@ -2374,7 +2468,7 @@ Saves the raw data. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The raw data rectangle. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings the data is in. | -### Method: save_to_stream(stream) {#save_to_stream_stream_107} +### Method: save_to_stream(stream) {#save_to_stream_stream_111} ``` @@ -2389,7 +2483,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_108} +### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_112} ``` @@ -2405,7 +2499,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_109} +### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_113} ``` @@ -2422,7 +2516,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_110} +### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_114} ``` @@ -2438,7 +2532,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_111} +### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_115} ``` @@ -2455,7 +2549,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_112} +### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_116} ``` @@ -2472,7 +2566,7 @@ Sets an image 32-bit ARGB pixel for the specified position. | y | int | The pixel y location. | | argb_32_color | int | The 32-bit ARGB pixel for the specified position. | -### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_113} +### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_117} ``` @@ -2488,7 +2582,7 @@ Sets the image palette. | palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The palette to set. | | update_colors | bool | if set to true colors will be updated according to the new palette; otherwise color indexes remain unchanged. Note that unchanged indexes may crash the image on loading if some indexes have no corresponding palette entries. | -### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_114} +### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_118} ``` @@ -2505,7 +2599,7 @@ Sets an image pixel for the specified position. | y | int | The pixel y location. | | color | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified position. | -### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_115} +### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_119} ``` @@ -2521,7 +2615,7 @@ Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/ra | dpi_x | double | The horizontal resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | | dpi_y | double | The vertical resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_116} +### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_120} ``` @@ -2537,7 +2631,7 @@ Writes the whole scan line to the specified scan line index. | scan_line_index | int | Zero based index of the scan line. | | argb_32_pixels | int | The 32-bit ARGB colors array to write. | -### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_117} +### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_121} ``` diff --git a/english/python-net/aspose.imaging.fileformats.svg/svgimage/_index.md b/english/python-net/aspose.imaging.fileformats.svg/svgimage/_index.md index 0eea6ee9fb..ede9a8ae34 100644 --- a/english/python-net/aspose.imaging.fileformats.svg/svgimage/_index.md +++ b/english/python-net/aspose.imaging.fileformats.svg/svgimage/_index.md @@ -33,7 +33,7 @@ url: /python-net/aspose.imaging.fileformats.svg/svgimage/ | disposed | bool | r | Gets a value indicating whether this instance is disposed. | | file_format | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | r | Retrieves the file format of the image, providing essential metadata for
processing and compatibility checks. This property is instrumental in
determining the appropriate decoding and encoding strategies for handling the
image data effectively across different systems and applications. | | has_background_color | bool | r/w | Gets or sets a value indicating whether image has background color. | -| height | int | r | Retrieves the height of the image, indicating its vertical size in pixels. This
property provides essential information for layout calculations and rendering
processes, ensuring accurate display and manipulation of the image. | +| height | int | r | Gets the image height. | | height_f | float | r | Gets the object height, in inches. | | interrupt_monitor | [InterruptMonitor](/imaging/python-net/aspose.imaging.multithreading/interruptmonitor/) | r/w | Gets or sets the interrupt monitor. | | is_cached | bool | r | Retrieves a boolean value indicating whether the object's data is presently
cached, eliminating the need for additional data reading operations. This
property provides insight into the current caching status, optimizing data
retrieval and processing workflows for enhanced performance and efficiency. | @@ -41,7 +41,7 @@ url: /python-net/aspose.imaging.fileformats.svg/svgimage/ | size | [Size](/imaging/python-net/aspose.imaging/size) | r | Gets the object size. | | size_f | [SizeF](/imaging/python-net/aspose.imaging/sizef) | r | Gets the object size, in inches. | | use_palette | bool | r | Gets a value indicating whether the image palette is used. | -| width | int | r | Returns the width of the image, denoting its horizontal size in pixels. This
property is crucial for layout computations and display rendering, ensuring
precise positioning and visualization of the image content. | +| width | int | r | Gets the image width. | | width_f | float | r | Gets the object width, in inches. | ## **Methods** | **Name** | **Description** | @@ -55,62 +55,69 @@ url: /python-net/aspose.imaging.fileformats.svg/svgimage/ | [can_load_stream_with_options(stream, load_options)](#can_load_stream_with_options_stream_load_options_6) | Determines whether image can be loaded from the specified stream and optionally using the specified _loadOptions_. | | [can_load_with_options(file_path, load_options)](#can_load_with_options_file_path_load_options_7) | Determines whether image can be loaded from the specified file path and optionally using the specified open options. | | [can_save(options)](#can_save_options_8) | Determines whether image can be saved to the specified file format represented by the passed save options. | -| [create(files)](#create_files_9) | Creates the specified files. | -| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_10) | Creates the specified files. | +| [create(files)](#create_files_9) | Creates the multipage image containing the specified files. | +| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_10) | Creates the multipage image containing the specified files. | | [create(image_options, width, height)](#create_image_options_width_height_11) | Creates a new image using the specified create options. | | [create(images)](#create_images_12) | Creates a new image using the specified images as pages | | [create(images, dispose_images)](#create_images_dispose_images_13) | Creates a new image the specified images as pages. | | [create(multipage_create_options)](#create_multipage_create_options_14) | Creates the specified multipage create options. | -| [create_from_stream(stream)](#create_from_stream_stream_15) | Initializes a new instance of the [SvgImage](/imaging/python-net/aspose.imaging.fileformats.svg/svgimage/) class. | -| [get_default_options(args)](#get_default_options_args_16) | Retrieve the default options configured for the image, providing a baseline
setting for various operations such as resizing, compression, or encoding. This
method is pivotal in ensuring consistent behavior and quality standards across
image processing tasks without the need for explicit parameterization. | -| [get_embedded_images()](#get_embedded_images__17) | Gets the embedded images. | -| [get_file_format(file_path)](#get_file_format_file_path_18) | Gets the file format. | -| [get_file_format(stream)](#get_file_format_stream_19) | Gets the file format. | -| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_20) | Gets the file format. | -| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_21) | Gets rectangle which fits the current image. | -| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_22) | Gets rectangle which fits the current image. | -| [get_original_options()](#get_original_options__23) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | -| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_24) | Gets a proportional height. | -| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_25) | Gets a proportional width. | -| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_26) | Converts to aps. | -| [load(file_path)](#load_file_path_27) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(file_path, load_options)](#load_file_path_load_options_28) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(stream)](#load_stream_29) | Loads the SVG section. | -| [load(stream, load_options)](#load_stream_load_options_30) | Loads a new image from the specified stream. | -| [load_stream(stream)](#load_stream_stream_31) | Loads a new image from the specified stream. | -| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_32) | Loads a new image from the specified stream. | -| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_33) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [create_from_files(files)](#create_from_files_files_15) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_files(files, throw_exception_on_load_error)](#create_from_files_files_throw_exception_on_load_error_16) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_images(images)](#create_from_images_images_17) | Creates a new image using the specified images as pages | +| [create_from_images(images, dispose_images)](#create_from_images_images_dispose_images_18) | Creates a new image the specified images as pages. | +| [create_from_stream(stream)](#create_from_stream_stream_19) | Initializes a new instance of the [SvgImage](/imaging/python-net/aspose.imaging.fileformats.svg/svgimage/) class. | +| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_20) | Crop image with shifts. | +| [crop(rectangle)](#crop_rectangle_21) | Crops the specified rectangle. | +| [get_default_options(args)](#get_default_options_args_22) | Retrieve the default options configured for the image, providing a baseline
setting for various operations such as resizing, compression, or encoding. This
method is pivotal in ensuring consistent behavior and quality standards across
image processing tasks without the need for explicit parameterization. | +| [get_embedded_images()](#get_embedded_images__23) | Gets the embedded images. | +| [get_file_format(file_path)](#get_file_format_file_path_24) | Gets the file format. | +| [get_file_format(stream)](#get_file_format_stream_25) | Gets the file format. | +| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_26) | Gets the file format. | +| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_27) | Gets rectangle which fits the current image. | +| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_28) | Gets rectangle which fits the current image. | +| [get_original_options()](#get_original_options__29) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | +| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_30) | Gets a proportional height. | +| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_31) | Gets a proportional width. | +| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_32) | Converts to aps. | +| [load(file_path)](#load_file_path_33) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path, load_options)](#load_file_path_load_options_34) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(stream)](#load_stream_35) | Loads the SVG section. | +| [load(stream, load_options)](#load_stream_load_options_36) | Loads a new image from the specified stream. | +| [load_stream(stream)](#load_stream_stream_37) | Loads a new image from the specified stream. | +| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_38) | Loads a new image from the specified stream. | +| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_39) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | | remove_background() | Removes the background. | -| [remove_background(settings)](#remove_background_settings_34) | Removes the background. | +| [remove_background(settings)](#remove_background_settings_40) | Removes the background. | | remove_metadata() | Removes metadata. | -| [resize(new_width, new_height)](#resize_new_width_new_height_35) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_36) | Resizes the image. | -| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_37) | Resizes the image. | -| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_38) | Resizes the image. | -| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_39) | Resizes the image. | -| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_40) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_41) | Resizes the height proportionally. | -| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_42) | Resizes the height proportionally. | -| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_43) | Resizes the height proportionally. | -| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_44) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_45) | Resizes the width proportionally. | -| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_46) | Resizes the width proportionally. | -| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_47) | Resizes the width proportionally. | -| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_48) | Applies rotation, flipping, or both to the image as per the specified
parameters. This method offers versatility in image manipulation, allowing for
seamless adjustment of orientation to achieve desired visual effects or correct
orientation errors. | +| [resize(new_width, new_height)](#resize_new_width_new_height_41) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_42) | Resize the image to fit the specified dimensions while preserving its aspect
ratio. This method provides a convenient way to adjust the size of the image
without distorting its proportions, ensuring optimal display or storage
according to the desired dimensions. | +| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_43) | Resizes the image with extended options. | +| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_44) | Resizes the image. | +| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_45) | Resizes the image. | +| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_46) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_47) | Resizes the height proportionally. | +| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_48) | Resizes the height proportionally. | +| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_49) | Resizes the height proportionally. | +| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_50) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_51) | Resizes the width proportionally. | +| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_52) | Resizes the width proportionally. | +| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_53) | Resizes the width proportionally. | +| [rotate(angle)](#rotate_angle_54) | Rotate image around the center. | +| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_55) | Rotates, flips, or rotates and flips the image. | | save() | Saves the image data to the underlying stream. | -| [save(file_path)](#save_file_path_49) | Saves the image to the specified file location. | -| [save(file_path, options)](#save_file_path_options_50) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_51) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, over_write)](#save_file_path_over_write_52) | Saves the object's data to the specified file location. | -| [save(stream)](#save_stream_53) | Saves the data. | -| [save(stream, options_base)](#save_stream_options_base_54) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_55) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream(stream)](#save_to_stream_stream_56) | Saves the object's data to the specified stream. | -| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_57) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_58) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_with_options(file_path, options)](#save_with_options_file_path_options_59) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_60) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_61) | Applies a specified palette to the image, enabling customization of color
schemes for aesthetic or functional purposes. This method provides flexibility
in managing color palettes to suit various design or application requirements. | +| [save(file_path)](#save_file_path_56) | Saves the image to the specified file location. | +| [save(file_path, options)](#save_file_path_options_57) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_58) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, over_write)](#save_file_path_over_write_59) | Saves the object's data to the specified file location. | +| [save(stream)](#save_stream_60) | Saves the data. | +| [save(stream, options_base)](#save_stream_options_base_61) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_62) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream(stream)](#save_to_stream_stream_63) | Saves the object's data to the specified stream. | +| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_64) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_65) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_with_options(file_path, options)](#save_with_options_file_path_options_66) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_67) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_68) | Applies a specified palette to the image, enabling customization of color
schemes for aesthetic or functional purposes. This method provides flexibility
in managing color palettes to suit various design or application requirements. | ### Constructor: SvgImage(path) {#SvgImage_path_1} @@ -363,7 +370,7 @@ Determines whether image can be saved to the specified file format represented b create(files) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -385,7 +392,7 @@ Creates the specified files. create(files, throw_exception_on_load_error) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -492,7 +499,97 @@ Creates the specified multipage create options. | [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | -### Method: create_from_stream(stream) [static] {#create_from_stream_stream_15} +### Method: create_from_files(files) [static] {#create_from_files_files_15} + + +``` + create_from_files(files) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_files(files, throw_exception_on_load_error) [static] {#create_from_files_files_throw_exception_on_load_error_16} + + +``` + create_from_files(files, throw_exception_on_load_error) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | +| throw_exception_on_load_error | bool | if set to true throw exception on load error. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_images(images) [static] {#create_from_images_images_17} + + +``` + create_from_images(images) +``` + +Creates a new image using the specified images as pages + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_images(images, dispose_images) [static] {#create_from_images_images_dispose_images_18} + + +``` + create_from_images(images, dispose_images) +``` + +Creates a new image the specified images as pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | +| dispose_images | bool | if set to true [dispose images]. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_stream(stream) [static] {#create_from_stream_stream_19} ``` @@ -514,7 +611,40 @@ Initializes a new instance of the [SvgImage](/imaging/python-net/aspose.imaging. | [SvgImage](/imaging/python-net/aspose.imaging.fileformats.svg/svgimage) | | -### Method: get_default_options(args) {#get_default_options_args_16} +### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_20} + + +``` + crop(left_shift, right_shift, top_shift, bottom_shift) +``` + +Crop image with shifts. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| left_shift | int | The left shift. | +| right_shift | int | The right shift. | +| top_shift | int | The top shift. | +| bottom_shift | int | The bottom shift. | + +### Method: crop(rectangle) {#crop_rectangle_21} + + +``` + crop(rectangle) +``` + +Crops the specified rectangle. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | + +### Method: get_default_options(args) {#get_default_options_args_22} ``` @@ -536,7 +666,7 @@ Retrieve the default options configured for the image, providing a baseline
This can b | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options based on the original file settings. | -### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_24} +### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_30} ``` @@ -707,7 +837,7 @@ Gets a proportional height. | int | The proportional height. | -### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_25} +### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_31} ``` @@ -731,7 +861,7 @@ Gets a proportional width. | int | The proportional width. | -### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_26} +### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_32} ``` @@ -755,7 +885,7 @@ Converts to aps. | _io.BufferedRandom | The serialized stream | -### Method: load(file_path) [static] {#load_file_path_27} +### Method: load(file_path) [static] {#load_file_path_33} ``` @@ -777,7 +907,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(file_path, load_options) [static] {#load_file_path_load_options_28} +### Method: load(file_path, load_options) [static] {#load_file_path_load_options_34} ``` @@ -800,7 +930,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream) [static] {#load_stream_29} +### Method: load(stream) [static] {#load_stream_35} ``` @@ -822,7 +952,7 @@ Loads the SVG section. | [Image](/imaging/python-net/aspose.imaging/image) | | -### Method: load(stream, load_options) [static] {#load_stream_load_options_30} +### Method: load(stream, load_options) [static] {#load_stream_load_options_36} ``` @@ -845,7 +975,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream(stream) [static] {#load_stream_stream_31} +### Method: load_stream(stream) [static] {#load_stream_stream_37} ``` @@ -867,7 +997,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_32} +### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_38} ``` @@ -890,7 +1020,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_33} +### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_39} ``` @@ -913,7 +1043,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: remove_background(settings) {#remove_background_settings_34} +### Method: remove_background(settings) {#remove_background_settings_40} ``` @@ -928,7 +1058,7 @@ Removes the background. | :- | :- | :- | | settings | [RemoveBackgroundSettings](/imaging/python-net/aspose.imaging/removebackgroundsettings) | The settings. | -### Method: resize(new_width, new_height) {#resize_new_width_new_height_35} +### Method: resize(new_width, new_height) {#resize_new_width_new_height_41} ``` @@ -944,14 +1074,14 @@ Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/ | new_width | int | The new width. | | new_height | int | The new height. | -### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_36} +### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_42} ``` resize(new_width, new_height, resize_type) ``` -Resizes the image. +Resize the image to fit the specified dimensions while preserving its aspect
ratio. This method provides a convenient way to adjust the size of the image
without distorting its proportions, ensuring optimal display or storage
according to the desired dimensions. **Parameters:** @@ -961,14 +1091,14 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_37} +### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_43} ``` resize(new_width, new_height, settings) ``` -Resizes the image. +Resizes the image with extended options. **Parameters:** @@ -978,7 +1108,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_38} +### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_44} ``` @@ -995,7 +1125,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_39} +### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_45} ``` @@ -1012,7 +1142,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_40} +### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_46} ``` @@ -1027,7 +1157,7 @@ Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RES | :- | :- | :- | | new_height | int | The new height. | -### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_41} +### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_47} ``` @@ -1043,7 +1173,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_42} +### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_48} ``` @@ -1059,7 +1189,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_43} +### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_49} ``` @@ -1075,7 +1205,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_44} +### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_50} ``` @@ -1090,7 +1220,7 @@ Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESA | :- | :- | :- | | new_width | int | The new width. | -### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_45} +### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_51} ``` @@ -1106,7 +1236,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_46} +### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_52} ``` @@ -1122,7 +1252,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_47} +### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_53} ``` @@ -1138,14 +1268,29 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_48} +### Method: rotate(angle) {#rotate_angle_54} + + +``` + rotate(angle) +``` + +Rotate image around the center. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | + +### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_55} ``` rotate_flip(rotate_flip_type) ``` -Applies rotation, flipping, or both to the image as per the specified
parameters. This method offers versatility in image manipulation, allowing for
seamless adjustment of orientation to achieve desired visual effects or correct
orientation errors. +Rotates, flips, or rotates and flips the image. **Parameters:** @@ -1153,7 +1298,7 @@ Applies rotation, flipping, or both to the image as per the specified
| :- | :- | :- | | rotate_flip_type | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | Type of the rotate flip. | -### Method: save(file_path) {#save_file_path_49} +### Method: save(file_path) {#save_file_path_56} ``` @@ -1168,7 +1313,7 @@ Saves the image to the specified file location. | :- | :- | :- | | file_path | string | The file path to save the image to. | -### Method: save(file_path, options) {#save_file_path_options_50} +### Method: save(file_path, options) {#save_file_path_options_57} ``` @@ -1184,7 +1329,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_51} +### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_58} ``` @@ -1201,7 +1346,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: save(file_path, over_write) {#save_file_path_over_write_52} +### Method: save(file_path, over_write) {#save_file_path_over_write_59} ``` @@ -1217,7 +1362,7 @@ Saves the object's data to the specified file location. | file_path | string | The file path to save the object's data to. | | over_write | bool | if set to true over write the file contents, otherwise append will occur. | -### Method: save(stream) {#save_stream_53} +### Method: save(stream) {#save_stream_60} ``` @@ -1232,7 +1377,7 @@ Saves the data. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save data to. | -### Method: save(stream, options_base) {#save_stream_options_base_54} +### Method: save(stream, options_base) {#save_stream_options_base_61} ``` @@ -1248,7 +1393,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_55} +### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_62} ``` @@ -1265,7 +1410,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_to_stream(stream) {#save_to_stream_stream_56} +### Method: save_to_stream(stream) {#save_to_stream_stream_63} ``` @@ -1280,7 +1425,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_57} +### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_64} ``` @@ -1296,7 +1441,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_58} +### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_65} ``` @@ -1313,7 +1458,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_59} +### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_66} ``` @@ -1329,7 +1474,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_60} +### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_67} ``` @@ -1346,7 +1491,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_61} +### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_68} ``` diff --git a/english/python-net/aspose.imaging.fileformats.tga/tgaimage/_index.md b/english/python-net/aspose.imaging.fileformats.tga/tgaimage/_index.md index a997b68f0e..38fc53be52 100644 --- a/english/python-net/aspose.imaging.fileformats.tga/tgaimage/_index.md +++ b/english/python-net/aspose.imaging.fileformats.tga/tgaimage/_index.md @@ -99,105 +99,109 @@ url: /python-net/aspose.imaging.fileformats.tga/tgaimage/ | [can_save(options)](#can_save_options_17) | Determines whether image can be saved to the specified file format represented by the passed save options. | | [clone()](#clone__18) | Produces a duplicate of the current instance, generating a new object that clones
all attributes and properties of the original. This method facilitates the
creation of identical copies, ensuring data integrity and preserving the state of
the current instance without affecting the original object. | | [clone(tga_image)](#clone_tga_image_19) | Replicate the properties of another [TgaImage](/imaging/python-net/aspose.imaging.fileformats.tga/tgaimage/) object, creating a
new instance with identical attributes. This operation ensures the preservation
of data integrity and facilitates the duplication of image properties without
altering the source object. | -| [create(files)](#create_files_20) | Creates the specified files. | -| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_21) | Creates the specified files. | +| [create(files)](#create_files_20) | Creates the multipage image containing the specified files. | +| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_21) | Creates the multipage image containing the specified files. | | [create(image_options, width, height)](#create_image_options_width_height_22) | Creates a new image using the specified create options. | | [create(images)](#create_images_23) | Creates a new image using the specified images as pages | | [create(images, dispose_images)](#create_images_dispose_images_24) | Creates a new image the specified images as pages. | | [create(multipage_create_options)](#create_multipage_create_options_25) | Creates the specified multipage create options. | -| [create_from_image(raster_image)](#create_from_image_raster_image_26) | Initializes a new instance of the [TgaImage](/imaging/python-net/aspose.imaging.fileformats.tga/tgaimage/) class. | -| [create_from_stream(stream)](#create_from_stream_stream_27) | Initializes a new instance of the [TgaImage](/imaging/python-net/aspose.imaging.fileformats.tga/tgaimage/) class. | -| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_28) | Crop the image by specifying shifts for the left, right, top, and bottom
boundaries. This method allows you to trim the image by moving its boundaries
independently along the horizontal and vertical axes. By adjusting these shifts,
you can precisely control which portions of the image to retain, effectively
cropping it to the desired dimensions. | -| [crop(rectangle)](#crop_rectangle_29) | Crop the image to a specified region. This method allows you to define a
rectangular area within the image to retain, discarding the rest. This operation
is useful for focusing on specific content within the image or removing unwanted
portions. | -| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_30) | Performs dithering on the current image. | -| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_31) | Performs dithering on the current image. | -| [filter(rectangle, options)](#filter_rectangle_options_32) | Filters the specified rectangle. | -| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_33) | Gets an image 32-bit ARGB pixel. | -| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_34) | Gets the default 32-bit ARGB pixels array. | -| [get_default_options(args)](#get_default_options_args_35) | Gets the default options. | -| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_36) | Gets the default pixels array using partial pixel loader. | -| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_37) | Gets the default raw data array using partial pixel loader. | -| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_38) | Gets the default raw data array. | -| [get_file_format(file_path)](#get_file_format_file_path_39) | Gets the file format. | -| [get_file_format(stream)](#get_file_format_stream_40) | Gets the file format. | -| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_41) | Gets the file format. | -| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_42) | Gets rectangle which fits the current image. | -| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_43) | Gets rectangle which fits the current image. | -| [get_modify_date(use_default)](#get_modify_date_use_default_44) | Gets the date and time the resource image was last modified. | -| [get_original_options()](#get_original_options__45) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | -| [get_pixel(x, y)](#get_pixel_x_y_46) | Gets an image pixel. | -| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_47) | Gets a proportional height. | -| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_48) | Gets a proportional width. | -| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_49) | Converts to aps. | -| [get_skew_angle()](#get_skew_angle__50) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | +| [create_from_files(files)](#create_from_files_files_26) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_files(files, throw_exception_on_load_error)](#create_from_files_files_throw_exception_on_load_error_27) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_image(raster_image)](#create_from_image_raster_image_28) | Initializes a new instance of the [TgaImage](/imaging/python-net/aspose.imaging.fileformats.tga/tgaimage/) class. | +| [create_from_images(images)](#create_from_images_images_29) | Creates a new image using the specified images as pages | +| [create_from_images(images, dispose_images)](#create_from_images_images_dispose_images_30) | Creates a new image the specified images as pages. | +| [create_from_stream(stream)](#create_from_stream_stream_31) | Initializes a new instance of the [TgaImage](/imaging/python-net/aspose.imaging.fileformats.tga/tgaimage/) class. | +| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_32) | Crop the image by specifying shifts for the left, right, top, and bottom
boundaries. This method allows you to trim the image by moving its boundaries
independently along the horizontal and vertical axes. By adjusting these shifts,
you can precisely control which portions of the image to retain, effectively
cropping it to the desired dimensions. | +| [crop(rectangle)](#crop_rectangle_33) | Crop the image to a specified region. This method allows you to define a
rectangular area within the image to retain, discarding the rest. This operation
is useful for focusing on specific content within the image or removing unwanted
portions. | +| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_34) | Performs dithering on the current image. | +| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_35) | Performs dithering on the current image. | +| [filter(rectangle, options)](#filter_rectangle_options_36) | Filters the specified rectangle. | +| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_37) | Gets an image 32-bit ARGB pixel. | +| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_38) | Gets the default 32-bit ARGB pixels array. | +| [get_default_options(args)](#get_default_options_args_39) | Gets the default options. | +| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_40) | Gets the default pixels array using partial pixel loader. | +| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_41) | Gets the default raw data array using partial pixel loader. | +| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_42) | Gets the default raw data array. | +| [get_file_format(file_path)](#get_file_format_file_path_43) | Gets the file format. | +| [get_file_format(stream)](#get_file_format_stream_44) | Gets the file format. | +| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_45) | Gets the file format. | +| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_46) | Gets rectangle which fits the current image. | +| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_47) | Gets rectangle which fits the current image. | +| [get_modify_date(use_default)](#get_modify_date_use_default_48) | Gets the date and time the resource image was last modified. | +| [get_original_options()](#get_original_options__49) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | +| [get_pixel(x, y)](#get_pixel_x_y_50) | Gets an image pixel. | +| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_51) | Gets a proportional height. | +| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_52) | Gets a proportional width. | +| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_53) | Converts to aps. | +| [get_skew_angle()](#get_skew_angle__54) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | | grayscale() | Transformation of an image to its grayscale representation | -| [load(file_path)](#load_file_path_51) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(file_path, load_options)](#load_file_path_load_options_52) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(stream)](#load_stream_53) | Loads a new image from the specified stream. | -| [load(stream, load_options)](#load_stream_load_options_54) | Loads a new image from the specified stream. | -| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_55) | Loads 32-bit ARGB pixels. | -| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_56) | Loads 64-bit ARGB pixels. | -| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_57) | Loads pixels in CMYK format. | -| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_58) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_59) | Loads 32-bit ARGB pixels partially (by blocks). | -| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_60) | Loads 64-bit ARGB pixels partially by packs. | -| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_61) | Loads pixels partially by packs. | -| [load_pixels(rectangle)](#load_pixels_rectangle_62) | Loads pixels. | -| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_63) | Loads raw data. | -| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_64) | Loads raw data. | -| [load_stream(stream)](#load_stream_stream_65) | Loads a new image from the specified stream. | -| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_66) | Loads a new image from the specified stream. | -| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_67) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path)](#load_file_path_55) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path, load_options)](#load_file_path_load_options_56) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(stream)](#load_stream_57) | Loads a new image from the specified stream. | +| [load(stream, load_options)](#load_stream_load_options_58) | Loads a new image from the specified stream. | +| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_59) | Loads 32-bit ARGB pixels. | +| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_60) | Loads 64-bit ARGB pixels. | +| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_61) | Loads pixels in CMYK format. | +| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_62) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_63) | Loads 32-bit ARGB pixels partially (by blocks). | +| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_64) | Loads 64-bit ARGB pixels partially by packs. | +| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_65) | Loads pixels partially by packs. | +| [load_pixels(rectangle)](#load_pixels_rectangle_66) | Loads pixels. | +| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_67) | Loads raw data. | +| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_68) | Loads raw data. | +| [load_stream(stream)](#load_stream_stream_69) | Loads a new image from the specified stream. | +| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_70) | Loads a new image from the specified stream. | +| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_71) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | | normalize_angle() | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | -| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_68) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | -| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_69) | Reads the whole scan line by the specified scan line index. | -| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_70) | Reads the whole scan line by the specified scan line index. | +| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_72) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | +| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_73) | Reads the whole scan line by the specified scan line index. | +| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_74) | Reads the whole scan line by the specified scan line index. | | remove_metadata() | Removes this image instance metadata by setting this [IHasXmpData.xmp_data](/imaging/python-net/aspose.imaging.xmp/ihasxmpdata/) value to **None**. | -| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_71) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_72) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_73) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_74) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_75) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [resize(new_width, new_height)](#resize_new_width_new_height_76) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_77) | Resizes the image. | -| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_78) | Resizes the image. | -| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_79) | Resizes the image. | -| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_80) | Resizes the image. | -| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_81) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_82) | Resizes the height proportionally. | -| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_83) | Resizes the height proportionally. | -| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_84) | Resizes the height proportionally. | -| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_85) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_86) | Resizes the width proportionally. | -| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_87) | Resizes the width proportionally. | -| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_88) | Resizes the width proportionally. | -| [rotate(angle)](#rotate_angle_89) | Rotate image around the center. | -| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_90) | Rotates the image around its center by a specified angle while maintaining resize
proportionality and preserving the background color. This method allows for
precise image manipulation, ensuring that the rotation maintains visual balance
and consistency with the specified background color. It's ideal for tasks where
accurate rotation around the center is necessary, such as orientation correction
or artistic adjustments. | -| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_91) | The "RotateFlip" method enables rotating and flipping operations on the image. It
offers versatile functionality for manipulating image orientation, allowing users
to perform rotations and flips according to their requirements, facilitating
efficient image processing tasks within software applications. | +| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_75) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_76) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_77) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_78) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_79) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [resize(new_width, new_height)](#resize_new_width_new_height_80) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_81) | Adjusts the size of the image using a specified resize type, which determines how
the resizing operation is performed. This method provides flexibility in resizing
images according to different algorithms or techniques. By choosing the
appropriate resize type, you can achieve the desired balance between image
quality and computational efficiency based on specific requirements or preferences. | +| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_82) | Resize the image while applying specific settings to maintain the desired
dimensions and aspect ratio. By customizing image settings, you can effectively
resize the image while ensuring optimal visual quality and compatibility with
different display devices or applications. | +| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_83) | Resizes the image. | +| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_84) | Resizes the image. | +| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_85) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_86) | Resizes the height proportionally. | +| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_87) | Resizes the height proportionally. | +| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_88) | Resizes the height proportionally. | +| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_89) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_90) | Resizes the width proportionally. | +| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_91) | Resizes the width proportionally. | +| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_92) | Resizes the width proportionally. | +| [rotate(angle)](#rotate_angle_93) | Rotate image around the center. | +| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_94) | Rotates the image around its center by a specified angle while maintaining resize
proportionality and preserving the background color. This method allows for
precise image manipulation, ensuring that the rotation maintains visual balance
and consistency with the specified background color. It's ideal for tasks where
accurate rotation around the center is necessary, such as orientation correction
or artistic adjustments. | +| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_95) | The "RotateFlip" method enables rotating and flipping operations on the image. It
offers versatile functionality for manipulating image orientation, allowing users
to perform rotations and flips according to their requirements, facilitating
efficient image processing tasks within software applications. | | save() | Saves the image data to the underlying stream. | -| [save(file_path)](#save_file_path_92) | Saves the image to the specified file location. | -| [save(file_path, options)](#save_file_path_options_93) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_94) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, over_write)](#save_file_path_over_write_95) | Saves the object's data to the specified file location. | -| [save(stream)](#save_stream_96) | The save data. | -| [save(stream, options_base)](#save_stream_options_base_97) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_98) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_99) | Saves the 32-bit ARGB pixels. | -| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_100) | Saves the pixels. | -| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_101) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_102) | Saves pixels (format specific method). | -| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_103) | Saves the raw data. | -| [save_to_stream(stream)](#save_to_stream_stream_104) | Saves the object's data to the specified stream. | -| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_105) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_106) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_with_options(file_path, options)](#save_with_options_file_path_options_107) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_108) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_109) | Sets an image 32-bit ARGB pixel for the specified position. | -| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_110) | Sets the image palette. | -| [set_pixel(x, y, color)](#set_pixel_x_y_color_111) | Sets an image pixel for the specified position. | -| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_112) | Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_113) | Writes the whole scan line to the specified scan line index. | -| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_114) | Writes the whole scan line to the specified scan line index. | +| [save(file_path)](#save_file_path_96) | Saves the image to the specified file location. | +| [save(file_path, options)](#save_file_path_options_97) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_98) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, over_write)](#save_file_path_over_write_99) | Saves the object's data to the specified file location. | +| [save(stream)](#save_stream_100) | The save data. | +| [save(stream, options_base)](#save_stream_options_base_101) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_102) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_103) | Saves the 32-bit ARGB pixels. | +| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_104) | Saves the pixels. | +| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_105) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_106) | Saves pixels (format specific method). | +| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_107) | Saves the raw data. | +| [save_to_stream(stream)](#save_to_stream_stream_108) | Saves the object's data to the specified stream. | +| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_109) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_110) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_with_options(file_path, options)](#save_with_options_file_path_options_111) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_112) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_113) | Sets an image 32-bit ARGB pixel for the specified position. | +| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_114) | Sets the image palette. | +| [set_pixel(x, y, color)](#set_pixel_x_y_color_115) | Sets an image pixel for the specified position. | +| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_116) | Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | +| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_117) | Writes the whole scan line to the specified scan line index. | +| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_118) | Writes the whole scan line to the specified scan line index. | ### Constructor: TgaImage(path) {#TgaImage_path_1} @@ -612,7 +616,7 @@ Replicate the properties of another [TgaImage](/imaging/python-net/aspose.imagin create(files) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -634,7 +638,7 @@ Creates the specified files. create(files, throw_exception_on_load_error) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -741,7 +745,52 @@ Creates the specified multipage create options. | [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | -### Method: create_from_image(raster_image) [static] {#create_from_image_raster_image_26} +### Method: create_from_files(files) [static] {#create_from_files_files_26} + + +``` + create_from_files(files) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_files(files, throw_exception_on_load_error) [static] {#create_from_files_files_throw_exception_on_load_error_27} + + +``` + create_from_files(files, throw_exception_on_load_error) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | +| throw_exception_on_load_error | bool | if set to true throw exception on load error. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_image(raster_image) [static] {#create_from_image_raster_image_28} ``` @@ -763,7 +812,52 @@ Initializes a new instance of the [TgaImage](/imaging/python-net/aspose.imaging. | [TgaImage](/imaging/python-net/aspose.imaging.fileformats.tga/tgaimage) | | -### Method: create_from_stream(stream) [static] {#create_from_stream_stream_27} +### Method: create_from_images(images) [static] {#create_from_images_images_29} + + +``` + create_from_images(images) +``` + +Creates a new image using the specified images as pages + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_images(images, dispose_images) [static] {#create_from_images_images_dispose_images_30} + + +``` + create_from_images(images, dispose_images) +``` + +Creates a new image the specified images as pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | +| dispose_images | bool | if set to true [dispose images]. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_stream(stream) [static] {#create_from_stream_stream_31} ``` @@ -785,7 +879,7 @@ Initializes a new instance of the [TgaImage](/imaging/python-net/aspose.imaging. | [TgaImage](/imaging/python-net/aspose.imaging.fileformats.tga/tgaimage) | | -### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_28} +### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_32} ``` @@ -803,7 +897,7 @@ Crop the image by specifying shifts for the left, right, top, and bottom
| top_shift | int | The top shift. | | bottom_shift | int | The bottom shift. | -### Method: crop(rectangle) {#crop_rectangle_29} +### Method: crop(rectangle) {#crop_rectangle_33} ``` @@ -818,7 +912,7 @@ Crop the image to a specified region. This method allows you to define a
| :- | :- | :- | | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | -### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_30} +### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_34} ``` @@ -834,7 +928,7 @@ Performs dithering on the current image. | dithering_method | [DitheringMethod](/imaging/python-net/aspose.imaging/ditheringmethod) | The dithering method. | | bits_count | int | The final bits count for dithering. | -### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_31} +### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_35} ``` @@ -851,7 +945,7 @@ Performs dithering on the current image. | bits_count | int | The final bits count for dithering. | | custom_palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The custom palette for dithering. | -### Method: filter(rectangle, options) {#filter_rectangle_options_32} +### Method: filter(rectangle, options) {#filter_rectangle_options_36} ``` @@ -867,7 +961,7 @@ Filters the specified rectangle. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | | options | [FilterOptionsBase](/imaging/python-net/aspose.imaging.imagefilters.filteroptions/filteroptionsbase/) | The options. | -### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_33} +### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_37} ``` @@ -890,7 +984,7 @@ Gets an image 32-bit ARGB pixel. | int | The 32-bit ARGB pixel for the specified location. | -### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_34} +### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_38} ``` @@ -912,7 +1006,7 @@ Gets the default 32-bit ARGB pixels array. | int | The default pixels array. | -### Method: get_default_options(args) {#get_default_options_args_35} +### Method: get_default_options(args) {#get_default_options_args_39} ``` @@ -934,7 +1028,7 @@ Gets the default options. | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Default options | -### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_36} +### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_40} ``` @@ -950,7 +1044,7 @@ Gets the default pixels array using partial pixel loader. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to get pixels for. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_37} +### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_41} ``` @@ -967,7 +1061,7 @@ Gets the default raw data array using partial pixel loader. | partial_raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The partial raw data loader. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings. | -### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_38} +### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_42} ``` @@ -990,7 +1084,7 @@ Gets the default raw data array. | byte | The default raw data array. | -### Method: get_file_format(file_path) [static] {#get_file_format_file_path_39} +### Method: get_file_format(file_path) [static] {#get_file_format_file_path_43} ``` @@ -1012,7 +1106,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format(stream) [static] {#get_file_format_stream_40} +### Method: get_file_format(stream) [static] {#get_file_format_stream_44} ``` @@ -1034,7 +1128,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_41} +### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_45} ``` @@ -1056,7 +1150,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_42} +### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_46} ``` @@ -1081,7 +1175,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_43} +### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_47} ``` @@ -1105,7 +1199,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_modify_date(use_default) {#get_modify_date_use_default_44} +### Method: get_modify_date(use_default) {#get_modify_date_use_default_48} ``` @@ -1127,7 +1221,7 @@ Gets the date and time the resource image was last modified. | datetime | The date and time the resource image was last modified. | -### Method: get_original_options() {#get_original_options__45} +### Method: get_original_options() {#get_original_options__49} ``` @@ -1143,7 +1237,7 @@ Gets the options based on the original file settings.
This can b | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options based on the original file settings. | -### Method: get_pixel(x, y) {#get_pixel_x_y_46} +### Method: get_pixel(x, y) {#get_pixel_x_y_50} ``` @@ -1166,7 +1260,7 @@ Gets an image pixel. | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified location. | -### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_47} +### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_51} ``` @@ -1190,7 +1284,7 @@ Gets a proportional height. | int | The proportional height. | -### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_48} +### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_52} ``` @@ -1214,7 +1308,7 @@ Gets a proportional width. | int | The proportional width. | -### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_49} +### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_53} ``` @@ -1238,7 +1332,7 @@ Converts to aps. | _io.BufferedRandom | The serialized stream | -### Method: get_skew_angle() {#get_skew_angle__50} +### Method: get_skew_angle() {#get_skew_angle__54} ``` @@ -1254,7 +1348,7 @@ Gets the skew angle.
This method is applicable to scanned text d | float | The skew angle, in degrees. | -### Method: load(file_path) [static] {#load_file_path_51} +### Method: load(file_path) [static] {#load_file_path_55} ``` @@ -1276,7 +1370,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(file_path, load_options) [static] {#load_file_path_load_options_52} +### Method: load(file_path, load_options) [static] {#load_file_path_load_options_56} ``` @@ -1299,7 +1393,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream) [static] {#load_stream_53} +### Method: load(stream) [static] {#load_stream_57} ``` @@ -1321,7 +1415,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream, load_options) [static] {#load_stream_load_options_54} +### Method: load(stream, load_options) [static] {#load_stream_load_options_58} ``` @@ -1344,7 +1438,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_55} +### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_59} ``` @@ -1366,7 +1460,7 @@ Loads 32-bit ARGB pixels. | int | The loaded 32-bit ARGB pixels array. | -### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_56} +### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_60} ``` @@ -1388,7 +1482,7 @@ Loads 64-bit ARGB pixels. | long | The loaded 64-bit ARGB pixels array. | -### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_57} +### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_61} ``` @@ -1410,7 +1504,7 @@ Loads pixels in CMYK format. | int | The loaded CMYK pixels presentes as 32-bit inateger values. | -### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_58} +### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_62} ``` @@ -1432,7 +1526,7 @@ Loads pixels in CMYK format.
This method is deprecated. Please u | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The loaded CMYK pixels array. | -### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_59} +### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_63} ``` @@ -1448,7 +1542,7 @@ Loads 32-bit ARGB pixels partially (by blocks). | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to load pixels from. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_60} +### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_64} ``` @@ -1464,7 +1558,7 @@ Loads 64-bit ARGB pixels partially by packs. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | partial_pixel_loader | [IPartialArgb64PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb64pixelloader) | The 64-bit ARGB pixel loader. | -### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_61} +### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_65} ``` @@ -1480,7 +1574,7 @@ Loads pixels partially by packs. | desired_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | pixel_loader | [IPartialPixelLoader](/imaging/python-net/aspose.imaging/ipartialpixelloader) | The pixel loader. | -### Method: load_pixels(rectangle) {#load_pixels_rectangle_62} +### Method: load_pixels(rectangle) {#load_pixels_rectangle_66} ``` @@ -1502,7 +1596,7 @@ Loads pixels. | [Color[]](/imaging/python-net/aspose.imaging/color) | The loaded pixels array. | -### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_63} +### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_67} ``` @@ -1520,7 +1614,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_64} +### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_68} ``` @@ -1537,7 +1631,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_stream(stream) [static] {#load_stream_stream_65} +### Method: load_stream(stream) [static] {#load_stream_stream_69} ``` @@ -1559,7 +1653,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_66} +### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_70} ``` @@ -1582,7 +1676,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_67} +### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_71} ``` @@ -1605,7 +1699,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_68} +### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_72} ``` @@ -1621,7 +1715,7 @@ Normalizes the angle.
This method is applicable to scanned text | resize_proportionally | bool | if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_69} +### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_73} ``` @@ -1643,7 +1737,7 @@ Reads the whole scan line by the specified scan line index. | int | The scan line 32-bit ARGB color values array. | -### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_70} +### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_74} ``` @@ -1665,7 +1759,7 @@ Reads the whole scan line by the specified scan line index. | [Color[]](/imaging/python-net/aspose.imaging/color) | The scan line pixel color values array. | -### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_71} +### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_75} ``` @@ -1682,7 +1776,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_72} +### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_76} ``` @@ -1699,7 +1793,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | New color to replace old color with. | -### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_73} +### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_77} ``` @@ -1716,7 +1810,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_74} +### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_78} ``` @@ -1731,7 +1825,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | New color to replace non transparent colors with. | -### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_75} +### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_79} ``` @@ -1746,7 +1840,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color_argb | int | New color ARGB value to replace non transparent colors with. | -### Method: resize(new_width, new_height) {#resize_new_width_new_height_76} +### Method: resize(new_width, new_height) {#resize_new_width_new_height_80} ``` @@ -1762,14 +1856,14 @@ Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/ | new_width | int | The new width. | | new_height | int | The new height. | -### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_77} +### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_81} ``` resize(new_width, new_height, resize_type) ``` -Resizes the image. +Adjusts the size of the image using a specified resize type, which determines how
the resizing operation is performed. This method provides flexibility in resizing
images according to different algorithms or techniques. By choosing the
appropriate resize type, you can achieve the desired balance between image
quality and computational efficiency based on specific requirements or preferences. **Parameters:** @@ -1779,14 +1873,14 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_78} +### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_82} ``` resize(new_width, new_height, settings) ``` -Resizes the image. +Resize the image while applying specific settings to maintain the desired
dimensions and aspect ratio. By customizing image settings, you can effectively
resize the image while ensuring optimal visual quality and compatibility with
different display devices or applications. **Parameters:** @@ -1796,7 +1890,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_79} +### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_83} ``` @@ -1813,7 +1907,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_80} +### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_84} ``` @@ -1830,7 +1924,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_81} +### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_85} ``` @@ -1845,7 +1939,7 @@ Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RES | :- | :- | :- | | new_height | int | The new height. | -### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_82} +### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_86} ``` @@ -1861,7 +1955,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_83} +### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_87} ``` @@ -1877,7 +1971,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_84} +### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_88} ``` @@ -1893,7 +1987,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_85} +### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_89} ``` @@ -1908,7 +2002,7 @@ Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESA | :- | :- | :- | | new_width | int | The new width. | -### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_86} +### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_90} ``` @@ -1924,7 +2018,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_87} +### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_91} ``` @@ -1940,7 +2034,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_88} +### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_92} ``` @@ -1956,7 +2050,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: rotate(angle) {#rotate_angle_89} +### Method: rotate(angle) {#rotate_angle_93} ``` @@ -1971,7 +2065,7 @@ Rotate image around the center. | :- | :- | :- | | angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | -### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_90} +### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_94} ``` @@ -1988,7 +2082,7 @@ Rotates the image around its center by a specified angle while maintaining resiz | resize_proportionally | bool | if set to true you will have your image size changed
according to rotated rectangle (corner points) projections in other
case that leaves dimensions untouched and only
__internal__ image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_91} +### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_95} ``` @@ -2003,7 +2097,7 @@ The "RotateFlip" method enables rotating and flipping operations on the image. I | :- | :- | :- | | rotate_flip_type | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | The rotate flip type. | -### Method: save(file_path) {#save_file_path_92} +### Method: save(file_path) {#save_file_path_96} ``` @@ -2018,7 +2112,7 @@ Saves the image to the specified file location. | :- | :- | :- | | file_path | string | The file path to save the image to. | -### Method: save(file_path, options) {#save_file_path_options_93} +### Method: save(file_path, options) {#save_file_path_options_97} ``` @@ -2034,7 +2128,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_94} +### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_98} ``` @@ -2051,7 +2145,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: save(file_path, over_write) {#save_file_path_over_write_95} +### Method: save(file_path, over_write) {#save_file_path_over_write_99} ``` @@ -2067,7 +2161,7 @@ Saves the object's data to the specified file location. | file_path | string | The file path to save the object's data to. | | over_write | bool | if set to true over write the file contents, otherwise append will occur. | -### Method: save(stream) {#save_stream_96} +### Method: save(stream) {#save_stream_100} ``` @@ -2082,7 +2176,7 @@ The save data. | :- | :- | :- | | stream | _io.BufferedRandom | The stream. | -### Method: save(stream, options_base) {#save_stream_options_base_97} +### Method: save(stream, options_base) {#save_stream_options_base_101} ``` @@ -2098,7 +2192,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_98} +### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_102} ``` @@ -2115,7 +2209,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_99} +### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_103} ``` @@ -2131,7 +2225,7 @@ Saves the 32-bit ARGB pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The 32-bit ARGB pixels array. | -### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_100} +### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_104} ``` @@ -2147,7 +2241,7 @@ Saves the pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The CMYK pixels presented as the 32-bit integer values. | -### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_101} +### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_105} ``` @@ -2163,7 +2257,7 @@ Saves the pixels.
This method is deprecated. Please use more eff | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The CMYK pixels array. | -### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_102} +### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_106} ``` @@ -2179,7 +2273,7 @@ Saves pixels (format specific method). | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | [Color[]](/imaging/python-net/aspose.imaging/color) | The 32-bit ARGB pixels array. | -### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_103} +### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_107} ``` @@ -2197,7 +2291,7 @@ Saves the raw data. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The raw data rectangle. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings the data is in. | -### Method: save_to_stream(stream) {#save_to_stream_stream_104} +### Method: save_to_stream(stream) {#save_to_stream_stream_108} ``` @@ -2212,7 +2306,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_105} +### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_109} ``` @@ -2228,7 +2322,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_106} +### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_110} ``` @@ -2245,7 +2339,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_107} +### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_111} ``` @@ -2261,7 +2355,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_108} +### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_112} ``` @@ -2278,7 +2372,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_109} +### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_113} ``` @@ -2295,7 +2389,7 @@ Sets an image 32-bit ARGB pixel for the specified position. | y | int | The pixel y location. | | argb_32_color | int | The 32-bit ARGB pixel for the specified position. | -### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_110} +### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_114} ``` @@ -2311,7 +2405,7 @@ Sets the image palette. | palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The palette to set. | | update_colors | bool | if set to true colors will be updated according to the new palette; otherwise color indexes remain unchanged. Note that unchanged indexes may crash the image on loading if some indexes have no corresponding palette entries. | -### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_111} +### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_115} ``` @@ -2328,7 +2422,7 @@ Sets an image pixel for the specified position. | y | int | The pixel y location. | | color | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified position. | -### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_112} +### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_116} ``` @@ -2344,7 +2438,7 @@ Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/ra | dpi_x | double | The horizontal resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | | dpi_y | double | The vertical resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_113} +### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_117} ``` @@ -2360,7 +2454,7 @@ Writes the whole scan line to the specified scan line index. | scan_line_index | int | Zero based index of the scan line. | | argb_32_pixels | int | The 32-bit ARGB colors array to write. | -### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_114} +### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_118} ``` diff --git a/english/python-net/aspose.imaging.fileformats.tiff/tiffframe/_index.md b/english/python-net/aspose.imaging.fileformats.tiff/tiffframe/_index.md index face9eef0a..6940d4d1ba 100644 --- a/english/python-net/aspose.imaging.fileformats.tiff/tiffframe/_index.md +++ b/english/python-net/aspose.imaging.fileformats.tiff/tiffframe/_index.md @@ -87,109 +87,113 @@ url: /python-net/aspose.imaging.fileformats.tiff/tiffframe/ | [can_load_with_options(file_path, load_options)](#can_load_with_options_file_path_load_options_16) | Determines whether image can be loaded from the specified file path and optionally using the specified open options. | | [can_save(options)](#can_save_options_17) | Determines whether image can be saved to the specified file format represented by the passed save options. | | [copy_frame(tiff_frame)](#copy_frame_tiff_frame_18) | Copies the entire frame (duplicates). | -| [create(files)](#create_files_19) | Creates the specified files. | -| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_20) | Creates the specified files. | +| [create(files)](#create_files_19) | Creates the multipage image containing the specified files. | +| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_20) | Creates the multipage image containing the specified files. | | [create(image_options, width, height)](#create_image_options_width_height_21) | Creates a new image using the specified create options. | | [create(images)](#create_images_22) | Creates a new image using the specified images as pages | | [create(images, dispose_images)](#create_images_dispose_images_23) | Creates a new image the specified images as pages. | | [create(multipage_create_options)](#create_multipage_create_options_24) | Creates the specified multipage create options. | | [create_frame_from(tiff_frame, options)](#create_frame_from_tiff_frame_options_25) | Creates the frame from specified _tiffFrame_ using the specified _options_.
The pixel data is preserved but converted to the desired format. | | [create_from_file_with_options(path, options)](#create_from_file_with_options_path_options_26) | Initializes a new instance of the [TiffFrame](/imaging/python-net/aspose.imaging.fileformats.tiff/tiffframe/) class. | -| [create_from_image(image)](#create_from_image_image_27) | Initializes a new instance of the [TiffFrame](/imaging/python-net/aspose.imaging.fileformats.tiff/tiffframe/) class. | -| [create_from_image_with_options(image, options)](#create_from_image_with_options_image_options_28) | Initializes a new instance of the [TiffFrame](/imaging/python-net/aspose.imaging.fileformats.tiff/tiffframe/) class. | -| [create_from_stream(stream)](#create_from_stream_stream_29) | Initializes a new instance of the [TiffFrame](/imaging/python-net/aspose.imaging.fileformats.tiff/tiffframe/) class. | -| [create_from_stream_with_options(stream, options)](#create_from_stream_with_options_stream_options_30) | Initializes a new instance of the [TiffFrame](/imaging/python-net/aspose.imaging.fileformats.tiff/tiffframe/) class. | -| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_31) | Crop image with shifts. | -| [crop(rectangle)](#crop_rectangle_32) | Cropping the image. | -| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_33) | Performs dithering on the current image. | -| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_34) | Performs dithering on the current image. | -| [filter(rectangle, options)](#filter_rectangle_options_35) | Filters the specified rectangle. | -| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_36) | Gets an image 32-bit ARGB pixel. | -| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_37) | Gets the default 32-bit ARGB pixels array. | -| [get_default_options(args)](#get_default_options_args_38) | Gets the default options. | -| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_39) | Gets the default pixels array using partial pixel loader. | -| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_40) | Gets the default raw data array using partial pixel loader. | -| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_41) | Gets the default raw data array. | -| [get_file_format(file_path)](#get_file_format_file_path_42) | Gets the file format. | -| [get_file_format(stream)](#get_file_format_stream_43) | Gets the file format. | -| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_44) | Gets the file format. | -| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_45) | Gets rectangle which fits the current image. | -| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_46) | Gets rectangle which fits the current image. | -| [get_modify_date(use_default)](#get_modify_date_use_default_47) | Gets the date and time the resource image was last modified. | -| [get_original_options()](#get_original_options__48) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | -| [get_pixel(x, y)](#get_pixel_x_y_49) | Gets an image pixel. | -| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_50) | Gets a proportional height. | -| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_51) | Gets a proportional width. | -| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_52) | Converts to aps. | -| [get_skew_angle()](#get_skew_angle__53) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | +| [create_from_files(files)](#create_from_files_files_27) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_files(files, throw_exception_on_load_error)](#create_from_files_files_throw_exception_on_load_error_28) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_image(image)](#create_from_image_image_29) | Initializes a new instance of the [TiffFrame](/imaging/python-net/aspose.imaging.fileformats.tiff/tiffframe/) class. | +| [create_from_image_with_options(image, options)](#create_from_image_with_options_image_options_30) | Initializes a new instance of the [TiffFrame](/imaging/python-net/aspose.imaging.fileformats.tiff/tiffframe/) class. | +| [create_from_images(images)](#create_from_images_images_31) | Creates a new image using the specified images as pages | +| [create_from_images(images, dispose_images)](#create_from_images_images_dispose_images_32) | Creates a new image the specified images as pages. | +| [create_from_stream(stream)](#create_from_stream_stream_33) | Initializes a new instance of the [TiffFrame](/imaging/python-net/aspose.imaging.fileformats.tiff/tiffframe/) class. | +| [create_from_stream_with_options(stream, options)](#create_from_stream_with_options_stream_options_34) | Initializes a new instance of the [TiffFrame](/imaging/python-net/aspose.imaging.fileformats.tiff/tiffframe/) class. | +| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_35) | Crop image with shifts. | +| [crop(rectangle)](#crop_rectangle_36) | Cropping the image. | +| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_37) | Performs dithering on the current image. | +| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_38) | Performs dithering on the current image. | +| [filter(rectangle, options)](#filter_rectangle_options_39) | Filters the specified rectangle. | +| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_40) | Gets an image 32-bit ARGB pixel. | +| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_41) | Gets the default 32-bit ARGB pixels array. | +| [get_default_options(args)](#get_default_options_args_42) | Gets the default options. | +| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_43) | Gets the default pixels array using partial pixel loader. | +| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_44) | Gets the default raw data array using partial pixel loader. | +| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_45) | Gets the default raw data array. | +| [get_file_format(file_path)](#get_file_format_file_path_46) | Gets the file format. | +| [get_file_format(stream)](#get_file_format_stream_47) | Gets the file format. | +| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_48) | Gets the file format. | +| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_49) | Gets rectangle which fits the current image. | +| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_50) | Gets rectangle which fits the current image. | +| [get_modify_date(use_default)](#get_modify_date_use_default_51) | Gets the date and time the resource image was last modified. | +| [get_original_options()](#get_original_options__52) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | +| [get_pixel(x, y)](#get_pixel_x_y_53) | Gets an image pixel. | +| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_54) | Gets a proportional height. | +| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_55) | Gets a proportional width. | +| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_56) | Converts to aps. | +| [get_skew_angle()](#get_skew_angle__57) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | | grayscale() | Transformation of an image to its grayscale representation | -| [load(file_path)](#load_file_path_54) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(file_path, load_options)](#load_file_path_load_options_55) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(stream)](#load_stream_56) | Loads a new image from the specified stream. | -| [load(stream, load_options)](#load_stream_load_options_57) | Loads a new image from the specified stream. | -| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_58) | Loads 32-bit ARGB pixels. | -| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_59) | Loads 64-bit ARGB pixels. | -| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_60) | Loads pixels in CMYK format. | -| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_61) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_62) | Loads 32-bit ARGB pixels partially (by blocks). | -| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_63) | Loads 64-bit ARGB pixels partially by packs. | -| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_64) | Loads pixels partially by packs. | -| [load_pixels(rectangle)](#load_pixels_rectangle_65) | Loads pixels. | -| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_66) | Loads raw data. | -| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_67) | Loads raw data. | -| [load_stream(stream)](#load_stream_stream_68) | Loads a new image from the specified stream. | -| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_69) | Loads a new image from the specified stream. | -| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_70) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path)](#load_file_path_58) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path, load_options)](#load_file_path_load_options_59) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(stream)](#load_stream_60) | Loads a new image from the specified stream. | +| [load(stream, load_options)](#load_stream_load_options_61) | Loads a new image from the specified stream. | +| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_62) | Loads 32-bit ARGB pixels. | +| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_63) | Loads 64-bit ARGB pixels. | +| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_64) | Loads pixels in CMYK format. | +| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_65) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_66) | Loads 32-bit ARGB pixels partially (by blocks). | +| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_67) | Loads 64-bit ARGB pixels partially by packs. | +| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_68) | Loads pixels partially by packs. | +| [load_pixels(rectangle)](#load_pixels_rectangle_69) | Loads pixels. | +| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_70) | Loads raw data. | +| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_71) | Loads raw data. | +| [load_stream(stream)](#load_stream_stream_72) | Loads a new image from the specified stream. | +| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_73) | Loads a new image from the specified stream. | +| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_74) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | | normalize_angle() | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | -| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_71) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | -| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_72) | Reads the whole scan line by the specified scan line index. | -| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_73) | Reads the whole scan line by the specified scan line index. | +| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_75) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | +| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_76) | Reads the whole scan line by the specified scan line index. | +| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_77) | Reads the whole scan line by the specified scan line index. | | remove_metadata() | Removes this image instance metadata by setting this [IHasXmpData.xmp_data](/imaging/python-net/aspose.imaging.xmp/ihasxmpdata/) and [IHasExifData.exif_data](/imaging/python-net/aspose.imaging.exif/ihasexifdata/) values to **None**. | -| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_74) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_75) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_76) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_77) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_78) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [resize(new_width, new_height)](#resize_new_width_new_height_79) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_80) | Resizes the image. | -| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_81) | Resizes the image. | -| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_82) | Resizes the image. | -| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_83) | Resizes the image. | -| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_84) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_85) | Resizes the height proportionally. | -| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_86) | Resizes the height proportionally. | -| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_87) | Resizes the height proportionally. | -| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_88) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_89) | Resizes the width proportionally. | -| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_90) | Resizes the width proportionally. | -| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_91) | Resizes the width proportionally. | -| [rotate(angle)](#rotate_angle_92) | Rotate image around the center. | -| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_93) | Rotate image around the center. | -| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_94) | Rotates, flips, or rotates and flips the image. | +| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_78) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_79) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_80) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_81) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_82) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [resize(new_width, new_height)](#resize_new_width_new_height_83) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_84) | Resizes the image. | +| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_85) | Resizes the image. | +| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_86) | Resizes the image. | +| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_87) | Resizes the image. | +| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_88) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_89) | Resizes the height proportionally. | +| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_90) | Resizes the height proportionally. | +| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_91) | Resizes the height proportionally. | +| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_92) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_93) | Resizes the width proportionally. | +| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_94) | Resizes the width proportionally. | +| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_95) | Resizes the width proportionally. | +| [rotate(angle)](#rotate_angle_96) | Rotate image around the center. | +| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_97) | Rotate image around the center. | +| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_98) | Rotates, flips, or rotates and flips the image. | | save() | Saves the image data to the underlying stream. | -| [save(file_path)](#save_file_path_95) | Saves the image to the specified file location. | -| [save(file_path, options)](#save_file_path_options_96) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_97) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, over_write)](#save_file_path_over_write_98) | Saves the object's data to the specified file location. | -| [save(stream)](#save_stream_99) | Saves the object's data to the specified stream. | -| [save(stream, options_base)](#save_stream_options_base_100) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_101) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_102) | Saves the 32-bit ARGB pixels. | -| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_103) | Saves the pixels. | -| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_104) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_105) | Saves pixels (format specific method). | -| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_106) | Saves the raw data. | -| [save_to_stream(stream)](#save_to_stream_stream_107) | Saves the object's data to the specified stream. | -| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_108) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_109) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_with_options(file_path, options)](#save_with_options_file_path_options_110) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_111) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_112) | Sets an image 32-bit ARGB pixel for the specified position. | -| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_113) | Sets the image palette. | -| [set_pixel(x, y, color)](#set_pixel_x_y_color_114) | Sets an image pixel for the specified position. | -| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_115) | Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_116) | Writes the whole scan line to the specified scan line index. | -| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_117) | Writes the whole scan line to the specified scan line index. | +| [save(file_path)](#save_file_path_99) | Saves the image to the specified file location. | +| [save(file_path, options)](#save_file_path_options_100) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_101) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, over_write)](#save_file_path_over_write_102) | Saves the object's data to the specified file location. | +| [save(stream)](#save_stream_103) | Saves the object's data to the specified stream. | +| [save(stream, options_base)](#save_stream_options_base_104) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_105) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_106) | Saves the 32-bit ARGB pixels. | +| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_107) | Saves the pixels. | +| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_108) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_109) | Saves pixels (format specific method). | +| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_110) | Saves the raw data. | +| [save_to_stream(stream)](#save_to_stream_stream_111) | Saves the object's data to the specified stream. | +| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_112) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_113) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_with_options(file_path, options)](#save_with_options_file_path_options_114) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_115) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_116) | Sets an image 32-bit ARGB pixel for the specified position. | +| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_117) | Sets the image palette. | +| [set_pixel(x, y, color)](#set_pixel_x_y_color_118) | Sets an image pixel for the specified position. | +| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_119) | Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | +| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_120) | Writes the whole scan line to the specified scan line index. | +| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_121) | Writes the whole scan line to the specified scan line index. | ### Constructor: TiffFrame(image) {#TiffFrame_image_1} @@ -667,7 +671,7 @@ Copies the entire frame (duplicates). create(files) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -689,7 +693,7 @@ Creates the specified files. create(files, throw_exception_on_load_error) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -842,7 +846,52 @@ Initializes a new instance of the [TiffFrame](/imaging/python-net/aspose.imaging | [TiffFrame](/imaging/python-net/aspose.imaging.fileformats.tiff/tiffframe) | | -### Method: create_from_image(image) [static] {#create_from_image_image_27} +### Method: create_from_files(files) [static] {#create_from_files_files_27} + + +``` + create_from_files(files) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_files(files, throw_exception_on_load_error) [static] {#create_from_files_files_throw_exception_on_load_error_28} + + +``` + create_from_files(files, throw_exception_on_load_error) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | +| throw_exception_on_load_error | bool | if set to true throw exception on load error. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_image(image) [static] {#create_from_image_image_29} ``` @@ -864,7 +913,7 @@ Initializes a new instance of the [TiffFrame](/imaging/python-net/aspose.imaging | [TiffFrame](/imaging/python-net/aspose.imaging.fileformats.tiff/tiffframe) | | -### Method: create_from_image_with_options(image, options) [static] {#create_from_image_with_options_image_options_28} +### Method: create_from_image_with_options(image, options) [static] {#create_from_image_with_options_image_options_30} ``` @@ -887,7 +936,52 @@ Initializes a new instance of the [TiffFrame](/imaging/python-net/aspose.imaging | [TiffFrame](/imaging/python-net/aspose.imaging.fileformats.tiff/tiffframe) | | -### Method: create_from_stream(stream) [static] {#create_from_stream_stream_29} +### Method: create_from_images(images) [static] {#create_from_images_images_31} + + +``` + create_from_images(images) +``` + +Creates a new image using the specified images as pages + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_images(images, dispose_images) [static] {#create_from_images_images_dispose_images_32} + + +``` + create_from_images(images, dispose_images) +``` + +Creates a new image the specified images as pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | +| dispose_images | bool | if set to true [dispose images]. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_stream(stream) [static] {#create_from_stream_stream_33} ``` @@ -909,7 +1003,7 @@ Initializes a new instance of the [TiffFrame](/imaging/python-net/aspose.imaging | [TiffFrame](/imaging/python-net/aspose.imaging.fileformats.tiff/tiffframe) | | -### Method: create_from_stream_with_options(stream, options) [static] {#create_from_stream_with_options_stream_options_30} +### Method: create_from_stream_with_options(stream, options) [static] {#create_from_stream_with_options_stream_options_34} ``` @@ -932,7 +1026,7 @@ Initializes a new instance of the [TiffFrame](/imaging/python-net/aspose.imaging | [TiffFrame](/imaging/python-net/aspose.imaging.fileformats.tiff/tiffframe) | | -### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_31} +### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_35} ``` @@ -950,7 +1044,7 @@ Crop image with shifts. | top_shift | int | The top shift. | | bottom_shift | int | The bottom shift. | -### Method: crop(rectangle) {#crop_rectangle_32} +### Method: crop(rectangle) {#crop_rectangle_36} ``` @@ -965,7 +1059,7 @@ Cropping the image. | :- | :- | :- | | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | -### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_33} +### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_37} ``` @@ -981,7 +1075,7 @@ Performs dithering on the current image. | dithering_method | [DitheringMethod](/imaging/python-net/aspose.imaging/ditheringmethod) | The dithering method. | | bits_count | int | The final bits count for dithering. | -### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_34} +### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_38} ``` @@ -998,7 +1092,7 @@ Performs dithering on the current image. | bits_count | int | The final bits count for dithering. | | custom_palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The custom palette for dithering. | -### Method: filter(rectangle, options) {#filter_rectangle_options_35} +### Method: filter(rectangle, options) {#filter_rectangle_options_39} ``` @@ -1014,7 +1108,7 @@ Filters the specified rectangle. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | | options | [FilterOptionsBase](/imaging/python-net/aspose.imaging.imagefilters.filteroptions/filteroptionsbase/) | The options. | -### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_36} +### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_40} ``` @@ -1037,7 +1131,7 @@ Gets an image 32-bit ARGB pixel. | int | The 32-bit ARGB pixel for the specified location. | -### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_37} +### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_41} ``` @@ -1059,7 +1153,7 @@ Gets the default 32-bit ARGB pixels array. | int | The default pixels array. | -### Method: get_default_options(args) {#get_default_options_args_38} +### Method: get_default_options(args) {#get_default_options_args_42} ``` @@ -1081,7 +1175,7 @@ Gets the default options. | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Default options | -### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_39} +### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_43} ``` @@ -1097,7 +1191,7 @@ Gets the default pixels array using partial pixel loader. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to get pixels for. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_40} +### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_44} ``` @@ -1114,7 +1208,7 @@ Gets the default raw data array using partial pixel loader. | partial_raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The partial raw data loader. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings. | -### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_41} +### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_45} ``` @@ -1137,7 +1231,7 @@ Gets the default raw data array. | byte | The default raw data array. | -### Method: get_file_format(file_path) [static] {#get_file_format_file_path_42} +### Method: get_file_format(file_path) [static] {#get_file_format_file_path_46} ``` @@ -1159,7 +1253,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format(stream) [static] {#get_file_format_stream_43} +### Method: get_file_format(stream) [static] {#get_file_format_stream_47} ``` @@ -1181,7 +1275,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_44} +### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_48} ``` @@ -1203,7 +1297,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_45} +### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_49} ``` @@ -1228,7 +1322,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_46} +### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_50} ``` @@ -1252,7 +1346,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_modify_date(use_default) {#get_modify_date_use_default_47} +### Method: get_modify_date(use_default) {#get_modify_date_use_default_51} ``` @@ -1274,7 +1368,7 @@ Gets the date and time the resource image was last modified. | datetime | The date and time the resource image was last modified. | -### Method: get_original_options() {#get_original_options__48} +### Method: get_original_options() {#get_original_options__52} ``` @@ -1290,7 +1384,7 @@ Gets the options based on the original file settings.
This can b | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options based on the original file settings. | -### Method: get_pixel(x, y) {#get_pixel_x_y_49} +### Method: get_pixel(x, y) {#get_pixel_x_y_53} ``` @@ -1313,7 +1407,7 @@ Gets an image pixel. | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified location. | -### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_50} +### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_54} ``` @@ -1337,7 +1431,7 @@ Gets a proportional height. | int | The proportional height. | -### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_51} +### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_55} ``` @@ -1361,7 +1455,7 @@ Gets a proportional width. | int | The proportional width. | -### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_52} +### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_56} ``` @@ -1385,7 +1479,7 @@ Converts to aps. | _io.BufferedRandom | The serialized stream | -### Method: get_skew_angle() {#get_skew_angle__53} +### Method: get_skew_angle() {#get_skew_angle__57} ``` @@ -1401,7 +1495,7 @@ Gets the skew angle.
This method is applicable to scanned text d | float | The skew angle, in degrees. | -### Method: load(file_path) [static] {#load_file_path_54} +### Method: load(file_path) [static] {#load_file_path_58} ``` @@ -1423,7 +1517,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(file_path, load_options) [static] {#load_file_path_load_options_55} +### Method: load(file_path, load_options) [static] {#load_file_path_load_options_59} ``` @@ -1446,7 +1540,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream) [static] {#load_stream_56} +### Method: load(stream) [static] {#load_stream_60} ``` @@ -1468,7 +1562,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream, load_options) [static] {#load_stream_load_options_57} +### Method: load(stream, load_options) [static] {#load_stream_load_options_61} ``` @@ -1491,7 +1585,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_58} +### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_62} ``` @@ -1513,7 +1607,7 @@ Loads 32-bit ARGB pixels. | int | The loaded 32-bit ARGB pixels array. | -### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_59} +### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_63} ``` @@ -1535,7 +1629,7 @@ Loads 64-bit ARGB pixels. | long | The loaded 64-bit ARGB pixels array. | -### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_60} +### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_64} ``` @@ -1557,7 +1651,7 @@ Loads pixels in CMYK format. | int | The loaded CMYK pixels presentes as 32-bit inateger values. | -### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_61} +### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_65} ``` @@ -1579,7 +1673,7 @@ Loads pixels in CMYK format.
This method is deprecated. Please u | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The loaded CMYK pixels array. | -### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_62} +### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_66} ``` @@ -1595,7 +1689,7 @@ Loads 32-bit ARGB pixels partially (by blocks). | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to load pixels from. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_63} +### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_67} ``` @@ -1611,7 +1705,7 @@ Loads 64-bit ARGB pixels partially by packs. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | partial_pixel_loader | [IPartialArgb64PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb64pixelloader) | The 64-bit ARGB pixel loader. | -### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_64} +### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_68} ``` @@ -1627,7 +1721,7 @@ Loads pixels partially by packs. | desired_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | pixel_loader | [IPartialPixelLoader](/imaging/python-net/aspose.imaging/ipartialpixelloader) | The pixel loader. | -### Method: load_pixels(rectangle) {#load_pixels_rectangle_65} +### Method: load_pixels(rectangle) {#load_pixels_rectangle_69} ``` @@ -1649,7 +1743,7 @@ Loads pixels. | [Color[]](/imaging/python-net/aspose.imaging/color) | The loaded pixels array. | -### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_66} +### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_70} ``` @@ -1667,7 +1761,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_67} +### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_71} ``` @@ -1684,7 +1778,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_stream(stream) [static] {#load_stream_stream_68} +### Method: load_stream(stream) [static] {#load_stream_stream_72} ``` @@ -1706,7 +1800,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_69} +### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_73} ``` @@ -1729,7 +1823,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_70} +### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_74} ``` @@ -1752,7 +1846,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_71} +### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_75} ``` @@ -1768,7 +1862,7 @@ Normalizes the angle.
This method is applicable to scanned text | resize_proportionally | bool | if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_72} +### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_76} ``` @@ -1790,7 +1884,7 @@ Reads the whole scan line by the specified scan line index. | int | The scan line 32-bit ARGB color values array. | -### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_73} +### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_77} ``` @@ -1812,7 +1906,7 @@ Reads the whole scan line by the specified scan line index. | [Color[]](/imaging/python-net/aspose.imaging/color) | The scan line pixel color values array. | -### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_74} +### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_78} ``` @@ -1829,7 +1923,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_75} +### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_79} ``` @@ -1846,7 +1940,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | New color to replace old color with. | -### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_76} +### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_80} ``` @@ -1863,7 +1957,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_77} +### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_81} ``` @@ -1878,7 +1972,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | New color to replace non transparent colors with. | -### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_78} +### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_82} ``` @@ -1893,7 +1987,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color_argb | int | New color ARGB value to replace non transparent colors with. | -### Method: resize(new_width, new_height) {#resize_new_width_new_height_79} +### Method: resize(new_width, new_height) {#resize_new_width_new_height_83} ``` @@ -1909,7 +2003,7 @@ Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/ | new_width | int | The new width. | | new_height | int | The new height. | -### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_80} +### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_84} ``` @@ -1926,7 +2020,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_81} +### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_85} ``` @@ -1943,7 +2037,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_82} +### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_86} ``` @@ -1960,7 +2054,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_83} +### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_87} ``` @@ -1977,7 +2071,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_84} +### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_88} ``` @@ -1992,7 +2086,7 @@ Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RES | :- | :- | :- | | new_height | int | The new height. | -### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_85} +### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_89} ``` @@ -2008,7 +2102,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_86} +### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_90} ``` @@ -2024,7 +2118,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_87} +### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_91} ``` @@ -2040,7 +2134,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_88} +### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_92} ``` @@ -2055,7 +2149,7 @@ Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESA | :- | :- | :- | | new_width | int | The new width. | -### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_89} +### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_93} ``` @@ -2071,7 +2165,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_90} +### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_94} ``` @@ -2087,7 +2181,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_91} +### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_95} ``` @@ -2103,7 +2197,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: rotate(angle) {#rotate_angle_92} +### Method: rotate(angle) {#rotate_angle_96} ``` @@ -2118,7 +2212,7 @@ Rotate image around the center. | :- | :- | :- | | angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | -### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_93} +### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_97} ``` @@ -2135,7 +2229,7 @@ Rotate image around the center. | resize_proportionally | bool | if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_94} +### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_98} ``` @@ -2150,7 +2244,7 @@ Rotates, flips, or rotates and flips the image. | :- | :- | :- | | rotate_flip_type | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | The rotate flip type. | -### Method: save(file_path) {#save_file_path_95} +### Method: save(file_path) {#save_file_path_99} ``` @@ -2165,7 +2259,7 @@ Saves the image to the specified file location. | :- | :- | :- | | file_path | string | The file path to save the image to. | -### Method: save(file_path, options) {#save_file_path_options_96} +### Method: save(file_path, options) {#save_file_path_options_100} ``` @@ -2181,7 +2275,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_97} +### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_101} ``` @@ -2198,7 +2292,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: save(file_path, over_write) {#save_file_path_over_write_98} +### Method: save(file_path, over_write) {#save_file_path_over_write_102} ``` @@ -2214,7 +2308,7 @@ Saves the object's data to the specified file location. | file_path | string | The file path to save the object's data to. | | over_write | bool | if set to true over write the file contents, otherwise append will occur. | -### Method: save(stream) {#save_stream_99} +### Method: save(stream) {#save_stream_103} ``` @@ -2229,7 +2323,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save(stream, options_base) {#save_stream_options_base_100} +### Method: save(stream, options_base) {#save_stream_options_base_104} ``` @@ -2245,7 +2339,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_101} +### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_105} ``` @@ -2262,7 +2356,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_102} +### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_106} ``` @@ -2278,7 +2372,7 @@ Saves the 32-bit ARGB pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The 32-bit ARGB pixels array. | -### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_103} +### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_107} ``` @@ -2294,7 +2388,7 @@ Saves the pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The CMYK pixels presented as the 32-bit integer values. | -### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_104} +### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_108} ``` @@ -2310,7 +2404,7 @@ Saves the pixels.
This method is deprecated. Please use more eff | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The CMYK pixels array. | -### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_105} +### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_109} ``` @@ -2326,7 +2420,7 @@ Saves pixels (format specific method). | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | [Color[]](/imaging/python-net/aspose.imaging/color) | The 32-bit ARGB pixels array. | -### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_106} +### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_110} ``` @@ -2344,7 +2438,7 @@ Saves the raw data. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The raw data rectangle. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings the data is in. | -### Method: save_to_stream(stream) {#save_to_stream_stream_107} +### Method: save_to_stream(stream) {#save_to_stream_stream_111} ``` @@ -2359,7 +2453,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_108} +### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_112} ``` @@ -2375,7 +2469,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_109} +### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_113} ``` @@ -2392,7 +2486,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_110} +### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_114} ``` @@ -2408,7 +2502,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_111} +### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_115} ``` @@ -2425,7 +2519,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_112} +### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_116} ``` @@ -2442,7 +2536,7 @@ Sets an image 32-bit ARGB pixel for the specified position. | y | int | The pixel y location. | | argb_32_color | int | The 32-bit ARGB pixel for the specified position. | -### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_113} +### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_117} ``` @@ -2458,7 +2552,7 @@ Sets the image palette. | palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The palette to set. | | update_colors | bool | if set to true colors will be updated according to the new palette; otherwise color indexes remain unchanged. Note that unchanged indexes may crash the image on loading if some indexes have no corresponding palette entries. | -### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_114} +### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_118} ``` @@ -2475,7 +2569,7 @@ Sets an image pixel for the specified position. | y | int | The pixel y location. | | color | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified position. | -### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_115} +### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_119} ``` @@ -2491,7 +2585,7 @@ Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/ra | dpi_x | double | The horizontal resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | | dpi_y | double | The vertical resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_116} +### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_120} ``` @@ -2507,7 +2601,7 @@ Writes the whole scan line to the specified scan line index. | scan_line_index | int | Zero based index of the scan line. | | argb_32_pixels | int | The 32-bit ARGB colors array to write. | -### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_117} +### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_121} ``` diff --git a/english/python-net/aspose.imaging.fileformats.tiff/tiffimage/_index.md b/english/python-net/aspose.imaging.fileformats.tiff/tiffimage/_index.md index 8f184ec357..e2faac810a 100644 --- a/english/python-net/aspose.imaging.fileformats.tiff/tiffimage/_index.md +++ b/english/python-net/aspose.imaging.fileformats.tiff/tiffimage/_index.md @@ -88,112 +88,116 @@ url: /python-net/aspose.imaging.fileformats.tiff/tiffimage/ | [can_load_stream_with_options(stream, load_options)](#can_load_stream_with_options_stream_load_options_19) | Determines whether image can be loaded from the specified stream and optionally using the specified _loadOptions_. | | [can_load_with_options(file_path, load_options)](#can_load_with_options_file_path_load_options_20) | Determines whether image can be loaded from the specified file path and optionally using the specified open options. | | [can_save(options)](#can_save_options_21) | Determines whether image can be saved to the specified file format represented by the passed save options. | -| [create(files)](#create_files_22) | Creates the specified files. | -| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_23) | Creates the specified files. | +| [create(files)](#create_files_22) | Creates the multipage image containing the specified files. | +| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_23) | Creates the multipage image containing the specified files. | | [create(image_options, width, height)](#create_image_options_width_height_24) | Creates a new image using the specified create options. | | [create(images)](#create_images_25) | Creates a new image using the specified images as pages | | [create(images, dispose_images)](#create_images_dispose_images_26) | Creates a new image the specified images as pages. | | [create(multipage_create_options)](#create_multipage_create_options_27) | Creates the specified multipage create options. | -| [create_with_frame(frame)](#create_with_frame_frame_28) | Initializes a new instance of the [TiffImage](/imaging/python-net/aspose.imaging.fileformats.tiff/tiffimage/) class. | -| [create_with_frames(frames)](#create_with_frames_frames_29) | Initializes a new instance of the [TiffImage](/imaging/python-net/aspose.imaging.fileformats.tiff/tiffimage/) class. | -| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_30) | Perform cropping on the image by specifying shifts in the left, right, top, and
bottom directions. This method enables precise selection of the desired portion of
the image, facilitating efficient removal of unwanted areas and focusing on
essential content. Integrate this functionality into your image processing
pipeline to enhance clarity and composition as needed within your application. | -| [crop(rectangle)](#crop_rectangle_31) | Crop the image using a specified rectangular region, allowing precise selection of
desired content. Integrate this method into your image processing workflow to
efficiently remove unwanted areas and focus on essential details, enhancing the
overall clarity and composition of the image. | -| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_32) | Performs dithering on the current image. | -| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_33) | Execute dithering on the current image to enhance its visual quality and reduce
color banding artifacts. Integrate this method into your image processing workflow
to ensure smoother transitions between colors, resulting in improved overall image
appearance and clarity. | -| [filter(rectangle, options)](#filter_rectangle_options_34) | Filter the content within the specified rectangle, applying a designated image
processing filter to enhance or modify the selected region. Integrate this method
into your image manipulation workflow to achieve targeted enhancements or
transformations within your application. | -| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_35) | Gets an image 32-bit ARGB pixel. | -| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_36) | Gets the default 32-bit ARGB pixels array. | -| [get_default_options(args)](#get_default_options_args_37) | Gets the default options. | -| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_38) | Gets the default pixels array using partial pixel loader. | -| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_39) | Gets the default raw data array using partial pixel loader. | -| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_40) | Gets the default raw data array. | -| [get_file_format(file_path)](#get_file_format_file_path_41) | Gets the file format. | -| [get_file_format(stream)](#get_file_format_stream_42) | Gets the file format. | -| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_43) | Gets the file format. | -| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_44) | Gets rectangle which fits the current image. | -| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_45) | Gets rectangle which fits the current image. | -| [get_modify_date(use_default)](#get_modify_date_use_default_46) | Gets the date and time the resource image was last modified. | -| [get_original_options()](#get_original_options__47) | Retrieve options derived from the original file settings, facilitating seamless
preservation of key parameters such as bit-depth and other essential attributes of
the original image. Utilize this method to maintain fidelity and consistency in
image processing tasks, ensuring optimal results without unnecessary alterations.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | -| [get_pixel(x, y)](#get_pixel_x_y_48) | Gets an image pixel. | -| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_49) | Gets a proportional height. | -| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_50) | Gets a proportional width. | -| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_51) | Converts to aps. | -| [get_skew_angle()](#get_skew_angle__52) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | +| [create_from_files(files)](#create_from_files_files_28) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_files(files, throw_exception_on_load_error)](#create_from_files_files_throw_exception_on_load_error_29) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_images(images)](#create_from_images_images_30) | Creates a new image using the specified images as pages | +| [create_from_images(images, dispose_images)](#create_from_images_images_dispose_images_31) | Creates a new image the specified images as pages. | +| [create_with_frame(frame)](#create_with_frame_frame_32) | Initializes a new instance of the [TiffImage](/imaging/python-net/aspose.imaging.fileformats.tiff/tiffimage/) class. | +| [create_with_frames(frames)](#create_with_frames_frames_33) | Initializes a new instance of the [TiffImage](/imaging/python-net/aspose.imaging.fileformats.tiff/tiffimage/) class. | +| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_34) | Perform cropping on the image by specifying shifts in the left, right, top, and
bottom directions. This method enables precise selection of the desired portion of
the image, facilitating efficient removal of unwanted areas and focusing on
essential content. Integrate this functionality into your image processing
pipeline to enhance clarity and composition as needed within your application. | +| [crop(rectangle)](#crop_rectangle_35) | Crop the image using a specified rectangular region, allowing precise selection of
desired content. Integrate this method into your image processing workflow to
efficiently remove unwanted areas and focus on essential details, enhancing the
overall clarity and composition of the image. | +| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_36) | Performs dithering on the current image. | +| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_37) | Execute dithering on the current image to enhance its visual quality and reduce
color banding artifacts. Integrate this method into your image processing workflow
to ensure smoother transitions between colors, resulting in improved overall image
appearance and clarity. | +| [filter(rectangle, options)](#filter_rectangle_options_38) | Filter the content within the specified rectangle, applying a designated image
processing filter to enhance or modify the selected region. Integrate this method
into your image manipulation workflow to achieve targeted enhancements or
transformations within your application. | +| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_39) | Gets an image 32-bit ARGB pixel. | +| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_40) | Gets the default 32-bit ARGB pixels array. | +| [get_default_options(args)](#get_default_options_args_41) | Gets the default options. | +| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_42) | Gets the default pixels array using partial pixel loader. | +| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_43) | Gets the default raw data array using partial pixel loader. | +| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_44) | Gets the default raw data array. | +| [get_file_format(file_path)](#get_file_format_file_path_45) | Gets the file format. | +| [get_file_format(stream)](#get_file_format_stream_46) | Gets the file format. | +| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_47) | Gets the file format. | +| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_48) | Gets rectangle which fits the current image. | +| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_49) | Gets rectangle which fits the current image. | +| [get_modify_date(use_default)](#get_modify_date_use_default_50) | Gets the date and time the resource image was last modified. | +| [get_original_options()](#get_original_options__51) | Retrieve options derived from the original file settings, facilitating seamless
preservation of key parameters such as bit-depth and other essential attributes of
the original image. Utilize this method to maintain fidelity and consistency in
image processing tasks, ensuring optimal results without unnecessary alterations.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | +| [get_pixel(x, y)](#get_pixel_x_y_52) | Gets an image pixel. | +| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_53) | Gets a proportional height. | +| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_54) | Gets a proportional width. | +| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_55) | Converts to aps. | +| [get_skew_angle()](#get_skew_angle__56) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | | grayscale() | Convert the image to its grayscale representation, transforming it into a
single-channel image where each pixel represents intensity. Integrate this method
into your image processing pipeline to simplify analysis and enhance
compatibility with grayscale-based algorithms, facilitating various computer
vision and image analysis tasks within your application. | -| [insert_frame(index, frame_to_insert)](#insert_frame_index_frame_to_insert_53) | Insert the new frame at the specified index within the frame sequence, ensuring
precise control over frame arrangement. Employ this method to manage frame
sequences effectively, facilitating dynamic manipulation and organization of image
content within your application. | -| [load(file_path)](#load_file_path_54) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(file_path, load_options)](#load_file_path_load_options_55) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(stream)](#load_stream_56) | Loads a new image from the specified stream. | -| [load(stream, load_options)](#load_stream_load_options_57) | Loads a new image from the specified stream. | -| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_58) | Loads 32-bit ARGB pixels. | -| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_59) | Loads 64-bit ARGB pixels. | -| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_60) | Loads pixels in CMYK format. | -| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_61) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_62) | Loads 32-bit ARGB pixels partially (by blocks). | -| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_63) | Loads 64-bit ARGB pixels partially by packs. | -| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_64) | Loads pixels partially by packs. | -| [load_pixels(rectangle)](#load_pixels_rectangle_65) | Loads pixels. | -| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_66) | Loads raw data. | -| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_67) | Loads raw data. | -| [load_stream(stream)](#load_stream_stream_68) | Loads a new image from the specified stream. | -| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_69) | Loads a new image from the specified stream. | -| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_70) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [insert_frame(index, frame_to_insert)](#insert_frame_index_frame_to_insert_57) | Insert the new frame at the specified index within the frame sequence, ensuring
precise control over frame arrangement. Employ this method to manage frame
sequences effectively, facilitating dynamic manipulation and organization of image
content within your application. | +| [load(file_path)](#load_file_path_58) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path, load_options)](#load_file_path_load_options_59) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(stream)](#load_stream_60) | Loads a new image from the specified stream. | +| [load(stream, load_options)](#load_stream_load_options_61) | Loads a new image from the specified stream. | +| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_62) | Loads 32-bit ARGB pixels. | +| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_63) | Loads 64-bit ARGB pixels. | +| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_64) | Loads pixels in CMYK format. | +| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_65) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_66) | Loads 32-bit ARGB pixels partially (by blocks). | +| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_67) | Loads 64-bit ARGB pixels partially by packs. | +| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_68) | Loads pixels partially by packs. | +| [load_pixels(rectangle)](#load_pixels_rectangle_69) | Loads pixels. | +| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_70) | Loads raw data. | +| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_71) | Loads raw data. | +| [load_stream(stream)](#load_stream_stream_72) | Loads a new image from the specified stream. | +| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_73) | Loads a new image from the specified stream. | +| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_74) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | | normalize_angle() | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | -| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_71) | Utilize the NormalizeAngle method specifically designed for scanned text documents
to rectify skewed scans, ensuring accurate alignment. Seamlessly
integrate this functionality into your text processing workflows to enhance
document readability and quality, improving overall efficiency in text recognition
and analysis tasks.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [TiffImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging.fileformats.tiff/tiffimage/) methods. | -| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_72) | Reads the whole scan line by the specified scan line index. | -| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_73) | Reads the whole scan line by the specified scan line index. | -| [remove_frame(frame)](#remove_frame_frame_74) | Efficiently remove the specified frame from the image sequence, facilitating
streamlined frame management within your application. Integrate this functionality
to enhance precision and flexibility in frame manipulation, ensuring seamless
organization and presentation of image content. | -| [remove_frame(index)](#remove_frame_index_75) | Removes the frame by its index. | -| [remove_frame_by_index(index)](#remove_frame_by_index_index_76) | Removes the frame by its index. | +| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_75) | Utilize the NormalizeAngle method specifically designed for scanned text documents
to rectify skewed scans, ensuring accurate alignment. Seamlessly
integrate this functionality into your text processing workflows to enhance
document readability and quality, improving overall efficiency in text recognition
and analysis tasks.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [TiffImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging.fileformats.tiff/tiffimage/) methods. | +| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_76) | Reads the whole scan line by the specified scan line index. | +| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_77) | Reads the whole scan line by the specified scan line index. | +| [remove_frame(frame)](#remove_frame_frame_78) | Efficiently remove the specified frame from the image sequence, facilitating
streamlined frame management within your application. Integrate this functionality
to enhance precision and flexibility in frame manipulation, ensuring seamless
organization and presentation of image content. | +| [remove_frame(index)](#remove_frame_index_79) | Removes the frame by its index. | +| [remove_frame_by_index(index)](#remove_frame_by_index_index_80) | Removes the frame by its index. | | remove_metadata() | Removes this image instance metadata by setting this [IHasXmpData.xmp_data](/imaging/python-net/aspose.imaging.xmp/ihasxmpdata/) and [IHasExifData.exif_data](/imaging/python-net/aspose.imaging.exif/ihasexifdata/) values to **None**. | -| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_77) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_78) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_79) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_frame(index, frame_to_replace)](#replace_frame_index_frame_to_replace_80) | Substitute the frame at the designated position with another frame seamlessly,
facilitating dynamic frame management within the image sequence. Integrate this
method to enhance flexibility and precision in frame manipulation, ensuring
optimal organization and presentation of image content within your application. | -| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_81) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_82) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [resize(new_width, new_height)](#resize_new_width_new_height_83) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_84) | Conduct a proportional resize operation on the image, preserving its aspect ratio
while adjusting its dimensions. Employ this method to dynamically scale images
within your application, ensuring consistent visual representation of content
integrity.
The proportional resize will resize each frame according to the ratio of _newWidth_/width and _newHeight_/height. | -| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_85) | Resizes the image. | -| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_86) | Resizes the image. | -| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_87) | Resizes the image. | -| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_88) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_89) | Conduct a proportional adjustment of the image's height, preserving its aspect
ratio for consistent visual integrity. Employ this method to dynamically resize
images within your application, ensuring optimal display across diverse platforms
and devices without compromising content quality. | -| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_90) | Resizes the height proportionally. | -| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_91) | Resizes the height proportionally. | -| [resize_proportional(new_width, new_height, resize_type)](#resize_proportional_new_width_new_height_resize_type_92) | Conduct a proportional resize operation on the image, preserving its aspect ratio
while adjusting its dimensions. Employ this method to dynamically scale images
within your application, ensuring consistent visual representation of content
integrity.
The proportional resize will resize each frame according to the ratio of _newWidth_/width and _newHeight_/height. | -| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_93) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_94) | Adjust the width of the image while maintaining its aspect ratio, ensuring
proportional resizing for optimal visual presentation. Utilize this method to
dynamically scale images within your application, facilitating consistent and
aesthetically pleasing rendering across various display contexts. | -| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_95) | Resizes the width proportionally. | -| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_96) | Resizes the width proportionally. | -| [rotate(angle)](#rotate_angle_97) | Rotate image around the center. | -| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_98) | Rotate the image around its center point by a specified angle, enabling precise
orientation adjustments. Incorporate this functionality into your image processing
pipeline to facilitate accurate transformations, ensuring optimal alignment and
presentation of visual content within your application. | -| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_99) | Perform rotation, flipping, or a combination of both operations exclusively on the
active frame. This method allows precise manipulation of individual frames within
the image sequence, enhancing flexibility in image editing and composition within
your application. | -| [rotate_flip_all(rotate_flip)](#rotate_flip_all_rotate_flip_100) | Rotates the flip all. | +| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_81) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_82) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_83) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_frame(index, frame_to_replace)](#replace_frame_index_frame_to_replace_84) | Substitute the frame at the designated position with another frame seamlessly,
facilitating dynamic frame management within the image sequence. Integrate this
method to enhance flexibility and precision in frame manipulation, ensuring
optimal organization and presentation of image content within your application. | +| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_85) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_86) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [resize(new_width, new_height)](#resize_new_width_new_height_87) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_88) | Conduct a proportional resize operation on the image, preserving its aspect ratio
while adjusting its dimensions. Employ this method to dynamically scale images
within your application, ensuring consistent visual representation of content
integrity.
The proportional resize will resize each frame according to the ratio of _newWidth_/width and _newHeight_/height. | +| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_89) | Adjust the size of the image based on specified settings, allowing for precise
control over dimensions, aspect ratio, and scaling behavior. Integrate this
method into your image processing workflow to achieve customized resizing
operations tailored to the specific requirements of your application. | +| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_90) | Resizes the image. | +| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_91) | Resizes the image. | +| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_92) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_93) | Conduct a proportional adjustment of the image's height, preserving its aspect
ratio for consistent visual integrity. Employ this method to dynamically resize
images within your application, ensuring optimal display across diverse platforms
and devices without compromising content quality. | +| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_94) | Resizes the height proportionally. | +| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_95) | Resizes the height proportionally. | +| [resize_proportional(new_width, new_height, resize_type)](#resize_proportional_new_width_new_height_resize_type_96) | Conduct a proportional resize operation on the image, preserving its aspect ratio
while adjusting its dimensions. Employ this method to dynamically scale images
within your application, ensuring consistent visual representation of content
integrity.
The proportional resize will resize each frame according to the ratio of _newWidth_/width and _newHeight_/height. | +| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_97) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_98) | Adjust the width of the image while maintaining its aspect ratio, ensuring
proportional resizing for optimal visual presentation. Utilize this method to
dynamically scale images within your application, facilitating consistent and
aesthetically pleasing rendering across various display contexts. | +| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_99) | Resizes the width proportionally. | +| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_100) | Resizes the width proportionally. | +| [rotate(angle)](#rotate_angle_101) | Rotate image around the center. | +| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_102) | Rotate the image around its center point by a specified angle, enabling precise
orientation adjustments. Incorporate this functionality into your image processing
pipeline to facilitate accurate transformations, ensuring optimal alignment and
presentation of visual content within your application. | +| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_103) | Perform rotation, flipping, or a combination of both operations exclusively on the
active frame. This method allows precise manipulation of individual frames within
the image sequence, enhancing flexibility in image editing and composition within
your application. | +| [rotate_flip_all(rotate_flip)](#rotate_flip_all_rotate_flip_104) | Rotates the flip all. | | save() | Saves the image data to the underlying stream. | -| [save(file_path)](#save_file_path_101) | Saves the image to the specified file location. | -| [save(file_path, options)](#save_file_path_options_102) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_103) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, over_write)](#save_file_path_over_write_104) | Saves the object's data to the specified file location. | -| [save(stream)](#save_stream_105) | Saves the object's data to the specified stream. | -| [save(stream, options_base)](#save_stream_options_base_106) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_107) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_108) | Saves the 32-bit ARGB pixels. | -| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_109) | Saves the pixels. | -| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_110) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_111) | Saves the pixels internal main. | -| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_112) | Saves the raw data. | -| [save_to_stream(stream)](#save_to_stream_stream_113) | Saves image to stream | -| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_114) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_115) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_with_options(file_path, options)](#save_with_options_file_path_options_116) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_117) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_118) | Sets an image 32-bit ARGB pixel for the specified position. | -| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_119) | Sets the image palette. | -| [set_pixel(x, y, color)](#set_pixel_x_y_color_120) | Sets an image pixel for the specified position. | -| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_121) | Establishes the resolution for the specified [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/), enabling
precise control over image rendering and display properties. Integrate this
functionality to optimize visual output and ensure compatibility with diverse
output devices and platforms, enhancing the overall user experience. | -| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_122) | Writes the whole scan line to the specified scan line index. | -| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_123) | Writes the whole scan line to the specified scan line index. | +| [save(file_path)](#save_file_path_105) | Saves the image to the specified file location. | +| [save(file_path, options)](#save_file_path_options_106) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_107) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, over_write)](#save_file_path_over_write_108) | Saves the object's data to the specified file location. | +| [save(stream)](#save_stream_109) | Saves the object's data to the specified stream. | +| [save(stream, options_base)](#save_stream_options_base_110) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_111) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_112) | Saves the 32-bit ARGB pixels. | +| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_113) | Saves the pixels. | +| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_114) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_115) | Saves the pixels internal main. | +| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_116) | Saves the raw data. | +| [save_to_stream(stream)](#save_to_stream_stream_117) | Saves image to stream | +| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_118) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_119) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_with_options(file_path, options)](#save_with_options_file_path_options_120) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_121) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_122) | Sets an image 32-bit ARGB pixel for the specified position. | +| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_123) | Sets the image palette. | +| [set_pixel(x, y, color)](#set_pixel_x_y_color_124) | Sets an image pixel for the specified position. | +| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_125) | Establishes the resolution for the specified [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/), enabling
precise control over image rendering and display properties. Integrate this
functionality to optimize visual output and ensure compatibility with diverse
output devices and platforms, enhancing the overall user experience. | +| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_126) | Writes the whole scan line to the specified scan line index. | +| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_127) | Writes the whole scan line to the specified scan line index. | ### Constructor: TiffImage(frame) {#TiffImage_frame_1} @@ -646,7 +650,7 @@ Determines whether image can be saved to the specified file format represented b create(files) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -668,7 +672,7 @@ Creates the specified files. create(files, throw_exception_on_load_error) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -775,7 +779,97 @@ Creates the specified multipage create options. | [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | -### Method: create_with_frame(frame) [static] {#create_with_frame_frame_28} +### Method: create_from_files(files) [static] {#create_from_files_files_28} + + +``` + create_from_files(files) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_files(files, throw_exception_on_load_error) [static] {#create_from_files_files_throw_exception_on_load_error_29} + + +``` + create_from_files(files, throw_exception_on_load_error) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | +| throw_exception_on_load_error | bool | if set to true throw exception on load error. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_images(images) [static] {#create_from_images_images_30} + + +``` + create_from_images(images) +``` + +Creates a new image using the specified images as pages + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_images(images, dispose_images) [static] {#create_from_images_images_dispose_images_31} + + +``` + create_from_images(images, dispose_images) +``` + +Creates a new image the specified images as pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | +| dispose_images | bool | if set to true [dispose images]. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_with_frame(frame) [static] {#create_with_frame_frame_32} ``` @@ -797,7 +891,7 @@ Initializes a new instance of the [TiffImage](/imaging/python-net/aspose.imaging | [TiffImage](/imaging/python-net/aspose.imaging.fileformats.tiff/tiffimage) | | -### Method: create_with_frames(frames) [static] {#create_with_frames_frames_29} +### Method: create_with_frames(frames) [static] {#create_with_frames_frames_33} ``` @@ -819,7 +913,7 @@ Initializes a new instance of the [TiffImage](/imaging/python-net/aspose.imaging | [TiffImage](/imaging/python-net/aspose.imaging.fileformats.tiff/tiffimage) | | -### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_30} +### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_34} ``` @@ -837,7 +931,7 @@ Perform cropping on the image by specifying shifts in the left, right, top, and | top_shift | int | The top shift. | | bottom_shift | int | The bottom shift. | -### Method: crop(rectangle) {#crop_rectangle_31} +### Method: crop(rectangle) {#crop_rectangle_35} ``` @@ -852,7 +946,7 @@ Crop the image using a specified rectangular region, allowing precise selection | :- | :- | :- | | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | -### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_32} +### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_36} ``` @@ -868,7 +962,7 @@ Performs dithering on the current image. | dithering_method | [DitheringMethod](/imaging/python-net/aspose.imaging/ditheringmethod) | The dithering method. | | bits_count | int | The final bits count for dithering. | -### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_33} +### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_37} ``` @@ -885,7 +979,7 @@ Execute dithering on the current image to enhance its visual quality and reduce | bits_count | int | The final bits count for dithering. | | custom_palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The custom palette for dithering. | -### Method: filter(rectangle, options) {#filter_rectangle_options_34} +### Method: filter(rectangle, options) {#filter_rectangle_options_38} ``` @@ -901,7 +995,7 @@ Filter the content within the specified rectangle, applying a designated image < | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | | options | [FilterOptionsBase](/imaging/python-net/aspose.imaging.imagefilters.filteroptions/filteroptionsbase/) | The options. | -### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_35} +### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_39} ``` @@ -924,7 +1018,7 @@ Gets an image 32-bit ARGB pixel. | int | The 32-bit ARGB pixel for the specified location. | -### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_36} +### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_40} ``` @@ -946,7 +1040,7 @@ Gets the default 32-bit ARGB pixels array. | int | The default pixels array. | -### Method: get_default_options(args) {#get_default_options_args_37} +### Method: get_default_options(args) {#get_default_options_args_41} ``` @@ -968,7 +1062,7 @@ Gets the default options. | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Default options | -### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_38} +### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_42} ``` @@ -984,7 +1078,7 @@ Gets the default pixels array using partial pixel loader. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to get pixels for. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_39} +### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_43} ``` @@ -1001,7 +1095,7 @@ Gets the default raw data array using partial pixel loader. | partial_raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The partial raw data loader. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings. | -### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_40} +### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_44} ``` @@ -1024,7 +1118,7 @@ Gets the default raw data array. | byte | The default raw data array. | -### Method: get_file_format(file_path) [static] {#get_file_format_file_path_41} +### Method: get_file_format(file_path) [static] {#get_file_format_file_path_45} ``` @@ -1046,7 +1140,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format(stream) [static] {#get_file_format_stream_42} +### Method: get_file_format(stream) [static] {#get_file_format_stream_46} ``` @@ -1068,7 +1162,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_43} +### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_47} ``` @@ -1090,7 +1184,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_44} +### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_48} ``` @@ -1115,7 +1209,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_45} +### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_49} ``` @@ -1139,7 +1233,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_modify_date(use_default) {#get_modify_date_use_default_46} +### Method: get_modify_date(use_default) {#get_modify_date_use_default_50} ``` @@ -1161,7 +1255,7 @@ Gets the date and time the resource image was last modified. | datetime | The date and time the resource image was last modified. | -### Method: get_original_options() {#get_original_options__47} +### Method: get_original_options() {#get_original_options__51} ``` @@ -1177,7 +1271,7 @@ Retrieve options derived from the original file settings, facilitating seamless | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options based on the original file settings. | -### Method: get_pixel(x, y) {#get_pixel_x_y_48} +### Method: get_pixel(x, y) {#get_pixel_x_y_52} ``` @@ -1200,7 +1294,7 @@ Gets an image pixel. | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified location. | -### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_49} +### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_53} ``` @@ -1224,7 +1318,7 @@ Gets a proportional height. | int | The proportional height. | -### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_50} +### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_54} ``` @@ -1248,7 +1342,7 @@ Gets a proportional width. | int | The proportional width. | -### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_51} +### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_55} ``` @@ -1272,7 +1366,7 @@ Converts to aps. | _io.BufferedRandom | The serialized stream | -### Method: get_skew_angle() {#get_skew_angle__52} +### Method: get_skew_angle() {#get_skew_angle__56} ``` @@ -1288,7 +1382,7 @@ Gets the skew angle.
This method is applicable to scanned text d | float | The skew angle, in degrees. | -### Method: insert_frame(index, frame_to_insert) {#insert_frame_index_frame_to_insert_53} +### Method: insert_frame(index, frame_to_insert) {#insert_frame_index_frame_to_insert_57} ``` @@ -1304,7 +1398,7 @@ Insert the new frame at the specified index within the frame sequence, ensuring | index | int | Index of new frame in list of frames | | frame_to_insert | [TiffFrame](/imaging/python-net/aspose.imaging.fileformats.tiff/tiffframe) | The frame To Insert. | -### Method: load(file_path) [static] {#load_file_path_54} +### Method: load(file_path) [static] {#load_file_path_58} ``` @@ -1326,7 +1420,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(file_path, load_options) [static] {#load_file_path_load_options_55} +### Method: load(file_path, load_options) [static] {#load_file_path_load_options_59} ``` @@ -1349,7 +1443,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream) [static] {#load_stream_56} +### Method: load(stream) [static] {#load_stream_60} ``` @@ -1371,7 +1465,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream, load_options) [static] {#load_stream_load_options_57} +### Method: load(stream, load_options) [static] {#load_stream_load_options_61} ``` @@ -1394,7 +1488,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_58} +### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_62} ``` @@ -1416,7 +1510,7 @@ Loads 32-bit ARGB pixels. | int | The loaded 32-bit ARGB pixels array. | -### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_59} +### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_63} ``` @@ -1438,7 +1532,7 @@ Loads 64-bit ARGB pixels. | long | The loaded 64-bit ARGB pixels array. | -### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_60} +### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_64} ``` @@ -1460,7 +1554,7 @@ Loads pixels in CMYK format. | int | The loaded CMYK pixels presentes as 32-bit inateger values. | -### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_61} +### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_65} ``` @@ -1482,7 +1576,7 @@ Loads pixels in CMYK format.
This method is deprecated. Please u | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The loaded CMYK pixels array. | -### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_62} +### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_66} ``` @@ -1498,7 +1592,7 @@ Loads 32-bit ARGB pixels partially (by blocks). | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to load pixels from. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_63} +### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_67} ``` @@ -1514,7 +1608,7 @@ Loads 64-bit ARGB pixels partially by packs. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | partial_pixel_loader | [IPartialArgb64PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb64pixelloader) | The 64-bit ARGB pixel loader. | -### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_64} +### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_68} ``` @@ -1530,7 +1624,7 @@ Loads pixels partially by packs. | desired_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | pixel_loader | [IPartialPixelLoader](/imaging/python-net/aspose.imaging/ipartialpixelloader) | The pixel loader. | -### Method: load_pixels(rectangle) {#load_pixels_rectangle_65} +### Method: load_pixels(rectangle) {#load_pixels_rectangle_69} ``` @@ -1552,7 +1646,7 @@ Loads pixels. | [Color[]](/imaging/python-net/aspose.imaging/color) | The loaded pixels array. | -### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_66} +### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_70} ``` @@ -1570,7 +1664,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_67} +### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_71} ``` @@ -1587,7 +1681,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_stream(stream) [static] {#load_stream_stream_68} +### Method: load_stream(stream) [static] {#load_stream_stream_72} ``` @@ -1609,7 +1703,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_69} +### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_73} ``` @@ -1632,7 +1726,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_70} +### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_74} ``` @@ -1655,7 +1749,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_71} +### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_75} ``` @@ -1671,7 +1765,7 @@ Utilize the NormalizeAngle method specifically designed for scanned text documen | resize_proportionally | bool | if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_72} +### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_76} ``` @@ -1693,7 +1787,7 @@ Reads the whole scan line by the specified scan line index. | int | The scan line 32-bit ARGB color values array. | -### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_73} +### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_77} ``` @@ -1715,7 +1809,7 @@ Reads the whole scan line by the specified scan line index. | [Color[]](/imaging/python-net/aspose.imaging/color) | The scan line pixel color values array. | -### Method: remove_frame(frame) {#remove_frame_frame_74} +### Method: remove_frame(frame) {#remove_frame_frame_78} ``` @@ -1730,7 +1824,7 @@ Efficiently remove the specified frame from the image sequence, facilitating
control over dimensions, aspect ratio, and scaling behavior. Integrate this
method into your image processing workflow to achieve customized resizing
operations tailored to the specific requirements of your application. **Parameters:** @@ -1928,7 +2022,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_86} +### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_90} ``` @@ -1945,7 +2039,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_87} +### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_91} ``` @@ -1962,7 +2056,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_88} +### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_92} ``` @@ -1977,7 +2071,7 @@ Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RES | :- | :- | :- | | new_height | int | The new height. | -### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_89} +### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_93} ``` @@ -1993,7 +2087,7 @@ Conduct a proportional adjustment of the image's height, preserving its aspect < | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_90} +### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_94} ``` @@ -2009,7 +2103,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_91} +### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_95} ``` @@ -2025,7 +2119,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_proportional(new_width, new_height, resize_type) {#resize_proportional_new_width_new_height_resize_type_92} +### Method: resize_proportional(new_width, new_height, resize_type) {#resize_proportional_new_width_new_height_resize_type_96} ``` @@ -2042,7 +2136,7 @@ Conduct a proportional resize operation on the image, preserving its aspect rati | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_93} +### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_97} ``` @@ -2057,7 +2151,7 @@ Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESA | :- | :- | :- | | new_width | int | The new width. | -### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_94} +### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_98} ``` @@ -2073,7 +2167,7 @@ Adjust the width of the image while maintaining its aspect ratio, ensuring
| new_width | int | The new width. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_95} +### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_99} ``` @@ -2089,7 +2183,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_96} +### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_100} ``` @@ -2105,7 +2199,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: rotate(angle) {#rotate_angle_97} +### Method: rotate(angle) {#rotate_angle_101} ``` @@ -2120,7 +2214,7 @@ Rotate image around the center. | :- | :- | :- | | angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | -### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_98} +### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_102} ``` @@ -2137,7 +2231,7 @@ Rotate the image around its center point by a specified angle, enabling precise | resize_proportionally | bool | if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_99} +### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_103} ``` @@ -2152,7 +2246,7 @@ Perform rotation, flipping, or a combination of both operations exclusively on t | :- | :- | :- | | rotate_flip_type | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | The rotate flip type. | -### Method: rotate_flip_all(rotate_flip) {#rotate_flip_all_rotate_flip_100} +### Method: rotate_flip_all(rotate_flip) {#rotate_flip_all_rotate_flip_104} ``` @@ -2167,7 +2261,7 @@ Rotates the flip all. | :- | :- | :- | | rotate_flip | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | The rotate flip. | -### Method: save(file_path) {#save_file_path_101} +### Method: save(file_path) {#save_file_path_105} ``` @@ -2182,7 +2276,7 @@ Saves the image to the specified file location. | :- | :- | :- | | file_path | string | The file path to save the image to. | -### Method: save(file_path, options) {#save_file_path_options_102} +### Method: save(file_path, options) {#save_file_path_options_106} ``` @@ -2198,7 +2292,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_103} +### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_107} ``` @@ -2215,7 +2309,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: save(file_path, over_write) {#save_file_path_over_write_104} +### Method: save(file_path, over_write) {#save_file_path_over_write_108} ``` @@ -2231,7 +2325,7 @@ Saves the object's data to the specified file location. | file_path | string | The file path to save the object's data to. | | over_write | bool | if set to true over write the file contents, otherwise append will occur. | -### Method: save(stream) {#save_stream_105} +### Method: save(stream) {#save_stream_109} ``` @@ -2246,7 +2340,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save(stream, options_base) {#save_stream_options_base_106} +### Method: save(stream, options_base) {#save_stream_options_base_110} ``` @@ -2262,7 +2356,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_107} +### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_111} ``` @@ -2279,7 +2373,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_108} +### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_112} ``` @@ -2295,7 +2389,7 @@ Saves the 32-bit ARGB pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The 32-bit ARGB pixels array. | -### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_109} +### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_113} ``` @@ -2311,7 +2405,7 @@ Saves the pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The CMYK pixels presented as the 32-bit integer values. | -### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_110} +### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_114} ``` @@ -2327,7 +2421,7 @@ Saves the pixels.
This method is deprecated. Please use more eff | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The CMYK pixels array. | -### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_111} +### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_115} ``` @@ -2343,7 +2437,7 @@ Saves the pixels internal main. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | | pixels | [Color[]](/imaging/python-net/aspose.imaging/color) | The pixels. | -### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_112} +### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_116} ``` @@ -2361,7 +2455,7 @@ Saves the raw data. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The raw data rectangle. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings the data is in. | -### Method: save_to_stream(stream) {#save_to_stream_stream_113} +### Method: save_to_stream(stream) {#save_to_stream_stream_117} ``` @@ -2376,7 +2470,7 @@ Saves image to stream | :- | :- | :- | | stream | _io.BufferedRandom | | -### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_114} +### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_118} ``` @@ -2392,7 +2486,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_115} +### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_119} ``` @@ -2409,7 +2503,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_116} +### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_120} ``` @@ -2425,7 +2519,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_117} +### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_121} ``` @@ -2442,7 +2536,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_118} +### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_122} ``` @@ -2459,7 +2553,7 @@ Sets an image 32-bit ARGB pixel for the specified position. | y | int | The pixel y location. | | argb_32_color | int | The 32-bit ARGB pixel for the specified position. | -### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_119} +### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_123} ``` @@ -2475,7 +2569,7 @@ Sets the image palette. | palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The palette to set. | | update_colors | bool | if set to true colors will be updated according to the new palette; otherwise color indexes remain unchanged. Note that unchanged indexes may crash the image on loading if some indexes have no corresponding palette entries. | -### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_120} +### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_124} ``` @@ -2492,7 +2586,7 @@ Sets an image pixel for the specified position. | y | int | The pixel y location. | | color | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified position. | -### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_121} +### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_125} ``` @@ -2508,7 +2602,7 @@ Establishes the resolution for the specified [RasterImage](/imaging/python-net/a | dpi_x | double | The horizontal resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | | dpi_y | double | The vertical resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_122} +### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_126} ``` @@ -2524,7 +2618,7 @@ Writes the whole scan line to the specified scan line index. | scan_line_index | int | Zero based index of the scan line. | | argb_32_pixels | int | The 32-bit ARGB colors array to write. | -### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_123} +### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_127} ``` diff --git a/english/python-net/aspose.imaging.fileformats.webp/webpframeblock/_index.md b/english/python-net/aspose.imaging.fileformats.webp/webpframeblock/_index.md index 1396853c2f..fe888f7986 100644 --- a/english/python-net/aspose.imaging.fileformats.webp/webpframeblock/_index.md +++ b/english/python-net/aspose.imaging.fileformats.webp/webpframeblock/_index.md @@ -85,104 +85,108 @@ url: /python-net/aspose.imaging.fileformats.webp/webpframeblock/ | [can_load_stream_with_options(stream, load_options)](#can_load_stream_with_options_stream_load_options_15) | Determines whether image can be loaded from the specified stream and optionally using the specified _loadOptions_. | | [can_load_with_options(file_path, load_options)](#can_load_with_options_file_path_load_options_16) | Determines whether image can be loaded from the specified file path and optionally using the specified open options. | | [can_save(options)](#can_save_options_17) | Determines whether image can be saved to the specified file format represented by the passed save options. | -| [create(files)](#create_files_18) | Creates the specified files. | -| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_19) | Creates the specified files. | +| [create(files)](#create_files_18) | Creates the multipage image containing the specified files. | +| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_19) | Creates the multipage image containing the specified files. | | [create(image_options, width, height)](#create_image_options_width_height_20) | Creates a new image using the specified create options. | | [create(images)](#create_images_21) | Creates a new image using the specified images as pages | | [create(images, dispose_images)](#create_images_dispose_images_22) | Creates a new image the specified images as pages. | | [create(multipage_create_options)](#create_multipage_create_options_23) | Creates the specified multipage create options. | -| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_24) | Crop image with shifts. | -| [crop(rectangle)](#crop_rectangle_25) | Cropping the image. | -| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_26) | Performs dithering on the current image. | -| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_27) | Performs dithering on the current image. | -| [filter(rectangle, options)](#filter_rectangle_options_28) | Filters the specified rectangle. | -| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_29) | Gets an image 32-bit ARGB pixel. | -| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_30) | Gets the default 32-bit ARGB pixels array. | -| [get_default_options(args)](#get_default_options_args_31) | Gets the default options. | -| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_32) | Gets the default pixels array using partial pixel loader. | -| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_33) | Gets the default raw data array using partial pixel loader. | -| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_34) | Gets the default raw data array. | -| [get_file_format(file_path)](#get_file_format_file_path_35) | Gets the file format. | -| [get_file_format(stream)](#get_file_format_stream_36) | Gets the file format. | -| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_37) | Gets the file format. | -| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_38) | Gets rectangle which fits the current image. | -| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_39) | Gets rectangle which fits the current image. | -| [get_full_frame()](#get_full_frame__40) | Gets the full frame. | -| [get_modify_date(use_default)](#get_modify_date_use_default_41) | Gets the date and time the resource image was last modified. | -| [get_original_options()](#get_original_options__42) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | -| [get_pixel(x, y)](#get_pixel_x_y_43) | Gets an image pixel. | -| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_44) | Gets a proportional height. | -| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_45) | Gets a proportional width. | -| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_46) | Converts to aps. | -| [get_skew_angle()](#get_skew_angle__47) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | +| [create_from_files(files)](#create_from_files_files_24) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_files(files, throw_exception_on_load_error)](#create_from_files_files_throw_exception_on_load_error_25) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_images(images)](#create_from_images_images_26) | Creates a new image using the specified images as pages | +| [create_from_images(images, dispose_images)](#create_from_images_images_dispose_images_27) | Creates a new image the specified images as pages. | +| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_28) | Crop image with shifts. | +| [crop(rectangle)](#crop_rectangle_29) | Cropping the image. | +| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_30) | Performs dithering on the current image. | +| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_31) | Performs dithering on the current image. | +| [filter(rectangle, options)](#filter_rectangle_options_32) | Filters the specified rectangle. | +| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_33) | Gets an image 32-bit ARGB pixel. | +| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_34) | Gets the default 32-bit ARGB pixels array. | +| [get_default_options(args)](#get_default_options_args_35) | Gets the default options. | +| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_36) | Gets the default pixels array using partial pixel loader. | +| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_37) | Gets the default raw data array using partial pixel loader. | +| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_38) | Gets the default raw data array. | +| [get_file_format(file_path)](#get_file_format_file_path_39) | Gets the file format. | +| [get_file_format(stream)](#get_file_format_stream_40) | Gets the file format. | +| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_41) | Gets the file format. | +| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_42) | Gets rectangle which fits the current image. | +| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_43) | Gets rectangle which fits the current image. | +| [get_full_frame()](#get_full_frame__44) | Gets the full frame. | +| [get_modify_date(use_default)](#get_modify_date_use_default_45) | Gets the date and time the resource image was last modified. | +| [get_original_options()](#get_original_options__46) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | +| [get_pixel(x, y)](#get_pixel_x_y_47) | Gets an image pixel. | +| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_48) | Gets a proportional height. | +| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_49) | Gets a proportional width. | +| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_50) | Converts to aps. | +| [get_skew_angle()](#get_skew_angle__51) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | | grayscale() | Transformation of an image to its grayscale representation | -| [load(file_path)](#load_file_path_48) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(file_path, load_options)](#load_file_path_load_options_49) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(stream)](#load_stream_50) | Loads a new image from the specified stream. | -| [load(stream, load_options)](#load_stream_load_options_51) | Loads a new image from the specified stream. | -| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_52) | Loads 32-bit ARGB pixels. | -| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_53) | Loads 64-bit ARGB pixels. | -| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_54) | Loads pixels in CMYK format. | -| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_55) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_56) | Loads 32-bit ARGB pixels partially (by blocks). | -| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_57) | Loads 64-bit ARGB pixels partially by packs. | -| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_58) | Loads pixels partially by packs. | -| [load_pixels(rectangle)](#load_pixels_rectangle_59) | Loads pixels. | -| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_60) | Loads raw data. | -| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_61) | Loads raw data. | -| [load_stream(stream)](#load_stream_stream_62) | Loads a new image from the specified stream. | -| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_63) | Loads a new image from the specified stream. | -| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_64) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path)](#load_file_path_52) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path, load_options)](#load_file_path_load_options_53) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(stream)](#load_stream_54) | Loads a new image from the specified stream. | +| [load(stream, load_options)](#load_stream_load_options_55) | Loads a new image from the specified stream. | +| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_56) | Loads 32-bit ARGB pixels. | +| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_57) | Loads 64-bit ARGB pixels. | +| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_58) | Loads pixels in CMYK format. | +| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_59) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_60) | Loads 32-bit ARGB pixels partially (by blocks). | +| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_61) | Loads 64-bit ARGB pixels partially by packs. | +| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_62) | Loads pixels partially by packs. | +| [load_pixels(rectangle)](#load_pixels_rectangle_63) | Loads pixels. | +| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_64) | Loads raw data. | +| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_65) | Loads raw data. | +| [load_stream(stream)](#load_stream_stream_66) | Loads a new image from the specified stream. | +| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_67) | Loads a new image from the specified stream. | +| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_68) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | | normalize_angle() | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | -| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_65) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | -| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_66) | Reads the whole scan line by the specified scan line index. | -| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_67) | Reads the whole scan line by the specified scan line index. | +| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_69) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | +| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_70) | Reads the whole scan line by the specified scan line index. | +| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_71) | Reads the whole scan line by the specified scan line index. | | remove_metadata() | Removes this image instance metadata by setting this [IHasXmpData.xmp_data](/imaging/python-net/aspose.imaging.xmp/ihasxmpdata/) value to **None**. | -| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_68) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_69) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_70) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_71) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_72) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [resize(new_width, new_height)](#resize_new_width_new_height_73) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_74) | Resizes the image. | -| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_75) | Resizes the image. | -| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_76) | Resizes the image. | -| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_77) | Resizes the image. | -| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_78) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_79) | Resizes the height proportionally. | -| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_80) | Resizes the height proportionally. | -| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_81) | Resizes the height proportionally. | -| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_82) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_83) | Resizes the width proportionally. | -| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_84) | Resizes the width proportionally. | -| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_85) | Resizes the width proportionally. | -| [rotate(angle)](#rotate_angle_86) | Rotate image around the center. | -| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_87) | Rotate image around the center. | -| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_88) | Rotates, flips, or rotates and flips the image. | +| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_72) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_73) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_74) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_75) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_76) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [resize(new_width, new_height)](#resize_new_width_new_height_77) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_78) | Resizes the image. | +| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_79) | Resizes the image. | +| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_80) | Resizes the image. | +| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_81) | Resizes the image. | +| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_82) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_83) | Resizes the height proportionally. | +| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_84) | Resizes the height proportionally. | +| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_85) | Resizes the height proportionally. | +| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_86) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_87) | Resizes the width proportionally. | +| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_88) | Resizes the width proportionally. | +| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_89) | Resizes the width proportionally. | +| [rotate(angle)](#rotate_angle_90) | Rotate image around the center. | +| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_91) | Rotate image around the center. | +| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_92) | Rotates, flips, or rotates and flips the image. | | save() | Saves the image data to the underlying stream. | -| [save(file_path)](#save_file_path_89) | Saves the image to the specified file location. | -| [save(file_path, options)](#save_file_path_options_90) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_91) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, over_write)](#save_file_path_over_write_92) | Saves the object's data to the specified file location. | -| [save(stream)](#save_stream_93) | Saves the data. | -| [save(stream, options_base)](#save_stream_options_base_94) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_95) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_96) | Saves the 32-bit ARGB pixels. | -| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_97) | Saves the pixels. | -| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_98) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_99) | Saves pixels (format specific method). | -| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_100) | Saves the raw data. | -| [save_to_stream(stream)](#save_to_stream_stream_101) | Saves the object's data to the specified stream. | -| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_102) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_103) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_with_options(file_path, options)](#save_with_options_file_path_options_104) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_105) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_106) | Sets an image 32-bit ARGB pixel for the specified position. | -| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_107) | Sets the image palette. | -| [set_pixel(x, y, color)](#set_pixel_x_y_color_108) | Sets an image pixel for the specified position. | -| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_109) | Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_110) | Writes the whole scan line to the specified scan line index. | -| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_111) | Writes the whole scan line to the specified scan line index. | +| [save(file_path)](#save_file_path_93) | Saves the image to the specified file location. | +| [save(file_path, options)](#save_file_path_options_94) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_95) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, over_write)](#save_file_path_over_write_96) | Saves the object's data to the specified file location. | +| [save(stream)](#save_stream_97) | Saves the data. | +| [save(stream, options_base)](#save_stream_options_base_98) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_99) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_100) | Saves the 32-bit ARGB pixels. | +| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_101) | Saves the pixels. | +| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_102) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_103) | Saves pixels (format specific method). | +| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_104) | Saves the raw data. | +| [save_to_stream(stream)](#save_to_stream_stream_105) | Saves the object's data to the specified stream. | +| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_106) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_107) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_with_options(file_path, options)](#save_with_options_file_path_options_108) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_109) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_110) | Sets an image 32-bit ARGB pixel for the specified position. | +| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_111) | Sets the image palette. | +| [set_pixel(x, y, color)](#set_pixel_x_y_color_112) | Sets an image pixel for the specified position. | +| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_113) | Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | +| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_114) | Writes the whole scan line to the specified scan line index. | +| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_115) | Writes the whole scan line to the specified scan line index. | ### Constructor: WebPFrameBlock(raster_image) {#WebPFrameBlock_raster_image_1} @@ -546,7 +550,7 @@ Determines whether image can be saved to the specified file format represented b create(files) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -568,7 +572,7 @@ Creates the specified files. create(files, throw_exception_on_load_error) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -675,7 +679,97 @@ Creates the specified multipage create options. | [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | -### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_24} +### Method: create_from_files(files) [static] {#create_from_files_files_24} + + +``` + create_from_files(files) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_files(files, throw_exception_on_load_error) [static] {#create_from_files_files_throw_exception_on_load_error_25} + + +``` + create_from_files(files, throw_exception_on_load_error) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | +| throw_exception_on_load_error | bool | if set to true throw exception on load error. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_images(images) [static] {#create_from_images_images_26} + + +``` + create_from_images(images) +``` + +Creates a new image using the specified images as pages + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_images(images, dispose_images) [static] {#create_from_images_images_dispose_images_27} + + +``` + create_from_images(images, dispose_images) +``` + +Creates a new image the specified images as pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | +| dispose_images | bool | if set to true [dispose images]. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_28} ``` @@ -693,7 +787,7 @@ Crop image with shifts. | top_shift | int | The top shift. | | bottom_shift | int | The bottom shift. | -### Method: crop(rectangle) {#crop_rectangle_25} +### Method: crop(rectangle) {#crop_rectangle_29} ``` @@ -708,7 +802,7 @@ Cropping the image. | :- | :- | :- | | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | -### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_26} +### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_30} ``` @@ -724,7 +818,7 @@ Performs dithering on the current image. | dithering_method | [DitheringMethod](/imaging/python-net/aspose.imaging/ditheringmethod) | The dithering method. | | bits_count | int | The final bits count for dithering. | -### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_27} +### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_31} ``` @@ -741,7 +835,7 @@ Performs dithering on the current image. | bits_count | int | The final bits count for dithering. | | custom_palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The custom palette for dithering. | -### Method: filter(rectangle, options) {#filter_rectangle_options_28} +### Method: filter(rectangle, options) {#filter_rectangle_options_32} ``` @@ -757,7 +851,7 @@ Filters the specified rectangle. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | | options | [FilterOptionsBase](/imaging/python-net/aspose.imaging.imagefilters.filteroptions/filteroptionsbase/) | The options. | -### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_29} +### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_33} ``` @@ -780,7 +874,7 @@ Gets an image 32-bit ARGB pixel. | int | The 32-bit ARGB pixel for the specified location. | -### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_30} +### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_34} ``` @@ -802,7 +896,7 @@ Gets the default 32-bit ARGB pixels array. | int | The default pixels array. | -### Method: get_default_options(args) {#get_default_options_args_31} +### Method: get_default_options(args) {#get_default_options_args_35} ``` @@ -824,7 +918,7 @@ Gets the default options. | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Default options | -### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_32} +### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_36} ``` @@ -840,7 +934,7 @@ Gets the default pixels array using partial pixel loader. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to get pixels for. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_33} +### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_37} ``` @@ -857,7 +951,7 @@ Gets the default raw data array using partial pixel loader. | partial_raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The partial raw data loader. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings. | -### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_34} +### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_38} ``` @@ -880,7 +974,7 @@ Gets the default raw data array. | byte | The default raw data array. | -### Method: get_file_format(file_path) [static] {#get_file_format_file_path_35} +### Method: get_file_format(file_path) [static] {#get_file_format_file_path_39} ``` @@ -902,7 +996,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format(stream) [static] {#get_file_format_stream_36} +### Method: get_file_format(stream) [static] {#get_file_format_stream_40} ``` @@ -924,7 +1018,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_37} +### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_41} ``` @@ -946,7 +1040,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_38} +### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_42} ``` @@ -971,7 +1065,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_39} +### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_43} ``` @@ -995,7 +1089,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_full_frame() {#get_full_frame__40} +### Method: get_full_frame() {#get_full_frame__44} ``` @@ -1011,7 +1105,7 @@ Gets the full frame. | [RasterImage](/imaging/python-net/aspose.imaging/rasterimage) | The full frame image. | -### Method: get_modify_date(use_default) {#get_modify_date_use_default_41} +### Method: get_modify_date(use_default) {#get_modify_date_use_default_45} ``` @@ -1033,7 +1127,7 @@ Gets the date and time the resource image was last modified. | datetime | The date and time the resource image was last modified. | -### Method: get_original_options() {#get_original_options__42} +### Method: get_original_options() {#get_original_options__46} ``` @@ -1049,7 +1143,7 @@ Gets the options based on the original file settings.
This can b | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options based on the original file settings. | -### Method: get_pixel(x, y) {#get_pixel_x_y_43} +### Method: get_pixel(x, y) {#get_pixel_x_y_47} ``` @@ -1072,7 +1166,7 @@ Gets an image pixel. | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified location. | -### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_44} +### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_48} ``` @@ -1096,7 +1190,7 @@ Gets a proportional height. | int | The proportional height. | -### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_45} +### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_49} ``` @@ -1120,7 +1214,7 @@ Gets a proportional width. | int | The proportional width. | -### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_46} +### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_50} ``` @@ -1144,7 +1238,7 @@ Converts to aps. | _io.BufferedRandom | The serialized stream | -### Method: get_skew_angle() {#get_skew_angle__47} +### Method: get_skew_angle() {#get_skew_angle__51} ``` @@ -1160,7 +1254,7 @@ Gets the skew angle.
This method is applicable to scanned text d | float | The skew angle, in degrees. | -### Method: load(file_path) [static] {#load_file_path_48} +### Method: load(file_path) [static] {#load_file_path_52} ``` @@ -1182,7 +1276,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(file_path, load_options) [static] {#load_file_path_load_options_49} +### Method: load(file_path, load_options) [static] {#load_file_path_load_options_53} ``` @@ -1205,7 +1299,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream) [static] {#load_stream_50} +### Method: load(stream) [static] {#load_stream_54} ``` @@ -1227,7 +1321,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream, load_options) [static] {#load_stream_load_options_51} +### Method: load(stream, load_options) [static] {#load_stream_load_options_55} ``` @@ -1250,7 +1344,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_52} +### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_56} ``` @@ -1272,7 +1366,7 @@ Loads 32-bit ARGB pixels. | int | The loaded 32-bit ARGB pixels array. | -### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_53} +### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_57} ``` @@ -1294,7 +1388,7 @@ Loads 64-bit ARGB pixels. | long | The loaded 64-bit ARGB pixels array. | -### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_54} +### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_58} ``` @@ -1316,7 +1410,7 @@ Loads pixels in CMYK format. | int | The loaded CMYK pixels presentes as 32-bit inateger values. | -### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_55} +### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_59} ``` @@ -1338,7 +1432,7 @@ Loads pixels in CMYK format.
This method is deprecated. Please u | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The loaded CMYK pixels array. | -### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_56} +### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_60} ``` @@ -1354,7 +1448,7 @@ Loads 32-bit ARGB pixels partially (by blocks). | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to load pixels from. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_57} +### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_61} ``` @@ -1370,7 +1464,7 @@ Loads 64-bit ARGB pixels partially by packs. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | partial_pixel_loader | [IPartialArgb64PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb64pixelloader) | The 64-bit ARGB pixel loader. | -### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_58} +### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_62} ``` @@ -1386,7 +1480,7 @@ Loads pixels partially by packs. | desired_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | pixel_loader | [IPartialPixelLoader](/imaging/python-net/aspose.imaging/ipartialpixelloader) | The pixel loader. | -### Method: load_pixels(rectangle) {#load_pixels_rectangle_59} +### Method: load_pixels(rectangle) {#load_pixels_rectangle_63} ``` @@ -1408,7 +1502,7 @@ Loads pixels. | [Color[]](/imaging/python-net/aspose.imaging/color) | The loaded pixels array. | -### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_60} +### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_64} ``` @@ -1426,7 +1520,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_61} +### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_65} ``` @@ -1443,7 +1537,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_stream(stream) [static] {#load_stream_stream_62} +### Method: load_stream(stream) [static] {#load_stream_stream_66} ``` @@ -1465,7 +1559,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_63} +### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_67} ``` @@ -1488,7 +1582,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_64} +### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_68} ``` @@ -1511,7 +1605,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_65} +### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_69} ``` @@ -1527,7 +1621,7 @@ Normalizes the angle.
This method is applicable to scanned text | resize_proportionally | bool | if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_66} +### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_70} ``` @@ -1549,7 +1643,7 @@ Reads the whole scan line by the specified scan line index. | int | The scan line 32-bit ARGB color values array. | -### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_67} +### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_71} ``` @@ -1571,7 +1665,7 @@ Reads the whole scan line by the specified scan line index. | [Color[]](/imaging/python-net/aspose.imaging/color) | The scan line pixel color values array. | -### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_68} +### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_72} ``` @@ -1588,7 +1682,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_69} +### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_73} ``` @@ -1605,7 +1699,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | New color to replace old color with. | -### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_70} +### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_74} ``` @@ -1622,7 +1716,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_71} +### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_75} ``` @@ -1637,7 +1731,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | New color to replace non transparent colors with. | -### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_72} +### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_76} ``` @@ -1652,7 +1746,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color_argb | int | New color ARGB value to replace non transparent colors with. | -### Method: resize(new_width, new_height) {#resize_new_width_new_height_73} +### Method: resize(new_width, new_height) {#resize_new_width_new_height_77} ``` @@ -1668,7 +1762,7 @@ Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/ | new_width | int | The new width. | | new_height | int | The new height. | -### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_74} +### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_78} ``` @@ -1685,7 +1779,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_75} +### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_79} ``` @@ -1702,7 +1796,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_76} +### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_80} ``` @@ -1719,7 +1813,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_77} +### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_81} ``` @@ -1736,7 +1830,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_78} +### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_82} ``` @@ -1751,7 +1845,7 @@ Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RES | :- | :- | :- | | new_height | int | The new height. | -### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_79} +### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_83} ``` @@ -1767,7 +1861,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_80} +### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_84} ``` @@ -1783,7 +1877,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_81} +### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_85} ``` @@ -1799,7 +1893,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_82} +### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_86} ``` @@ -1814,7 +1908,7 @@ Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESA | :- | :- | :- | | new_width | int | The new width. | -### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_83} +### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_87} ``` @@ -1830,7 +1924,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_84} +### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_88} ``` @@ -1846,7 +1940,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_85} +### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_89} ``` @@ -1862,7 +1956,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: rotate(angle) {#rotate_angle_86} +### Method: rotate(angle) {#rotate_angle_90} ``` @@ -1877,7 +1971,7 @@ Rotate image around the center. | :- | :- | :- | | angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | -### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_87} +### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_91} ``` @@ -1894,7 +1988,7 @@ Rotate image around the center. | resize_proportionally | bool | if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_88} +### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_92} ``` @@ -1909,7 +2003,7 @@ Rotates, flips, or rotates and flips the image. | :- | :- | :- | | rotate_flip_type | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | The rotate flip type. | -### Method: save(file_path) {#save_file_path_89} +### Method: save(file_path) {#save_file_path_93} ``` @@ -1924,7 +2018,7 @@ Saves the image to the specified file location. | :- | :- | :- | | file_path | string | The file path to save the image to. | -### Method: save(file_path, options) {#save_file_path_options_90} +### Method: save(file_path, options) {#save_file_path_options_94} ``` @@ -1940,7 +2034,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_91} +### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_95} ``` @@ -1957,7 +2051,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: save(file_path, over_write) {#save_file_path_over_write_92} +### Method: save(file_path, over_write) {#save_file_path_over_write_96} ``` @@ -1973,7 +2067,7 @@ Saves the object's data to the specified file location. | file_path | string | The file path to save the object's data to. | | over_write | bool | if set to true over write the file contents, otherwise append will occur. | -### Method: save(stream) {#save_stream_93} +### Method: save(stream) {#save_stream_97} ``` @@ -1988,7 +2082,7 @@ Saves the data. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save data to. | -### Method: save(stream, options_base) {#save_stream_options_base_94} +### Method: save(stream, options_base) {#save_stream_options_base_98} ``` @@ -2004,7 +2098,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_95} +### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_99} ``` @@ -2021,7 +2115,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_96} +### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_100} ``` @@ -2037,7 +2131,7 @@ Saves the 32-bit ARGB pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The 32-bit ARGB pixels array. | -### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_97} +### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_101} ``` @@ -2053,7 +2147,7 @@ Saves the pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The CMYK pixels presented as the 32-bit integer values. | -### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_98} +### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_102} ``` @@ -2069,7 +2163,7 @@ Saves the pixels.
This method is deprecated. Please use more eff | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The CMYK pixels array. | -### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_99} +### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_103} ``` @@ -2085,7 +2179,7 @@ Saves pixels (format specific method). | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | [Color[]](/imaging/python-net/aspose.imaging/color) | The 32-bit ARGB pixels array. | -### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_100} +### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_104} ``` @@ -2103,7 +2197,7 @@ Saves the raw data. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The raw data rectangle. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings the data is in. | -### Method: save_to_stream(stream) {#save_to_stream_stream_101} +### Method: save_to_stream(stream) {#save_to_stream_stream_105} ``` @@ -2118,7 +2212,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_102} +### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_106} ``` @@ -2134,7 +2228,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_103} +### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_107} ``` @@ -2151,7 +2245,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_104} +### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_108} ``` @@ -2167,7 +2261,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_105} +### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_109} ``` @@ -2184,7 +2278,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_106} +### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_110} ``` @@ -2201,7 +2295,7 @@ Sets an image 32-bit ARGB pixel for the specified position. | y | int | The pixel y location. | | argb_32_color | int | The 32-bit ARGB pixel for the specified position. | -### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_107} +### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_111} ``` @@ -2217,7 +2311,7 @@ Sets the image palette. | palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The palette to set. | | update_colors | bool | if set to true colors will be updated according to the new palette; otherwise color indexes remain unchanged. Note that unchanged indexes may crash the image on loading if some indexes have no corresponding palette entries. | -### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_108} +### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_112} ``` @@ -2234,7 +2328,7 @@ Sets an image pixel for the specified position. | y | int | The pixel y location. | | color | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified position. | -### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_109} +### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_113} ``` @@ -2250,7 +2344,7 @@ Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/ra | dpi_x | double | The horizontal resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | | dpi_y | double | The vertical resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_110} +### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_114} ``` @@ -2266,7 +2360,7 @@ Writes the whole scan line to the specified scan line index. | scan_line_index | int | Zero based index of the scan line. | | argb_32_pixels | int | The 32-bit ARGB colors array to write. | -### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_111} +### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_115} ``` diff --git a/english/python-net/aspose.imaging.fileformats.webp/webpimage/_index.md b/english/python-net/aspose.imaging.fileformats.webp/webpimage/_index.md index a2ba262705..49fdf7f6c7 100644 --- a/english/python-net/aspose.imaging.fileformats.webp/webpimage/_index.md +++ b/english/python-net/aspose.imaging.fileformats.webp/webpimage/_index.md @@ -89,111 +89,115 @@ url: /python-net/aspose.imaging.fileformats.webp/webpimage/ | [can_load_with_options(file_path, load_options)](#can_load_with_options_file_path_load_options_18) | Determines whether image can be loaded from the specified file path and optionally using the specified open options. | | [can_save(options)](#can_save_options_19) | Determines whether image can be saved to the specified file format represented by the passed save options. | | clear_blocks() | Clear all existing WebP blocks from the image, facilitating a clean slate for
subsequent modifications or additions. Utilize this method to effectively reset
the block structure within the WebP image data, ensuring optimal management and
organization of image content within your application. | -| [create(files)](#create_files_20) | Creates the specified files. | -| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_21) | Creates the specified files. | +| [create(files)](#create_files_20) | Creates the multipage image containing the specified files. | +| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_21) | Creates the multipage image containing the specified files. | | [create(image_options, width, height)](#create_image_options_width_height_22) | Creates a new image using the specified create options. | | [create(images)](#create_images_23) | Creates a new image using the specified images as pages | | [create(images, dispose_images)](#create_images_dispose_images_24) | Creates a new image the specified images as pages. | | [create(multipage_create_options)](#create_multipage_create_options_25) | Creates the specified multipage create options. | | [create_from_file_with_options(path, load_options)](#create_from_file_with_options_path_load_options_26) | Initializes a new instance of the [WebPImage](/imaging/python-net/aspose.imaging.fileformats.webp/webpimage/) class from file. | -| [create_from_image(raster_image)](#create_from_image_raster_image_27) | Initializes a new instance of the [WebPImage](/imaging/python-net/aspose.imaging.fileformats.webp/webpimage/) class from rasterImage. | -| [create_from_image_with_options(raster_image, load_options)](#create_from_image_with_options_raster_image_load_options_28) | Initializes a new instance of the [WebPImage](/imaging/python-net/aspose.imaging.fileformats.webp/webpimage/) class from rasterImage. | -| [create_from_stream(stream)](#create_from_stream_stream_29) | Initializes a new instance of the [WebPImage](/imaging/python-net/aspose.imaging.fileformats.webp/webpimage/) class
from stream. | -| [create_from_stream_with_options(stream, load_options)](#create_from_stream_with_options_stream_load_options_30) | Initializes a new instance of the [WebPImage](/imaging/python-net/aspose.imaging.fileformats.webp/webpimage/) class from stream. | -| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_31) | Crop the image by applying left, right, top, and bottom shifts, effectively
selecting a region of interest within the image. Utilize this method to
dynamically extract desired portions of the image while adjusting its composition
and focus according to your application's requirements. | -| [crop(rectangle)](#crop_rectangle_32) | Crop the image using a specified rectangle region, removing unwanted portions
while retaining the desired content. Integrate this method into your image
processing workflow to precisely extract and focus on specific areas of interest
within the image, enhancing clarity and composition for various applications. | -| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_33) | Performs dithering on the current image. | -| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_34) | Perform dithering on the current image to reduce color banding and enhance visual
quality. Integrate this method into your image processing workflow to achieve
smoother transitions between colors and improve the overall appearance of the
image within your application. | -| [filter(rectangle, options)](#filter_rectangle_options_35) | Filter the content within the specified rectangle, applying a designated image
processing filter to enhance or modify the selected region. Integrate this method
into your image manipulation workflow to achieve targeted enhancements or
transformations within your application. | -| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_36) | Gets an image 32-bit ARGB pixel. | -| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_37) | Gets the default 32-bit ARGB pixels array. | -| [get_default_options(args)](#get_default_options_args_38) | Gets the default options. | -| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_39) | Gets the default pixels array using partial pixel loader. | -| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_40) | Gets the default raw data array using partial pixel loader. | -| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_41) | Gets the default raw data array. | -| [get_file_format(file_path)](#get_file_format_file_path_42) | Gets the file format. | -| [get_file_format(stream)](#get_file_format_stream_43) | Gets the file format. | -| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_44) | Gets the file format. | -| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_45) | Gets rectangle which fits the current image. | -| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_46) | Gets rectangle which fits the current image. | -| [get_modify_date(use_default)](#get_modify_date_use_default_47) | Gets the date and time the resource image was last modified. | -| [get_original_options()](#get_original_options__48) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | -| [get_pixel(x, y)](#get_pixel_x_y_49) | Gets an image pixel. | -| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_50) | Gets a proportional height. | -| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_51) | Gets a proportional width. | -| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_52) | Converts to aps. | -| [get_skew_angle()](#get_skew_angle__53) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | +| [create_from_files(files)](#create_from_files_files_27) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_files(files, throw_exception_on_load_error)](#create_from_files_files_throw_exception_on_load_error_28) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_image(raster_image)](#create_from_image_raster_image_29) | Initializes a new instance of the [WebPImage](/imaging/python-net/aspose.imaging.fileformats.webp/webpimage/) class from rasterImage. | +| [create_from_image_with_options(raster_image, load_options)](#create_from_image_with_options_raster_image_load_options_30) | Initializes a new instance of the [WebPImage](/imaging/python-net/aspose.imaging.fileformats.webp/webpimage/) class from rasterImage. | +| [create_from_images(images)](#create_from_images_images_31) | Creates a new image using the specified images as pages | +| [create_from_images(images, dispose_images)](#create_from_images_images_dispose_images_32) | Creates a new image the specified images as pages. | +| [create_from_stream(stream)](#create_from_stream_stream_33) | Initializes a new instance of the [WebPImage](/imaging/python-net/aspose.imaging.fileformats.webp/webpimage/) class
from stream. | +| [create_from_stream_with_options(stream, load_options)](#create_from_stream_with_options_stream_load_options_34) | Initializes a new instance of the [WebPImage](/imaging/python-net/aspose.imaging.fileformats.webp/webpimage/) class from stream. | +| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_35) | Crop the image by applying left, right, top, and bottom shifts, effectively
selecting a region of interest within the image. Utilize this method to
dynamically extract desired portions of the image while adjusting its composition
and focus according to your application's requirements. | +| [crop(rectangle)](#crop_rectangle_36) | Crop the image using a specified rectangle region, removing unwanted portions
while retaining the desired content. Integrate this method into your image
processing workflow to precisely extract and focus on specific areas of interest
within the image, enhancing clarity and composition for various applications. | +| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_37) | Performs dithering on the current image. | +| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_38) | Perform dithering on the current image to reduce color banding and enhance visual
quality. Integrate this method into your image processing workflow to achieve
smoother transitions between colors and improve the overall appearance of the
image within your application. | +| [filter(rectangle, options)](#filter_rectangle_options_39) | Filter the content within the specified rectangle, applying a designated image
processing filter to enhance or modify the selected region. Integrate this method
into your image manipulation workflow to achieve targeted enhancements or
transformations within your application. | +| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_40) | Gets an image 32-bit ARGB pixel. | +| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_41) | Gets the default 32-bit ARGB pixels array. | +| [get_default_options(args)](#get_default_options_args_42) | Gets the default options. | +| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_43) | Gets the default pixels array using partial pixel loader. | +| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_44) | Gets the default raw data array using partial pixel loader. | +| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_45) | Gets the default raw data array. | +| [get_file_format(file_path)](#get_file_format_file_path_46) | Gets the file format. | +| [get_file_format(stream)](#get_file_format_stream_47) | Gets the file format. | +| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_48) | Gets the file format. | +| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_49) | Gets rectangle which fits the current image. | +| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_50) | Gets rectangle which fits the current image. | +| [get_modify_date(use_default)](#get_modify_date_use_default_51) | Gets the date and time the resource image was last modified. | +| [get_original_options()](#get_original_options__52) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | +| [get_pixel(x, y)](#get_pixel_x_y_53) | Gets an image pixel. | +| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_54) | Gets a proportional height. | +| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_55) | Gets a proportional width. | +| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_56) | Converts to aps. | +| [get_skew_angle()](#get_skew_angle__57) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | | grayscale() | Convert the image to its grayscale representation, transforming it into a
single-channel image where each pixel represents intensity or luminance. Integrate
this method into your image processing pipeline to simplify analysis and enhance
compatibility with grayscale-based algorithms, facilitating various computer
vision and image analysis tasks within your application. | -| [insert_block(index, block)](#insert_block_index_block_54) | Insert a new WebP block at the specified index within the image, enabling precise
control over the block sequence. Integrate this method to seamlessly incorporate
additional WebP blocks into the image data structure, facilitating advanced image
processing and optimization within your application. | -| [load(file_path)](#load_file_path_55) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(file_path, load_options)](#load_file_path_load_options_56) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(stream)](#load_stream_57) | Loads a new image from the specified stream. | -| [load(stream, load_options)](#load_stream_load_options_58) | Loads the data from stream. | -| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_59) | Loads 32-bit ARGB pixels. | -| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_60) | Loads 64-bit ARGB pixels. | -| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_61) | Loads pixels in CMYK format. | -| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_62) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_63) | Loads 32-bit ARGB pixels partially (by blocks). | -| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_64) | Loads 64-bit ARGB pixels partially by packs. | -| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_65) | Loads pixels partially by packs. | -| [load_pixels(rectangle)](#load_pixels_rectangle_66) | Loads pixels. | -| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_67) | Loads raw data. | -| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_68) | Loads raw data. | -| [load_stream(stream)](#load_stream_stream_69) | Loads a new image from the specified stream. | -| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_70) | Loads a new image from the specified stream. | -| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_71) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [insert_block(index, block)](#insert_block_index_block_58) | Insert a new WebP block at the specified index within the image, enabling precise
control over the block sequence. Integrate this method to seamlessly incorporate
additional WebP blocks into the image data structure, facilitating advanced image
processing and optimization within your application. | +| [load(file_path)](#load_file_path_59) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path, load_options)](#load_file_path_load_options_60) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(stream)](#load_stream_61) | Loads a new image from the specified stream. | +| [load(stream, load_options)](#load_stream_load_options_62) | Loads the data from stream. | +| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_63) | Loads 32-bit ARGB pixels. | +| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_64) | Loads 64-bit ARGB pixels. | +| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_65) | Loads pixels in CMYK format. | +| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_66) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_67) | Loads 32-bit ARGB pixels partially (by blocks). | +| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_68) | Loads 64-bit ARGB pixels partially by packs. | +| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_69) | Loads pixels partially by packs. | +| [load_pixels(rectangle)](#load_pixels_rectangle_70) | Loads pixels. | +| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_71) | Loads raw data. | +| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_72) | Loads raw data. | +| [load_stream(stream)](#load_stream_stream_73) | Loads a new image from the specified stream. | +| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_74) | Loads a new image from the specified stream. | +| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_75) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | | normalize_angle() | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | -| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_72) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterCachedMultipageImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rastercachedmultipageimage/) methods. | -| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_73) | Reads the whole scan line by the specified scan line index. | -| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_74) | Reads the whole scan line by the specified scan line index. | -| [remove_block(block)](#remove_block_block_75) | Remove the specified WebP block from the image, facilitating efficient management
of image data structure. Utilize this method to streamline image processing
workflows by eliminating unnecessary blocks or components within your application. | +| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_76) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterCachedMultipageImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rastercachedmultipageimage/) methods. | +| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_77) | Reads the whole scan line by the specified scan line index. | +| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_78) | Reads the whole scan line by the specified scan line index. | +| [remove_block(block)](#remove_block_block_79) | Remove the specified WebP block from the image, facilitating efficient management
of image data structure. Utilize this method to streamline image processing
workflows by eliminating unnecessary blocks or components within your application. | | remove_metadata() | Removes this image instance metadata by setting this [IHasXmpData.xmp_data](/imaging/python-net/aspose.imaging.xmp/ihasxmpdata/) value to **None**. | -| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_76) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_77) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_78) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_79) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_80) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [resize(new_width, new_height)](#resize_new_width_new_height_81) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_82) | Resizes the image. | -| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_83) | Resizes the image. | -| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_84) | Resizes the image. | -| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_85) | Resizes the image. | -| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_86) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_87) | Adjust the height of the image proportionally, while preserving its aspect ratio
for consistent resizing. Integrate this method into your image processing workflow
to dynamically resize images with uniform proportions, ensuring optimal display or
storage within your application. | -| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_88) | Resizes the height proportionally. | -| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_89) | Resizes the height proportionally. | -| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_90) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_91) | Proportionally adjust the width of the image while maintaining its aspect ratio.
Integrate this method into your image processing workflow to dynamically resize
images with consistent proportions, ensuring optimal display or storage within
your application. | -| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_92) | Resizes the width proportionally. | -| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_93) | Resizes the width proportionally. | -| [rotate(angle)](#rotate_angle_94) | Rotate image around the center. | -| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_95) | Rotate the image around its center by a specified angle, while proportionally
resizing it and applying specified background color parameters. Incorporate this
method into your image processing workflow to achieve precise transformations with
customizable background colors, ensuring optimal visual presentation within your
application. | -| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_96) | Apply rotation, flipping, or both operations exclusively to the active frame
within the image. Integrate this method into your image processing workflow to
achieve precise manipulation of individual frames, enhancing flexibility and
control over frame transformations within your application. | -| [rotate_flip_all(rotate_flip)](#rotate_flip_all_rotate_flip_97) | Rotates the flip all. | +| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_80) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_81) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_82) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_83) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_84) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [resize(new_width, new_height)](#resize_new_width_new_height_85) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_86) | Resize the image, adjusting its dimensions while preserving the aspect ratio.
Integrate this method into your image processing workflow to dynamically scale
images to fit various display or storage requirements within your application. | +| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_87) | Resize the image according to specified settings, enabling precise control over
dimensions, aspect ratio, and scaling behavior. Integrate this method into your
image processing workflow to achieve customized resizing operations tailored to
the specific requirements of your application. | +| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_88) | Resizes the image. | +| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_89) | Resizes the image. | +| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_90) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_91) | Adjust the height of the image proportionally, while preserving its aspect ratio
for consistent resizing. Integrate this method into your image processing workflow
to dynamically resize images with uniform proportions, ensuring optimal display or
storage within your application. | +| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_92) | Resizes the height proportionally. | +| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_93) | Resizes the height proportionally. | +| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_94) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_95) | Proportionally adjust the width of the image while maintaining its aspect ratio.
Integrate this method into your image processing workflow to dynamically resize
images with consistent proportions, ensuring optimal display or storage within
your application. | +| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_96) | Resizes the width proportionally. | +| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_97) | Resizes the width proportionally. | +| [rotate(angle)](#rotate_angle_98) | Rotate image around the center. | +| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_99) | Rotate the image around its center by a specified angle, while proportionally
resizing it and applying specified background color parameters. Incorporate this
method into your image processing workflow to achieve precise transformations with
customizable background colors, ensuring optimal visual presentation within your
application. | +| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_100) | Apply rotation, flipping, or both operations exclusively to the active frame
within the image. Integrate this method into your image processing workflow to
achieve precise manipulation of individual frames, enhancing flexibility and
control over frame transformations within your application. | +| [rotate_flip_all(rotate_flip)](#rotate_flip_all_rotate_flip_101) | Rotates the flip all. | | save() | Saves the image data to the underlying stream. | -| [save(file_path)](#save_file_path_98) | Saves the image to the specified file location. | -| [save(file_path, options)](#save_file_path_options_99) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_100) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, over_write)](#save_file_path_over_write_101) | Saves the object's data to the specified file location. | -| [save(stream)](#save_stream_102) | Saves the data. | -| [save(stream, options_base)](#save_stream_options_base_103) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_104) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_105) | Saves the 32-bit ARGB pixels. | -| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_106) | Saves the pixels. | -| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_107) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_108) | Saves the pixels internal main. | -| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_109) | Saves the raw data. | -| [save_to_stream(stream)](#save_to_stream_stream_110) | Saves the object's data to the specified stream. | -| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_111) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_112) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_with_options(file_path, options)](#save_with_options_file_path_options_113) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_114) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_115) | Sets an image 32-bit ARGB pixel for the specified position. | -| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_116) | Sets the image palette. | -| [set_pixel(x, y, color)](#set_pixel_x_y_color_117) | Sets an image pixel for the specified position. | -| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_118) | Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_119) | Writes the whole scan line to the specified scan line index. | -| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_120) | Writes the whole scan line to the specified scan line index. | +| [save(file_path)](#save_file_path_102) | Saves the image to the specified file location. | +| [save(file_path, options)](#save_file_path_options_103) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_104) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, over_write)](#save_file_path_over_write_105) | Saves the object's data to the specified file location. | +| [save(stream)](#save_stream_106) | Saves the data. | +| [save(stream, options_base)](#save_stream_options_base_107) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_108) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_109) | Saves the 32-bit ARGB pixels. | +| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_110) | Saves the pixels. | +| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_111) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_112) | Saves the pixels internal main. | +| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_113) | Saves the raw data. | +| [save_to_stream(stream)](#save_to_stream_stream_114) | Saves the object's data to the specified stream. | +| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_115) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_116) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_with_options(file_path, options)](#save_with_options_file_path_options_117) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_118) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_119) | Sets an image 32-bit ARGB pixel for the specified position. | +| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_120) | Sets the image palette. | +| [set_pixel(x, y, color)](#set_pixel_x_y_color_121) | Sets an image pixel for the specified position. | +| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_122) | Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | +| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_123) | Writes the whole scan line to the specified scan line index. | +| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_124) | Writes the whole scan line to the specified scan line index. | ### Constructor: WebPImage(path) {#WebPImage_path_1} @@ -696,7 +700,7 @@ Determines whether image can be saved to the specified file format represented b create(files) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -718,7 +722,7 @@ Creates the specified files. create(files, throw_exception_on_load_error) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -848,7 +852,52 @@ Initializes a new instance of the [WebPImage](/imaging/python-net/aspose.imaging | [WebPImage](/imaging/python-net/aspose.imaging.fileformats.webp/webpimage) | | -### Method: create_from_image(raster_image) [static] {#create_from_image_raster_image_27} +### Method: create_from_files(files) [static] {#create_from_files_files_27} + + +``` + create_from_files(files) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_files(files, throw_exception_on_load_error) [static] {#create_from_files_files_throw_exception_on_load_error_28} + + +``` + create_from_files(files, throw_exception_on_load_error) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | +| throw_exception_on_load_error | bool | if set to true throw exception on load error. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_image(raster_image) [static] {#create_from_image_raster_image_29} ``` @@ -870,7 +919,7 @@ Initializes a new instance of the [WebPImage](/imaging/python-net/aspose.imaging | [WebPImage](/imaging/python-net/aspose.imaging.fileformats.webp/webpimage) | | -### Method: create_from_image_with_options(raster_image, load_options) [static] {#create_from_image_with_options_raster_image_load_options_28} +### Method: create_from_image_with_options(raster_image, load_options) [static] {#create_from_image_with_options_raster_image_load_options_30} ``` @@ -893,7 +942,52 @@ Initializes a new instance of the [WebPImage](/imaging/python-net/aspose.imaging | [WebPImage](/imaging/python-net/aspose.imaging.fileformats.webp/webpimage) | | -### Method: create_from_stream(stream) [static] {#create_from_stream_stream_29} +### Method: create_from_images(images) [static] {#create_from_images_images_31} + + +``` + create_from_images(images) +``` + +Creates a new image using the specified images as pages + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_images(images, dispose_images) [static] {#create_from_images_images_dispose_images_32} + + +``` + create_from_images(images, dispose_images) +``` + +Creates a new image the specified images as pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | +| dispose_images | bool | if set to true [dispose images]. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_stream(stream) [static] {#create_from_stream_stream_33} ``` @@ -915,7 +1009,7 @@ Initializes a new instance of the [WebPImage](/imaging/python-net/aspose.imaging | [WebPImage](/imaging/python-net/aspose.imaging.fileformats.webp/webpimage) | | -### Method: create_from_stream_with_options(stream, load_options) [static] {#create_from_stream_with_options_stream_load_options_30} +### Method: create_from_stream_with_options(stream, load_options) [static] {#create_from_stream_with_options_stream_load_options_34} ``` @@ -938,7 +1032,7 @@ Initializes a new instance of the [WebPImage](/imaging/python-net/aspose.imaging | [WebPImage](/imaging/python-net/aspose.imaging.fileformats.webp/webpimage) | | -### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_31} +### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_35} ``` @@ -956,7 +1050,7 @@ Crop the image by applying left, right, top, and bottom shifts, effectively
This can b | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options based on the original file settings. | -### Method: get_pixel(x, y) {#get_pixel_x_y_49} +### Method: get_pixel(x, y) {#get_pixel_x_y_53} ``` @@ -1319,7 +1413,7 @@ Gets an image pixel. | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified location. | -### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_50} +### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_54} ``` @@ -1343,7 +1437,7 @@ Gets a proportional height. | int | The proportional height. | -### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_51} +### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_55} ``` @@ -1367,7 +1461,7 @@ Gets a proportional width. | int | The proportional width. | -### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_52} +### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_56} ``` @@ -1391,7 +1485,7 @@ Converts to aps. | _io.BufferedRandom | The serialized stream | -### Method: get_skew_angle() {#get_skew_angle__53} +### Method: get_skew_angle() {#get_skew_angle__57} ``` @@ -1407,7 +1501,7 @@ Gets the skew angle.
This method is applicable to scanned text d | float | The skew angle, in degrees. | -### Method: insert_block(index, block) {#insert_block_index_block_54} +### Method: insert_block(index, block) {#insert_block_index_block_58} ``` @@ -1423,7 +1517,7 @@ Insert a new WebP block at the specified index within the image, enabling precis | index | int | The zero-based element, at which _block_ will be
inserted. | | block | [IFrame](/imaging/python-net/aspose.imaging.fileformats.webp/iframe) | The Webp block to add. | -### Method: load(file_path) [static] {#load_file_path_55} +### Method: load(file_path) [static] {#load_file_path_59} ``` @@ -1445,7 +1539,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(file_path, load_options) [static] {#load_file_path_load_options_56} +### Method: load(file_path, load_options) [static] {#load_file_path_load_options_60} ``` @@ -1468,7 +1562,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream) [static] {#load_stream_57} +### Method: load(stream) [static] {#load_stream_61} ``` @@ -1490,7 +1584,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream, load_options) [static] {#load_stream_load_options_58} +### Method: load(stream, load_options) [static] {#load_stream_load_options_62} ``` @@ -1513,7 +1607,7 @@ Loads the data from stream. | [Image](/imaging/python-net/aspose.imaging/image) | | -### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_59} +### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_63} ``` @@ -1535,7 +1629,7 @@ Loads 32-bit ARGB pixels. | int | The loaded 32-bit ARGB pixels array. | -### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_60} +### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_64} ``` @@ -1557,7 +1651,7 @@ Loads 64-bit ARGB pixels. | long | The loaded 64-bit ARGB pixels array. | -### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_61} +### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_65} ``` @@ -1579,7 +1673,7 @@ Loads pixels in CMYK format. | int | The loaded CMYK pixels presentes as 32-bit inateger values. | -### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_62} +### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_66} ``` @@ -1601,7 +1695,7 @@ Loads pixels in CMYK format.
This method is deprecated. Please u | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The loaded CMYK pixels array. | -### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_63} +### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_67} ``` @@ -1617,7 +1711,7 @@ Loads 32-bit ARGB pixels partially (by blocks). | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to load pixels from. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_64} +### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_68} ``` @@ -1633,7 +1727,7 @@ Loads 64-bit ARGB pixels partially by packs. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | partial_pixel_loader | [IPartialArgb64PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb64pixelloader) | The 64-bit ARGB pixel loader. | -### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_65} +### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_69} ``` @@ -1649,7 +1743,7 @@ Loads pixels partially by packs. | desired_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | pixel_loader | [IPartialPixelLoader](/imaging/python-net/aspose.imaging/ipartialpixelloader) | The pixel loader. | -### Method: load_pixels(rectangle) {#load_pixels_rectangle_66} +### Method: load_pixels(rectangle) {#load_pixels_rectangle_70} ``` @@ -1671,7 +1765,7 @@ Loads pixels. | [Color[]](/imaging/python-net/aspose.imaging/color) | The loaded pixels array. | -### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_67} +### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_71} ``` @@ -1689,7 +1783,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_68} +### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_72} ``` @@ -1706,7 +1800,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_stream(stream) [static] {#load_stream_stream_69} +### Method: load_stream(stream) [static] {#load_stream_stream_73} ``` @@ -1728,7 +1822,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_70} +### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_74} ``` @@ -1751,7 +1845,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_71} +### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_75} ``` @@ -1774,7 +1868,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_72} +### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_76} ``` @@ -1790,7 +1884,7 @@ Normalizes the angle.
This method is applicable to scanned text | resize_proportionally | bool | if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_73} +### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_77} ``` @@ -1812,7 +1906,7 @@ Reads the whole scan line by the specified scan line index. | int | The scan line 32-bit ARGB color values array. | -### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_74} +### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_78} ``` @@ -1834,7 +1928,7 @@ Reads the whole scan line by the specified scan line index. | [Color[]](/imaging/python-net/aspose.imaging/color) | The scan line pixel color values array. | -### Method: remove_block(block) {#remove_block_block_75} +### Method: remove_block(block) {#remove_block_block_79} ``` @@ -1849,7 +1943,7 @@ Remove the specified WebP block from the image, facilitating efficient managemen | :- | :- | :- | | block | [IFrame](/imaging/python-net/aspose.imaging.fileformats.webp/iframe) | The block to remove. | -### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_76} +### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_80} ``` @@ -1866,7 +1960,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_77} +### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_81} ``` @@ -1883,7 +1977,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | | -### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_78} +### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_82} ``` @@ -1900,7 +1994,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_79} +### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_83} ``` @@ -1915,7 +2009,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | | -### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_80} +### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_84} ``` @@ -1930,7 +2024,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color_argb | int | New color ARGB value to replace non transparent colors with. | -### Method: resize(new_width, new_height) {#resize_new_width_new_height_81} +### Method: resize(new_width, new_height) {#resize_new_width_new_height_85} ``` @@ -1946,14 +2040,14 @@ Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/ | new_width | int | The new width. | | new_height | int | The new height. | -### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_82} +### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_86} ``` resize(new_width, new_height, resize_type) ``` -Resizes the image. +Resize the image, adjusting its dimensions while preserving the aspect ratio.
Integrate this method into your image processing workflow to dynamically scale
images to fit various display or storage requirements within your application. **Parameters:** @@ -1963,14 +2057,14 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_83} +### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_87} ``` resize(new_width, new_height, settings) ``` -Resizes the image. +Resize the image according to specified settings, enabling precise control over
dimensions, aspect ratio, and scaling behavior. Integrate this method into your
image processing workflow to achieve customized resizing operations tailored to
the specific requirements of your application. **Parameters:** @@ -1980,7 +2074,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_84} +### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_88} ``` @@ -1997,7 +2091,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_85} +### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_89} ``` @@ -2014,7 +2108,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_86} +### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_90} ``` @@ -2029,7 +2123,7 @@ Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RES | :- | :- | :- | | new_height | int | The new height. | -### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_87} +### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_91} ``` @@ -2045,7 +2139,7 @@ Adjust the height of the image proportionally, while preserving its aspect ratio | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_88} +### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_92} ``` @@ -2061,7 +2155,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_89} +### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_93} ``` @@ -2077,7 +2171,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_90} +### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_94} ``` @@ -2092,7 +2186,7 @@ Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESA | :- | :- | :- | | new_width | int | The new width. | -### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_91} +### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_95} ``` @@ -2108,7 +2202,7 @@ Proportionally adjust the width of the image while maintaining its aspect ratio. | new_width | int | The new width. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_92} +### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_96} ``` @@ -2124,7 +2218,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_93} +### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_97} ``` @@ -2140,7 +2234,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: rotate(angle) {#rotate_angle_94} +### Method: rotate(angle) {#rotate_angle_98} ``` @@ -2155,7 +2249,7 @@ Rotate image around the center. | :- | :- | :- | | angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | -### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_95} +### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_99} ``` @@ -2172,7 +2266,7 @@ Rotate the image around its center by a specified angle, while proportionally true you will have your image size changed
according to rotated rectangle (corner points) projections in other
case that leaves dimensions untouched and only
__internal__ image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_96} +### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_100} ``` @@ -2187,7 +2281,7 @@ Apply rotation, flipping, or both operations exclusively to the active frame
true over write the file contents, otherwise append will occur. | -### Method: save(stream) {#save_stream_102} +### Method: save(stream) {#save_stream_106} ``` @@ -2281,7 +2375,7 @@ Saves the data. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save image data to. | -### Method: save(stream, options_base) {#save_stream_options_base_103} +### Method: save(stream, options_base) {#save_stream_options_base_107} ``` @@ -2297,7 +2391,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_104} +### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_108} ``` @@ -2314,7 +2408,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_105} +### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_109} ``` @@ -2330,7 +2424,7 @@ Saves the 32-bit ARGB pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The 32-bit ARGB pixels array. | -### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_106} +### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_110} ``` @@ -2346,7 +2440,7 @@ Saves the pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The CMYK pixels presented as the 32-bit integer values. | -### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_107} +### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_111} ``` @@ -2362,7 +2456,7 @@ Saves the pixels.
This method is deprecated. Please use more eff | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The CMYK pixels array. | -### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_108} +### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_112} ``` @@ -2378,7 +2472,7 @@ Saves the pixels internal main. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | | pixels | [Color[]](/imaging/python-net/aspose.imaging/color) | The pixels. | -### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_109} +### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_113} ``` @@ -2396,7 +2490,7 @@ Saves the raw data. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The raw data rectangle. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings the data is in. | -### Method: save_to_stream(stream) {#save_to_stream_stream_110} +### Method: save_to_stream(stream) {#save_to_stream_stream_114} ``` @@ -2411,7 +2505,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_111} +### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_115} ``` @@ -2427,7 +2521,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_112} +### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_116} ``` @@ -2444,7 +2538,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_113} +### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_117} ``` @@ -2460,7 +2554,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_114} +### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_118} ``` @@ -2477,7 +2571,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_115} +### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_119} ``` @@ -2494,7 +2588,7 @@ Sets an image 32-bit ARGB pixel for the specified position. | y | int | The pixel y location. | | argb_32_color | int | The 32-bit ARGB pixel for the specified position. | -### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_116} +### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_120} ``` @@ -2510,7 +2604,7 @@ Sets the image palette. | palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The palette to set. | | update_colors | bool | if set to true colors will be updated according to the new palette; otherwise color indexes remain unchanged. Note that unchanged indexes may crash the image on loading if some indexes have no corresponding palette entries. | -### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_117} +### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_121} ``` @@ -2527,7 +2621,7 @@ Sets an image pixel for the specified position. | y | int | The pixel y location. | | color | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified position. | -### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_118} +### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_122} ``` @@ -2543,7 +2637,7 @@ Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/ra | dpi_x | double | The horizontal resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | | dpi_y | double | The vertical resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_119} +### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_123} ``` @@ -2559,7 +2653,7 @@ Writes the whole scan line to the specified scan line index. | scan_line_index | int | Zero based index of the scan line. | | argb_32_pixels | int | The 32-bit ARGB colors array to write. | -### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_120} +### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_124} ``` diff --git a/english/python-net/aspose.imaging.fileformats.wmf/wmfimage/_index.md b/english/python-net/aspose.imaging.fileformats.wmf/wmfimage/_index.md index 8b2c612ad5..bf022a2d36 100644 --- a/english/python-net/aspose.imaging.fileformats.wmf/wmfimage/_index.md +++ b/english/python-net/aspose.imaging.fileformats.wmf/wmfimage/_index.md @@ -32,8 +32,8 @@ url: /python-net/aspose.imaging.fileformats.wmf/wmfimage/ | file_format | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | r | Access the file format value associated with the image, providing information
about the format in which the image is stored. Utilize this property to determine
the file format of the image, facilitating compatibility checks and
format-specific processing within your application. | | frame_bounds | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | r | Access the bounds of the frame, indicating its position and dimensions within the
image. Utilize this property to retrieve detailed information about the frame's
spatial location, enabling precise manipulation and rendering within your application. | | has_background_color | bool | r/w | Gets or sets a value indicating whether image has background color. | -| height | int | r | Access the image's height, representing the number of pixels along its vertical
axis. Utilize this property to ascertain the image's spatial dimensions and aspect
ratio, enabling accurate layout and rendering adjustments within your application. | -| height_f | float | r | Gets the object height, in inches. | +| height | int | r | Gets the object height. | +| height_f | float | r | Access the image's height, representing the number of pixels along its vertical
axis. Utilize this property to ascertain the image's spatial dimensions and aspect
ratio, enabling accurate layout and rendering adjustments within your application. | | inch | int | r/w | Access or modify the inch property, representing a unit of measurement typically
used for specifying physical dimensions in print or display contexts. Utilize this
property to establish or retrieve inch values associated with the image,
facilitating accurate representation of physical dimensions within your application. | | interrupt_monitor | [InterruptMonitor](/imaging/python-net/aspose.imaging.multithreading/interruptmonitor/) | r/w | Gets or sets the interrupt monitor. | | is_cached | bool | r | Retrieve a boolean value indicating whether the object's data is currently cached,
eliminating the need for additional data reading operations. Utilize this property
to optimize performance by determining if the object's data is readily available
without the need for costly data retrieval processes within your application. | @@ -42,8 +42,8 @@ url: /python-net/aspose.imaging.fileformats.wmf/wmfimage/ | size | [Size](/imaging/python-net/aspose.imaging/size) | r | Gets the object size. | | size_f | [SizeF](/imaging/python-net/aspose.imaging/sizef) | r | Gets the object size, in inches. | | use_palette | bool | r | Gets a value indicating whether the image palette is used. | -| width | int | r | Access the width of the image, indicating the number of pixels along its
horizontal axis. Utilize this property to determine the image's spatial dimensions
and aspect ratio, enabling precise layout and rendering adjustments within your
application. | -| width_f | float | r | Gets the object width, in inches. | +| width | int | r | Gets the object width. | +| width_f | float | r | Access the width of the image, indicating the number of pixels along its
horizontal axis. Utilize this property to determine the image's spatial dimensions
and aspect ratio, enabling precise layout and rendering adjustments within your
application. | ## **Methods** | **Name** | **Description** | | :- | :- | @@ -57,67 +57,72 @@ url: /python-net/aspose.imaging.fileformats.wmf/wmfimage/ | [can_load_stream_with_options(stream, load_options)](#can_load_stream_with_options_stream_load_options_7) | Determines whether image can be loaded from the specified stream and optionally using the specified _loadOptions_. | | [can_load_with_options(file_path, load_options)](#can_load_with_options_file_path_load_options_8) | Determines whether image can be loaded from the specified file path and optionally using the specified open options. | | [can_save(options)](#can_save_options_9) | Determines whether image can be saved to the specified file format represented by the passed save options. | -| [create(files)](#create_files_10) | Creates the specified files. | -| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_11) | Creates the specified files. | +| [create(files)](#create_files_10) | Creates the multipage image containing the specified files. | +| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_11) | Creates the multipage image containing the specified files. | | [create(image_options, width, height)](#create_image_options_width_height_12) | Creates a new image using the specified create options. | | [create(images)](#create_images_13) | Creates a new image using the specified images as pages | | [create(images, dispose_images)](#create_images_dispose_images_14) | Creates a new image the specified images as pages. | | [create(multipage_create_options)](#create_multipage_create_options_15) | Creates the specified multipage create options. | -| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_16) | Crop image with shifts. | -| [crop(rectangle)](#crop_rectangle_17) | Crop the image to the specified rectangle, retaining only the selected region
while discarding the rest. Integrate this method into your image processing
workflow to extract specific areas of interest and customize the composition of
the image within your application. | -| [get_default_options(args)](#get_default_options_args_18) | Retrieve the default options associated with the image, providing access to
predefined settings or configurations. Utilize this method to access default
settings for image processing operations, facilitating consistency and convenience
within your application's functionality. | -| [get_embedded_images()](#get_embedded_images__19) | Gets the embedded images. | -| [get_file_format(file_path)](#get_file_format_file_path_20) | Gets the file format. | -| [get_file_format(stream)](#get_file_format_stream_21) | Gets the file format. | -| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_22) | Gets the file format. | -| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_23) | Gets rectangle which fits the current image. | -| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_24) | Gets rectangle which fits the current image. | -| [get_missed_fonts()](#get_missed_fonts__25) | Returns the list of fonts which used inside metafile but not found. | -| [get_original_options()](#get_original_options__26) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | -| [get_post_script()](#get_post_script__27) | Access the PostScript data associated with the image, providing detailed
information about its structure or content. Utilize this method to retrieve
PostScript data for further analysis or processing within your application,
enabling advanced functionality related to PostScript rendering or manipulation. | -| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_28) | Gets a proportional height. | -| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_29) | Gets a proportional width. | -| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_30) | Converts to aps. | -| [get_used_fonts()](#get_used_fonts__31) | Retrieve the list of fonts used within the metafile, providing insight into the
font resources utilized in the image. Utilize this method to analyze font usage
and ensure font availability for rendering or further processing within your application. | -| [load(file_path)](#load_file_path_32) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(file_path, load_options)](#load_file_path_load_options_33) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(stream)](#load_stream_34) | Loads a new image from the specified stream. | -| [load(stream, load_options)](#load_stream_load_options_35) | Loads a new image from the specified stream. | -| [load_stream(stream)](#load_stream_stream_36) | Loads a new image from the specified stream. | -| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_37) | Loads a new image from the specified stream. | -| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_38) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [create_from_files(files)](#create_from_files_files_16) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_files(files, throw_exception_on_load_error)](#create_from_files_files_throw_exception_on_load_error_17) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_images(images)](#create_from_images_images_18) | Creates a new image using the specified images as pages | +| [create_from_images(images, dispose_images)](#create_from_images_images_dispose_images_19) | Creates a new image the specified images as pages. | +| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_20) | Crop image with shifts. | +| [crop(rectangle)](#crop_rectangle_21) | Crops the specified rectangle. | +| [get_default_options(args)](#get_default_options_args_22) | Retrieve the default options associated with the image, providing access to
predefined settings or configurations. Utilize this method to access default
settings for image processing operations, facilitating consistency and convenience
within your application's functionality. | +| [get_embedded_images()](#get_embedded_images__23) | Gets the embedded images. | +| [get_file_format(file_path)](#get_file_format_file_path_24) | Gets the file format. | +| [get_file_format(stream)](#get_file_format_stream_25) | Gets the file format. | +| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_26) | Gets the file format. | +| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_27) | Gets rectangle which fits the current image. | +| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_28) | Gets rectangle which fits the current image. | +| [get_missed_fonts()](#get_missed_fonts__29) | Returns the list of fonts which used inside metafile but not found. | +| [get_original_options()](#get_original_options__30) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | +| [get_post_script()](#get_post_script__31) | Access the PostScript data associated with the image, providing detailed
information about its structure or content. Utilize this method to retrieve
PostScript data for further analysis or processing within your application,
enabling advanced functionality related to PostScript rendering or manipulation. | +| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_32) | Gets a proportional height. | +| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_33) | Gets a proportional width. | +| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_34) | Converts to aps. | +| [get_used_fonts()](#get_used_fonts__35) | Retrieve the list of fonts used within the metafile, providing insight into the
font resources utilized in the image. Utilize this method to analyze font usage
and ensure font availability for rendering or further processing within your application. | +| [load(file_path)](#load_file_path_36) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path, load_options)](#load_file_path_load_options_37) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(stream)](#load_stream_38) | Loads a new image from the specified stream. | +| [load(stream, load_options)](#load_stream_load_options_39) | Loads a new image from the specified stream. | +| [load_stream(stream)](#load_stream_stream_40) | Loads a new image from the specified stream. | +| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_41) | Loads a new image from the specified stream. | +| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_42) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | | remove_background() | Removes the background. | -| [remove_background(settings)](#remove_background_settings_39) | Removes the background. | +| [remove_background(settings)](#remove_background_settings_43) | Removes the background. | | remove_metadata() | Removes metadata. | -| [resize(new_width, new_height)](#resize_new_width_new_height_40) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_41) | Resizes the image. | -| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_42) | Resizes the image. | -| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_43) | Resizes the image. | -| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_44) | Resizes the image. | -| [resize_canvas(new_rectangle)](#resize_canvas_new_rectangle_45) | Resize the canvas of the image, adjusting its dimensions while retaining the image
content. Utilize this method to modify the size of the canvas without altering the
content, facilitating layout adjustments and composition changes within your
application. | -| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_46) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_47) | Resizes the height proportionally. | -| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_48) | Resizes the height proportionally. | -| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_49) | Resizes the height proportionally. | -| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_50) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_51) | Resizes the width proportionally. | -| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_52) | Resizes the width proportionally. | -| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_53) | Resizes the width proportionally. | -| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_54) | Perform rotation, flipping, or a combination of both operations on the image.
Integrate this method into your image processing workflow to achieve precise
manipulation of image orientation and alignment within your application. | +| [resize(new_width, new_height)](#resize_new_width_new_height_44) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_45) | Resizes the specified new width. | +| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_46) | Resizes the image with extended options. | +| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_47) | Resizes the image. | +| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_48) | Resizes the image. | +| [resize_canvas(new_rectangle)](#resize_canvas_new_rectangle_49) | Resize the canvas of the image, adjusting its dimensions while retaining the image
content. Utilize this method to modify the size of the canvas without altering the
content, facilitating layout adjustments and composition changes within your
application. | +| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_50) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_51) | Resizes the height proportionally. | +| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_52) | Resizes the height proportionally. | +| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_53) | Resizes the height proportionally. | +| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_54) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_55) | Resizes the width proportionally. | +| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_56) | Resizes the width proportionally. | +| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_57) | Resizes the width proportionally. | +| [rotate(angle)](#rotate_angle_58) | Rotate image around the center. | +| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_59) | Rotates, flips, or rotates and flips the image. | | save() | Saves the image data to the underlying stream. | -| [save(file_path)](#save_file_path_55) | Saves the image to the specified file location. | -| [save(file_path, options)](#save_file_path_options_56) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_57) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, over_write)](#save_file_path_over_write_58) | Saves the object's data to the specified file location. | -| [save(stream)](#save_stream_59) | Saves the data. | -| [save(stream, options_base)](#save_stream_options_base_60) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_61) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream(stream)](#save_to_stream_stream_62) | Saves the object's data to the specified stream. | -| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_63) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_64) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_with_options(file_path, options)](#save_with_options_file_path_options_65) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_66) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_67) | Apply a specified palette to the image, enabling customization of color
representation. Utilize this method to enhance visual rendering and achieve
specific color effects within your application. | +| [save(file_path)](#save_file_path_60) | Saves the image to the specified file location. | +| [save(file_path, options)](#save_file_path_options_61) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_62) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, over_write)](#save_file_path_over_write_63) | Saves the object's data to the specified file location. | +| [save(stream)](#save_stream_64) | Saves the data. | +| [save(stream, options_base)](#save_stream_options_base_65) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_66) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream(stream)](#save_to_stream_stream_67) | Saves the object's data to the specified stream. | +| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_68) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_69) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_with_options(file_path, options)](#save_with_options_file_path_options_70) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_71) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_72) | Apply a specified palette to the image, enabling customization of color
representation. Utilize this method to enhance visual rendering and achieve
specific color effects within your application. | ### Constructor: WmfImage() {#WmfImage__1} @@ -354,7 +359,7 @@ Determines whether image can be saved to the specified file format represented b create(files) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -376,7 +381,7 @@ Creates the specified files. create(files, throw_exception_on_load_error) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -483,7 +488,97 @@ Creates the specified multipage create options. | [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | -### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_16} +### Method: create_from_files(files) [static] {#create_from_files_files_16} + + +``` + create_from_files(files) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_files(files, throw_exception_on_load_error) [static] {#create_from_files_files_throw_exception_on_load_error_17} + + +``` + create_from_files(files, throw_exception_on_load_error) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | +| throw_exception_on_load_error | bool | if set to true throw exception on load error. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_images(images) [static] {#create_from_images_images_18} + + +``` + create_from_images(images) +``` + +Creates a new image using the specified images as pages + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_images(images, dispose_images) [static] {#create_from_images_images_dispose_images_19} + + +``` + create_from_images(images, dispose_images) +``` + +Creates a new image the specified images as pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | +| dispose_images | bool | if set to true [dispose images]. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_20} ``` @@ -501,14 +596,14 @@ Crop image with shifts. | top_shift | int | The top shift. | | bottom_shift | int | The bottom shift. | -### Method: crop(rectangle) {#crop_rectangle_17} +### Method: crop(rectangle) {#crop_rectangle_21} ``` crop(rectangle) ``` -Crop the image to the specified rectangle, retaining only the selected region
while discarding the rest. Integrate this method into your image processing
workflow to extract specific areas of interest and customize the composition of
the image within your application. +Crops the specified rectangle. **Parameters:** @@ -516,7 +611,7 @@ Crop the image to the specified rectangle, retaining only the selected region This can b | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options based on the original file settings. | -### Method: get_post_script() {#get_post_script__27} +### Method: get_post_script() {#get_post_script__31} ``` @@ -717,7 +812,7 @@ Access the PostScript data associated with the image, providing detailed
| string | The post script | -### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_28} +### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_32} ``` @@ -741,7 +836,7 @@ Gets a proportional height. | int | The proportional height. | -### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_29} +### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_33} ``` @@ -765,7 +860,7 @@ Gets a proportional width. | int | The proportional width. | -### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_30} +### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_34} ``` @@ -789,7 +884,7 @@ Converts to aps. | _io.BufferedRandom | The serialized stream | -### Method: get_used_fonts() {#get_used_fonts__31} +### Method: get_used_fonts() {#get_used_fonts__35} ``` @@ -805,7 +900,7 @@ Retrieve the list of fonts used within the metafile, providing insight into the | string | The font list | -### Method: load(file_path) [static] {#load_file_path_32} +### Method: load(file_path) [static] {#load_file_path_36} ``` @@ -827,7 +922,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(file_path, load_options) [static] {#load_file_path_load_options_33} +### Method: load(file_path, load_options) [static] {#load_file_path_load_options_37} ``` @@ -850,7 +945,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream) [static] {#load_stream_34} +### Method: load(stream) [static] {#load_stream_38} ``` @@ -872,7 +967,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream, load_options) [static] {#load_stream_load_options_35} +### Method: load(stream, load_options) [static] {#load_stream_load_options_39} ``` @@ -895,7 +990,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream(stream) [static] {#load_stream_stream_36} +### Method: load_stream(stream) [static] {#load_stream_stream_40} ``` @@ -917,7 +1012,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_37} +### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_41} ``` @@ -940,7 +1035,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_38} +### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_42} ``` @@ -963,7 +1058,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: remove_background(settings) {#remove_background_settings_39} +### Method: remove_background(settings) {#remove_background_settings_43} ``` @@ -978,7 +1073,7 @@ Removes the background. | :- | :- | :- | | settings | [RemoveBackgroundSettings](/imaging/python-net/aspose.imaging/removebackgroundsettings) | The settings. | -### Method: resize(new_width, new_height) {#resize_new_width_new_height_40} +### Method: resize(new_width, new_height) {#resize_new_width_new_height_44} ``` @@ -994,14 +1089,14 @@ Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/ | new_width | int | The new width. | | new_height | int | The new height. | -### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_41} +### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_45} ``` resize(new_width, new_height, resize_type) ``` -Resizes the image. +Resizes the specified new width. **Parameters:** @@ -1009,16 +1104,16 @@ Resizes the image. | :- | :- | :- | | new_width | int | The new width. | | new_height | int | The new height. | -| resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | +| resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_42} +### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_46} ``` resize(new_width, new_height, settings) ``` -Resizes the image. +Resizes the image with extended options. **Parameters:** @@ -1028,7 +1123,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_43} +### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_47} ``` @@ -1045,7 +1140,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_44} +### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_48} ``` @@ -1062,7 +1157,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_canvas(new_rectangle) {#resize_canvas_new_rectangle_45} +### Method: resize_canvas(new_rectangle) {#resize_canvas_new_rectangle_49} ``` @@ -1077,7 +1172,7 @@ Resize the canvas of the image, adjusting its dimensions while retaining the ima | :- | :- | :- | | new_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The new rectangle. | -### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_46} +### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_50} ``` @@ -1092,7 +1187,7 @@ Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RES | :- | :- | :- | | new_height | int | The new height. | -### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_47} +### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_51} ``` @@ -1108,7 +1203,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_48} +### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_52} ``` @@ -1124,7 +1219,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_49} +### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_53} ``` @@ -1140,7 +1235,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_50} +### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_54} ``` @@ -1155,7 +1250,7 @@ Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESA | :- | :- | :- | | new_width | int | The new width. | -### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_51} +### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_55} ``` @@ -1171,7 +1266,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_52} +### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_56} ``` @@ -1187,7 +1282,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_53} +### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_57} ``` @@ -1203,14 +1298,29 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_54} +### Method: rotate(angle) {#rotate_angle_58} + + +``` + rotate(angle) +``` + +Rotate image around the center. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | + +### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_59} ``` rotate_flip(rotate_flip_type) ``` -Perform rotation, flipping, or a combination of both operations on the image.
Integrate this method into your image processing workflow to achieve precise
manipulation of image orientation and alignment within your application. +Rotates, flips, or rotates and flips the image. **Parameters:** @@ -1218,7 +1328,7 @@ Perform rotation, flipping, or a combination of both operations on the image. true over write the file contents, otherwise append will occur. | -### Method: save(stream) {#save_stream_59} +### Method: save(stream) {#save_stream_64} ``` @@ -1297,7 +1407,7 @@ Saves the data. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save data to. | -### Method: save(stream, options_base) {#save_stream_options_base_60} +### Method: save(stream, options_base) {#save_stream_options_base_65} ``` @@ -1313,7 +1423,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_61} +### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_66} ``` @@ -1330,7 +1440,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_to_stream(stream) {#save_to_stream_stream_62} +### Method: save_to_stream(stream) {#save_to_stream_stream_67} ``` @@ -1345,7 +1455,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_63} +### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_68} ``` @@ -1361,7 +1471,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_64} +### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_69} ``` @@ -1378,7 +1488,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_65} +### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_70} ``` @@ -1394,7 +1504,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_66} +### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_71} ``` @@ -1411,7 +1521,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_67} +### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_72} ``` diff --git a/english/python-net/aspose.imaging.imageoptions/_index.md b/english/python-net/aspose.imaging.imageoptions/_index.md index 95cd56b4a1..3b18923a6d 100644 --- a/english/python-net/aspose.imaging.imageoptions/_index.md +++ b/english/python-net/aspose.imaging.imageoptions/_index.md @@ -45,7 +45,7 @@ The module contains classes suitable for export, save or creation of different f | [TgaOptions](/imaging/python-net/aspose.imaging.imageoptions/tgaoptions/) | The TGA file format create options. | | [TiffOptions](/imaging/python-net/aspose.imaging.imageoptions/tiffoptions/) | The tiff file format options.
Note that width and height tags will get overwritten on image creation by width and height parameters so there is no need to specify them directly.
Note that many options return a default value but that does not mean that this option is set explicitly as a tag value. To verify the tag is present use Tags property or the corresponding IsTagPresent method. | | [TimeInterval](/imaging/python-net/aspose.imaging.imageoptions/timeinterval/) | Represents the time interval in milliseconds | -| [VectorRasterizationOptions](/imaging/python-net/aspose.imaging.imageoptions/vectorrasterizationoptions/) | The vector rasterization options. | +| [VectorRasterizationOptions](/imaging/python-net/aspose.imaging.imageoptions/vectorrasterizationoptions/) | The vector rasterization options.
Please note that [VectorRasterizationOptions](/imaging/python-net/aspose.imaging.imageoptions/vectorrasterizationoptions/) will no longer derive from [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase/)
since Aspose.Imaging 24.12 version. | | [WebPOptions](/imaging/python-net/aspose.imaging.imageoptions/webpoptions/) | Create modern WebP raster web images using our API, featuring robust support for
lossless and lossy compression, as well as alpha channels and animation loops.
Enhance your web content with dynamic visuals while optimizing file sizes
for improved loading speeds and user experience. | | [WmfOptions](/imaging/python-net/aspose.imaging.imageoptions/wmfoptions/) | The wmf options. | | [WmfRasterizationOptions](/imaging/python-net/aspose.imaging.imageoptions/wmfrasterizationoptions/) | The Wmf rasterization options. | diff --git a/english/python-net/aspose.imaging.imageoptions/apngoptions/_index.md b/english/python-net/aspose.imaging.imageoptions/apngoptions/_index.md index 846955b075..1fbfe42b5a 100644 --- a/english/python-net/aspose.imaging.imageoptions/apngoptions/_index.md +++ b/english/python-net/aspose.imaging.imageoptions/apngoptions/_index.md @@ -41,7 +41,7 @@ url: /python-net/aspose.imaging.imageoptions/apngoptions/ ## **Methods** | **Name** | **Description** | | :- | :- | -| [clone()](#clone__1) | Clones this instance. | +| [clone()](#clone__1) | Creates a memberwise clone of this instance. | ### Constructor: ApngOptions() {#ApngOptions__1} @@ -78,13 +78,13 @@ Gets or sets the number of times to loop animation.
0 indicates clone() ``` -Clones this instance. +Creates a memberwise clone of this instance. **Returns** | Type | Description | | :- | :- | -| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Returns shallow copy of this instance | +| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | A memberwise clone of this instance. | ## **Examples** diff --git a/english/python-net/aspose.imaging.imageoptions/bmpoptions/_index.md b/english/python-net/aspose.imaging.imageoptions/bmpoptions/_index.md index 1308b6eee2..b0de212635 100644 --- a/english/python-net/aspose.imaging.imageoptions/bmpoptions/_index.md +++ b/english/python-net/aspose.imaging.imageoptions/bmpoptions/_index.md @@ -36,7 +36,7 @@ url: /python-net/aspose.imaging.imageoptions/bmpoptions/ ## **Methods** | **Name** | **Description** | | :- | :- | -| [clone()](#clone__1) | Clones this instance. | +| [clone()](#clone__1) | Creates a memberwise clone of this instance. | ### Constructor: BmpOptions() {#BmpOptions__1} @@ -108,13 +108,13 @@ Gets or sets the compression type. The default compression type is [BitmapCompre clone() ``` -Clones this instance. +Creates a memberwise clone of this instance. **Returns** | Type | Description | | :- | :- | -| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Returns shallow copy of this instance | +| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | A memberwise clone of this instance. | ## **Examples** diff --git a/english/python-net/aspose.imaging.imageoptions/cdrrasterizationoptions/_index.md b/english/python-net/aspose.imaging.imageoptions/cdrrasterizationoptions/_index.md index 07ef453806..6ae0c4c86e 100644 --- a/english/python-net/aspose.imaging.imageoptions/cdrrasterizationoptions/_index.md +++ b/english/python-net/aspose.imaging.imageoptions/cdrrasterizationoptions/_index.md @@ -30,9 +30,9 @@ url: /python-net/aspose.imaging.imageoptions/cdrrasterizationoptions/ | full_frame | bool | r/w | Gets or sets a value indicating whether [full frame]. | | keep_metadata | bool | r/w | Gets a value whether to keep original image metadata on export. | | multi_page_options | [MultiPageOptions](/imaging/python-net/aspose.imaging.imageoptions/multipageoptions) | r/w | The multipage options | -| page_height | float | r/w | Gets or sets the page height. | -| page_size | [SizeF](/imaging/python-net/aspose.imaging/sizef) | r/w | Gets or sets the page size. | -| page_width | float | r/w | Gets or sets the page width. | +| page_height | float | r/w | Gets or sets the page height.
If the value is 0, the source image aspect ratio will be preserved. | +| page_size | [SizeF](/imaging/python-net/aspose.imaging/sizef) | r/w | Gets or sets the page size.
If one of [SizeF](/imaging/python-net/aspose.imaging/sizef/) dimensions is 0, the source image aspect ratio will be preserved. | +| page_width | float | r/w | Gets or sets the page width.
If the value is 0, the source image aspect ratio will be preserved. | | palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | r/w | Gets or sets the color palette. | | positioning | [PositioningTypes](/imaging/python-net/aspose.imaging.imageoptions/positioningtypes) | r/w | Gets or sets the positioning. | | resolution_settings | [ResolutionSetting](/imaging/python-net/aspose.imaging/resolutionsetting) | r/w | Gets or sets the resolution settings. | @@ -46,7 +46,7 @@ url: /python-net/aspose.imaging.imageoptions/cdrrasterizationoptions/ ## **Methods** | **Name** | **Description** | | :- | :- | -| [clone()](#clone__1) | Clones this instance. | +| [clone()](#clone__1) | Creates a memberwise clone of this instance. | | [copy_to(vector_rasterization_options)](#copy_to_vector_rasterization_options_2) | Copies to. | @@ -66,13 +66,13 @@ Initializes a new instance of the [CdrRasterizationOptions](/imaging/python-net/ clone() ``` -Clones this instance. +Creates a memberwise clone of this instance. **Returns** | Type | Description | | :- | :- | -| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Returns shallow copy of this instance | +| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | A memberwise clone of this instance. | ### Method: copy_to(vector_rasterization_options) {#copy_to_vector_rasterization_options_2} diff --git a/english/python-net/aspose.imaging.imageoptions/cmxrasterizationoptions/_index.md b/english/python-net/aspose.imaging.imageoptions/cmxrasterizationoptions/_index.md index f4435ffa1f..f2d40ffb8b 100644 --- a/english/python-net/aspose.imaging.imageoptions/cmxrasterizationoptions/_index.md +++ b/english/python-net/aspose.imaging.imageoptions/cmxrasterizationoptions/_index.md @@ -30,9 +30,9 @@ url: /python-net/aspose.imaging.imageoptions/cmxrasterizationoptions/ | full_frame | bool | r/w | Gets or sets a value indicating whether [full frame]. | | keep_metadata | bool | r/w | Gets a value whether to keep original image metadata on export. | | multi_page_options | [MultiPageOptions](/imaging/python-net/aspose.imaging.imageoptions/multipageoptions) | r/w | The multipage options | -| page_height | float | r/w | Gets or sets the page height. | -| page_size | [SizeF](/imaging/python-net/aspose.imaging/sizef) | r/w | Gets or sets the page size. | -| page_width | float | r/w | Gets or sets the page width. | +| page_height | float | r/w | Gets or sets the page height.
If the value is 0, the source image aspect ratio will be preserved. | +| page_size | [SizeF](/imaging/python-net/aspose.imaging/sizef) | r/w | Gets or sets the page size.
If one of [SizeF](/imaging/python-net/aspose.imaging/sizef/) dimensions is 0, the source image aspect ratio will be preserved. | +| page_width | float | r/w | Gets or sets the page width.
If the value is 0, the source image aspect ratio will be preserved. | | palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | r/w | Gets or sets the color palette. | | positioning | [PositioningTypes](/imaging/python-net/aspose.imaging.imageoptions/positioningtypes) | r/w | Gets or sets the positioning. | | resolution_settings | [ResolutionSetting](/imaging/python-net/aspose.imaging/resolutionsetting) | r/w | Gets or sets the resolution settings. | @@ -44,7 +44,7 @@ url: /python-net/aspose.imaging.imageoptions/cmxrasterizationoptions/ ## **Methods** | **Name** | **Description** | | :- | :- | -| [clone()](#clone__1) | Clones this instance. | +| [clone()](#clone__1) | Creates a memberwise clone of this instance. | | [copy_to(vector_rasterization_options)](#copy_to_vector_rasterization_options_2) | Copies to. | @@ -64,13 +64,13 @@ Initializes a new instance of the [CmxRasterizationOptions](/imaging/python-net/ clone() ``` -Clones this instance. +Creates a memberwise clone of this instance. **Returns** | Type | Description | | :- | :- | -| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Returns shallow copy of this instance | +| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | A memberwise clone of this instance. | ### Method: copy_to(vector_rasterization_options) {#copy_to_vector_rasterization_options_2} diff --git a/english/python-net/aspose.imaging.imageoptions/dicomoptions/_index.md b/english/python-net/aspose.imaging.imageoptions/dicomoptions/_index.md index fefd367e5d..ea495c3e32 100644 --- a/english/python-net/aspose.imaging.imageoptions/dicomoptions/_index.md +++ b/english/python-net/aspose.imaging.imageoptions/dicomoptions/_index.md @@ -35,7 +35,7 @@ url: /python-net/aspose.imaging.imageoptions/dicomoptions/ ## **Methods** | **Name** | **Description** | | :- | :- | -| [clone()](#clone__1) | Clones this instance. | +| [clone()](#clone__1) | Creates a memberwise clone of this instance. | ### Constructor: DicomOptions() {#DicomOptions__1} @@ -76,13 +76,13 @@ Gets or sets the compression. clone() ``` -Clones this instance. +Creates a memberwise clone of this instance. **Returns** | Type | Description | | :- | :- | -| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Returns shallow copy of this instance | +| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | A memberwise clone of this instance. | ## **Examples** diff --git a/english/python-net/aspose.imaging.imageoptions/dxfoptions/_index.md b/english/python-net/aspose.imaging.imageoptions/dxfoptions/_index.md index ad70ca90df..2b098674fe 100644 --- a/english/python-net/aspose.imaging.imageoptions/dxfoptions/_index.md +++ b/english/python-net/aspose.imaging.imageoptions/dxfoptions/_index.md @@ -36,7 +36,7 @@ url: /python-net/aspose.imaging.imageoptions/dxfoptions/ ## **Methods** | **Name** | **Description** | | :- | :- | -| [clone()](#clone__1) | Clones this instance. | +| [clone()](#clone__1) | Creates a memberwise clone of this instance. | ### Constructor: DxfOptions() {#DxfOptions__1} @@ -55,13 +55,13 @@ Initializes a new instance of the DxfOptions class clone() ``` -Clones this instance. +Creates a memberwise clone of this instance. **Returns** | Type | Description | | :- | :- | -| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Returns shallow copy of this instance | +| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | A memberwise clone of this instance. | ## **Examples** diff --git a/english/python-net/aspose.imaging.imageoptions/emfoptions/_index.md b/english/python-net/aspose.imaging.imageoptions/emfoptions/_index.md index 2aa23954c4..d3e77a4231 100644 --- a/english/python-net/aspose.imaging.imageoptions/emfoptions/_index.md +++ b/english/python-net/aspose.imaging.imageoptions/emfoptions/_index.md @@ -34,7 +34,7 @@ url: /python-net/aspose.imaging.imageoptions/emfoptions/ ## **Methods** | **Name** | **Description** | | :- | :- | -| [clone()](#clone__1) | Clones this instance. | +| [clone()](#clone__1) | Creates a memberwise clone of this instance. | ### Constructor: EmfOptions() {#EmfOptions__1} @@ -53,12 +53,12 @@ Initializes a new instance of the EmfOptions class clone() ``` -Clones this instance. +Creates a memberwise clone of this instance. **Returns** | Type | Description | | :- | :- | -| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Returns shallow copy of this instance | +| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | A memberwise clone of this instance. | diff --git a/english/python-net/aspose.imaging.imageoptions/emfrasterizationoptions/_index.md b/english/python-net/aspose.imaging.imageoptions/emfrasterizationoptions/_index.md index 8084abf8c7..8ca841ea58 100644 --- a/english/python-net/aspose.imaging.imageoptions/emfrasterizationoptions/_index.md +++ b/english/python-net/aspose.imaging.imageoptions/emfrasterizationoptions/_index.md @@ -30,9 +30,9 @@ url: /python-net/aspose.imaging.imageoptions/emfrasterizationoptions/ | full_frame | bool | r/w | Gets or sets a value indicating whether [full frame]. | | keep_metadata | bool | r/w | Gets a value whether to keep original image metadata on export. | | multi_page_options | [MultiPageOptions](/imaging/python-net/aspose.imaging.imageoptions/multipageoptions) | r/w | The multipage options | -| page_height | float | r/w | Gets or sets the page height. | -| page_size | [SizeF](/imaging/python-net/aspose.imaging/sizef) | r/w | Gets or sets the page size. | -| page_width | float | r/w | Gets or sets the page width. | +| page_height | float | r/w | Gets or sets the page height.
If the value is 0, the source image aspect ratio will be preserved. | +| page_size | [SizeF](/imaging/python-net/aspose.imaging/sizef) | r/w | Gets or sets the page size.
If one of [SizeF](/imaging/python-net/aspose.imaging/sizef/) dimensions is 0, the source image aspect ratio will be preserved. | +| page_width | float | r/w | Gets or sets the page width.
If the value is 0, the source image aspect ratio will be preserved. | | palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | r/w | Gets or sets the color palette. | | positioning | [PositioningTypes](/imaging/python-net/aspose.imaging.imageoptions/positioningtypes) | r/w | Gets or sets the positioning. | | render_mode | [EmfRenderMode](/imaging/python-net/aspose.imaging.fileformats.emf/emfrendermode/) | r/w | Gets or sets the render mode. | @@ -45,7 +45,7 @@ url: /python-net/aspose.imaging.imageoptions/emfrasterizationoptions/ ## **Methods** | **Name** | **Description** | | :- | :- | -| [clone()](#clone__1) | Clones this instance. | +| [clone()](#clone__1) | Creates a memberwise clone of this instance. | | [copy_to(vector_rasterization_options)](#copy_to_vector_rasterization_options_2) | Copies to. | @@ -65,13 +65,13 @@ Initializes a new instance of the EmfRasterizationOptions class clone() ``` -Clones this instance. +Creates a memberwise clone of this instance. **Returns** | Type | Description | | :- | :- | -| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Returns shallow copy of this instance | +| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | A memberwise clone of this instance. | ### Method: copy_to(vector_rasterization_options) {#copy_to_vector_rasterization_options_2} diff --git a/english/python-net/aspose.imaging.imageoptions/epsrasterizationoptions/_index.md b/english/python-net/aspose.imaging.imageoptions/epsrasterizationoptions/_index.md index f883c72d50..f9d13431d4 100644 --- a/english/python-net/aspose.imaging.imageoptions/epsrasterizationoptions/_index.md +++ b/english/python-net/aspose.imaging.imageoptions/epsrasterizationoptions/_index.md @@ -30,9 +30,9 @@ url: /python-net/aspose.imaging.imageoptions/epsrasterizationoptions/ | full_frame | bool | r/w | Gets or sets a value indicating whether [full frame]. | | keep_metadata | bool | r/w | Gets a value whether to keep original image metadata on export. | | multi_page_options | [MultiPageOptions](/imaging/python-net/aspose.imaging.imageoptions/multipageoptions) | r/w | The multipage options | -| page_height | float | r/w | Gets or sets the page height. | -| page_size | [SizeF](/imaging/python-net/aspose.imaging/sizef) | r/w | Gets or sets the page size. | -| page_width | float | r/w | Gets or sets the page width. | +| page_height | float | r/w | Gets or sets the page height.
If the value is 0, the source image aspect ratio will be preserved. | +| page_size | [SizeF](/imaging/python-net/aspose.imaging/sizef) | r/w | Gets or sets the page size.
If one of [SizeF](/imaging/python-net/aspose.imaging/sizef/) dimensions is 0, the source image aspect ratio will be preserved. | +| page_width | float | r/w | Gets or sets the page width.
If the value is 0, the source image aspect ratio will be preserved. | | palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | r/w | Gets or sets the color palette. | | positioning | [PositioningTypes](/imaging/python-net/aspose.imaging.imageoptions/positioningtypes) | r/w | Gets or sets the positioning. | | preview_to_export | [EpsPreviewFormat](/imaging/python-net/aspose.imaging.fileformats.eps/epspreviewformat/) | r/w | Use [EpsImage.get_preview_image(format)](/imaging/python-net/aspose.imaging.fileformats.eps/epsimage/) for preview export. | @@ -45,7 +45,7 @@ url: /python-net/aspose.imaging.imageoptions/epsrasterizationoptions/ ## **Methods** | **Name** | **Description** | | :- | :- | -| [clone()](#clone__1) | Clones this instance. | +| [clone()](#clone__1) | Creates a memberwise clone of this instance. | | [copy_to(vector_rasterization_options)](#copy_to_vector_rasterization_options_2) | Copies to. | @@ -65,13 +65,13 @@ Initializes a new instance of the [EpsRasterizationOptions](/imaging/python-net/ clone() ``` -Clones this instance. +Creates a memberwise clone of this instance. **Returns** | Type | Description | | :- | :- | -| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Returns shallow copy of this instance | +| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | A memberwise clone of this instance. | ### Method: copy_to(vector_rasterization_options) {#copy_to_vector_rasterization_options_2} diff --git a/english/python-net/aspose.imaging.imageoptions/gifoptions/_index.md b/english/python-net/aspose.imaging.imageoptions/gifoptions/_index.md index 0a9cc90736..35c8d05b95 100644 --- a/english/python-net/aspose.imaging.imageoptions/gifoptions/_index.md +++ b/english/python-net/aspose.imaging.imageoptions/gifoptions/_index.md @@ -45,7 +45,7 @@ url: /python-net/aspose.imaging.imageoptions/gifoptions/ ## **Methods** | **Name** | **Description** | | :- | :- | -| [clone()](#clone__1) | Clones this instance. | +| [clone()](#clone__1) | Creates a memberwise clone of this instance. | ### Constructor: GifOptions() {#GifOptions__1} @@ -79,13 +79,13 @@ Initializes a new instance of the [GifOptions](/imaging/python-net/aspose.imagin clone() ``` -Clones this instance. +Creates a memberwise clone of this instance. **Returns** | Type | Description | | :- | :- | -| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Returns shallow copy of this instance | +| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | A memberwise clone of this instance. | ## **Examples** diff --git a/english/python-net/aspose.imaging.imageoptions/html5canvasoptions/_index.md b/english/python-net/aspose.imaging.imageoptions/html5canvasoptions/_index.md index 0daf89d207..9d20ff4c60 100644 --- a/english/python-net/aspose.imaging.imageoptions/html5canvasoptions/_index.md +++ b/english/python-net/aspose.imaging.imageoptions/html5canvasoptions/_index.md @@ -36,7 +36,7 @@ url: /python-net/aspose.imaging.imageoptions/html5canvasoptions/ ## **Methods** | **Name** | **Description** | | :- | :- | -| [clone()](#clone__1) | Clones this instance. | +| [clone()](#clone__1) | Creates a memberwise clone of this instance. | ### Constructor: Html5CanvasOptions() {#Html5CanvasOptions__1} @@ -55,13 +55,13 @@ Initializes a new instance of the [Html5CanvasOptions](/imaging/python-net/aspos clone() ``` -Clones this instance. +Creates a memberwise clone of this instance. **Returns** | Type | Description | | :- | :- | -| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Returns shallow copy of this instance | +| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | A memberwise clone of this instance. | ## **Examples** diff --git a/english/python-net/aspose.imaging.imageoptions/icooptions/_index.md b/english/python-net/aspose.imaging.imageoptions/icooptions/_index.md index d91a719353..dbc908cd3e 100644 --- a/english/python-net/aspose.imaging.imageoptions/icooptions/_index.md +++ b/english/python-net/aspose.imaging.imageoptions/icooptions/_index.md @@ -36,7 +36,7 @@ url: /python-net/aspose.imaging.imageoptions/icooptions/ ## **Methods** | **Name** | **Description** | | :- | :- | -| [clone()](#clone__1) | Clones this instance. | +| [clone()](#clone__1) | Creates a memberwise clone of this instance. | ### Constructor: IcoOptions() {#IcoOptions__1} @@ -71,12 +71,12 @@ Initializes a new instance of the [IcoOptions](/imaging/python-net/aspose.imagin clone() ``` -Clones this instance. +Creates a memberwise clone of this instance. **Returns** | Type | Description | | :- | :- | -| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Returns shallow copy of this instance | +| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | A memberwise clone of this instance. | diff --git a/english/python-net/aspose.imaging.imageoptions/jpeg2000options/_index.md b/english/python-net/aspose.imaging.imageoptions/jpeg2000options/_index.md index a094a40e15..4d9d611374 100644 --- a/english/python-net/aspose.imaging.imageoptions/jpeg2000options/_index.md +++ b/english/python-net/aspose.imaging.imageoptions/jpeg2000options/_index.md @@ -38,7 +38,7 @@ url: /python-net/aspose.imaging.imageoptions/jpeg2000options/ ## **Methods** | **Name** | **Description** | | :- | :- | -| [clone()](#clone__1) | Clones this instance. | +| [clone()](#clone__1) | Creates a memberwise clone of this instance. | ### Constructor: Jpeg2000Options() {#Jpeg2000Options__1} @@ -72,12 +72,12 @@ Initializes a new instance of the [Jpeg2000Options](/imaging/python-net/aspose.i clone() ``` -Clones this instance. +Creates a memberwise clone of this instance. **Returns** | Type | Description | | :- | :- | -| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Returns shallow copy of this instance | +| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | A memberwise clone of this instance. | diff --git a/english/python-net/aspose.imaging.imageoptions/jpegoptions/_index.md b/english/python-net/aspose.imaging.imageoptions/jpegoptions/_index.md index 116ecc956a..9d624bd14c 100644 --- a/english/python-net/aspose.imaging.imageoptions/jpegoptions/_index.md +++ b/english/python-net/aspose.imaging.imageoptions/jpegoptions/_index.md @@ -54,7 +54,7 @@ url: /python-net/aspose.imaging.imageoptions/jpegoptions/ ## **Methods** | **Name** | **Description** | | :- | :- | -| [clone()](#clone__1) | Clones this instance. | +| [clone()](#clone__1) | Creates a memberwise clone of this instance. | ### Constructor: JpegOptions() {#JpegOptions__1} @@ -88,13 +88,13 @@ Initializes a new instance of the [JpegOptions](/imaging/python-net/aspose.imagi clone() ``` -Clones this instance. +Creates a memberwise clone of this instance. **Returns** | Type | Description | | :- | :- | -| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Returns shallow copy of this instance | +| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | A memberwise clone of this instance. | ## **Examples** diff --git a/english/python-net/aspose.imaging.imageoptions/metafileoptions/_index.md b/english/python-net/aspose.imaging.imageoptions/metafileoptions/_index.md index f6f44ef036..081a0ed66e 100644 --- a/english/python-net/aspose.imaging.imageoptions/metafileoptions/_index.md +++ b/english/python-net/aspose.imaging.imageoptions/metafileoptions/_index.md @@ -34,7 +34,7 @@ url: /python-net/aspose.imaging.imageoptions/metafileoptions/ ## **Methods** | **Name** | **Description** | | :- | :- | -| [clone()](#clone__1) | Clones this instance. | +| [clone()](#clone__1) | Creates a memberwise clone of this instance. | ### Constructor: MetafileOptions() {#MetafileOptions__1} @@ -53,12 +53,12 @@ Initializes a new instance of the [MetafileOptions](/imaging/python-net/aspose.i clone() ``` -Clones this instance. +Creates a memberwise clone of this instance. **Returns** | Type | Description | | :- | :- | -| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Returns shallow copy of this instance | +| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | A memberwise clone of this instance. | diff --git a/english/python-net/aspose.imaging.imageoptions/metafilerasterizationoptions/_index.md b/english/python-net/aspose.imaging.imageoptions/metafilerasterizationoptions/_index.md index e06b288572..308733034b 100644 --- a/english/python-net/aspose.imaging.imageoptions/metafilerasterizationoptions/_index.md +++ b/english/python-net/aspose.imaging.imageoptions/metafilerasterizationoptions/_index.md @@ -26,9 +26,9 @@ url: /python-net/aspose.imaging.imageoptions/metafilerasterizationoptions/ | full_frame | bool | r/w | Gets or sets a value indicating whether [full frame]. | | keep_metadata | bool | r/w | Gets a value whether to keep original image metadata on export. | | multi_page_options | [MultiPageOptions](/imaging/python-net/aspose.imaging.imageoptions/multipageoptions) | r/w | The multipage options | -| page_height | float | r/w | Gets or sets the page height. | -| page_size | [SizeF](/imaging/python-net/aspose.imaging/sizef) | r/w | Gets or sets the page size. | -| page_width | float | r/w | Gets or sets the page width. | +| page_height | float | r/w | Gets or sets the page height.
If the value is 0, the source image aspect ratio will be preserved. | +| page_size | [SizeF](/imaging/python-net/aspose.imaging/sizef) | r/w | Gets or sets the page size.
If one of [SizeF](/imaging/python-net/aspose.imaging/sizef/) dimensions is 0, the source image aspect ratio will be preserved. | +| page_width | float | r/w | Gets or sets the page width.
If the value is 0, the source image aspect ratio will be preserved. | | palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | r/w | Gets or sets the color palette. | | positioning | [PositioningTypes](/imaging/python-net/aspose.imaging.imageoptions/positioningtypes) | r/w | Gets or sets the positioning. | | resolution_settings | [ResolutionSetting](/imaging/python-net/aspose.imaging/resolutionsetting) | r/w | Gets or sets the resolution settings. | @@ -40,7 +40,7 @@ url: /python-net/aspose.imaging.imageoptions/metafilerasterizationoptions/ ## **Methods** | **Name** | **Description** | | :- | :- | -| [clone()](#clone__1) | Clones this instance. | +| [clone()](#clone__1) | Creates a memberwise clone of this instance. | | [copy_to(vector_rasterization_options)](#copy_to_vector_rasterization_options_2) | Copies to. | @@ -51,13 +51,13 @@ url: /python-net/aspose.imaging.imageoptions/metafilerasterizationoptions/ clone() ``` -Clones this instance. +Creates a memberwise clone of this instance. **Returns** | Type | Description | | :- | :- | -| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Returns shallow copy of this instance | +| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | A memberwise clone of this instance. | ### Method: copy_to(vector_rasterization_options) {#copy_to_vector_rasterization_options_2} diff --git a/english/python-net/aspose.imaging.imageoptions/odgrasterizationoptions/_index.md b/english/python-net/aspose.imaging.imageoptions/odgrasterizationoptions/_index.md index 1df6ab5335..27fec6a036 100644 --- a/english/python-net/aspose.imaging.imageoptions/odgrasterizationoptions/_index.md +++ b/english/python-net/aspose.imaging.imageoptions/odgrasterizationoptions/_index.md @@ -30,9 +30,9 @@ url: /python-net/aspose.imaging.imageoptions/odgrasterizationoptions/ | full_frame | bool | r/w | Gets or sets a value indicating whether [full frame]. | | keep_metadata | bool | r/w | Gets a value whether to keep original image metadata on export. | | multi_page_options | [MultiPageOptions](/imaging/python-net/aspose.imaging.imageoptions/multipageoptions) | r/w | The multipage options | -| page_height | float | r/w | Gets or sets the page height. | -| page_size | [SizeF](/imaging/python-net/aspose.imaging/sizef) | r/w | Gets or sets the page size. | -| page_width | float | r/w | Gets or sets the page width. | +| page_height | float | r/w | Gets or sets the page height.
If the value is 0, the source image aspect ratio will be preserved. | +| page_size | [SizeF](/imaging/python-net/aspose.imaging/sizef) | r/w | Gets or sets the page size.
If one of [SizeF](/imaging/python-net/aspose.imaging/sizef/) dimensions is 0, the source image aspect ratio will be preserved. | +| page_width | float | r/w | Gets or sets the page width.
If the value is 0, the source image aspect ratio will be preserved. | | palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | r/w | Gets or sets the color palette. | | positioning | [PositioningTypes](/imaging/python-net/aspose.imaging.imageoptions/positioningtypes) | r/w | Gets or sets the positioning. | | resolution_settings | [ResolutionSetting](/imaging/python-net/aspose.imaging/resolutionsetting) | r/w | Gets or sets the resolution settings. | @@ -44,7 +44,7 @@ url: /python-net/aspose.imaging.imageoptions/odgrasterizationoptions/ ## **Methods** | **Name** | **Description** | | :- | :- | -| [clone()](#clone__1) | Clones this instance. | +| [clone()](#clone__1) | Creates a memberwise clone of this instance. | | [copy_to(vector_rasterization_options)](#copy_to_vector_rasterization_options_2) | Copies to. | @@ -64,13 +64,13 @@ Initializes a new instance of the OdgRasterizationOptions class clone() ``` -Clones this instance. +Creates a memberwise clone of this instance. **Returns** | Type | Description | | :- | :- | -| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Returns shallow copy of this instance | +| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | A memberwise clone of this instance. | ### Method: copy_to(vector_rasterization_options) {#copy_to_vector_rasterization_options_2} diff --git a/english/python-net/aspose.imaging.imageoptions/odrasterizationoptions/_index.md b/english/python-net/aspose.imaging.imageoptions/odrasterizationoptions/_index.md index dfcf45bd9b..8727b7e4bc 100644 --- a/english/python-net/aspose.imaging.imageoptions/odrasterizationoptions/_index.md +++ b/english/python-net/aspose.imaging.imageoptions/odrasterizationoptions/_index.md @@ -30,9 +30,9 @@ url: /python-net/aspose.imaging.imageoptions/odrasterizationoptions/ | full_frame | bool | r/w | Gets or sets a value indicating whether [full frame]. | | keep_metadata | bool | r/w | Gets a value whether to keep original image metadata on export. | | multi_page_options | [MultiPageOptions](/imaging/python-net/aspose.imaging.imageoptions/multipageoptions) | r/w | The multipage options | -| page_height | float | r/w | Gets or sets the page height. | -| page_size | [SizeF](/imaging/python-net/aspose.imaging/sizef) | r/w | Gets or sets the page size. | -| page_width | float | r/w | Gets or sets the page width. | +| page_height | float | r/w | Gets or sets the page height.
If the value is 0, the source image aspect ratio will be preserved. | +| page_size | [SizeF](/imaging/python-net/aspose.imaging/sizef) | r/w | Gets or sets the page size.
If one of [SizeF](/imaging/python-net/aspose.imaging/sizef/) dimensions is 0, the source image aspect ratio will be preserved. | +| page_width | float | r/w | Gets or sets the page width.
If the value is 0, the source image aspect ratio will be preserved. | | palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | r/w | Gets or sets the color palette. | | positioning | [PositioningTypes](/imaging/python-net/aspose.imaging.imageoptions/positioningtypes) | r/w | Gets or sets the positioning. | | resolution_settings | [ResolutionSetting](/imaging/python-net/aspose.imaging/resolutionsetting) | r/w | Gets or sets the resolution settings. | @@ -44,7 +44,7 @@ url: /python-net/aspose.imaging.imageoptions/odrasterizationoptions/ ## **Methods** | **Name** | **Description** | | :- | :- | -| [clone()](#clone__1) | Clones this instance. | +| [clone()](#clone__1) | Creates a memberwise clone of this instance. | | [copy_to(vector_rasterization_options)](#copy_to_vector_rasterization_options_2) | Copies to. | @@ -64,13 +64,13 @@ Initializes a new instance of the OdRasterizationOptions class clone() ``` -Clones this instance. +Creates a memberwise clone of this instance. **Returns** | Type | Description | | :- | :- | -| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Returns shallow copy of this instance | +| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | A memberwise clone of this instance. | ### Method: copy_to(vector_rasterization_options) {#copy_to_vector_rasterization_options_2} diff --git a/english/python-net/aspose.imaging.imageoptions/otgrasterizationoptions/_index.md b/english/python-net/aspose.imaging.imageoptions/otgrasterizationoptions/_index.md index 03baca5111..5ceed68aa9 100644 --- a/english/python-net/aspose.imaging.imageoptions/otgrasterizationoptions/_index.md +++ b/english/python-net/aspose.imaging.imageoptions/otgrasterizationoptions/_index.md @@ -30,9 +30,9 @@ url: /python-net/aspose.imaging.imageoptions/otgrasterizationoptions/ | full_frame | bool | r/w | Gets or sets a value indicating whether [full frame]. | | keep_metadata | bool | r/w | Gets a value whether to keep original image metadata on export. | | multi_page_options | [MultiPageOptions](/imaging/python-net/aspose.imaging.imageoptions/multipageoptions) | r/w | The multipage options | -| page_height | float | r/w | Gets or sets the page height. | -| page_size | [SizeF](/imaging/python-net/aspose.imaging/sizef) | r/w | Gets or sets the page size. | -| page_width | float | r/w | Gets or sets the page width. | +| page_height | float | r/w | Gets or sets the page height.
If the value is 0, the source image aspect ratio will be preserved. | +| page_size | [SizeF](/imaging/python-net/aspose.imaging/sizef) | r/w | Gets or sets the page size.
If one of [SizeF](/imaging/python-net/aspose.imaging/sizef/) dimensions is 0, the source image aspect ratio will be preserved. | +| page_width | float | r/w | Gets or sets the page width.
If the value is 0, the source image aspect ratio will be preserved. | | palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | r/w | Gets or sets the color palette. | | positioning | [PositioningTypes](/imaging/python-net/aspose.imaging.imageoptions/positioningtypes) | r/w | Gets or sets the positioning. | | resolution_settings | [ResolutionSetting](/imaging/python-net/aspose.imaging/resolutionsetting) | r/w | Gets or sets the resolution settings. | @@ -44,7 +44,7 @@ url: /python-net/aspose.imaging.imageoptions/otgrasterizationoptions/ ## **Methods** | **Name** | **Description** | | :- | :- | -| [clone()](#clone__1) | Clones this instance. | +| [clone()](#clone__1) | Creates a memberwise clone of this instance. | | [copy_to(vector_rasterization_options)](#copy_to_vector_rasterization_options_2) | Copies to. | @@ -64,13 +64,13 @@ Initializes a new instance of the OtgRasterizationOptions class clone() ``` -Clones this instance. +Creates a memberwise clone of this instance. **Returns** | Type | Description | | :- | :- | -| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Returns shallow copy of this instance | +| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | A memberwise clone of this instance. | ### Method: copy_to(vector_rasterization_options) {#copy_to_vector_rasterization_options_2} diff --git a/english/python-net/aspose.imaging.imageoptions/pdfoptions/_index.md b/english/python-net/aspose.imaging.imageoptions/pdfoptions/_index.md index 1cc8c102bb..8319da5cf1 100644 --- a/english/python-net/aspose.imaging.imageoptions/pdfoptions/_index.md +++ b/english/python-net/aspose.imaging.imageoptions/pdfoptions/_index.md @@ -37,7 +37,7 @@ url: /python-net/aspose.imaging.imageoptions/pdfoptions/ ## **Methods** | **Name** | **Description** | | :- | :- | -| [clone()](#clone__1) | Clones this instance. | +| [clone()](#clone__1) | Creates a memberwise clone of this instance. | ### Constructor: PdfOptions() {#PdfOptions__1} @@ -56,12 +56,12 @@ Initializes a new instance of the [PdfOptions](/imaging/python-net/aspose.imagin clone() ``` -Clones this instance. +Creates a memberwise clone of this instance. **Returns** | Type | Description | | :- | :- | -| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Returns shallow copy of this instance | +| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | A memberwise clone of this instance. | diff --git a/english/python-net/aspose.imaging.imageoptions/pngoptions/_index.md b/english/python-net/aspose.imaging.imageoptions/pngoptions/_index.md index 50ea0483c2..396295dfb4 100644 --- a/english/python-net/aspose.imaging.imageoptions/pngoptions/_index.md +++ b/english/python-net/aspose.imaging.imageoptions/pngoptions/_index.md @@ -40,7 +40,7 @@ url: /python-net/aspose.imaging.imageoptions/pngoptions/ ## **Methods** | **Name** | **Description** | | :- | :- | -| [clone()](#clone__1) | Clones this instance. | +| [clone()](#clone__1) | Creates a memberwise clone of this instance. | ### Constructor: PngOptions() {#PngOptions__1} @@ -101,13 +101,13 @@ Gets or sets a value indicating whether a [PngImage](/imaging/python-net/aspose. clone() ``` -Clones this instance. +Creates a memberwise clone of this instance. **Returns** | Type | Description | | :- | :- | -| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Returns shallow copy of this instance | +| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | A memberwise clone of this instance. | ## **Examples** diff --git a/english/python-net/aspose.imaging.imageoptions/psdoptions/_index.md b/english/python-net/aspose.imaging.imageoptions/psdoptions/_index.md index 09cc61451b..79cf98a693 100644 --- a/english/python-net/aspose.imaging.imageoptions/psdoptions/_index.md +++ b/english/python-net/aspose.imaging.imageoptions/psdoptions/_index.md @@ -43,7 +43,7 @@ url: /python-net/aspose.imaging.imageoptions/psdoptions/ ## **Methods** | **Name** | **Description** | | :- | :- | -| [clone()](#clone__1) | Clones this instance. | +| [clone()](#clone__1) | Creates a memberwise clone of this instance. | ### Constructor: PsdOptions() {#PsdOptions__1} @@ -95,13 +95,13 @@ Gets or sets the psd compression method. clone() ``` -Clones this instance. +Creates a memberwise clone of this instance. **Returns** | Type | Description | | :- | :- | -| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Returns shallow copy of this instance | +| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | A memberwise clone of this instance. | ## **Examples** diff --git a/english/python-net/aspose.imaging.imageoptions/svgoptions/_index.md b/english/python-net/aspose.imaging.imageoptions/svgoptions/_index.md index d1c54ffc27..d2991e0d75 100644 --- a/english/python-net/aspose.imaging.imageoptions/svgoptions/_index.md +++ b/english/python-net/aspose.imaging.imageoptions/svgoptions/_index.md @@ -37,7 +37,7 @@ url: /python-net/aspose.imaging.imageoptions/svgoptions/ ## **Methods** | **Name** | **Description** | | :- | :- | -| [clone()](#clone__1) | Clones this instance. | +| [clone()](#clone__1) | Creates a memberwise clone of this instance. | ### Constructor: SvgOptions() {#SvgOptions__1} @@ -65,13 +65,13 @@ Gets or sets a value indicating whether text must be rendered as shapes. clone() ``` -Clones this instance. +Creates a memberwise clone of this instance. **Returns** | Type | Description | | :- | :- | -| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Returns shallow copy of this instance | +| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | A memberwise clone of this instance. | ## **Examples** diff --git a/english/python-net/aspose.imaging.imageoptions/svgrasterizationoptions/_index.md b/english/python-net/aspose.imaging.imageoptions/svgrasterizationoptions/_index.md index ca36258d69..26109f7e93 100644 --- a/english/python-net/aspose.imaging.imageoptions/svgrasterizationoptions/_index.md +++ b/english/python-net/aspose.imaging.imageoptions/svgrasterizationoptions/_index.md @@ -30,9 +30,9 @@ url: /python-net/aspose.imaging.imageoptions/svgrasterizationoptions/ | full_frame | bool | r/w | Gets or sets a value indicating whether [full frame]. | | keep_metadata | bool | r/w | Gets a value whether to keep original image metadata on export. | | multi_page_options | [MultiPageOptions](/imaging/python-net/aspose.imaging.imageoptions/multipageoptions) | r/w | The multipage options | -| page_height | float | r/w | Gets or sets the page height. | -| page_size | [SizeF](/imaging/python-net/aspose.imaging/sizef) | r/w | Gets or sets the page size. | -| page_width | float | r/w | Gets or sets the page width. | +| page_height | float | r/w | Gets or sets the page height.
If the value is 0, the source image aspect ratio will be preserved. | +| page_size | [SizeF](/imaging/python-net/aspose.imaging/sizef) | r/w | Gets or sets the page size.
If one of [SizeF](/imaging/python-net/aspose.imaging/sizef/) dimensions is 0, the source image aspect ratio will be preserved. | +| page_width | float | r/w | Gets or sets the page width.
If the value is 0, the source image aspect ratio will be preserved. | | palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | r/w | Gets or sets the color palette. | | positioning | [PositioningTypes](/imaging/python-net/aspose.imaging.imageoptions/positioningtypes) | r/w | Gets or sets the positioning. | | resolution_settings | [ResolutionSetting](/imaging/python-net/aspose.imaging/resolutionsetting) | r/w | Gets or sets the resolution settings. | @@ -46,7 +46,7 @@ url: /python-net/aspose.imaging.imageoptions/svgrasterizationoptions/ ## **Methods** | **Name** | **Description** | | :- | :- | -| [clone()](#clone__1) | Clones this instance. | +| [clone()](#clone__1) | Creates a memberwise clone of this instance. | | [copy_to(vector_rasterization_options)](#copy_to_vector_rasterization_options_2) | Copies to. | @@ -66,13 +66,13 @@ Initializes a new instance of the [SvgRasterizationOptions](/imaging/python-net/ clone() ``` -Clones this instance. +Creates a memberwise clone of this instance. **Returns** | Type | Description | | :- | :- | -| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Returns shallow copy of this instance | +| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | A memberwise clone of this instance. | ### Method: copy_to(vector_rasterization_options) {#copy_to_vector_rasterization_options_2} diff --git a/english/python-net/aspose.imaging.imageoptions/tgaoptions/_index.md b/english/python-net/aspose.imaging.imageoptions/tgaoptions/_index.md index e9ab7532ef..56e0dd3f62 100644 --- a/english/python-net/aspose.imaging.imageoptions/tgaoptions/_index.md +++ b/english/python-net/aspose.imaging.imageoptions/tgaoptions/_index.md @@ -34,7 +34,7 @@ url: /python-net/aspose.imaging.imageoptions/tgaoptions/ ## **Methods** | **Name** | **Description** | | :- | :- | -| [clone()](#clone__1) | Clones this instance. | +| [clone()](#clone__1) | Creates a memberwise clone of this instance. | ### Constructor: TgaOptions() {#TgaOptions__1} @@ -74,13 +74,13 @@ Initializes a new instance of the [TgaOptions](/imaging/python-net/aspose.imagin clone() ``` -Clones this instance. +Creates a memberwise clone of this instance. **Returns** | Type | Description | | :- | :- | -| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Returns shallow copy of this instance | +| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | A memberwise clone of this instance. | ## **Examples** diff --git a/english/python-net/aspose.imaging.imageoptions/vectorrasterizationoptions/_index.md b/english/python-net/aspose.imaging.imageoptions/vectorrasterizationoptions/_index.md index 7a84de4eb3..02cc55c18a 100644 --- a/english/python-net/aspose.imaging.imageoptions/vectorrasterizationoptions/_index.md +++ b/english/python-net/aspose.imaging.imageoptions/vectorrasterizationoptions/_index.md @@ -5,7 +5,7 @@ weight: 350 url: /python-net/aspose.imaging.imageoptions/vectorrasterizationoptions/ --- -**Summary:** The vector rasterization options. +**Summary:** The vector rasterization options.
Please note that [VectorRasterizationOptions](/imaging/python-net/aspose.imaging.imageoptions/vectorrasterizationoptions/) will no longer derive from [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase/)
since Aspose.Imaging 24.12 version. **Module:** [aspose.imaging.imageoptions](/imaging/python-net/aspose.imaging.imageoptions/) @@ -30,9 +30,9 @@ url: /python-net/aspose.imaging.imageoptions/vectorrasterizationoptions/ | full_frame | bool | r/w | Gets or sets a value indicating whether [full frame]. | | keep_metadata | bool | r/w | Gets a value whether to keep original image metadata on export. | | multi_page_options | [MultiPageOptions](/imaging/python-net/aspose.imaging.imageoptions/multipageoptions) | r/w | The multipage options | -| page_height | float | r/w | Gets or sets the page height. | -| [page_size](#page_size2) | [SizeF](/imaging/python-net/aspose.imaging/sizef) | r/w | Gets or sets the page size. | -| page_width | float | r/w | Gets or sets the page width. | +| page_height | float | r/w | Gets or sets the page height.
If the value is 0, the source image aspect ratio will be preserved. | +| [page_size](#page_size2) | [SizeF](/imaging/python-net/aspose.imaging/sizef) | r/w | Gets or sets the page size.
If one of [SizeF](/imaging/python-net/aspose.imaging/sizef/) dimensions is 0, the source image aspect ratio will be preserved. | +| page_width | float | r/w | Gets or sets the page width.
If the value is 0, the source image aspect ratio will be preserved. | | palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | r/w | Gets or sets the color palette. | | [positioning](#positioning3) | [PositioningTypes](/imaging/python-net/aspose.imaging.imageoptions/positioningtypes) | r/w | Gets or sets the positioning. | | resolution_settings | [ResolutionSetting](/imaging/python-net/aspose.imaging/resolutionsetting) | r/w | Gets or sets the resolution settings. | @@ -44,7 +44,7 @@ url: /python-net/aspose.imaging.imageoptions/vectorrasterizationoptions/ ## **Methods** | **Name** | **Description** | | :- | :- | -| [clone()](#clone__1) | Clones this instance. | +| [clone()](#clone__1) | Creates a memberwise clone of this instance. | | [copy_to(vector_rasterization_options)](#copy_to_vector_rasterization_options_2) | Copies to. | @@ -68,7 +68,7 @@ Gets or sets a background color. ### Property: page_size {#page_size2} -Gets or sets the page size. +Gets or sets the page size.
If one of [SizeF](/imaging/python-net/aspose.imaging/sizef/) dimensions is 0, the source image aspect ratio will be preserved. **See also:** @@ -91,13 +91,13 @@ Gets or sets the positioning. clone() ``` -Clones this instance. +Creates a memberwise clone of this instance. **Returns** | Type | Description | | :- | :- | -| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Returns shallow copy of this instance | +| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | A memberwise clone of this instance. | ### Method: copy_to(vector_rasterization_options) {#copy_to_vector_rasterization_options_2} diff --git a/english/python-net/aspose.imaging.imageoptions/webpoptions/_index.md b/english/python-net/aspose.imaging.imageoptions/webpoptions/_index.md index f9d7a856bd..8971b2e2dd 100644 --- a/english/python-net/aspose.imaging.imageoptions/webpoptions/_index.md +++ b/english/python-net/aspose.imaging.imageoptions/webpoptions/_index.md @@ -37,7 +37,7 @@ url: /python-net/aspose.imaging.imageoptions/webpoptions/ ## **Methods** | **Name** | **Description** | | :- | :- | -| [clone()](#clone__1) | Clones this instance. | +| [clone()](#clone__1) | Creates a memberwise clone of this instance. | ### Constructor: WebPOptions() {#WebPOptions__1} @@ -56,12 +56,12 @@ Initializes a new instance of the [WebPOptions](/imaging/python-net/aspose.imagi clone() ``` -Clones this instance. +Creates a memberwise clone of this instance. **Returns** | Type | Description | | :- | :- | -| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Returns shallow copy of this instance | +| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | A memberwise clone of this instance. | diff --git a/english/python-net/aspose.imaging.imageoptions/wmfoptions/_index.md b/english/python-net/aspose.imaging.imageoptions/wmfoptions/_index.md index bbd3c48809..d0a2fb5190 100644 --- a/english/python-net/aspose.imaging.imageoptions/wmfoptions/_index.md +++ b/english/python-net/aspose.imaging.imageoptions/wmfoptions/_index.md @@ -34,7 +34,7 @@ url: /python-net/aspose.imaging.imageoptions/wmfoptions/ ## **Methods** | **Name** | **Description** | | :- | :- | -| [clone()](#clone__1) | Clones this instance. | +| [clone()](#clone__1) | Creates a memberwise clone of this instance. | ### Constructor: WmfOptions() {#WmfOptions__1} @@ -53,12 +53,12 @@ Initializes a new instance of the WmfOptions class clone() ``` -Clones this instance. +Creates a memberwise clone of this instance. **Returns** | Type | Description | | :- | :- | -| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Returns shallow copy of this instance | +| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | A memberwise clone of this instance. | diff --git a/english/python-net/aspose.imaging.imageoptions/wmfrasterizationoptions/_index.md b/english/python-net/aspose.imaging.imageoptions/wmfrasterizationoptions/_index.md index 46bb17f3db..55e01152ce 100644 --- a/english/python-net/aspose.imaging.imageoptions/wmfrasterizationoptions/_index.md +++ b/english/python-net/aspose.imaging.imageoptions/wmfrasterizationoptions/_index.md @@ -30,9 +30,9 @@ url: /python-net/aspose.imaging.imageoptions/wmfrasterizationoptions/ | full_frame | bool | r/w | Gets or sets a value indicating whether [full frame]. | | keep_metadata | bool | r/w | Gets a value whether to keep original image metadata on export. | | multi_page_options | [MultiPageOptions](/imaging/python-net/aspose.imaging.imageoptions/multipageoptions) | r/w | The multipage options | -| page_height | float | r/w | Gets or sets the page height. | -| page_size | [SizeF](/imaging/python-net/aspose.imaging/sizef) | r/w | Gets or sets the page size. | -| page_width | float | r/w | Gets or sets the page width. | +| page_height | float | r/w | Gets or sets the page height.
If the value is 0, the source image aspect ratio will be preserved. | +| page_size | [SizeF](/imaging/python-net/aspose.imaging/sizef) | r/w | Gets or sets the page size.
If one of [SizeF](/imaging/python-net/aspose.imaging/sizef/) dimensions is 0, the source image aspect ratio will be preserved. | +| page_width | float | r/w | Gets or sets the page width.
If the value is 0, the source image aspect ratio will be preserved. | | palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | r/w | Gets or sets the color palette. | | positioning | [PositioningTypes](/imaging/python-net/aspose.imaging.imageoptions/positioningtypes) | r/w | Gets or sets the positioning. | | [render_mode](#render_mode1) | [WmfRenderMode](/imaging/python-net/aspose.imaging.fileformats.wmf/wmfrendermode/) | r/w | Gets or sets the WMF render mode. | @@ -45,7 +45,7 @@ url: /python-net/aspose.imaging.imageoptions/wmfrasterizationoptions/ ## **Methods** | **Name** | **Description** | | :- | :- | -| [clone()](#clone__1) | Clones this instance. | +| [clone()](#clone__1) | Creates a memberwise clone of this instance. | | [copy_to(vector_rasterization_options)](#copy_to_vector_rasterization_options_2) | Copies to. | @@ -74,13 +74,13 @@ Gets or sets the WMF render mode. clone() ``` -Clones this instance. +Creates a memberwise clone of this instance. **Returns** | Type | Description | | :- | :- | -| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Returns shallow copy of this instance | +| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | A memberwise clone of this instance. | ### Method: copy_to(vector_rasterization_options) {#copy_to_vector_rasterization_options_2} diff --git a/english/python-net/aspose.imaging/image/_index.md b/english/python-net/aspose.imaging/image/_index.md index 50cebdf043..3e1818c77e 100644 --- a/english/python-net/aspose.imaging/image/_index.md +++ b/english/python-net/aspose.imaging/image/_index.md @@ -45,58 +45,65 @@ url: /python-net/aspose.imaging/image/ | [can_load_stream_with_options(stream, load_options)](#can_load_stream_with_options_stream_load_options_6) | Determines whether image can be loaded from the specified stream and optionally using the specified _loadOptions_. | | [can_load_with_options(file_path, load_options)](#can_load_with_options_file_path_load_options_7) | Determines whether image can be loaded from the specified file path and optionally using the specified open options. | | [can_save(options)](#can_save_options_8) | Determines whether image can be saved to the specified file format represented by the passed save options. | -| [create(files)](#create_files_9) | Creates the specified files. | -| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_10) | Creates the specified files. | +| [create(files)](#create_files_9) | Creates the multipage image containing the specified files. | +| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_10) | Creates the multipage image containing the specified files. | | [create(image_options, width, height)](#create_image_options_width_height_11) | Creates a new image using the specified create options. | | [create(images)](#create_images_12) | Creates a new image using the specified images as pages | | [create(images, dispose_images)](#create_images_dispose_images_13) | Creates a new image the specified images as pages. | | [create(multipage_create_options)](#create_multipage_create_options_14) | Creates the specified multipage create options. | -| [get_default_options(args)](#get_default_options_args_15) | Gets the default options. | -| [get_file_format(file_path)](#get_file_format_file_path_16) | Gets the file format. | -| [get_file_format(stream)](#get_file_format_stream_17) | Gets the file format. | -| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_18) | Gets the file format. | -| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_19) | Gets rectangle which fits the current image. | -| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_20) | Gets rectangle which fits the current image. | -| [get_original_options()](#get_original_options__21) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | -| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_22) | Gets a proportional height. | -| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_23) | Gets a proportional width. | -| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_24) | Converts to aps. | -| [load(file_path)](#load_file_path_25) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(file_path, load_options)](#load_file_path_load_options_26) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(stream)](#load_stream_27) | Loads a new image from the specified stream. | -| [load(stream, load_options)](#load_stream_load_options_28) | Loads a new image from the specified stream. | -| [load_stream(stream)](#load_stream_stream_29) | Loads a new image from the specified stream. | -| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_30) | Loads a new image from the specified stream. | -| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_31) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [create_from_files(files)](#create_from_files_files_15) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_files(files, throw_exception_on_load_error)](#create_from_files_files_throw_exception_on_load_error_16) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_images(images)](#create_from_images_images_17) | Creates a new image using the specified images as pages | +| [create_from_images(images, dispose_images)](#create_from_images_images_dispose_images_18) | Creates a new image the specified images as pages. | +| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_19) | Crop image with shifts. | +| [crop(rectangle)](#crop_rectangle_20) | Crops the specified rectangle. | +| [get_default_options(args)](#get_default_options_args_21) | Gets the default options. | +| [get_file_format(file_path)](#get_file_format_file_path_22) | Gets the file format. | +| [get_file_format(stream)](#get_file_format_stream_23) | Gets the file format. | +| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_24) | Gets the file format. | +| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_25) | Gets rectangle which fits the current image. | +| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_26) | Gets rectangle which fits the current image. | +| [get_original_options()](#get_original_options__27) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | +| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_28) | Gets a proportional height. | +| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_29) | Gets a proportional width. | +| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_30) | Converts to aps. | +| [load(file_path)](#load_file_path_31) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path, load_options)](#load_file_path_load_options_32) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(stream)](#load_stream_33) | Loads a new image from the specified stream. | +| [load(stream, load_options)](#load_stream_load_options_34) | Loads a new image from the specified stream. | +| [load_stream(stream)](#load_stream_stream_35) | Loads a new image from the specified stream. | +| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_36) | Loads a new image from the specified stream. | +| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_37) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | | remove_metadata() | Removes metadata. | -| [resize(new_width, new_height)](#resize_new_width_new_height_32) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_33) | Resizes the image. | -| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_34) | Resizes the image. | -| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_35) | Resizes the image. | -| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_36) | Resizes the image. | -| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_37) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_38) | Resizes the height proportionally. | -| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_39) | Resizes the height proportionally. | -| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_40) | Resizes the height proportionally. | -| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_41) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_42) | Resizes the width proportionally. | -| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_43) | Resizes the width proportionally. | -| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_44) | Resizes the width proportionally. | -| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_45) | Rotates, flips, or rotates and flips the image. | +| [resize(new_width, new_height)](#resize_new_width_new_height_38) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_39) | Resizes the image. | +| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_40) | Resizes the image. | +| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_41) | Resizes the image. | +| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_42) | Resizes the image. | +| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_43) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_44) | Resizes the height proportionally. | +| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_45) | Resizes the height proportionally. | +| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_46) | Resizes the height proportionally. | +| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_47) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_48) | Resizes the width proportionally. | +| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_49) | Resizes the width proportionally. | +| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_50) | Resizes the width proportionally. | +| [rotate(angle)](#rotate_angle_51) | Rotate image around the center. | +| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_52) | Rotates, flips, or rotates and flips the image. | | save() | Saves the image data to the underlying stream. | -| [save(file_path)](#save_file_path_46) | Saves the image to the specified file location. | -| [save(file_path, options)](#save_file_path_options_47) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_48) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, over_write)](#save_file_path_over_write_49) | Saves the object's data to the specified file location. | -| [save(stream)](#save_stream_50) | Saves the object's data to the specified stream. | -| [save(stream, options_base)](#save_stream_options_base_51) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_52) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream(stream)](#save_to_stream_stream_53) | Saves the object's data to the specified stream. | -| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_54) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_55) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_with_options(file_path, options)](#save_with_options_file_path_options_56) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_57) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_58) | Sets the image palette. | +| [save(file_path)](#save_file_path_53) | Saves the image to the specified file location. | +| [save(file_path, options)](#save_file_path_options_54) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_55) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, over_write)](#save_file_path_over_write_56) | Saves the object's data to the specified file location. | +| [save(stream)](#save_stream_57) | Saves the object's data to the specified stream. | +| [save(stream, options_base)](#save_stream_options_base_58) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_59) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream(stream)](#save_to_stream_stream_60) | Saves the object's data to the specified stream. | +| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_61) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_62) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_with_options(file_path, options)](#save_with_options_file_path_options_63) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_64) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_65) | Sets the image palette. | ### Property: use_palette {#use_palette1} @@ -313,7 +320,7 @@ Determines whether image can be saved to the specified file format represented b create(files) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -335,7 +342,7 @@ Creates the specified files. create(files, throw_exception_on_load_error) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -448,7 +455,130 @@ Creates the specified multipage create options. | [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | -### Method: get_default_options(args) {#get_default_options_args_15} +### Method: create_from_files(files) [static] {#create_from_files_files_15} + + +``` + create_from_files(files) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_files(files, throw_exception_on_load_error) [static] {#create_from_files_files_throw_exception_on_load_error_16} + + +``` + create_from_files(files, throw_exception_on_load_error) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | +| throw_exception_on_load_error | bool | if set to true throw exception on load error. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_images(images) [static] {#create_from_images_images_17} + + +``` + create_from_images(images) +``` + +Creates a new image using the specified images as pages + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_images(images, dispose_images) [static] {#create_from_images_images_dispose_images_18} + + +``` + create_from_images(images, dispose_images) +``` + +Creates a new image the specified images as pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | +| dispose_images | bool | if set to true [dispose images]. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_19} + + +``` + crop(left_shift, right_shift, top_shift, bottom_shift) +``` + +Crop image with shifts. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| left_shift | int | The left shift. | +| right_shift | int | The right shift. | +| top_shift | int | The top shift. | +| bottom_shift | int | The bottom shift. | + +### Method: crop(rectangle) {#crop_rectangle_20} + + +``` + crop(rectangle) +``` + +Crops the specified rectangle. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | + +### Method: get_default_options(args) {#get_default_options_args_21} ``` @@ -470,7 +600,7 @@ Gets the default options. | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Default options | -### Method: get_file_format(file_path) [static] {#get_file_format_file_path_16} +### Method: get_file_format(file_path) [static] {#get_file_format_file_path_22} ``` @@ -498,7 +628,7 @@ Gets the file format. **[Example # 1](#example_24)**: This example shows how to determine the image format without loading the enti... -### Method: get_file_format(stream) [static] {#get_file_format_stream_17} +### Method: get_file_format(stream) [static] {#get_file_format_stream_23} ``` @@ -526,7 +656,7 @@ Gets the file format. **[Example # 1](#example_25)**: This example shows how to determine the image format without loading the enti... -### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_18} +### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_24} ``` @@ -548,7 +678,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_19} +### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_25} ``` @@ -573,7 +703,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_20} +### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_26} ``` @@ -597,7 +727,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_original_options() {#get_original_options__21} +### Method: get_original_options() {#get_original_options__27} ``` @@ -613,7 +743,7 @@ Gets the options based on the original file settings.
This can b | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options based on the original file settings. | -### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_22} +### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_28} ``` @@ -637,7 +767,7 @@ Gets a proportional height. | int | The proportional height. | -### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_23} +### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_29} ``` @@ -661,7 +791,7 @@ Gets a proportional width. | int | The proportional width. | -### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_24} +### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_30} ``` @@ -685,7 +815,7 @@ Converts to aps. | _io.BufferedRandom | The serialized stream | -### Method: load(file_path) [static] {#load_file_path_25} +### Method: load(file_path) [static] {#load_file_path_31} ``` @@ -713,7 +843,7 @@ Loads a new image from the specified file path or URL.
If _fileP **[Example # 1](#example_1)**: This example demonstrates the loading of an existing Image file into an insta... -### Method: load(file_path, load_options) [static] {#load_file_path_load_options_26} +### Method: load(file_path, load_options) [static] {#load_file_path_load_options_32} ``` @@ -736,7 +866,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream) [static] {#load_stream_27} +### Method: load(stream) [static] {#load_stream_33} ``` @@ -764,7 +894,7 @@ Loads a new image from the specified stream. **[Example # 1](#example_6)**: This example demonstrates the use of a file stream objects to load an existin... -### Method: load(stream, load_options) [static] {#load_stream_load_options_28} +### Method: load(stream, load_options) [static] {#load_stream_load_options_34} ``` @@ -787,7 +917,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream(stream) [static] {#load_stream_stream_29} +### Method: load_stream(stream) [static] {#load_stream_stream_35} ``` @@ -809,7 +939,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_30} +### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_36} ``` @@ -832,7 +962,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_31} +### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_37} ``` @@ -855,7 +985,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: resize(new_width, new_height) {#resize_new_width_new_height_32} +### Method: resize(new_width, new_height) {#resize_new_width_new_height_38} ``` @@ -877,7 +1007,7 @@ Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/ **[Example # 1](#example_142)**: The following example shows how to resize a metafile (WMF and EMF). -### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_33} +### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_39} ``` @@ -894,7 +1024,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_34} +### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_40} ``` @@ -917,7 +1047,7 @@ Resizes the image. **[Example # 1](#example_28)**: This example loads an image and resizes it using various resizing settings. -### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_35} +### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_41} ``` @@ -934,7 +1064,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_36} +### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_42} ``` @@ -951,7 +1081,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_37} +### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_43} ``` @@ -966,7 +1096,7 @@ Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RES | :- | :- | :- | | new_height | int | The new height. | -### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_38} +### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_44} ``` @@ -988,7 +1118,7 @@ Resizes the height proportionally. **[Example # 1](#example_30)**: This example loads an image and resizes it proportionally using various resiz... -### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_39} +### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_45} ``` @@ -1004,7 +1134,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_40} +### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_46} ``` @@ -1020,7 +1150,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_41} +### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_47} ``` @@ -1035,7 +1165,7 @@ Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESA | :- | :- | :- | | new_width | int | The new width. | -### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_42} +### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_48} ``` @@ -1057,7 +1187,7 @@ Resizes the width proportionally. **[Example # 1](#example_29)**: This example loads an image and resizes it proportionally using various resiz... -### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_43} +### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_49} ``` @@ -1073,7 +1203,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_44} +### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_50} ``` @@ -1089,7 +1219,22 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_45} +### Method: rotate(angle) {#rotate_angle_51} + + +``` + rotate(angle) +``` + +Rotate image around the center. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | + +### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_52} ``` @@ -1112,7 +1257,7 @@ Rotates, flips, or rotates and flips the image. **[Example # 2](#example_31)**: This example loads an image, rotates it by 90 degrees clockwise and optionall... -### Method: save(file_path) {#save_file_path_46} +### Method: save(file_path) {#save_file_path_53} ``` @@ -1127,7 +1272,7 @@ Saves the image to the specified file location. | :- | :- | :- | | file_path | string | The file path to save the image to. | -### Method: save(file_path, options) {#save_file_path_options_47} +### Method: save(file_path, options) {#save_file_path_options_54} ``` @@ -1153,7 +1298,7 @@ Saves the object's data to the specified file location in the specified file for **[Example # 3](#example_90)**: The following example shows how to save an entire BMP image or part of it to ... -### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_48} +### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_55} ``` @@ -1178,7 +1323,7 @@ Saves the object's data to the specified file location in the specified file for **[Example # 2](#example_90)**: The following example shows how to save an entire BMP image or part of it to ... -### Method: save(file_path, over_write) {#save_file_path_over_write_49} +### Method: save(file_path, over_write) {#save_file_path_over_write_56} ``` @@ -1194,7 +1339,7 @@ Saves the object's data to the specified file location. | file_path | string | The file path to save the object's data to. | | over_write | bool | if set to true over write the file contents, otherwise append will occur. | -### Method: save(stream) {#save_stream_50} +### Method: save(stream) {#save_stream_57} ``` @@ -1209,7 +1354,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save(stream, options_base) {#save_stream_options_base_51} +### Method: save(stream, options_base) {#save_stream_options_base_58} ``` @@ -1235,7 +1380,7 @@ Saves the image's data to the specified stream in the specified file format acco **[Example # 3](#example_90)**: The following example shows how to save an entire BMP image or part of it to ... -### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_52} +### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_59} ``` @@ -1260,7 +1405,7 @@ Saves the image's data to the specified stream in the specified file format acco **[Example # 2](#example_90)**: The following example shows how to save an entire BMP image or part of it to ... -### Method: save_to_stream(stream) {#save_to_stream_stream_53} +### Method: save_to_stream(stream) {#save_to_stream_stream_60} ``` @@ -1275,7 +1420,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_54} +### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_61} ``` @@ -1291,7 +1436,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_55} +### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_62} ``` @@ -1308,7 +1453,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_56} +### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_63} ``` @@ -1324,7 +1469,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_57} +### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_64} ``` @@ -1341,7 +1486,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_58} +### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_65} ``` diff --git a/english/python-net/aspose.imaging/imageoptionsbase/_index.md b/english/python-net/aspose.imaging/imageoptionsbase/_index.md index 8c673dd5b5..2010028ce5 100644 --- a/english/python-net/aspose.imaging/imageoptionsbase/_index.md +++ b/english/python-net/aspose.imaging/imageoptionsbase/_index.md @@ -29,7 +29,7 @@ url: /python-net/aspose.imaging/imageoptionsbase/ ## **Methods** | **Name** | **Description** | | :- | :- | -| [clone()](#clone__1) | Clones this instance. | +| [clone()](#clone__1) | Creates a memberwise clone of this instance. | ### Property: palette {#palette1} @@ -63,13 +63,13 @@ Gets or sets the resolution settings. clone() ``` -Clones this instance. +Creates a memberwise clone of this instance. **Returns** | Type | Description | | :- | :- | -| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Returns shallow copy of this instance | +| [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | A memberwise clone of this instance. | ## **Examples** diff --git a/english/python-net/aspose.imaging/rastercachedimage/_index.md b/english/python-net/aspose.imaging/rastercachedimage/_index.md index be177c1354..f03f461324 100644 --- a/english/python-net/aspose.imaging/rastercachedimage/_index.md +++ b/english/python-net/aspose.imaging/rastercachedimage/_index.md @@ -72,103 +72,107 @@ url: /python-net/aspose.imaging/rastercachedimage/ | [can_load_stream_with_options(stream, load_options)](#can_load_stream_with_options_stream_load_options_15) | Determines whether image can be loaded from the specified stream and optionally using the specified _loadOptions_. | | [can_load_with_options(file_path, load_options)](#can_load_with_options_file_path_load_options_16) | Determines whether image can be loaded from the specified file path and optionally using the specified open options. | | [can_save(options)](#can_save_options_17) | Determines whether image can be saved to the specified file format represented by the passed save options. | -| [create(files)](#create_files_18) | Creates the specified files. | -| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_19) | Creates the specified files. | +| [create(files)](#create_files_18) | Creates the multipage image containing the specified files. | +| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_19) | Creates the multipage image containing the specified files. | | [create(image_options, width, height)](#create_image_options_width_height_20) | Creates a new image using the specified create options. | | [create(images)](#create_images_21) | Creates a new image using the specified images as pages | | [create(images, dispose_images)](#create_images_dispose_images_22) | Creates a new image the specified images as pages. | | [create(multipage_create_options)](#create_multipage_create_options_23) | Creates the specified multipage create options. | -| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_24) | Crop image with shifts. | -| [crop(rectangle)](#crop_rectangle_25) | Cropping the image. | -| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_26) | Performs dithering on the current image. | -| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_27) | Performs dithering on the current image. | -| [filter(rectangle, options)](#filter_rectangle_options_28) | Filters the specified rectangle. | -| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_29) | Gets an image 32-bit ARGB pixel. | -| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_30) | Gets the default 32-bit ARGB pixels array. | -| [get_default_options(args)](#get_default_options_args_31) | Gets the default options. | -| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_32) | Gets the default pixels array using partial pixel loader. | -| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_33) | Gets the default raw data array using partial pixel loader. | -| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_34) | Gets the default raw data array. | -| [get_file_format(file_path)](#get_file_format_file_path_35) | Gets the file format. | -| [get_file_format(stream)](#get_file_format_stream_36) | Gets the file format. | -| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_37) | Gets the file format. | -| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_38) | Gets rectangle which fits the current image. | -| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_39) | Gets rectangle which fits the current image. | -| [get_modify_date(use_default)](#get_modify_date_use_default_40) | Gets the date and time the resource image was last modified. | -| [get_original_options()](#get_original_options__41) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | -| [get_pixel(x, y)](#get_pixel_x_y_42) | Gets an image pixel. | -| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_43) | Gets a proportional height. | -| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_44) | Gets a proportional width. | -| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_45) | Converts to aps. | -| [get_skew_angle()](#get_skew_angle__46) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | +| [create_from_files(files)](#create_from_files_files_24) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_files(files, throw_exception_on_load_error)](#create_from_files_files_throw_exception_on_load_error_25) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_images(images)](#create_from_images_images_26) | Creates a new image using the specified images as pages | +| [create_from_images(images, dispose_images)](#create_from_images_images_dispose_images_27) | Creates a new image the specified images as pages. | +| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_28) | Crop image with shifts. | +| [crop(rectangle)](#crop_rectangle_29) | Cropping the image. | +| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_30) | Performs dithering on the current image. | +| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_31) | Performs dithering on the current image. | +| [filter(rectangle, options)](#filter_rectangle_options_32) | Filters the specified rectangle. | +| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_33) | Gets an image 32-bit ARGB pixel. | +| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_34) | Gets the default 32-bit ARGB pixels array. | +| [get_default_options(args)](#get_default_options_args_35) | Gets the default options. | +| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_36) | Gets the default pixels array using partial pixel loader. | +| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_37) | Gets the default raw data array using partial pixel loader. | +| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_38) | Gets the default raw data array. | +| [get_file_format(file_path)](#get_file_format_file_path_39) | Gets the file format. | +| [get_file_format(stream)](#get_file_format_stream_40) | Gets the file format. | +| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_41) | Gets the file format. | +| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_42) | Gets rectangle which fits the current image. | +| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_43) | Gets rectangle which fits the current image. | +| [get_modify_date(use_default)](#get_modify_date_use_default_44) | Gets the date and time the resource image was last modified. | +| [get_original_options()](#get_original_options__45) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | +| [get_pixel(x, y)](#get_pixel_x_y_46) | Gets an image pixel. | +| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_47) | Gets a proportional height. | +| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_48) | Gets a proportional width. | +| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_49) | Converts to aps. | +| [get_skew_angle()](#get_skew_angle__50) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | | grayscale() | Transformation of an image to its grayscale representation | -| [load(file_path)](#load_file_path_47) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(file_path, load_options)](#load_file_path_load_options_48) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(stream)](#load_stream_49) | Loads a new image from the specified stream. | -| [load(stream, load_options)](#load_stream_load_options_50) | Loads a new image from the specified stream. | -| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_51) | Loads 32-bit ARGB pixels. | -| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_52) | Loads 64-bit ARGB pixels. | -| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_53) | Loads pixels in CMYK format. | -| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_54) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_55) | Loads 32-bit ARGB pixels partially by packs. | -| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_56) | Loads 64-bit ARGB pixels partially by packs. | -| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_57) | Loads pixels partially by packs. | -| [load_pixels(rectangle)](#load_pixels_rectangle_58) | Loads pixels. | -| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_59) | Loads raw data. | -| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_60) | Loads raw data. | -| [load_stream(stream)](#load_stream_stream_61) | Loads a new image from the specified stream. | -| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_62) | Loads a new image from the specified stream. | -| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_63) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path)](#load_file_path_51) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path, load_options)](#load_file_path_load_options_52) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(stream)](#load_stream_53) | Loads a new image from the specified stream. | +| [load(stream, load_options)](#load_stream_load_options_54) | Loads a new image from the specified stream. | +| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_55) | Loads 32-bit ARGB pixels. | +| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_56) | Loads 64-bit ARGB pixels. | +| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_57) | Loads pixels in CMYK format. | +| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_58) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_59) | Loads 32-bit ARGB pixels partially by packs. | +| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_60) | Loads 64-bit ARGB pixels partially by packs. | +| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_61) | Loads pixels partially by packs. | +| [load_pixels(rectangle)](#load_pixels_rectangle_62) | Loads pixels. | +| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_63) | Loads raw data. | +| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_64) | Loads raw data. | +| [load_stream(stream)](#load_stream_stream_65) | Loads a new image from the specified stream. | +| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_66) | Loads a new image from the specified stream. | +| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_67) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | | normalize_angle() | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | -| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_64) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | -| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_65) | Reads the whole scan line by the specified scan line index. | -| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_66) | Reads the whole scan line by the specified scan line index. | +| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_68) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | +| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_69) | Reads the whole scan line by the specified scan line index. | +| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_70) | Reads the whole scan line by the specified scan line index. | | remove_metadata() | Removes this image instance metadata by setting this [IHasXmpData.xmp_data](/imaging/python-net/aspose.imaging.xmp/ihasxmpdata/) value to **None**. | -| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_67) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_68) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_69) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_70) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_71) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [resize(new_width, new_height)](#resize_new_width_new_height_72) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_73) | Resizes the image. | -| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_74) | Resizes the image. | -| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_75) | Resizes the image. | -| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_76) | Resizes the image. | -| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_77) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_78) | Resizes the height proportionally. | -| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_79) | Resizes the height proportionally. | -| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_80) | Resizes the height proportionally. | -| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_81) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_82) | Resizes the width proportionally. | -| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_83) | Resizes the width proportionally. | -| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_84) | Resizes the width proportionally. | -| [rotate(angle)](#rotate_angle_85) | Rotate image around the center. | -| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_86) | Rotate image around the center. | -| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_87) | Rotates, flips, or rotates and flips the image. | +| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_71) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_72) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_73) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_74) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_75) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [resize(new_width, new_height)](#resize_new_width_new_height_76) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_77) | Resizes the image. | +| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_78) | Resizes the image. | +| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_79) | Resizes the image. | +| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_80) | Resizes the image. | +| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_81) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_82) | Resizes the height proportionally. | +| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_83) | Resizes the height proportionally. | +| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_84) | Resizes the height proportionally. | +| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_85) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_86) | Resizes the width proportionally. | +| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_87) | Resizes the width proportionally. | +| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_88) | Resizes the width proportionally. | +| [rotate(angle)](#rotate_angle_89) | Rotate image around the center. | +| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_90) | Rotate image around the center. | +| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_91) | Rotates, flips, or rotates and flips the image. | | save() | Saves the image data to the underlying stream. | -| [save(file_path)](#save_file_path_88) | Saves the image to the specified file location. | -| [save(file_path, options)](#save_file_path_options_89) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_90) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, over_write)](#save_file_path_over_write_91) | Saves the object's data to the specified file location. | -| [save(stream)](#save_stream_92) | Saves the object's data to the specified stream. | -| [save(stream, options_base)](#save_stream_options_base_93) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_94) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_95) | Saves the 32-bit ARGB pixels. | -| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_96) | Saves the pixels. | -| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_97) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_98) | Saves pixels (format specific method). | -| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_99) | Saves the raw data. | -| [save_to_stream(stream)](#save_to_stream_stream_100) | Saves the object's data to the specified stream. | -| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_101) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_102) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_with_options(file_path, options)](#save_with_options_file_path_options_103) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_104) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_105) | Sets an image 32-bit ARGB pixel for the specified position. | -| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_106) | Sets the image palette. | -| [set_pixel(x, y, color)](#set_pixel_x_y_color_107) | Sets an image pixel for the specified position. | -| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_108) | Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_109) | Writes the whole scan line to the specified scan line index. | -| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_110) | Writes the whole scan line to the specified scan line index. | +| [save(file_path)](#save_file_path_92) | Saves the image to the specified file location. | +| [save(file_path, options)](#save_file_path_options_93) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_94) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, over_write)](#save_file_path_over_write_95) | Saves the object's data to the specified file location. | +| [save(stream)](#save_stream_96) | Saves the object's data to the specified stream. | +| [save(stream, options_base)](#save_stream_options_base_97) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_98) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_99) | Saves the 32-bit ARGB pixels. | +| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_100) | Saves the pixels. | +| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_101) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_102) | Saves pixels (format specific method). | +| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_103) | Saves the raw data. | +| [save_to_stream(stream)](#save_to_stream_stream_104) | Saves the object's data to the specified stream. | +| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_105) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_106) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_with_options(file_path, options)](#save_with_options_file_path_options_107) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_108) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_109) | Sets an image 32-bit ARGB pixel for the specified position. | +| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_110) | Sets the image palette. | +| [set_pixel(x, y, color)](#set_pixel_x_y_color_111) | Sets an image pixel for the specified position. | +| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_112) | Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | +| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_113) | Writes the whole scan line to the specified scan line index. | +| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_114) | Writes the whole scan line to the specified scan line index. | ### Method: adjust_brightness(brightness) {#adjust_brightness_brightness_1} @@ -543,7 +547,7 @@ Determines whether image can be saved to the specified file format represented b create(files) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -565,7 +569,7 @@ Creates the specified files. create(files, throw_exception_on_load_error) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -672,7 +676,97 @@ Creates the specified multipage create options. | [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | -### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_24} +### Method: create_from_files(files) [static] {#create_from_files_files_24} + + +``` + create_from_files(files) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_files(files, throw_exception_on_load_error) [static] {#create_from_files_files_throw_exception_on_load_error_25} + + +``` + create_from_files(files, throw_exception_on_load_error) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | +| throw_exception_on_load_error | bool | if set to true throw exception on load error. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_images(images) [static] {#create_from_images_images_26} + + +``` + create_from_images(images) +``` + +Creates a new image using the specified images as pages + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_images(images, dispose_images) [static] {#create_from_images_images_dispose_images_27} + + +``` + create_from_images(images, dispose_images) +``` + +Creates a new image the specified images as pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | +| dispose_images | bool | if set to true [dispose images]. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_28} ``` @@ -690,7 +784,7 @@ Crop image with shifts. | top_shift | int | The top shift. | | bottom_shift | int | The bottom shift. | -### Method: crop(rectangle) {#crop_rectangle_25} +### Method: crop(rectangle) {#crop_rectangle_29} ``` @@ -711,7 +805,7 @@ Cropping the image. **[Example # 1](#example_69)**: The following example crops a raster cached image. The cropping area is be sp... -### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_26} +### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_30} ``` @@ -727,7 +821,7 @@ Performs dithering on the current image. | dithering_method | [DitheringMethod](/imaging/python-net/aspose.imaging/ditheringmethod) | The dithering method. | | bits_count | int | The final bits count for dithering. | -### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_27} +### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_31} ``` @@ -744,7 +838,7 @@ Performs dithering on the current image. | bits_count | int | The final bits count for dithering. | | custom_palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The custom palette for dithering. | -### Method: filter(rectangle, options) {#filter_rectangle_options_28} +### Method: filter(rectangle, options) {#filter_rectangle_options_32} ``` @@ -760,7 +854,7 @@ Filters the specified rectangle. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | | options | [FilterOptionsBase](/imaging/python-net/aspose.imaging.imagefilters.filteroptions/filteroptionsbase/) | The options. | -### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_29} +### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_33} ``` @@ -783,7 +877,7 @@ Gets an image 32-bit ARGB pixel. | int | The 32-bit ARGB pixel for the specified location. | -### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_30} +### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_34} ``` @@ -805,7 +899,7 @@ Gets the default 32-bit ARGB pixels array. | int | The default pixels array. | -### Method: get_default_options(args) {#get_default_options_args_31} +### Method: get_default_options(args) {#get_default_options_args_35} ``` @@ -827,7 +921,7 @@ Gets the default options. | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Default options | -### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_32} +### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_36} ``` @@ -843,7 +937,7 @@ Gets the default pixels array using partial pixel loader. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to get pixels for. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_33} +### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_37} ``` @@ -860,7 +954,7 @@ Gets the default raw data array using partial pixel loader. | partial_raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The partial raw data loader. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings. | -### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_34} +### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_38} ``` @@ -883,7 +977,7 @@ Gets the default raw data array. | byte | The default raw data array. | -### Method: get_file_format(file_path) [static] {#get_file_format_file_path_35} +### Method: get_file_format(file_path) [static] {#get_file_format_file_path_39} ``` @@ -905,7 +999,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format(stream) [static] {#get_file_format_stream_36} +### Method: get_file_format(stream) [static] {#get_file_format_stream_40} ``` @@ -927,7 +1021,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_37} +### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_41} ``` @@ -949,7 +1043,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_38} +### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_42} ``` @@ -974,7 +1068,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_39} +### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_43} ``` @@ -998,7 +1092,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_modify_date(use_default) {#get_modify_date_use_default_40} +### Method: get_modify_date(use_default) {#get_modify_date_use_default_44} ``` @@ -1020,7 +1114,7 @@ Gets the date and time the resource image was last modified. | datetime | The date and time the resource image was last modified. | -### Method: get_original_options() {#get_original_options__41} +### Method: get_original_options() {#get_original_options__45} ``` @@ -1036,7 +1130,7 @@ Gets the options based on the original file settings.
This can b | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options based on the original file settings. | -### Method: get_pixel(x, y) {#get_pixel_x_y_42} +### Method: get_pixel(x, y) {#get_pixel_x_y_46} ``` @@ -1059,7 +1153,7 @@ Gets an image pixel. | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified location. | -### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_43} +### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_47} ``` @@ -1083,7 +1177,7 @@ Gets a proportional height. | int | The proportional height. | -### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_44} +### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_48} ``` @@ -1107,7 +1201,7 @@ Gets a proportional width. | int | The proportional width. | -### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_45} +### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_49} ``` @@ -1131,7 +1225,7 @@ Converts to aps. | _io.BufferedRandom | The serialized stream | -### Method: get_skew_angle() {#get_skew_angle__46} +### Method: get_skew_angle() {#get_skew_angle__50} ``` @@ -1147,7 +1241,7 @@ Gets the skew angle.
This method is applicable to scanned text d | float | The skew angle, in degrees. | -### Method: load(file_path) [static] {#load_file_path_47} +### Method: load(file_path) [static] {#load_file_path_51} ``` @@ -1169,7 +1263,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(file_path, load_options) [static] {#load_file_path_load_options_48} +### Method: load(file_path, load_options) [static] {#load_file_path_load_options_52} ``` @@ -1192,7 +1286,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream) [static] {#load_stream_49} +### Method: load(stream) [static] {#load_stream_53} ``` @@ -1214,7 +1308,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream, load_options) [static] {#load_stream_load_options_50} +### Method: load(stream, load_options) [static] {#load_stream_load_options_54} ``` @@ -1237,7 +1331,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_51} +### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_55} ``` @@ -1259,7 +1353,7 @@ Loads 32-bit ARGB pixels. | int | The loaded 32-bit ARGB pixels array. | -### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_52} +### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_56} ``` @@ -1281,7 +1375,7 @@ Loads 64-bit ARGB pixels. | long | The loaded 64-bit ARGB pixels array. | -### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_53} +### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_57} ``` @@ -1303,7 +1397,7 @@ Loads pixels in CMYK format. | int | The loaded CMYK pixels presentes as 32-bit inateger values. | -### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_54} +### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_58} ``` @@ -1325,7 +1419,7 @@ Loads pixels in CMYK format.
This method is deprecated. Please u | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The loaded CMYK pixels array. | -### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_55} +### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_59} ``` @@ -1341,7 +1435,7 @@ Loads 32-bit ARGB pixels partially by packs. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The 32-bit ARGB pixel loader. | -### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_56} +### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_60} ``` @@ -1357,7 +1451,7 @@ Loads 64-bit ARGB pixels partially by packs. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | partial_pixel_loader | [IPartialArgb64PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb64pixelloader) | The 64-bit ARGB pixel loader. | -### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_57} +### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_61} ``` @@ -1373,7 +1467,7 @@ Loads pixels partially by packs. | desired_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | pixel_loader | [IPartialPixelLoader](/imaging/python-net/aspose.imaging/ipartialpixelloader) | The pixel loader. | -### Method: load_pixels(rectangle) {#load_pixels_rectangle_58} +### Method: load_pixels(rectangle) {#load_pixels_rectangle_62} ``` @@ -1395,7 +1489,7 @@ Loads pixels. | [Color[]](/imaging/python-net/aspose.imaging/color) | The loaded pixels array. | -### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_59} +### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_63} ``` @@ -1413,7 +1507,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_60} +### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_64} ``` @@ -1430,7 +1524,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_stream(stream) [static] {#load_stream_stream_61} +### Method: load_stream(stream) [static] {#load_stream_stream_65} ``` @@ -1452,7 +1546,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_62} +### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_66} ``` @@ -1475,7 +1569,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_63} +### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_67} ``` @@ -1498,7 +1592,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_64} +### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_68} ``` @@ -1514,7 +1608,7 @@ Normalizes the angle.
This method is applicable to scanned text | resize_proportionally | bool | if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_65} +### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_69} ``` @@ -1536,7 +1630,7 @@ Reads the whole scan line by the specified scan line index. | int | The scan line 32-bit ARGB color values array. | -### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_66} +### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_70} ``` @@ -1558,7 +1652,7 @@ Reads the whole scan line by the specified scan line index. | [Color[]](/imaging/python-net/aspose.imaging/color) | The scan line pixel color values array. | -### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_67} +### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_71} ``` @@ -1575,7 +1669,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_68} +### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_72} ``` @@ -1592,7 +1686,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | New color to replace old color with. | -### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_69} +### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_73} ``` @@ -1609,7 +1703,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_70} +### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_74} ``` @@ -1624,7 +1718,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | New color to replace non transparent colors with. | -### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_71} +### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_75} ``` @@ -1639,7 +1733,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color_argb | int | New color ARGB value to replace non transparent colors with. | -### Method: resize(new_width, new_height) {#resize_new_width_new_height_72} +### Method: resize(new_width, new_height) {#resize_new_width_new_height_76} ``` @@ -1655,7 +1749,7 @@ Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/ | new_width | int | The new width. | | new_height | int | The new height. | -### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_73} +### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_77} ``` @@ -1678,7 +1772,7 @@ Resizes the image. **[Example # 1](#example_66)**: This example loads a raster cached image and resizes it using various resizin... -### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_74} +### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_78} ``` @@ -1701,7 +1795,7 @@ Resizes the image. **[Example # 1](#example_76)**: This example loads a raster cached image and resizes it using various resizin... -### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_75} +### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_79} ``` @@ -1718,7 +1812,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_76} +### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_80} ``` @@ -1735,7 +1829,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_77} +### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_81} ``` @@ -1750,7 +1844,7 @@ Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RES | :- | :- | :- | | new_height | int | The new height. | -### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_78} +### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_82} ``` @@ -1766,7 +1860,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_79} +### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_83} ``` @@ -1782,7 +1876,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_80} +### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_84} ``` @@ -1798,7 +1892,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_81} +### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_85} ``` @@ -1813,7 +1907,7 @@ Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESA | :- | :- | :- | | new_width | int | The new width. | -### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_82} +### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_86} ``` @@ -1829,7 +1923,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_83} +### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_87} ``` @@ -1845,7 +1939,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_84} +### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_88} ``` @@ -1861,7 +1955,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: rotate(angle) {#rotate_angle_85} +### Method: rotate(angle) {#rotate_angle_89} ``` @@ -1876,7 +1970,7 @@ Rotate image around the center. | :- | :- | :- | | angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | -### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_86} +### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_90} ``` @@ -1893,7 +1987,7 @@ Rotate image around the center. | resize_proportionally | bool | if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_87} +### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_91} ``` @@ -1914,7 +2008,7 @@ Rotates, flips, or rotates and flips the image. **[Example # 1](#example_67)**: This example loads a raster cached image, rotates it by 90 degrees clockwise ... -### Method: save(file_path) {#save_file_path_88} +### Method: save(file_path) {#save_file_path_92} ``` @@ -1929,7 +2023,7 @@ Saves the image to the specified file location. | :- | :- | :- | | file_path | string | The file path to save the image to. | -### Method: save(file_path, options) {#save_file_path_options_89} +### Method: save(file_path, options) {#save_file_path_options_93} ``` @@ -1945,7 +2039,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_90} +### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_94} ``` @@ -1962,7 +2056,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: save(file_path, over_write) {#save_file_path_over_write_91} +### Method: save(file_path, over_write) {#save_file_path_over_write_95} ``` @@ -1978,7 +2072,7 @@ Saves the object's data to the specified file location. | file_path | string | The file path to save the object's data to. | | over_write | bool | if set to true over write the file contents, otherwise append will occur. | -### Method: save(stream) {#save_stream_92} +### Method: save(stream) {#save_stream_96} ``` @@ -1993,7 +2087,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save(stream, options_base) {#save_stream_options_base_93} +### Method: save(stream, options_base) {#save_stream_options_base_97} ``` @@ -2009,7 +2103,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_94} +### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_98} ``` @@ -2026,7 +2120,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_95} +### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_99} ``` @@ -2042,7 +2136,7 @@ Saves the 32-bit ARGB pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The 32-bit ARGB pixels array. | -### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_96} +### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_100} ``` @@ -2058,7 +2152,7 @@ Saves the pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The CMYK pixels presented as the 32-bit integer values. | -### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_97} +### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_101} ``` @@ -2074,7 +2168,7 @@ Saves the pixels.
This method is deprecated. Please use more eff | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The CMYK pixels array. | -### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_98} +### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_102} ``` @@ -2090,7 +2184,7 @@ Saves pixels (format specific method). | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | [Color[]](/imaging/python-net/aspose.imaging/color) | The 32-bit ARGB pixels array. | -### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_99} +### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_103} ``` @@ -2108,7 +2202,7 @@ Saves the raw data. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The raw data rectangle. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings the data is in. | -### Method: save_to_stream(stream) {#save_to_stream_stream_100} +### Method: save_to_stream(stream) {#save_to_stream_stream_104} ``` @@ -2123,7 +2217,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_101} +### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_105} ``` @@ -2139,7 +2233,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_102} +### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_106} ``` @@ -2156,7 +2250,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_103} +### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_107} ``` @@ -2172,7 +2266,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_104} +### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_108} ``` @@ -2189,7 +2283,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_105} +### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_109} ``` @@ -2206,7 +2300,7 @@ Sets an image 32-bit ARGB pixel for the specified position. | y | int | The pixel y location. | | argb_32_color | int | The 32-bit ARGB pixel for the specified position. | -### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_106} +### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_110} ``` @@ -2222,7 +2316,7 @@ Sets the image palette. | palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The palette to set. | | update_colors | bool | if set to true colors will be updated according to the new palette; otherwise color indexes remain unchanged. Note that unchanged indexes may crash the image on loading if some indexes have no corresponding palette entries. | -### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_107} +### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_111} ``` @@ -2239,7 +2333,7 @@ Sets an image pixel for the specified position. | y | int | The pixel y location. | | color | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified position. | -### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_108} +### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_112} ``` @@ -2255,7 +2349,7 @@ Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/ra | dpi_x | double | The horizontal resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | | dpi_y | double | The vertical resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_109} +### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_113} ``` @@ -2271,7 +2365,7 @@ Writes the whole scan line to the specified scan line index. | scan_line_index | int | Zero based index of the scan line. | | argb_32_pixels | int | The 32-bit ARGB colors array to write. | -### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_110} +### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_114} ``` diff --git a/english/python-net/aspose.imaging/rastercachedmultipageimage/_index.md b/english/python-net/aspose.imaging/rastercachedmultipageimage/_index.md index 11ef843692..a42dc9d113 100644 --- a/english/python-net/aspose.imaging/rastercachedmultipageimage/_index.md +++ b/english/python-net/aspose.imaging/rastercachedmultipageimage/_index.md @@ -74,104 +74,108 @@ url: /python-net/aspose.imaging/rastercachedmultipageimage/ | [can_load_stream_with_options(stream, load_options)](#can_load_stream_with_options_stream_load_options_15) | Determines whether image can be loaded from the specified stream and optionally using the specified _loadOptions_. | | [can_load_with_options(file_path, load_options)](#can_load_with_options_file_path_load_options_16) | Determines whether image can be loaded from the specified file path and optionally using the specified open options. | | [can_save(options)](#can_save_options_17) | Determines whether image can be saved to the specified file format represented by the passed save options. | -| [create(files)](#create_files_18) | Creates the specified files. | -| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_19) | Creates the specified files. | +| [create(files)](#create_files_18) | Creates the multipage image containing the specified files. | +| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_19) | Creates the multipage image containing the specified files. | | [create(image_options, width, height)](#create_image_options_width_height_20) | Creates a new image using the specified create options. | | [create(images)](#create_images_21) | Creates a new image using the specified images as pages | | [create(images, dispose_images)](#create_images_dispose_images_22) | Creates a new image the specified images as pages. | | [create(multipage_create_options)](#create_multipage_create_options_23) | Creates the specified multipage create options. | -| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_24) | Crop image with shifts. | -| [crop(rectangle)](#crop_rectangle_25) | Cropping the image. | -| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_26) | Performs dithering on the current image. | -| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_27) | Performs dithering on the current image. | -| [filter(rectangle, options)](#filter_rectangle_options_28) | Filters the specified rectangle. | -| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_29) | Gets an image 32-bit ARGB pixel. | -| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_30) | Gets the default 32-bit ARGB pixels array. | -| [get_default_options(args)](#get_default_options_args_31) | Gets the default options. | -| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_32) | Gets the default pixels array using partial pixel loader. | -| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_33) | Gets the default raw data array using partial pixel loader. | -| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_34) | Gets the default raw data array. | -| [get_file_format(file_path)](#get_file_format_file_path_35) | Gets the file format. | -| [get_file_format(stream)](#get_file_format_stream_36) | Gets the file format. | -| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_37) | Gets the file format. | -| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_38) | Gets rectangle which fits the current image. | -| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_39) | Gets rectangle which fits the current image. | -| [get_modify_date(use_default)](#get_modify_date_use_default_40) | Gets the date and time the resource image was last modified. | -| [get_original_options()](#get_original_options__41) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | -| [get_pixel(x, y)](#get_pixel_x_y_42) | Gets an image pixel. | -| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_43) | Gets a proportional height. | -| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_44) | Gets a proportional width. | -| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_45) | Converts to aps. | -| [get_skew_angle()](#get_skew_angle__46) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | +| [create_from_files(files)](#create_from_files_files_24) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_files(files, throw_exception_on_load_error)](#create_from_files_files_throw_exception_on_load_error_25) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_images(images)](#create_from_images_images_26) | Creates a new image using the specified images as pages | +| [create_from_images(images, dispose_images)](#create_from_images_images_dispose_images_27) | Creates a new image the specified images as pages. | +| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_28) | Crop image with shifts. | +| [crop(rectangle)](#crop_rectangle_29) | Cropping the image. | +| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_30) | Performs dithering on the current image. | +| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_31) | Performs dithering on the current image. | +| [filter(rectangle, options)](#filter_rectangle_options_32) | Filters the specified rectangle. | +| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_33) | Gets an image 32-bit ARGB pixel. | +| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_34) | Gets the default 32-bit ARGB pixels array. | +| [get_default_options(args)](#get_default_options_args_35) | Gets the default options. | +| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_36) | Gets the default pixels array using partial pixel loader. | +| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_37) | Gets the default raw data array using partial pixel loader. | +| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_38) | Gets the default raw data array. | +| [get_file_format(file_path)](#get_file_format_file_path_39) | Gets the file format. | +| [get_file_format(stream)](#get_file_format_stream_40) | Gets the file format. | +| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_41) | Gets the file format. | +| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_42) | Gets rectangle which fits the current image. | +| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_43) | Gets rectangle which fits the current image. | +| [get_modify_date(use_default)](#get_modify_date_use_default_44) | Gets the date and time the resource image was last modified. | +| [get_original_options()](#get_original_options__45) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | +| [get_pixel(x, y)](#get_pixel_x_y_46) | Gets an image pixel. | +| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_47) | Gets a proportional height. | +| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_48) | Gets a proportional width. | +| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_49) | Converts to aps. | +| [get_skew_angle()](#get_skew_angle__50) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | | grayscale() | Transformation of an image to its grayscale representation | -| [load(file_path)](#load_file_path_47) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(file_path, load_options)](#load_file_path_load_options_48) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(stream)](#load_stream_49) | Loads a new image from the specified stream. | -| [load(stream, load_options)](#load_stream_load_options_50) | Loads a new image from the specified stream. | -| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_51) | Loads 32-bit ARGB pixels. | -| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_52) | Loads 64-bit ARGB pixels. | -| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_53) | Loads pixels in CMYK format. | -| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_54) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_55) | Loads 32-bit ARGB pixels partially (by blocks). | -| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_56) | Loads 64-bit ARGB pixels partially by packs. | -| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_57) | Loads pixels partially by packs. | -| [load_pixels(rectangle)](#load_pixels_rectangle_58) | Loads pixels. | -| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_59) | Loads raw data. | -| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_60) | Loads raw data. | -| [load_stream(stream)](#load_stream_stream_61) | Loads a new image from the specified stream. | -| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_62) | Loads a new image from the specified stream. | -| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_63) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path)](#load_file_path_51) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path, load_options)](#load_file_path_load_options_52) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(stream)](#load_stream_53) | Loads a new image from the specified stream. | +| [load(stream, load_options)](#load_stream_load_options_54) | Loads a new image from the specified stream. | +| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_55) | Loads 32-bit ARGB pixels. | +| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_56) | Loads 64-bit ARGB pixels. | +| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_57) | Loads pixels in CMYK format. | +| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_58) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_59) | Loads 32-bit ARGB pixels partially (by blocks). | +| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_60) | Loads 64-bit ARGB pixels partially by packs. | +| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_61) | Loads pixels partially by packs. | +| [load_pixels(rectangle)](#load_pixels_rectangle_62) | Loads pixels. | +| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_63) | Loads raw data. | +| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_64) | Loads raw data. | +| [load_stream(stream)](#load_stream_stream_65) | Loads a new image from the specified stream. | +| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_66) | Loads a new image from the specified stream. | +| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_67) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | | normalize_angle() | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | -| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_64) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterCachedMultipageImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rastercachedmultipageimage/) methods. | -| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_65) | Reads the whole scan line by the specified scan line index. | -| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_66) | Reads the whole scan line by the specified scan line index. | +| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_68) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterCachedMultipageImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rastercachedmultipageimage/) methods. | +| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_69) | Reads the whole scan line by the specified scan line index. | +| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_70) | Reads the whole scan line by the specified scan line index. | | remove_metadata() | Removes this image instance metadata by setting this [IHasXmpData.xmp_data](/imaging/python-net/aspose.imaging.xmp/ihasxmpdata/) value to **None**. | -| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_67) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_68) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_69) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_70) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_71) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [resize(new_width, new_height)](#resize_new_width_new_height_72) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_73) | Resizes the image. | -| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_74) | Resizes the image. | -| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_75) | Resizes the image. | -| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_76) | Resizes the image. | -| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_77) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_78) | Resizes the width proportionally. | -| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_79) | Resizes the height proportionally. | -| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_80) | Resizes the height proportionally. | -| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_81) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_82) | Resizes the width proportionally. | -| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_83) | Resizes the width proportionally. | -| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_84) | Resizes the width proportionally. | -| [rotate(angle)](#rotate_angle_85) | Rotate image around the center. | -| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_86) | [RasterCachedMultipageImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rastercachedmultipageimage/) image around the center. | -| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_87) | Rotates, flips, or rotates and flips all pages. | -| [rotate_flip_all(rotate_flip)](#rotate_flip_all_rotate_flip_88) | Rotates the flip all. | +| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_71) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_72) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_73) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_74) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_75) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [resize(new_width, new_height)](#resize_new_width_new_height_76) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_77) | Resizes the image. | +| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_78) | Resizes the image. | +| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_79) | Resizes the image. | +| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_80) | Resizes the image. | +| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_81) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_82) | Resizes the width proportionally. | +| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_83) | Resizes the height proportionally. | +| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_84) | Resizes the height proportionally. | +| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_85) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_86) | Resizes the width proportionally. | +| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_87) | Resizes the width proportionally. | +| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_88) | Resizes the width proportionally. | +| [rotate(angle)](#rotate_angle_89) | Rotate image around the center. | +| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_90) | [RasterCachedMultipageImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rastercachedmultipageimage/) image around the center. | +| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_91) | Rotates, flips, or rotates and flips all pages. | +| [rotate_flip_all(rotate_flip)](#rotate_flip_all_rotate_flip_92) | Rotates the flip all. | | save() | Saves the image data to the underlying stream. | -| [save(file_path)](#save_file_path_89) | Saves the image to the specified file location. | -| [save(file_path, options)](#save_file_path_options_90) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_91) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, over_write)](#save_file_path_over_write_92) | Saves the object's data to the specified file location. | -| [save(stream)](#save_stream_93) | Saves the object's data to the specified stream. | -| [save(stream, options_base)](#save_stream_options_base_94) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_95) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_96) | Saves the 32-bit ARGB pixels. | -| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_97) | Saves the pixels. | -| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_98) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_99) | Saves the pixels internal main. | -| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_100) | Saves the raw data. | -| [save_to_stream(stream)](#save_to_stream_stream_101) | Saves the object's data to the specified stream. | -| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_102) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_103) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_with_options(file_path, options)](#save_with_options_file_path_options_104) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_105) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_106) | Sets an image 32-bit ARGB pixel for the specified position. | -| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_107) | Sets the image palette. | -| [set_pixel(x, y, color)](#set_pixel_x_y_color_108) | Sets an image pixel for the specified position. | -| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_109) | Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_110) | Writes the whole scan line to the specified scan line index. | -| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_111) | Writes the whole scan line to the specified scan line index. | +| [save(file_path)](#save_file_path_93) | Saves the image to the specified file location. | +| [save(file_path, options)](#save_file_path_options_94) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_95) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, over_write)](#save_file_path_over_write_96) | Saves the object's data to the specified file location. | +| [save(stream)](#save_stream_97) | Saves the object's data to the specified stream. | +| [save(stream, options_base)](#save_stream_options_base_98) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_99) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_100) | Saves the 32-bit ARGB pixels. | +| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_101) | Saves the pixels. | +| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_102) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_103) | Saves the pixels internal main. | +| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_104) | Saves the raw data. | +| [save_to_stream(stream)](#save_to_stream_stream_105) | Saves the object's data to the specified stream. | +| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_106) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_107) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_with_options(file_path, options)](#save_with_options_file_path_options_108) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_109) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_110) | Sets an image 32-bit ARGB pixel for the specified position. | +| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_111) | Sets the image palette. | +| [set_pixel(x, y, color)](#set_pixel_x_y_color_112) | Sets an image pixel for the specified position. | +| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_113) | Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | +| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_114) | Writes the whole scan line to the specified scan line index. | +| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_115) | Writes the whole scan line to the specified scan line index. | ### Method: adjust_brightness(brightness) {#adjust_brightness_brightness_1} @@ -504,7 +508,7 @@ Determines whether image can be saved to the specified file format represented b create(files) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -526,7 +530,7 @@ Creates the specified files. create(files, throw_exception_on_load_error) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -633,7 +637,97 @@ Creates the specified multipage create options. | [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | -### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_24} +### Method: create_from_files(files) [static] {#create_from_files_files_24} + + +``` + create_from_files(files) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_files(files, throw_exception_on_load_error) [static] {#create_from_files_files_throw_exception_on_load_error_25} + + +``` + create_from_files(files, throw_exception_on_load_error) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | +| throw_exception_on_load_error | bool | if set to true throw exception on load error. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_images(images) [static] {#create_from_images_images_26} + + +``` + create_from_images(images) +``` + +Creates a new image using the specified images as pages + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_images(images, dispose_images) [static] {#create_from_images_images_dispose_images_27} + + +``` + create_from_images(images, dispose_images) +``` + +Creates a new image the specified images as pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | +| dispose_images | bool | if set to true [dispose images]. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_28} ``` @@ -651,7 +745,7 @@ Crop image with shifts. | top_shift | int | The top shift. | | bottom_shift | int | The bottom shift. | -### Method: crop(rectangle) {#crop_rectangle_25} +### Method: crop(rectangle) {#crop_rectangle_29} ``` @@ -666,7 +760,7 @@ Cropping the image. | :- | :- | :- | | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | -### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_26} +### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_30} ``` @@ -682,7 +776,7 @@ Performs dithering on the current image. | dithering_method | [DitheringMethod](/imaging/python-net/aspose.imaging/ditheringmethod) | The dithering method. | | bits_count | int | The final bits count for dithering. | -### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_27} +### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_31} ``` @@ -699,7 +793,7 @@ Performs dithering on the current image. | bits_count | int | The final bits count for dithering. | | custom_palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The custom palette for dithering. | -### Method: filter(rectangle, options) {#filter_rectangle_options_28} +### Method: filter(rectangle, options) {#filter_rectangle_options_32} ``` @@ -715,7 +809,7 @@ Filters the specified rectangle. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | | options | [FilterOptionsBase](/imaging/python-net/aspose.imaging.imagefilters.filteroptions/filteroptionsbase/) | The options. | -### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_29} +### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_33} ``` @@ -738,7 +832,7 @@ Gets an image 32-bit ARGB pixel. | int | The 32-bit ARGB pixel for the specified location. | -### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_30} +### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_34} ``` @@ -760,7 +854,7 @@ Gets the default 32-bit ARGB pixels array. | int | The default pixels array. | -### Method: get_default_options(args) {#get_default_options_args_31} +### Method: get_default_options(args) {#get_default_options_args_35} ``` @@ -782,7 +876,7 @@ Gets the default options. | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Default options | -### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_32} +### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_36} ``` @@ -798,7 +892,7 @@ Gets the default pixels array using partial pixel loader. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to get pixels for. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_33} +### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_37} ``` @@ -815,7 +909,7 @@ Gets the default raw data array using partial pixel loader. | partial_raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The partial raw data loader. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings. | -### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_34} +### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_38} ``` @@ -838,7 +932,7 @@ Gets the default raw data array. | byte | The default raw data array. | -### Method: get_file_format(file_path) [static] {#get_file_format_file_path_35} +### Method: get_file_format(file_path) [static] {#get_file_format_file_path_39} ``` @@ -860,7 +954,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format(stream) [static] {#get_file_format_stream_36} +### Method: get_file_format(stream) [static] {#get_file_format_stream_40} ``` @@ -882,7 +976,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_37} +### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_41} ``` @@ -904,7 +998,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_38} +### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_42} ``` @@ -929,7 +1023,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_39} +### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_43} ``` @@ -953,7 +1047,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_modify_date(use_default) {#get_modify_date_use_default_40} +### Method: get_modify_date(use_default) {#get_modify_date_use_default_44} ``` @@ -975,7 +1069,7 @@ Gets the date and time the resource image was last modified. | datetime | The date and time the resource image was last modified. | -### Method: get_original_options() {#get_original_options__41} +### Method: get_original_options() {#get_original_options__45} ``` @@ -991,7 +1085,7 @@ Gets the options based on the original file settings.
This can b | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options based on the original file settings. | -### Method: get_pixel(x, y) {#get_pixel_x_y_42} +### Method: get_pixel(x, y) {#get_pixel_x_y_46} ``` @@ -1014,7 +1108,7 @@ Gets an image pixel. | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified location. | -### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_43} +### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_47} ``` @@ -1038,7 +1132,7 @@ Gets a proportional height. | int | The proportional height. | -### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_44} +### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_48} ``` @@ -1062,7 +1156,7 @@ Gets a proportional width. | int | The proportional width. | -### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_45} +### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_49} ``` @@ -1086,7 +1180,7 @@ Converts to aps. | _io.BufferedRandom | The serialized stream | -### Method: get_skew_angle() {#get_skew_angle__46} +### Method: get_skew_angle() {#get_skew_angle__50} ``` @@ -1102,7 +1196,7 @@ Gets the skew angle.
This method is applicable to scanned text d | float | The skew angle, in degrees. | -### Method: load(file_path) [static] {#load_file_path_47} +### Method: load(file_path) [static] {#load_file_path_51} ``` @@ -1124,7 +1218,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(file_path, load_options) [static] {#load_file_path_load_options_48} +### Method: load(file_path, load_options) [static] {#load_file_path_load_options_52} ``` @@ -1147,7 +1241,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream) [static] {#load_stream_49} +### Method: load(stream) [static] {#load_stream_53} ``` @@ -1169,7 +1263,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream, load_options) [static] {#load_stream_load_options_50} +### Method: load(stream, load_options) [static] {#load_stream_load_options_54} ``` @@ -1192,7 +1286,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_51} +### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_55} ``` @@ -1214,7 +1308,7 @@ Loads 32-bit ARGB pixels. | int | The loaded 32-bit ARGB pixels array. | -### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_52} +### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_56} ``` @@ -1236,7 +1330,7 @@ Loads 64-bit ARGB pixels. | long | The loaded 64-bit ARGB pixels array. | -### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_53} +### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_57} ``` @@ -1258,7 +1352,7 @@ Loads pixels in CMYK format. | int | The loaded CMYK pixels presentes as 32-bit inateger values. | -### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_54} +### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_58} ``` @@ -1280,7 +1374,7 @@ Loads pixels in CMYK format.
This method is deprecated. Please u | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The loaded CMYK pixels array. | -### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_55} +### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_59} ``` @@ -1296,7 +1390,7 @@ Loads 32-bit ARGB pixels partially (by blocks). | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to load pixels from. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_56} +### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_60} ``` @@ -1312,7 +1406,7 @@ Loads 64-bit ARGB pixels partially by packs. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | partial_pixel_loader | [IPartialArgb64PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb64pixelloader) | The 64-bit ARGB pixel loader. | -### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_57} +### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_61} ``` @@ -1328,7 +1422,7 @@ Loads pixels partially by packs. | desired_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | pixel_loader | [IPartialPixelLoader](/imaging/python-net/aspose.imaging/ipartialpixelloader) | The pixel loader. | -### Method: load_pixels(rectangle) {#load_pixels_rectangle_58} +### Method: load_pixels(rectangle) {#load_pixels_rectangle_62} ``` @@ -1350,7 +1444,7 @@ Loads pixels. | [Color[]](/imaging/python-net/aspose.imaging/color) | The loaded pixels array. | -### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_59} +### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_63} ``` @@ -1368,7 +1462,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_60} +### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_64} ``` @@ -1385,7 +1479,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_stream(stream) [static] {#load_stream_stream_61} +### Method: load_stream(stream) [static] {#load_stream_stream_65} ``` @@ -1407,7 +1501,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_62} +### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_66} ``` @@ -1430,7 +1524,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_63} +### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_67} ``` @@ -1453,7 +1547,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_64} +### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_68} ``` @@ -1469,7 +1563,7 @@ Normalizes the angle.
This method is applicable to scanned text | resize_proportionally | bool | if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_65} +### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_69} ``` @@ -1491,7 +1585,7 @@ Reads the whole scan line by the specified scan line index. | int | The scan line 32-bit ARGB color values array. | -### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_66} +### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_70} ``` @@ -1513,7 +1607,7 @@ Reads the whole scan line by the specified scan line index. | [Color[]](/imaging/python-net/aspose.imaging/color) | The scan line pixel color values array. | -### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_67} +### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_71} ``` @@ -1530,7 +1624,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_68} +### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_72} ``` @@ -1547,7 +1641,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | | -### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_69} +### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_73} ``` @@ -1564,7 +1658,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_70} +### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_74} ``` @@ -1579,7 +1673,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | | -### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_71} +### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_75} ``` @@ -1594,7 +1688,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color_argb | int | New color ARGB value to replace non transparent colors with. | -### Method: resize(new_width, new_height) {#resize_new_width_new_height_72} +### Method: resize(new_width, new_height) {#resize_new_width_new_height_76} ``` @@ -1610,7 +1704,7 @@ Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/ | new_width | int | The new width. | | new_height | int | The new height. | -### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_73} +### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_77} ``` @@ -1627,7 +1721,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_74} +### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_78} ``` @@ -1644,7 +1738,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_75} +### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_79} ``` @@ -1661,7 +1755,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_76} +### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_80} ``` @@ -1678,7 +1772,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_77} +### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_81} ``` @@ -1693,7 +1787,7 @@ Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RES | :- | :- | :- | | new_height | int | The new height. | -### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_78} +### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_82} ``` @@ -1709,7 +1803,7 @@ Resizes the width proportionally. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_79} +### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_83} ``` @@ -1725,7 +1819,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_80} +### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_84} ``` @@ -1741,7 +1835,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_81} +### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_85} ``` @@ -1756,7 +1850,7 @@ Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESA | :- | :- | :- | | new_width | int | The new width. | -### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_82} +### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_86} ``` @@ -1772,7 +1866,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_83} +### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_87} ``` @@ -1788,7 +1882,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_84} +### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_88} ``` @@ -1804,7 +1898,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: rotate(angle) {#rotate_angle_85} +### Method: rotate(angle) {#rotate_angle_89} ``` @@ -1819,7 +1913,7 @@ Rotate image around the center. | :- | :- | :- | | angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | -### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_86} +### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_90} ``` @@ -1836,7 +1930,7 @@ Rotate image around the center. | resize_proportionally | bool | if set to true you will have your image size changed
according to rotated rectangle (corner points) projections in other
case that leaves dimensions untouched and only
__internal__ image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_87} +### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_91} ``` @@ -1851,7 +1945,7 @@ Rotates, flips, or rotates and flips all pages. | :- | :- | :- | | rotate_flip_type | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | The rotate flip type. | -### Method: rotate_flip_all(rotate_flip) {#rotate_flip_all_rotate_flip_88} +### Method: rotate_flip_all(rotate_flip) {#rotate_flip_all_rotate_flip_92} ``` @@ -1866,7 +1960,7 @@ Rotates the flip all. | :- | :- | :- | | rotate_flip | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | The rotate flip. | -### Method: save(file_path) {#save_file_path_89} +### Method: save(file_path) {#save_file_path_93} ``` @@ -1881,7 +1975,7 @@ Saves the image to the specified file location. | :- | :- | :- | | file_path | string | The file path to save the image to. | -### Method: save(file_path, options) {#save_file_path_options_90} +### Method: save(file_path, options) {#save_file_path_options_94} ``` @@ -1897,7 +1991,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_91} +### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_95} ``` @@ -1914,7 +2008,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: save(file_path, over_write) {#save_file_path_over_write_92} +### Method: save(file_path, over_write) {#save_file_path_over_write_96} ``` @@ -1930,7 +2024,7 @@ Saves the object's data to the specified file location. | file_path | string | The file path to save the object's data to. | | over_write | bool | if set to true over write the file contents, otherwise append will occur. | -### Method: save(stream) {#save_stream_93} +### Method: save(stream) {#save_stream_97} ``` @@ -1945,7 +2039,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save(stream, options_base) {#save_stream_options_base_94} +### Method: save(stream, options_base) {#save_stream_options_base_98} ``` @@ -1961,7 +2055,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_95} +### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_99} ``` @@ -1978,7 +2072,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_96} +### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_100} ``` @@ -1994,7 +2088,7 @@ Saves the 32-bit ARGB pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The 32-bit ARGB pixels array. | -### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_97} +### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_101} ``` @@ -2010,7 +2104,7 @@ Saves the pixels. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | int | The CMYK pixels presented as the 32-bit integer values. | -### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_98} +### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_102} ``` @@ -2026,7 +2120,7 @@ Saves the pixels.
This method is deprecated. Please use more eff | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The CMYK pixels array. | -### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_99} +### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_103} ``` @@ -2042,7 +2136,7 @@ Saves the pixels internal main. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | | pixels | [Color[]](/imaging/python-net/aspose.imaging/color) | The pixels. | -### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_100} +### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_104} ``` @@ -2060,7 +2154,7 @@ Saves the raw data. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The raw data rectangle. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings the data is in. | -### Method: save_to_stream(stream) {#save_to_stream_stream_101} +### Method: save_to_stream(stream) {#save_to_stream_stream_105} ``` @@ -2075,7 +2169,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_102} +### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_106} ``` @@ -2091,7 +2185,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_103} +### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_107} ``` @@ -2108,7 +2202,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_104} +### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_108} ``` @@ -2124,7 +2218,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_105} +### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_109} ``` @@ -2141,7 +2235,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_106} +### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_110} ``` @@ -2158,7 +2252,7 @@ Sets an image 32-bit ARGB pixel for the specified position. | y | int | The pixel y location. | | argb_32_color | int | The 32-bit ARGB pixel for the specified position. | -### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_107} +### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_111} ``` @@ -2174,7 +2268,7 @@ Sets the image palette. | palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The palette to set. | | update_colors | bool | if set to true colors will be updated according to the new palette; otherwise color indexes remain unchanged. Note that unchanged indexes may crash the image on loading if some indexes have no corresponding palette entries. | -### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_108} +### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_112} ``` @@ -2191,7 +2285,7 @@ Sets an image pixel for the specified position. | y | int | The pixel y location. | | color | [Color](/imaging/python-net/aspose.imaging/color) | The pixel color for the specified position. | -### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_109} +### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_113} ``` @@ -2207,7 +2301,7 @@ Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/ra | dpi_x | double | The horizontal resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | | dpi_y | double | The vertical resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_110} +### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_114} ``` @@ -2223,7 +2317,7 @@ Writes the whole scan line to the specified scan line index. | scan_line_index | int | Zero based index of the scan line. | | argb_32_pixels | int | The 32-bit ARGB colors array to write. | -### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_111} +### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_115} ``` diff --git a/english/python-net/aspose.imaging/rasterimage/_index.md b/english/python-net/aspose.imaging/rasterimage/_index.md index 9515ff1392..3edf00c6ca 100644 --- a/english/python-net/aspose.imaging/rasterimage/_index.md +++ b/english/python-net/aspose.imaging/rasterimage/_index.md @@ -72,103 +72,107 @@ url: /python-net/aspose.imaging/rasterimage/ | [can_load_stream_with_options(stream, load_options)](#can_load_stream_with_options_stream_load_options_15) | Determines whether image can be loaded from the specified stream and optionally using the specified _loadOptions_. | | [can_load_with_options(file_path, load_options)](#can_load_with_options_file_path_load_options_16) | Determines whether image can be loaded from the specified file path and optionally using the specified open options. | | [can_save(options)](#can_save_options_17) | Determines whether image can be saved to the specified file format represented by the passed save options. | -| [create(files)](#create_files_18) | Creates the specified files. | -| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_19) | Creates the specified files. | +| [create(files)](#create_files_18) | Creates the multipage image containing the specified files. | +| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_19) | Creates the multipage image containing the specified files. | | [create(image_options, width, height)](#create_image_options_width_height_20) | Creates a new image using the specified create options. | | [create(images)](#create_images_21) | Creates a new image using the specified images as pages | | [create(images, dispose_images)](#create_images_dispose_images_22) | Creates a new image the specified images as pages. | | [create(multipage_create_options)](#create_multipage_create_options_23) | Creates the specified multipage create options. | -| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_24) | Crop image with shifts. | -| [crop(rectangle)](#crop_rectangle_25) | Crops the specified rectangle. | -| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_26) | Performs dithering on the current image. | -| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_27) | Performs dithering on the current image. | -| [filter(rectangle, options)](#filter_rectangle_options_28) | Filters the specified rectangle. | -| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_29) | Gets an image 32-bit ARGB pixel. | -| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_30) | Gets the default 32-bit ARGB pixels array. | -| [get_default_options(args)](#get_default_options_args_31) | Gets the default options. | -| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_32) | Gets the default pixels array using partial pixel loader. | -| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_33) | Gets the default raw data array using partial pixel loader. | -| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_34) | Gets the default raw data array. | -| [get_file_format(file_path)](#get_file_format_file_path_35) | Gets the file format. | -| [get_file_format(stream)](#get_file_format_stream_36) | Gets the file format. | -| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_37) | Gets the file format. | -| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_38) | Gets rectangle which fits the current image. | -| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_39) | Gets rectangle which fits the current image. | -| [get_modify_date(use_default)](#get_modify_date_use_default_40) | Gets the date and time the resource image was last modified. | -| [get_original_options()](#get_original_options__41) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | -| [get_pixel(x, y)](#get_pixel_x_y_42) | Gets an image pixel. | -| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_43) | Gets a proportional height. | -| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_44) | Gets a proportional width. | -| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_45) | Converts to aps. | -| [get_skew_angle()](#get_skew_angle__46) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | +| [create_from_files(files)](#create_from_files_files_24) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_files(files, throw_exception_on_load_error)](#create_from_files_files_throw_exception_on_load_error_25) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_images(images)](#create_from_images_images_26) | Creates a new image using the specified images as pages | +| [create_from_images(images, dispose_images)](#create_from_images_images_dispose_images_27) | Creates a new image the specified images as pages. | +| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_28) | Crop image with shifts. | +| [crop(rectangle)](#crop_rectangle_29) | Crops the specified rectangle. | +| [dither(dithering_method, bits_count)](#dither_dithering_method_bits_count_30) | Performs dithering on the current image. | +| [dither(dithering_method, bits_count, custom_palette)](#dither_dithering_method_bits_count_custom_palette_31) | Performs dithering on the current image. | +| [filter(rectangle, options)](#filter_rectangle_options_32) | Filters the specified rectangle. | +| [get_argb_32_pixel(x, y)](#get_argb_32_pixel_x_y_33) | Gets an image 32-bit ARGB pixel. | +| [get_default_argb_32_pixels(rectangle)](#get_default_argb_32_pixels_rectangle_34) | Gets the default 32-bit ARGB pixels array. | +| [get_default_options(args)](#get_default_options_args_35) | Gets the default options. | +| [get_default_pixels(rectangle, partial_pixel_loader)](#get_default_pixels_rectangle_partial_pixel_loader_36) | Gets the default pixels array using partial pixel loader. | +| [get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings)](#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_37) | Gets the default raw data array using partial pixel loader. | +| [get_default_raw_data(rectangle, raw_data_settings)](#get_default_raw_data_rectangle_raw_data_settings_38) | Gets the default raw data array. | +| [get_file_format(file_path)](#get_file_format_file_path_39) | Gets the file format. | +| [get_file_format(stream)](#get_file_format_stream_40) | Gets the file format. | +| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_41) | Gets the file format. | +| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_42) | Gets rectangle which fits the current image. | +| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_43) | Gets rectangle which fits the current image. | +| [get_modify_date(use_default)](#get_modify_date_use_default_44) | Gets the date and time the resource image was last modified. | +| [get_original_options()](#get_original_options__45) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | +| [get_pixel(x, y)](#get_pixel_x_y_46) | Gets an image pixel. | +| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_47) | Gets a proportional height. | +| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_48) | Gets a proportional width. | +| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_49) | Converts to aps. | +| [get_skew_angle()](#get_skew_angle__50) | Gets the skew angle.
This method is applicable to scanned text documents, to determine the skew angle when scanning. | | grayscale() | Transformation of an image to its grayscale representation | -| [load(file_path)](#load_file_path_47) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(file_path, load_options)](#load_file_path_load_options_48) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(stream)](#load_stream_49) | Loads a new image from the specified stream. | -| [load(stream, load_options)](#load_stream_load_options_50) | Loads a new image from the specified stream. | -| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_51) | Loads 32-bit ARGB pixels. | -| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_52) | Loads 64-bit ARGB pixels. | -| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_53) | Loads pixels in CMYK format. | -| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_54) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_55) | Loads 32-bit ARGB pixels partially by packs. | -| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_56) | Loads 64-bit ARGB pixels partially by packs. | -| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_57) | Loads pixels partially by packs. | -| [load_pixels(rectangle)](#load_pixels_rectangle_58) | Loads pixels. | -| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_59) | Loads raw data. | -| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_60) | Loads raw data. | -| [load_stream(stream)](#load_stream_stream_61) | Loads a new image from the specified stream. | -| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_62) | Loads a new image from the specified stream. | -| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_63) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path)](#load_file_path_51) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path, load_options)](#load_file_path_load_options_52) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(stream)](#load_stream_53) | Loads a new image from the specified stream. | +| [load(stream, load_options)](#load_stream_load_options_54) | Loads a new image from the specified stream. | +| [load_argb_32_pixels(rectangle)](#load_argb_32_pixels_rectangle_55) | Loads 32-bit ARGB pixels. | +| [load_argb_64_pixels(rectangle)](#load_argb_64_pixels_rectangle_56) | Loads 64-bit ARGB pixels. | +| [load_cmyk_32_pixels(rectangle)](#load_cmyk_32_pixels_rectangle_57) | Loads pixels in CMYK format. | +| [load_cmyk_pixels(rectangle)](#load_cmyk_pixels_rectangle_58) | Loads pixels in CMYK format.
This method is deprecated. Please use more effective the [RasterImage.load_cmyk_32_pixels(rectangle)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [load_partial_argb_32_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_59) | Loads 32-bit ARGB pixels partially by packs. | +| [load_partial_argb_64_pixels(rectangle, partial_pixel_loader)](#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_60) | Loads 64-bit ARGB pixels partially by packs. | +| [load_partial_pixels(desired_rectangle, pixel_loader)](#load_partial_pixels_desired_rectangle_pixel_loader_61) | Loads pixels partially by packs. | +| [load_pixels(rectangle)](#load_pixels_rectangle_62) | Loads pixels. | +| [load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_63) | Loads raw data. | +| [load_raw_data(rectangle, raw_data_settings, raw_data_loader)](#load_raw_data_rectangle_raw_data_settings_raw_data_loader_64) | Loads raw data. | +| [load_stream(stream)](#load_stream_stream_65) | Loads a new image from the specified stream. | +| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_66) | Loads a new image from the specified stream. | +| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_67) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | | normalize_angle() | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | -| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_64) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | -| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_65) | Reads the whole scan line by the specified scan line index. | -| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_66) | Reads the whole scan line by the specified scan line index. | +| [normalize_angle(resize_proportionally, background_color)](#normalize_angle_resize_proportionally_background_color_68) | Normalizes the angle.
This method is applicable to scanned text documents to get rid of the skewed scan.
This method uses [RasterImage.get_skew_angle()](/imaging/python-net/aspose.imaging/rasterimage/) and [RasterImage.rotate(angle, resize_proportionally, background_color)](/imaging/python-net/aspose.imaging/rasterimage/) methods. | +| [read_argb_32_scan_line(scan_line_index)](#read_argb_32_scan_line_scan_line_index_69) | Reads the whole scan line by the specified scan line index. | +| [read_scan_line(scan_line_index)](#read_scan_line_scan_line_index_70) | Reads the whole scan line by the specified scan line index. | | remove_metadata() | Removes this image instance metadata by setting this [IHasXmpData.xmp_data](/imaging/python-net/aspose.imaging.xmp/ihasxmpdata/) value to **None**. | -| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_67) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_68) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_69) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | -| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_70) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_71) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | -| [resize(new_width, new_height)](#resize_new_width_new_height_72) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_73) | Resizes the image. | -| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_74) | Resizes the image with extended options. | -| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_75) | Resizes the image with extended options. | -| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_76) | Resizes the image. | -| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_77) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_78) | Resizes the height proportionally. | -| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_79) | Resizes the height proportionally. | -| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_80) | Resizes the height proportionally. | -| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_81) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_82) | Resizes the width proportionally. | -| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_83) | Resizes the width proportionally. | -| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_84) | Resizes the width proportionally. | -| [rotate(angle)](#rotate_angle_85) | Rotate image around the center. | -| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_86) | Rotate image around the center. | -| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_87) | Rotates, flips, or rotates and flips the image. | +| [replace_argb(old_color_argb, old_color_diff, new_color_argb)](#replace_argb_old_color_argb_old_color_diff_new_color_argb_71) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color, old_color_diff, new_color)](#replace_color_old_color_old_color_diff_new_color_72) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_color(old_color_argb, old_color_diff, new_color_argb)](#replace_color_old_color_argb_old_color_diff_new_color_argb_73) | Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges. | +| [replace_non_transparent_colors(new_color)](#replace_non_transparent_colors_new_color_74) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [replace_non_transparent_colors(new_color_argb)](#replace_non_transparent_colors_new_color_argb_75) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges.
Note: if you use it on images without transparency, all colors will be replaced with a single one. | +| [resize(new_width, new_height)](#resize_new_width_new_height_76) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_77) | Resizes the image. | +| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_78) | Resizes the image with extended options. | +| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_79) | Resizes the image. | +| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_80) | Resizes the image. | +| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_81) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_82) | Resizes the height proportionally. | +| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_83) | Resizes the height proportionally. | +| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_84) | Resizes the height proportionally. | +| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_85) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_86) | Resizes the width proportionally. | +| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_87) | Resizes the width proportionally. | +| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_88) | Resizes the width proportionally. | +| [rotate(angle)](#rotate_angle_89) | Rotate image around the center. | +| [rotate(angle, resize_proportionally, background_color)](#rotate_angle_resize_proportionally_background_color_90) | Rotate image around the center. | +| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_91) | Rotates, flips, or rotates and flips the image. | | save() | Saves the image data to the underlying stream. | -| [save(file_path)](#save_file_path_88) | Saves the image to the specified file location. | -| [save(file_path, options)](#save_file_path_options_89) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_90) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, over_write)](#save_file_path_over_write_91) | Saves the object's data to the specified file location. | -| [save(stream)](#save_stream_92) | Saves the object's data to the specified stream. | -| [save(stream, options_base)](#save_stream_options_base_93) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_94) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_95) | Saves the 32-bit ARGB pixels. | -| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_96) | Saves the pixels. | -| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_97) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | -| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_98) | Saves the pixels. | -| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_99) | Saves the raw data. | -| [save_to_stream(stream)](#save_to_stream_stream_100) | Saves the object's data to the specified stream. | -| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_101) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_102) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_with_options(file_path, options)](#save_with_options_file_path_options_103) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_104) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_105) | Sets an image 32-bit ARGB pixel for the specified position. | -| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_106) | Sets the image palette. | -| [set_pixel(x, y, color)](#set_pixel_x_y_color_107) | Sets an image pixel for the specified position. | -| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_108) | Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_109) | Writes the whole scan line to the specified scan line index. | -| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_110) | Writes the whole scan line to the specified scan line index. | +| [save(file_path)](#save_file_path_92) | Saves the image to the specified file location. | +| [save(file_path, options)](#save_file_path_options_93) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_94) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, over_write)](#save_file_path_over_write_95) | Saves the object's data to the specified file location. | +| [save(stream)](#save_stream_96) | Saves the object's data to the specified stream. | +| [save(stream, options_base)](#save_stream_options_base_97) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_98) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_argb_32_pixels(rectangle, pixels)](#save_argb_32_pixels_rectangle_pixels_99) | Saves the 32-bit ARGB pixels. | +| [save_cmyk_32_pixels(rectangle, pixels)](#save_cmyk_32_pixels_rectangle_pixels_100) | Saves the pixels. | +| [save_cmyk_pixels(rectangle, pixels)](#save_cmyk_pixels_rectangle_pixels_101) | Saves the pixels.
This method is deprecated. Please use more effective the [RasterImage.save_cmyk_32_pixels(rectangle, pixels)](/imaging/python-net/aspose.imaging/rasterimage/) method. | +| [save_pixels(rectangle, pixels)](#save_pixels_rectangle_pixels_102) | Saves the pixels. | +| [save_raw_data(data, data_offset, rectangle, raw_data_settings)](#save_raw_data_data_data_offset_rectangle_raw_data_settings_103) | Saves the raw data. | +| [save_to_stream(stream)](#save_to_stream_stream_104) | Saves the object's data to the specified stream. | +| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_105) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_106) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_with_options(file_path, options)](#save_with_options_file_path_options_107) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_108) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [set_argb_32_pixel(x, y, argb_32_color)](#set_argb_32_pixel_x_y_argb_32_color_109) | Sets an image 32-bit ARGB pixel for the specified position. | +| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_110) | Sets the image palette. | +| [set_pixel(x, y, color)](#set_pixel_x_y_color_111) | Sets an image pixel for the specified position. | +| [set_resolution(dpi_x, dpi_y)](#set_resolution_dpi_x_dpi_y_112) | Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | +| [write_argb_32_scan_line(scan_line_index, argb_32_pixels)](#write_argb_32_scan_line_scan_line_index_argb_32_pixels_113) | Writes the whole scan line to the specified scan line index. | +| [write_scan_line(scan_line_index, pixels)](#write_scan_line_scan_line_index_pixels_114) | Writes the whole scan line to the specified scan line index. | ### Property: has_alpha {#has_alpha1} @@ -566,7 +570,7 @@ Determines whether image can be saved to the specified file format represented b create(files) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -588,7 +592,7 @@ Creates the specified files. create(files, throw_exception_on_load_error) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -695,7 +699,97 @@ Creates the specified multipage create options. | [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | -### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_24} +### Method: create_from_files(files) [static] {#create_from_files_files_24} + + +``` + create_from_files(files) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_files(files, throw_exception_on_load_error) [static] {#create_from_files_files_throw_exception_on_load_error_25} + + +``` + create_from_files(files, throw_exception_on_load_error) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | +| throw_exception_on_load_error | bool | if set to true throw exception on load error. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_images(images) [static] {#create_from_images_images_26} + + +``` + create_from_images(images) +``` + +Creates a new image using the specified images as pages + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_images(images, dispose_images) [static] {#create_from_images_images_dispose_images_27} + + +``` + create_from_images(images, dispose_images) +``` + +Creates a new image the specified images as pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | +| dispose_images | bool | if set to true [dispose images]. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_28} ``` @@ -719,7 +813,7 @@ Crop image with shifts. **[Example # 1](#example_50)**: The following example crops a raster image. The cropping area is specified vi... -### Method: crop(rectangle) {#crop_rectangle_25} +### Method: crop(rectangle) {#crop_rectangle_29} ``` @@ -740,7 +834,7 @@ Crops the specified rectangle. **[Example # 1](#example_49)**: The following example crops a raster image. The cropping area is be specified... -### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_26} +### Method: dither(dithering_method, bits_count) {#dither_dithering_method_bits_count_30} ``` @@ -762,7 +856,7 @@ Performs dithering on the current image. **[Example # 1](#example_39)**: The following example loads a raster image and performs threshold and Floyd d... -### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_27} +### Method: dither(dithering_method, bits_count, custom_palette) {#dither_dithering_method_bits_count_custom_palette_31} ``` @@ -779,7 +873,7 @@ Performs dithering on the current image. | bits_count | int | The final bits count for dithering. | | custom_palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The custom palette for dithering. | -### Method: filter(rectangle, options) {#filter_rectangle_options_28} +### Method: filter(rectangle, options) {#filter_rectangle_options_32} ``` @@ -801,7 +895,7 @@ Filters the specified rectangle. **[Example # 1](#example_59)**: The following example applies various types of filters to a raster image. -### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_29} +### Method: get_argb_32_pixel(x, y) {#get_argb_32_pixel_x_y_33} ``` @@ -832,7 +926,7 @@ Gets an image 32-bit ARGB pixel. **[Example # 2](#example_40)**: The following example loads a raster image and obtains the color of an arbitr... -### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_30} +### Method: get_default_argb_32_pixels(rectangle) {#get_default_argb_32_pixels_rectangle_34} ``` @@ -854,7 +948,7 @@ Gets the default 32-bit ARGB pixels array. | int | The default pixels array. | -### Method: get_default_options(args) {#get_default_options_args_31} +### Method: get_default_options(args) {#get_default_options_args_35} ``` @@ -876,7 +970,7 @@ Gets the default options. | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Default options | -### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_32} +### Method: get_default_pixels(rectangle, partial_pixel_loader) {#get_default_pixels_rectangle_partial_pixel_loader_36} ``` @@ -892,7 +986,7 @@ Gets the default pixels array using partial pixel loader. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to get pixels for. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The partial pixel loader. | -### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_33} +### Method: get_default_raw_data(rectangle, partial_raw_data_loader, raw_data_settings) {#get_default_raw_data_rectangle_partial_raw_data_loader_raw_data_settings_37} ``` @@ -909,7 +1003,7 @@ Gets the default raw data array using partial pixel loader. | partial_raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The partial raw data loader. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings. | -### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_34} +### Method: get_default_raw_data(rectangle, raw_data_settings) {#get_default_raw_data_rectangle_raw_data_settings_38} ``` @@ -932,7 +1026,7 @@ Gets the default raw data array. | byte | The default raw data array. | -### Method: get_file_format(file_path) [static] {#get_file_format_file_path_35} +### Method: get_file_format(file_path) [static] {#get_file_format_file_path_39} ``` @@ -954,7 +1048,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format(stream) [static] {#get_file_format_stream_36} +### Method: get_file_format(stream) [static] {#get_file_format_stream_40} ``` @@ -976,7 +1070,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_37} +### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_41} ``` @@ -998,7 +1092,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_38} +### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_42} ``` @@ -1023,7 +1117,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_39} +### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_43} ``` @@ -1047,7 +1141,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_modify_date(use_default) {#get_modify_date_use_default_40} +### Method: get_modify_date(use_default) {#get_modify_date_use_default_44} ``` @@ -1069,7 +1163,7 @@ Gets the date and time the resource image was last modified. | datetime | The date and time the resource image was last modified. | -### Method: get_original_options() {#get_original_options__41} +### Method: get_original_options() {#get_original_options__45} ``` @@ -1085,7 +1179,7 @@ Gets the options based on the original file settings.
This can b | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options based on the original file settings. | -### Method: get_pixel(x, y) {#get_pixel_x_y_42} +### Method: get_pixel(x, y) {#get_pixel_x_y_46} ``` @@ -1114,7 +1208,7 @@ Gets an image pixel. **[Example # 1](#example_41)**: The following example loads a raster image and obtains the color of an arbitr... -### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_43} +### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_47} ``` @@ -1138,7 +1232,7 @@ Gets a proportional height. | int | The proportional height. | -### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_44} +### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_48} ``` @@ -1162,7 +1256,7 @@ Gets a proportional width. | int | The proportional width. | -### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_45} +### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_49} ``` @@ -1186,7 +1280,7 @@ Converts to aps. | _io.BufferedRandom | The serialized stream | -### Method: get_skew_angle() {#get_skew_angle__46} +### Method: get_skew_angle() {#get_skew_angle__50} ``` @@ -1202,7 +1296,7 @@ Gets the skew angle.
This method is applicable to scanned text d | float | The skew angle, in degrees. | -### Method: load(file_path) [static] {#load_file_path_47} +### Method: load(file_path) [static] {#load_file_path_51} ``` @@ -1224,7 +1318,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(file_path, load_options) [static] {#load_file_path_load_options_48} +### Method: load(file_path, load_options) [static] {#load_file_path_load_options_52} ``` @@ -1247,7 +1341,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream) [static] {#load_stream_49} +### Method: load(stream) [static] {#load_stream_53} ``` @@ -1269,7 +1363,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream, load_options) [static] {#load_stream_load_options_50} +### Method: load(stream, load_options) [static] {#load_stream_load_options_54} ``` @@ -1292,7 +1386,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_51} +### Method: load_argb_32_pixels(rectangle) {#load_argb_32_pixels_rectangle_55} ``` @@ -1320,7 +1414,7 @@ Loads 32-bit ARGB pixels. **[Example # 1](#example_43)**: The following example shows how to load and process pixels of a raster image.... -### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_52} +### Method: load_argb_64_pixels(rectangle) {#load_argb_64_pixels_rectangle_56} ``` @@ -1348,7 +1442,7 @@ Loads 64-bit ARGB pixels. **[Example # 1](#example_44)**: The following example shows how to load and process pixels of a raster image.... -### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_53} +### Method: load_cmyk_32_pixels(rectangle) {#load_cmyk_32_pixels_rectangle_57} ``` @@ -1370,7 +1464,7 @@ Loads pixels in CMYK format. | int | The loaded CMYK pixels presentes as 32-bit inateger values. | -### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_54} +### Method: load_cmyk_pixels(rectangle) {#load_cmyk_pixels_rectangle_58} ``` @@ -1392,7 +1486,7 @@ Loads pixels in CMYK format.
This method is deprecated. Please u | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The loaded CMYK pixels array. | -### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_55} +### Method: load_partial_argb_32_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_32_pixels_rectangle_partial_pixel_loader_59} ``` @@ -1408,7 +1502,7 @@ Loads 32-bit ARGB pixels partially by packs. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | partial_pixel_loader | [IPartialArgb32PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb32pixelloader) | The 32-bit ARGB pixel loader. | -### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_56} +### Method: load_partial_argb_64_pixels(rectangle, partial_pixel_loader) {#load_partial_argb_64_pixels_rectangle_partial_pixel_loader_60} ``` @@ -1424,7 +1518,7 @@ Loads 64-bit ARGB pixels partially by packs. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | partial_pixel_loader | [IPartialArgb64PixelLoader](/imaging/python-net/aspose.imaging/ipartialargb64pixelloader) | The 64-bit ARGB pixel loader. | -### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_57} +### Method: load_partial_pixels(desired_rectangle, pixel_loader) {#load_partial_pixels_desired_rectangle_pixel_loader_61} ``` @@ -1440,7 +1534,7 @@ Loads pixels partially by packs. | desired_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The desired rectangle. | | pixel_loader | [IPartialPixelLoader](/imaging/python-net/aspose.imaging/ipartialpixelloader) | The pixel loader. | -### Method: load_pixels(rectangle) {#load_pixels_rectangle_58} +### Method: load_pixels(rectangle) {#load_pixels_rectangle_62} ``` @@ -1470,7 +1564,7 @@ Loads pixels. **[Example # 2](#example_45)**: The following example shows how to load and process pixels of a raster image.... -### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_59} +### Method: load_raw_data(rectangle, dest_image_bounds, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_dest_image_bounds_raw_data_settings_raw_data_loader_63} ``` @@ -1488,7 +1582,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_60} +### Method: load_raw_data(rectangle, raw_data_settings, raw_data_loader) {#load_raw_data_rectangle_raw_data_settings_raw_data_loader_64} ``` @@ -1505,7 +1599,7 @@ Loads raw data. | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings to use for loaded data. Note if data is not in the format specified then data conversion will be performed. | | raw_data_loader | [IPartialRawDataLoader](/imaging/python-net/aspose.imaging/ipartialrawdataloader) | The raw data loader. | -### Method: load_stream(stream) [static] {#load_stream_stream_61} +### Method: load_stream(stream) [static] {#load_stream_stream_65} ``` @@ -1527,7 +1621,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_62} +### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_66} ``` @@ -1550,7 +1644,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_63} +### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_67} ``` @@ -1573,7 +1667,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_64} +### Method: normalize_angle(resize_proportionally, background_color) {#normalize_angle_resize_proportionally_background_color_68} ``` @@ -1589,7 +1683,7 @@ Normalizes the angle.
This method is applicable to scanned text | resize_proportionally | bool | if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_65} +### Method: read_argb_32_scan_line(scan_line_index) {#read_argb_32_scan_line_scan_line_index_69} ``` @@ -1611,7 +1705,7 @@ Reads the whole scan line by the specified scan line index. | int | The scan line 32-bit ARGB color values array. | -### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_66} +### Method: read_scan_line(scan_line_index) {#read_scan_line_scan_line_index_70} ``` @@ -1633,7 +1727,7 @@ Reads the whole scan line by the specified scan line index. | [Color[]](/imaging/python-net/aspose.imaging/color) | The scan line pixel color values array. | -### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_67} +### Method: replace_argb(old_color_argb, old_color_diff, new_color_argb) {#replace_argb_old_color_argb_old_color_diff_new_color_argb_71} ``` @@ -1650,7 +1744,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_68} +### Method: replace_color(old_color, old_color_diff, new_color) {#replace_color_old_color_old_color_diff_new_color_72} ``` @@ -1667,7 +1761,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | New color to replace old color with. | -### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_69} +### Method: replace_color(old_color_argb, old_color_diff, new_color_argb) {#replace_color_old_color_argb_old_color_diff_new_color_argb_73} ``` @@ -1684,7 +1778,7 @@ Replaces one color to another with allowed difference and preserves original alp | old_color_diff | byte | Allowed difference in old color to be able to widen replaced color tone. | | new_color_argb | int | New color ARGB value to replace old color with. | -### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_70} +### Method: replace_non_transparent_colors(new_color) {#replace_non_transparent_colors_new_color_74} ``` @@ -1699,7 +1793,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color | [Color](/imaging/python-net/aspose.imaging/color) | New color to replace non transparent colors with. | -### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_71} +### Method: replace_non_transparent_colors(new_color_argb) {#replace_non_transparent_colors_new_color_argb_75} ``` @@ -1714,7 +1808,7 @@ Replaces all non-transparent colors with new color and preserves original alpha | :- | :- | :- | | new_color_argb | int | New color ARGB value to replace non transparent colors with. | -### Method: resize(new_width, new_height) {#resize_new_width_new_height_72} +### Method: resize(new_width, new_height) {#resize_new_width_new_height_76} ``` @@ -1730,7 +1824,7 @@ Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/ | new_width | int | The new width. | | new_height | int | The new height. | -### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_73} +### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_77} ``` @@ -1753,7 +1847,7 @@ Resizes the image. **[Example # 1](#example_61)**: This example loads a raster image and resizes it using various resizing methods. -### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_74} +### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_78} ``` @@ -1776,14 +1870,14 @@ Resizes the image with extended options. **[Example # 1](#example_62)**: This example loads a raster image and resizes it using various resizing setti... -### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_75} +### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_79} ``` resize_by_settings(new_width, new_height, settings) ``` -Resizes the image with extended options. +Resizes the image. **Parameters:** @@ -1793,7 +1887,7 @@ Resizes the image with extended options. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_76} +### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_80} ``` @@ -1810,7 +1904,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_77} +### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_81} ``` @@ -1825,7 +1919,7 @@ Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RES | :- | :- | :- | | new_height | int | The new height. | -### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_78} +### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_82} ``` @@ -1841,7 +1935,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_79} +### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_83} ``` @@ -1857,7 +1951,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_80} +### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_84} ``` @@ -1873,7 +1967,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_81} +### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_85} ``` @@ -1888,7 +1982,7 @@ Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESA | :- | :- | :- | | new_width | int | The new width. | -### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_82} +### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_86} ``` @@ -1904,7 +1998,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_83} +### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_87} ``` @@ -1920,7 +2014,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_84} +### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_88} ``` @@ -1936,7 +2030,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: rotate(angle) {#rotate_angle_85} +### Method: rotate(angle) {#rotate_angle_89} ``` @@ -1951,7 +2045,7 @@ Rotate image around the center. | :- | :- | :- | | angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | -### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_86} +### Method: rotate(angle, resize_proportionally, background_color) {#rotate_angle_resize_proportionally_background_color_90} ``` @@ -1968,7 +2062,7 @@ Rotate image around the center. | resize_proportionally | bool | if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | | background_color | [Color](/imaging/python-net/aspose.imaging/color) | Color of the background. | -### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_87} +### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_91} ``` @@ -1983,7 +2077,7 @@ Rotates, flips, or rotates and flips the image. | :- | :- | :- | | rotate_flip_type | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | Type of the rotate flip. | -### Method: save(file_path) {#save_file_path_88} +### Method: save(file_path) {#save_file_path_92} ``` @@ -1998,7 +2092,7 @@ Saves the image to the specified file location. | :- | :- | :- | | file_path | string | The file path to save the image to. | -### Method: save(file_path, options) {#save_file_path_options_89} +### Method: save(file_path, options) {#save_file_path_options_93} ``` @@ -2014,7 +2108,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_90} +### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_94} ``` @@ -2031,7 +2125,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: save(file_path, over_write) {#save_file_path_over_write_91} +### Method: save(file_path, over_write) {#save_file_path_over_write_95} ``` @@ -2047,7 +2141,7 @@ Saves the object's data to the specified file location. | file_path | string | The file path to save the object's data to. | | over_write | bool | if set to true over write the file contents, otherwise append will occur. | -### Method: save(stream) {#save_stream_92} +### Method: save(stream) {#save_stream_96} ``` @@ -2062,7 +2156,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save(stream, options_base) {#save_stream_options_base_93} +### Method: save(stream, options_base) {#save_stream_options_base_97} ``` @@ -2078,7 +2172,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_94} +### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_98} ``` @@ -2095,7 +2189,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_95} +### Method: save_argb_32_pixels(rectangle, pixels) {#save_argb_32_pixels_rectangle_pixels_99} ``` @@ -2117,7 +2211,7 @@ Saves the 32-bit ARGB pixels. **[Example # 1](#example_46)**: The following example fills the central area of a raster image with black pix... -### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_96} +### Method: save_cmyk_32_pixels(rectangle, pixels) {#save_cmyk_32_pixels_rectangle_pixels_100} ``` @@ -2139,7 +2233,7 @@ Saves the pixels. **[Example # 1](#example_48)**: The following example fills the central area of a raster image with black pix... -### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_97} +### Method: save_cmyk_pixels(rectangle, pixels) {#save_cmyk_pixels_rectangle_pixels_101} ``` @@ -2155,7 +2249,7 @@ Saves the pixels.
This method is deprecated. Please use more eff | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle to save pixels to. | | pixels | [CmykColor[]](/imaging/python-net/aspose.imaging/cmykcolor) | The CMYK pixels array. | -### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_98} +### Method: save_pixels(rectangle, pixels) {#save_pixels_rectangle_pixels_102} ``` @@ -2179,7 +2273,7 @@ Saves the pixels. **[Example # 2](#example_47)**: The following example fills the central area of a raster image with black pix... -### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_99} +### Method: save_raw_data(data, data_offset, rectangle, raw_data_settings) {#save_raw_data_data_data_offset_rectangle_raw_data_settings_103} ``` @@ -2197,7 +2291,7 @@ Saves the raw data. | rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The raw data rectangle. | | raw_data_settings | [RawDataSettings](/imaging/python-net/aspose.imaging/rawdatasettings) | The raw data settings the data is in. | -### Method: save_to_stream(stream) {#save_to_stream_stream_100} +### Method: save_to_stream(stream) {#save_to_stream_stream_104} ``` @@ -2212,7 +2306,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_101} +### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_105} ``` @@ -2228,7 +2322,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_102} +### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_106} ``` @@ -2245,7 +2339,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_103} +### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_107} ``` @@ -2261,7 +2355,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_104} +### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_108} ``` @@ -2278,7 +2372,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_105} +### Method: set_argb_32_pixel(x, y, argb_32_color) {#set_argb_32_pixel_x_y_argb_32_color_109} ``` @@ -2301,7 +2395,7 @@ Sets an image 32-bit ARGB pixel for the specified position. **[Example # 1](#example_42)**: The following example loads a raster image, and sets the color of an arbitrar... -### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_106} +### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_110} ``` @@ -2317,7 +2411,7 @@ Sets the image palette. | palette | [IColorPalette](/imaging/python-net/aspose.imaging/icolorpalette) | The palette to set. | | update_colors | bool | if set to true colors will be updated according to the new palette; otherwise color indexes remain unchanged. Note that unchanged indexes may crash the image on loading if some indexes have no corresponding palette entries. | -### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_107} +### Method: set_pixel(x, y, color) {#set_pixel_x_y_color_111} ``` @@ -2340,7 +2434,7 @@ Sets an image pixel for the specified position. **[Example # 1](#example_42)**: The following example loads a raster image, and sets the color of an arbitrar... -### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_108} +### Method: set_resolution(dpi_x, dpi_y) {#set_resolution_dpi_x_dpi_y_112} ``` @@ -2356,7 +2450,7 @@ Sets the resolution for this [RasterImage](/imaging/python-net/aspose.imaging/ra | dpi_x | double | The horizontal resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | | dpi_y | double | The vertical resolution, in dots per inch, of the [RasterImage](/imaging/python-net/aspose.imaging/rasterimage/). | -### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_109} +### Method: write_argb_32_scan_line(scan_line_index, argb_32_pixels) {#write_argb_32_scan_line_scan_line_index_argb_32_pixels_113} ``` @@ -2372,7 +2466,7 @@ Writes the whole scan line to the specified scan line index. | scan_line_index | int | Zero based index of the scan line. | | argb_32_pixels | int | The 32-bit ARGB colors array to write. | -### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_110} +### Method: write_scan_line(scan_line_index, pixels) {#write_scan_line_scan_line_index_pixels_114} ``` diff --git a/english/python-net/aspose.imaging/vectorimage/_index.md b/english/python-net/aspose.imaging/vectorimage/_index.md index 18e482459c..1156c92328 100644 --- a/english/python-net/aspose.imaging/vectorimage/_index.md +++ b/english/python-net/aspose.imaging/vectorimage/_index.md @@ -48,61 +48,68 @@ url: /python-net/aspose.imaging/vectorimage/ | [can_load_stream_with_options(stream, load_options)](#can_load_stream_with_options_stream_load_options_6) | Determines whether image can be loaded from the specified stream and optionally using the specified _loadOptions_. | | [can_load_with_options(file_path, load_options)](#can_load_with_options_file_path_load_options_7) | Determines whether image can be loaded from the specified file path and optionally using the specified open options. | | [can_save(options)](#can_save_options_8) | Determines whether image can be saved to the specified file format represented by the passed save options. | -| [create(files)](#create_files_9) | Creates the specified files. | -| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_10) | Creates the specified files. | +| [create(files)](#create_files_9) | Creates the multipage image containing the specified files. | +| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_10) | Creates the multipage image containing the specified files. | | [create(image_options, width, height)](#create_image_options_width_height_11) | Creates a new image using the specified create options. | | [create(images)](#create_images_12) | Creates a new image using the specified images as pages | | [create(images, dispose_images)](#create_images_dispose_images_13) | Creates a new image the specified images as pages. | | [create(multipage_create_options)](#create_multipage_create_options_14) | Creates the specified multipage create options. | -| [get_default_options(args)](#get_default_options_args_15) | Gets the default options. | -| [get_embedded_images()](#get_embedded_images__16) | Gets the embedded images. | -| [get_file_format(file_path)](#get_file_format_file_path_17) | Gets the file format. | -| [get_file_format(stream)](#get_file_format_stream_18) | Gets the file format. | -| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_19) | Gets the file format. | -| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_20) | Gets rectangle which fits the current image. | -| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_21) | Gets rectangle which fits the current image. | -| [get_original_options()](#get_original_options__22) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | -| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_23) | Gets a proportional height. | -| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_24) | Gets a proportional width. | -| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_25) | Converts to aps. | -| [load(file_path)](#load_file_path_26) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(file_path, load_options)](#load_file_path_load_options_27) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(stream)](#load_stream_28) | Loads a new image from the specified stream. | -| [load(stream, load_options)](#load_stream_load_options_29) | Loads a new image from the specified stream. | -| [load_stream(stream)](#load_stream_stream_30) | Loads a new image from the specified stream. | -| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_31) | Loads a new image from the specified stream. | -| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_32) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [create_from_files(files)](#create_from_files_files_15) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_files(files, throw_exception_on_load_error)](#create_from_files_files_throw_exception_on_load_error_16) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_images(images)](#create_from_images_images_17) | Creates a new image using the specified images as pages | +| [create_from_images(images, dispose_images)](#create_from_images_images_dispose_images_18) | Creates a new image the specified images as pages. | +| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_19) | Crop image with shifts. | +| [crop(rectangle)](#crop_rectangle_20) | Crops the specified rectangle. | +| [get_default_options(args)](#get_default_options_args_21) | Gets the default options. | +| [get_embedded_images()](#get_embedded_images__22) | Gets the embedded images. | +| [get_file_format(file_path)](#get_file_format_file_path_23) | Gets the file format. | +| [get_file_format(stream)](#get_file_format_stream_24) | Gets the file format. | +| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_25) | Gets the file format. | +| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_26) | Gets rectangle which fits the current image. | +| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_27) | Gets rectangle which fits the current image. | +| [get_original_options()](#get_original_options__28) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | +| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_29) | Gets a proportional height. | +| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_30) | Gets a proportional width. | +| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_31) | Converts to aps. | +| [load(file_path)](#load_file_path_32) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path, load_options)](#load_file_path_load_options_33) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(stream)](#load_stream_34) | Loads a new image from the specified stream. | +| [load(stream, load_options)](#load_stream_load_options_35) | Loads a new image from the specified stream. | +| [load_stream(stream)](#load_stream_stream_36) | Loads a new image from the specified stream. | +| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_37) | Loads a new image from the specified stream. | +| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_38) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | | remove_background() | Removes the background. | -| [remove_background(settings)](#remove_background_settings_33) | Removes the background. | +| [remove_background(settings)](#remove_background_settings_39) | Removes the background. | | remove_metadata() | Removes metadata. | -| [resize(new_width, new_height)](#resize_new_width_new_height_34) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_35) | Resizes the image. | -| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_36) | Resizes the image. | -| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_37) | Resizes the image. | -| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_38) | Resizes the image. | -| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_39) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_40) | Resizes the height proportionally. | -| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_41) | Resizes the height proportionally. | -| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_42) | Resizes the height proportionally. | -| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_43) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_44) | Resizes the width proportionally. | -| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_45) | Resizes the width proportionally. | -| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_46) | Resizes the width proportionally. | -| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_47) | Rotates, flips, or rotates and flips the image. | +| [resize(new_width, new_height)](#resize_new_width_new_height_40) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_41) | Resizes the specified new width. | +| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_42) | Resizes the image with extended options. | +| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_43) | Resizes the image. | +| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_44) | Resizes the image. | +| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_45) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_46) | Resizes the height proportionally. | +| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_47) | Resizes the height proportionally. | +| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_48) | Resizes the height proportionally. | +| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_49) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_50) | Resizes the width proportionally. | +| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_51) | Resizes the width proportionally. | +| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_52) | Resizes the width proportionally. | +| [rotate(angle)](#rotate_angle_53) | Rotate image around the center. | +| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_54) | Rotates, flips, or rotates and flips the image. | | save() | Saves the image data to the underlying stream. | -| [save(file_path)](#save_file_path_48) | Saves the image to the specified file location. | -| [save(file_path, options)](#save_file_path_options_49) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_50) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, over_write)](#save_file_path_over_write_51) | Saves the object's data to the specified file location. | -| [save(stream)](#save_stream_52) | Saves the object's data to the specified stream. | -| [save(stream, options_base)](#save_stream_options_base_53) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_54) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream(stream)](#save_to_stream_stream_55) | Saves the object's data to the specified stream. | -| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_56) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_57) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_with_options(file_path, options)](#save_with_options_file_path_options_58) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_59) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_60) | Sets the image palette. | +| [save(file_path)](#save_file_path_55) | Saves the image to the specified file location. | +| [save(file_path, options)](#save_file_path_options_56) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_57) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, over_write)](#save_file_path_over_write_58) | Saves the object's data to the specified file location. | +| [save(stream)](#save_stream_59) | Saves the object's data to the specified stream. | +| [save(stream, options_base)](#save_stream_options_base_60) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_61) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream(stream)](#save_to_stream_stream_62) | Saves the object's data to the specified stream. | +| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_63) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_64) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_with_options(file_path, options)](#save_with_options_file_path_options_65) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_66) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_67) | Sets the image palette. | ### Method: can_load(file_path) [static] {#can_load_file_path_1} @@ -292,7 +299,7 @@ Determines whether image can be saved to the specified file format represented b create(files) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -314,7 +321,7 @@ Creates the specified files. create(files, throw_exception_on_load_error) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -421,7 +428,130 @@ Creates the specified multipage create options. | [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | -### Method: get_default_options(args) {#get_default_options_args_15} +### Method: create_from_files(files) [static] {#create_from_files_files_15} + + +``` + create_from_files(files) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_files(files, throw_exception_on_load_error) [static] {#create_from_files_files_throw_exception_on_load_error_16} + + +``` + create_from_files(files, throw_exception_on_load_error) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | +| throw_exception_on_load_error | bool | if set to true throw exception on load error. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_images(images) [static] {#create_from_images_images_17} + + +``` + create_from_images(images) +``` + +Creates a new image using the specified images as pages + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_images(images, dispose_images) [static] {#create_from_images_images_dispose_images_18} + + +``` + create_from_images(images, dispose_images) +``` + +Creates a new image the specified images as pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | +| dispose_images | bool | if set to true [dispose images]. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_19} + + +``` + crop(left_shift, right_shift, top_shift, bottom_shift) +``` + +Crop image with shifts. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| left_shift | int | The left shift. | +| right_shift | int | The right shift. | +| top_shift | int | The top shift. | +| bottom_shift | int | The bottom shift. | + +### Method: crop(rectangle) {#crop_rectangle_20} + + +``` + crop(rectangle) +``` + +Crops the specified rectangle. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | + +### Method: get_default_options(args) {#get_default_options_args_21} ``` @@ -443,7 +573,7 @@ Gets the default options. | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Default options | -### Method: get_embedded_images() {#get_embedded_images__16} +### Method: get_embedded_images() {#get_embedded_images__22} ``` @@ -465,7 +595,7 @@ Gets the embedded images. **[Example # 1](#example_163)**: Support extracting embedded raster images from a vector image -### Method: get_file_format(file_path) [static] {#get_file_format_file_path_17} +### Method: get_file_format(file_path) [static] {#get_file_format_file_path_23} ``` @@ -487,7 +617,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format(stream) [static] {#get_file_format_stream_18} +### Method: get_file_format(stream) [static] {#get_file_format_stream_24} ``` @@ -509,7 +639,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_19} +### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_25} ``` @@ -531,7 +661,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_20} +### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_26} ``` @@ -556,7 +686,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_21} +### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_27} ``` @@ -580,7 +710,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_original_options() {#get_original_options__22} +### Method: get_original_options() {#get_original_options__28} ``` @@ -596,7 +726,7 @@ Gets the options based on the original file settings.
This can b | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options based on the original file settings. | -### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_23} +### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_29} ``` @@ -620,7 +750,7 @@ Gets a proportional height. | int | The proportional height. | -### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_24} +### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_30} ``` @@ -644,7 +774,7 @@ Gets a proportional width. | int | The proportional width. | -### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_25} +### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_31} ``` @@ -668,7 +798,7 @@ Converts to aps. | _io.BufferedRandom | The serialized stream | -### Method: load(file_path) [static] {#load_file_path_26} +### Method: load(file_path) [static] {#load_file_path_32} ``` @@ -690,7 +820,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(file_path, load_options) [static] {#load_file_path_load_options_27} +### Method: load(file_path, load_options) [static] {#load_file_path_load_options_33} ``` @@ -713,7 +843,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream) [static] {#load_stream_28} +### Method: load(stream) [static] {#load_stream_34} ``` @@ -735,7 +865,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream, load_options) [static] {#load_stream_load_options_29} +### Method: load(stream, load_options) [static] {#load_stream_load_options_35} ``` @@ -758,7 +888,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream(stream) [static] {#load_stream_stream_30} +### Method: load_stream(stream) [static] {#load_stream_stream_36} ``` @@ -780,7 +910,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_31} +### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_37} ``` @@ -803,7 +933,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_32} +### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_38} ``` @@ -826,7 +956,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: remove_background(settings) {#remove_background_settings_33} +### Method: remove_background(settings) {#remove_background_settings_39} ``` @@ -841,7 +971,7 @@ Removes the background. | :- | :- | :- | | settings | [RemoveBackgroundSettings](/imaging/python-net/aspose.imaging/removebackgroundsettings) | The settings. | -### Method: resize(new_width, new_height) {#resize_new_width_new_height_34} +### Method: resize(new_width, new_height) {#resize_new_width_new_height_40} ``` @@ -857,14 +987,14 @@ Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/ | new_width | int | The new width. | | new_height | int | The new height. | -### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_35} +### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_41} ``` resize(new_width, new_height, resize_type) ``` -Resizes the image. +Resizes the specified new width. **Parameters:** @@ -872,16 +1002,16 @@ Resizes the image. | :- | :- | :- | | new_width | int | The new width. | | new_height | int | The new height. | -| resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | +| resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_36} +### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_42} ``` resize(new_width, new_height, settings) ``` -Resizes the image. +Resizes the image with extended options. **Parameters:** @@ -891,7 +1021,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_37} +### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_43} ``` @@ -908,7 +1038,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_38} +### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_44} ``` @@ -925,7 +1055,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_39} +### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_45} ``` @@ -940,7 +1070,7 @@ Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RES | :- | :- | :- | | new_height | int | The new height. | -### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_40} +### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_46} ``` @@ -956,7 +1086,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_41} +### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_47} ``` @@ -972,7 +1102,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_42} +### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_48} ``` @@ -988,7 +1118,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_43} +### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_49} ``` @@ -1003,7 +1133,7 @@ Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESA | :- | :- | :- | | new_width | int | The new width. | -### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_44} +### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_50} ``` @@ -1019,7 +1149,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_45} +### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_51} ``` @@ -1035,7 +1165,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_46} +### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_52} ``` @@ -1051,7 +1181,22 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_47} +### Method: rotate(angle) {#rotate_angle_53} + + +``` + rotate(angle) +``` + +Rotate image around the center. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | + +### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_54} ``` @@ -1066,7 +1211,7 @@ Rotates, flips, or rotates and flips the image. | :- | :- | :- | | rotate_flip_type | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | Type of the rotate flip. | -### Method: save(file_path) {#save_file_path_48} +### Method: save(file_path) {#save_file_path_55} ``` @@ -1081,7 +1226,7 @@ Saves the image to the specified file location. | :- | :- | :- | | file_path | string | The file path to save the image to. | -### Method: save(file_path, options) {#save_file_path_options_49} +### Method: save(file_path, options) {#save_file_path_options_56} ``` @@ -1097,7 +1242,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_50} +### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_57} ``` @@ -1114,7 +1259,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: save(file_path, over_write) {#save_file_path_over_write_51} +### Method: save(file_path, over_write) {#save_file_path_over_write_58} ``` @@ -1130,7 +1275,7 @@ Saves the object's data to the specified file location. | file_path | string | The file path to save the object's data to. | | over_write | bool | if set to true over write the file contents, otherwise append will occur. | -### Method: save(stream) {#save_stream_52} +### Method: save(stream) {#save_stream_59} ``` @@ -1145,7 +1290,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save(stream, options_base) {#save_stream_options_base_53} +### Method: save(stream, options_base) {#save_stream_options_base_60} ``` @@ -1161,7 +1306,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_54} +### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_61} ``` @@ -1178,7 +1323,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_to_stream(stream) {#save_to_stream_stream_55} +### Method: save_to_stream(stream) {#save_to_stream_stream_62} ``` @@ -1193,7 +1338,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_56} +### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_63} ``` @@ -1209,7 +1354,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_57} +### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_64} ``` @@ -1226,7 +1371,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_58} +### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_65} ``` @@ -1242,7 +1387,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_59} +### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_66} ``` @@ -1259,7 +1404,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_60} +### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_67} ``` diff --git a/english/python-net/aspose.imaging/vectormultipageimage/_index.md b/english/python-net/aspose.imaging/vectormultipageimage/_index.md index 0680a3036d..d743dcbddb 100644 --- a/english/python-net/aspose.imaging/vectormultipageimage/_index.md +++ b/english/python-net/aspose.imaging/vectormultipageimage/_index.md @@ -51,61 +51,68 @@ url: /python-net/aspose.imaging/vectormultipageimage/ | [can_load_stream_with_options(stream, load_options)](#can_load_stream_with_options_stream_load_options_6) | Determines whether image can be loaded from the specified stream and optionally using the specified _loadOptions_. | | [can_load_with_options(file_path, load_options)](#can_load_with_options_file_path_load_options_7) | Determines whether image can be loaded from the specified file path and optionally using the specified open options. | | [can_save(options)](#can_save_options_8) | Determines whether image can be saved to the specified file format represented by the passed save options. | -| [create(files)](#create_files_9) | Creates the specified files. | -| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_10) | Creates the specified files. | +| [create(files)](#create_files_9) | Creates the multipage image containing the specified files. | +| [create(files, throw_exception_on_load_error)](#create_files_throw_exception_on_load_error_10) | Creates the multipage image containing the specified files. | | [create(image_options, width, height)](#create_image_options_width_height_11) | Creates a new image using the specified create options. | | [create(images)](#create_images_12) | Creates a new image using the specified images as pages | | [create(images, dispose_images)](#create_images_dispose_images_13) | Creates a new image the specified images as pages. | | [create(multipage_create_options)](#create_multipage_create_options_14) | Creates the specified multipage create options. | -| [get_default_options(args)](#get_default_options_args_15) | Gets the default options. | -| [get_embedded_images()](#get_embedded_images__16) | Gets the embedded images. | -| [get_file_format(file_path)](#get_file_format_file_path_17) | Gets the file format. | -| [get_file_format(stream)](#get_file_format_stream_18) | Gets the file format. | -| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_19) | Gets the file format. | -| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_20) | Gets rectangle which fits the current image. | -| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_21) | Gets rectangle which fits the current image. | -| [get_original_options()](#get_original_options__22) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | -| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_23) | Gets a proportional height. | -| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_24) | Gets a proportional width. | -| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_25) | Converts to aps. | -| [load(file_path)](#load_file_path_26) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(file_path, load_options)](#load_file_path_load_options_27) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | -| [load(stream)](#load_stream_28) | Loads a new image from the specified stream. | -| [load(stream, load_options)](#load_stream_load_options_29) | Loads a new image from the specified stream. | -| [load_stream(stream)](#load_stream_stream_30) | Loads a new image from the specified stream. | -| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_31) | Loads a new image from the specified stream. | -| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_32) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [create_from_files(files)](#create_from_files_files_15) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_files(files, throw_exception_on_load_error)](#create_from_files_files_throw_exception_on_load_error_16) | Creates the multipage image containing the specified files as lazy loading pages. | +| [create_from_images(images)](#create_from_images_images_17) | Creates a new image using the specified images as pages | +| [create_from_images(images, dispose_images)](#create_from_images_images_dispose_images_18) | Creates a new image the specified images as pages. | +| [crop(left_shift, right_shift, top_shift, bottom_shift)](#crop_left_shift_right_shift_top_shift_bottom_shift_19) | Crop image with shifts. | +| [crop(rectangle)](#crop_rectangle_20) | Crops the specified rectangle. | +| [get_default_options(args)](#get_default_options_args_21) | Gets the default options. | +| [get_embedded_images()](#get_embedded_images__22) | Gets the embedded images. | +| [get_file_format(file_path)](#get_file_format_file_path_23) | Gets the file format. | +| [get_file_format(stream)](#get_file_format_stream_24) | Gets the file format. | +| [get_file_format_of_stream(stream)](#get_file_format_of_stream_stream_25) | Gets the file format. | +| [get_fitting_rectangle(rectangle, pixels, width, height)](#get_fitting_rectangle_rectangle_pixels_width_height_26) | Gets rectangle which fits the current image. | +| [get_fitting_rectangle(rectangle, width, height)](#get_fitting_rectangle_rectangle_width_height_27) | Gets rectangle which fits the current image. | +| [get_original_options()](#get_original_options__28) | Gets the options based on the original file settings.
This can be helpful to keep bit-depth and other parameters of the original image unchanged.
For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the
[DataStreamSupporter.save(file_path)](/imaging/python-net/aspose.imaging/datastreamsupporter/) method, the output PNG image with 8-bit per pixel will be produced.
To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them
to the [Image.save(file_path, options)](/imaging/python-net/aspose.imaging/image/) method as the second parameter. | +| [get_proportional_height(width, height, new_width)](#get_proportional_height_width_height_new_width_29) | Gets a proportional height. | +| [get_proportional_width(width, height, new_height)](#get_proportional_width_width_height_new_height_30) | Gets a proportional width. | +| [get_serialized_stream(image_options, clipping_rectangle, page_number)](#get_serialized_stream_image_options_clipping_rectangle_page_number_31) | Converts to aps. | +| [load(file_path)](#load_file_path_32) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(file_path, load_options)](#load_file_path_load_options_33) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | +| [load(stream)](#load_stream_34) | Loads a new image from the specified stream. | +| [load(stream, load_options)](#load_stream_load_options_35) | Loads a new image from the specified stream. | +| [load_stream(stream)](#load_stream_stream_36) | Loads a new image from the specified stream. | +| [load_stream_with_options(stream, load_options)](#load_stream_with_options_stream_load_options_37) | Loads a new image from the specified stream. | +| [load_with_options(file_path, load_options)](#load_with_options_file_path_load_options_38) | Loads a new image from the specified file path or URL.
If _filePath_ is a file path the method just opens the file.
If _filePath_ is an URL, the method downloads the file, stores it as a temporary one, and opens it. | | remove_background() | Removes the background. | -| [remove_background(settings)](#remove_background_settings_33) | Removes the background. | +| [remove_background(settings)](#remove_background_settings_39) | Removes the background. | | remove_metadata() | Removes metadata. | -| [resize(new_width, new_height)](#resize_new_width_new_height_34) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_35) | Resizes the image. | -| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_36) | Resizes the image. | -| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_37) | Resizes the image. | -| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_38) | Resizes the image. | -| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_39) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_40) | Resizes the height proportionally. | -| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_41) | Resizes the height proportionally. | -| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_42) | Resizes the height proportionally. | -| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_43) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | -| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_44) | Resizes the width proportionally. | -| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_45) | Resizes the width proportionally. | -| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_46) | Resizes the width proportionally. | -| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_47) | Rotates, flips, or rotates and flips the image. | +| [resize(new_width, new_height)](#resize_new_width_new_height_40) | Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize(new_width, new_height, resize_type)](#resize_new_width_new_height_resize_type_41) | Resizes the image. | +| [resize(new_width, new_height, settings)](#resize_new_width_new_height_settings_42) | Resizes the image. | +| [resize_by_settings(new_width, new_height, settings)](#resize_by_settings_new_width_new_height_settings_43) | Resizes the image. | +| [resize_by_type(new_width, new_height, resize_type)](#resize_by_type_new_width_new_height_resize_type_44) | Resizes the image. | +| [resize_height_proportionally(new_height)](#resize_height_proportionally_new_height_45) | Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_height_proportionally(new_height, resize_type)](#resize_height_proportionally_new_height_resize_type_46) | Resizes the height proportionally. | +| [resize_height_proportionally(new_height, settings)](#resize_height_proportionally_new_height_settings_47) | Resizes the height proportionally. | +| [resize_height_proportionally_settings(new_height, settings)](#resize_height_proportionally_settings_new_height_settings_48) | Resizes the height proportionally. | +| [resize_width_proportionally(new_width)](#resize_width_proportionally_new_width_49) | Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/python-net/aspose.imaging/resizetype/) is used. | +| [resize_width_proportionally(new_width, resize_type)](#resize_width_proportionally_new_width_resize_type_50) | Resizes the width proportionally. | +| [resize_width_proportionally(new_width, settings)](#resize_width_proportionally_new_width_settings_51) | Resizes the width proportionally. | +| [resize_width_proportionally_settings(new_width, settings)](#resize_width_proportionally_settings_new_width_settings_52) | Resizes the width proportionally. | +| [rotate(angle)](#rotate_angle_53) | Rotate image around the center. | +| [rotate_flip(rotate_flip_type)](#rotate_flip_rotate_flip_type_54) | Rotates, flips, or rotates and flips the image. | | save() | Saves the image data to the underlying stream. | -| [save(file_path)](#save_file_path_48) | Saves the image to the specified file location. | -| [save(file_path, options)](#save_file_path_options_49) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_50) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save(file_path, over_write)](#save_file_path_over_write_51) | Saves the object's data to the specified file location. | -| [save(stream)](#save_stream_52) | Saves the data. | -| [save(stream, options_base)](#save_stream_options_base_53) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_54) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream(stream)](#save_to_stream_stream_55) | Saves the object's data to the specified stream. | -| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_56) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_57) | Saves the image's data to the specified stream in the specified file format according to save options. | -| [save_with_options(file_path, options)](#save_with_options_file_path_options_58) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_59) | Saves the object's data to the specified file location in the specified file format according to save options. | -| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_60) | Sets the image palette. | +| [save(file_path)](#save_file_path_55) | Saves the image to the specified file location. | +| [save(file_path, options)](#save_file_path_options_56) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, options, bounds_rectangle)](#save_file_path_options_bounds_rectangle_57) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save(file_path, over_write)](#save_file_path_over_write_58) | Saves the object's data to the specified file location. | +| [save(stream)](#save_stream_59) | Saves the data. | +| [save(stream, options_base)](#save_stream_options_base_60) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save(stream, options_base, bounds_rectangle)](#save_stream_options_base_bounds_rectangle_61) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream(stream)](#save_to_stream_stream_62) | Saves the object's data to the specified stream. | +| [save_to_stream_with_options(stream, options_base)](#save_to_stream_with_options_stream_options_base_63) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_to_stream_with_options_rect(stream, options_base, bounds_rectangle)](#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_64) | Saves the image's data to the specified stream in the specified file format according to save options. | +| [save_with_options(file_path, options)](#save_with_options_file_path_options_65) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [save_with_options_rect(file_path, options, bounds_rectangle)](#save_with_options_rect_file_path_options_bounds_rectangle_66) | Saves the object's data to the specified file location in the specified file format according to save options. | +| [set_palette(palette, update_colors)](#set_palette_palette_update_colors_67) | Sets the image palette. | ### Method: can_load(file_path) [static] {#can_load_file_path_1} @@ -295,7 +302,7 @@ Determines whether image can be saved to the specified file format represented b create(files) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -317,7 +324,7 @@ Creates the specified files. create(files, throw_exception_on_load_error) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** @@ -424,7 +431,130 @@ Creates the specified multipage create options. | [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | -### Method: get_default_options(args) {#get_default_options_args_15} +### Method: create_from_files(files) [static] {#create_from_files_files_15} + + +``` + create_from_files(files) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_files(files, throw_exception_on_load_error) [static] {#create_from_files_files_throw_exception_on_load_error_16} + + +``` + create_from_files(files, throw_exception_on_load_error) +``` + +Creates the multipage image containing the specified files as lazy loading pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| files | string | The files. | +| throw_exception_on_load_error | bool | if set to true throw exception on load error. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The multipage image | + + +### Method: create_from_images(images) [static] {#create_from_images_images_17} + + +``` + create_from_images(images) +``` + +Creates a new image using the specified images as pages + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: create_from_images(images, dispose_images) [static] {#create_from_images_images_dispose_images_18} + + +``` + create_from_images(images, dispose_images) +``` + +Creates a new image the specified images as pages. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| images | [Image[]](/imaging/python-net/aspose.imaging/image) | The images. | +| dispose_images | bool | if set to true [dispose images]. | + +**Returns** + +| Type | Description | +| :- | :- | +| [Image](/imaging/python-net/aspose.imaging/image) | The Image as IMultipageImage | + + +### Method: crop(left_shift, right_shift, top_shift, bottom_shift) {#crop_left_shift_right_shift_top_shift_bottom_shift_19} + + +``` + crop(left_shift, right_shift, top_shift, bottom_shift) +``` + +Crop image with shifts. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| left_shift | int | The left shift. | +| right_shift | int | The right shift. | +| top_shift | int | The top shift. | +| bottom_shift | int | The bottom shift. | + +### Method: crop(rectangle) {#crop_rectangle_20} + + +``` + crop(rectangle) +``` + +Crops the specified rectangle. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The rectangle. | + +### Method: get_default_options(args) {#get_default_options_args_21} ``` @@ -446,7 +576,7 @@ Gets the default options. | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | Default options | -### Method: get_embedded_images() {#get_embedded_images__16} +### Method: get_embedded_images() {#get_embedded_images__22} ``` @@ -462,7 +592,7 @@ Gets the embedded images. | [EmbeddedImage[]](/imaging/python-net/aspose.imaging/embeddedimage) | Array of images | -### Method: get_file_format(file_path) [static] {#get_file_format_file_path_17} +### Method: get_file_format(file_path) [static] {#get_file_format_file_path_23} ``` @@ -484,7 +614,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format(stream) [static] {#get_file_format_stream_18} +### Method: get_file_format(stream) [static] {#get_file_format_stream_24} ``` @@ -506,7 +636,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_19} +### Method: get_file_format_of_stream(stream) [static] {#get_file_format_of_stream_stream_25} ``` @@ -528,7 +658,7 @@ Gets the file format. | [FileFormat](/imaging/python-net/aspose.imaging/fileformat) | The determined file format. | -### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_20} +### Method: get_fitting_rectangle(rectangle, pixels, width, height) [static] {#get_fitting_rectangle_rectangle_pixels_width_height_26} ``` @@ -553,7 +683,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_21} +### Method: get_fitting_rectangle(rectangle, width, height) [static] {#get_fitting_rectangle_rectangle_width_height_27} ``` @@ -577,7 +707,7 @@ Gets rectangle which fits the current image. | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The fitting rectangle or exception if no fitting rectangle can be found. | -### Method: get_original_options() {#get_original_options__22} +### Method: get_original_options() {#get_original_options__28} ``` @@ -593,7 +723,7 @@ Gets the options based on the original file settings.
This can b | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options based on the original file settings. | -### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_23} +### Method: get_proportional_height(width, height, new_width) [static] {#get_proportional_height_width_height_new_width_29} ``` @@ -617,7 +747,7 @@ Gets a proportional height. | int | The proportional height. | -### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_24} +### Method: get_proportional_width(width, height, new_height) [static] {#get_proportional_width_width_height_new_height_30} ``` @@ -641,7 +771,7 @@ Gets a proportional width. | int | The proportional width. | -### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_25} +### Method: get_serialized_stream(image_options, clipping_rectangle, page_number) {#get_serialized_stream_image_options_clipping_rectangle_page_number_31} ``` @@ -665,7 +795,7 @@ Converts to aps. | _io.BufferedRandom | The serialized stream | -### Method: load(file_path) [static] {#load_file_path_26} +### Method: load(file_path) [static] {#load_file_path_32} ``` @@ -687,7 +817,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(file_path, load_options) [static] {#load_file_path_load_options_27} +### Method: load(file_path, load_options) [static] {#load_file_path_load_options_33} ``` @@ -710,7 +840,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream) [static] {#load_stream_28} +### Method: load(stream) [static] {#load_stream_34} ``` @@ -732,7 +862,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load(stream, load_options) [static] {#load_stream_load_options_29} +### Method: load(stream, load_options) [static] {#load_stream_load_options_35} ``` @@ -755,7 +885,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream(stream) [static] {#load_stream_stream_30} +### Method: load_stream(stream) [static] {#load_stream_stream_36} ``` @@ -777,7 +907,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_31} +### Method: load_stream_with_options(stream, load_options) [static] {#load_stream_with_options_stream_load_options_37} ``` @@ -800,7 +930,7 @@ Loads a new image from the specified stream. | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_32} +### Method: load_with_options(file_path, load_options) [static] {#load_with_options_file_path_load_options_38} ``` @@ -823,7 +953,7 @@ Loads a new image from the specified file path or URL.
If _fileP | [Image](/imaging/python-net/aspose.imaging/image) | The loaded image. | -### Method: remove_background(settings) {#remove_background_settings_33} +### Method: remove_background(settings) {#remove_background_settings_39} ``` @@ -838,7 +968,7 @@ Removes the background. | :- | :- | :- | | settings | [RemoveBackgroundSettings](/imaging/python-net/aspose.imaging/removebackgroundsettings) | The settings. | -### Method: resize(new_width, new_height) {#resize_new_width_new_height_34} +### Method: resize(new_width, new_height) {#resize_new_width_new_height_40} ``` @@ -854,7 +984,7 @@ Resizes the image. The default [ResizeType.NEAREST_NEIGHBOUR_RESAMPLE](/imaging/ | new_width | int | The new width. | | new_height | int | The new height. | -### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_35} +### Method: resize(new_width, new_height, resize_type) {#resize_new_width_new_height_resize_type_41} ``` @@ -871,7 +1001,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_36} +### Method: resize(new_width, new_height, settings) {#resize_new_width_new_height_settings_42} ``` @@ -888,7 +1018,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_37} +### Method: resize_by_settings(new_width, new_height, settings) {#resize_by_settings_new_width_new_height_settings_43} ``` @@ -905,7 +1035,7 @@ Resizes the image. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The resize settings. | -### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_38} +### Method: resize_by_type(new_width, new_height, resize_type) {#resize_by_type_new_width_new_height_resize_type_44} ``` @@ -922,7 +1052,7 @@ Resizes the image. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | The resize type. | -### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_39} +### Method: resize_height_proportionally(new_height) {#resize_height_proportionally_new_height_45} ``` @@ -937,7 +1067,7 @@ Resizes the height proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RES | :- | :- | :- | | new_height | int | The new height. | -### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_40} +### Method: resize_height_proportionally(new_height, resize_type) {#resize_height_proportionally_new_height_resize_type_46} ``` @@ -953,7 +1083,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_41} +### Method: resize_height_proportionally(new_height, settings) {#resize_height_proportionally_new_height_settings_47} ``` @@ -969,7 +1099,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_42} +### Method: resize_height_proportionally_settings(new_height, settings) {#resize_height_proportionally_settings_new_height_settings_48} ``` @@ -985,7 +1115,7 @@ Resizes the height proportionally. | new_height | int | The new height. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_43} +### Method: resize_width_proportionally(new_width) {#resize_width_proportionally_new_width_49} ``` @@ -1000,7 +1130,7 @@ Resizes the width proportionally. The default [ResizeType.NEAREST_NEIGHBOUR_RESA | :- | :- | :- | | new_width | int | The new width. | -### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_44} +### Method: resize_width_proportionally(new_width, resize_type) {#resize_width_proportionally_new_width_resize_type_50} ``` @@ -1016,7 +1146,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | resize_type | [ResizeType](/imaging/python-net/aspose.imaging/resizetype) | Type of the resize. | -### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_45} +### Method: resize_width_proportionally(new_width, settings) {#resize_width_proportionally_new_width_settings_51} ``` @@ -1032,7 +1162,7 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_46} +### Method: resize_width_proportionally_settings(new_width, settings) {#resize_width_proportionally_settings_new_width_settings_52} ``` @@ -1048,7 +1178,22 @@ Resizes the width proportionally. | new_width | int | The new width. | | settings | [ImageResizeSettings](/imaging/python-net/aspose.imaging/imageresizesettings) | The image resize settings. | -### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_47} +### Method: rotate(angle) {#rotate_angle_53} + + +``` + rotate(angle) +``` + +Rotate image around the center. + +**Parameters:** + +| Parameter | Type | Description | +| :- | :- | :- | +| angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | + +### Method: rotate_flip(rotate_flip_type) {#rotate_flip_rotate_flip_type_54} ``` @@ -1063,7 +1208,7 @@ Rotates, flips, or rotates and flips the image. | :- | :- | :- | | rotate_flip_type | [RotateFlipType](/imaging/python-net/aspose.imaging/rotatefliptype) | Type of the rotate flip. | -### Method: save(file_path) {#save_file_path_48} +### Method: save(file_path) {#save_file_path_55} ``` @@ -1078,7 +1223,7 @@ Saves the image to the specified file location. | :- | :- | :- | | file_path | string | The file path to save the image to. | -### Method: save(file_path, options) {#save_file_path_options_49} +### Method: save(file_path, options) {#save_file_path_options_56} ``` @@ -1094,7 +1239,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_50} +### Method: save(file_path, options, bounds_rectangle) {#save_file_path_options_bounds_rectangle_57} ``` @@ -1111,7 +1256,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: save(file_path, over_write) {#save_file_path_over_write_51} +### Method: save(file_path, over_write) {#save_file_path_over_write_58} ``` @@ -1127,7 +1272,7 @@ Saves the object's data to the specified file location. | file_path | string | The file path to save the object's data to. | | over_write | bool | if set to true over write the file contents, otherwise append will occur. | -### Method: save(stream) {#save_stream_52} +### Method: save(stream) {#save_stream_59} ``` @@ -1142,7 +1287,7 @@ Saves the data. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save data to. | -### Method: save(stream, options_base) {#save_stream_options_base_53} +### Method: save(stream, options_base) {#save_stream_options_base_60} ``` @@ -1158,7 +1303,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_54} +### Method: save(stream, options_base, bounds_rectangle) {#save_stream_options_base_bounds_rectangle_61} ``` @@ -1175,7 +1320,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_to_stream(stream) {#save_to_stream_stream_55} +### Method: save_to_stream(stream) {#save_to_stream_stream_62} ``` @@ -1190,7 +1335,7 @@ Saves the object's data to the specified stream. | :- | :- | :- | | stream | _io.BufferedRandom | The stream to save the object's data to. | -### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_56} +### Method: save_to_stream_with_options(stream, options_base) {#save_to_stream_with_options_stream_options_base_63} ``` @@ -1206,7 +1351,7 @@ Saves the image's data to the specified stream in the specified file format acco | stream | _io.BufferedRandom | The stream to save the image's data to. | | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | -### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_57} +### Method: save_to_stream_with_options_rect(stream, options_base, bounds_rectangle) {#save_to_stream_with_options_rect_stream_options_base_bounds_rectangle_64} ``` @@ -1223,7 +1368,7 @@ Saves the image's data to the specified stream in the specified file format acco | options_base | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The save options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use source bounds. | -### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_58} +### Method: save_with_options(file_path, options) {#save_with_options_file_path_options_65} ``` @@ -1239,7 +1384,7 @@ Saves the object's data to the specified file location in the specified file for | file_path | string | The file path. | | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | -### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_59} +### Method: save_with_options_rect(file_path, options, bounds_rectangle) {#save_with_options_rect_file_path_options_bounds_rectangle_66} ``` @@ -1256,7 +1401,7 @@ Saves the object's data to the specified file location in the specified file for | options | [ImageOptionsBase](/imaging/python-net/aspose.imaging/imageoptionsbase) | The options. | | bounds_rectangle | [Rectangle](/imaging/python-net/aspose.imaging/rectangle) | The destination image bounds rectangle. Set the empty rectangle for use sourse bounds. | -### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_60} +### Method: set_palette(palette, update_colors) {#set_palette_palette_update_colors_67} ``` From 10133f5e5eeee64b46305082297bf675e7ec4541 Mon Sep 17 00:00:00 2001 From: Samer El-Khatib Date: Tue, 3 Dec 2024 10:59:09 +0300 Subject: [PATCH 2/2] Release 24.12 - Update net and java apireference --- .../cdrimage/_index.md | 94 ++---- .../cdrimagepage/_index.md | 68 ---- .../cmximage/_index.md | 46 --- .../cmximagepage/_index.md | 56 ++-- .../emfimage/_index.md | 92 +----- .../metaimage/_index.md | 31 -- .../epsimage/_index.md | 102 +----- .../odgimage/_index.md | 46 --- .../odimage/_index.md | 68 ---- .../svgimage/_index.md | 44 +-- .../wmfimage/_index.md | 115 +------ .../vectorrasterizationoptions/_index.md | 2 +- english/java/com.aspose.imaging/_index.md | 1 - .../customfontsource/_index.md | 2 +- .../iadvancedbufferprocessor/_index.md | 2 +- .../ianimationframe/_index.md | 2 +- .../ibufferprocessor/_index.md | 2 +- .../icolorconverter/_index.md | 2 +- .../icolorpalette/_index.md | 2 +- .../com.aspose.imaging/ihasmetadata/_index.md | 2 +- .../iimagecreator/_index.md | 2 +- .../iimagecreatordescriptor/_index.md | 2 +- .../iimagedescriptor/_index.md | 2 +- .../iimageexporter/_index.md | 2 +- .../iimageexporterdescriptor/_index.md | 2 +- .../com.aspose.imaging/iimageloader/_index.md | 2 +- .../iimageloaderdescriptor/_index.md | 2 +- .../iindexedcolorconverter/_index.md | 2 +- .../com.aspose.imaging/ikeyedobject/_index.md | 2 +- .../java/com.aspose.imaging/image/_index.md | 55 +++- .../imageresizesettings/_index.md | 2 +- .../imultipageimage/_index.md | 2 +- .../imultipageimageext/_index.md | 2 +- .../interpolationmode/_index.md | 2 +- .../com.aspose.imaging/intrange/_index.md | 2 +- .../iobjectwithbounds/_index.md | 2 +- .../iorderedshape/_index.md | 2 +- .../ipartialargb32pixelloader/_index.md | 2 +- .../ipartialargb64pixelloader/_index.md | 2 +- .../ipartialpixelloader/_index.md | 2 +- .../ipartialrawdataloader/_index.md | 2 +- .../irasterimageargb32pixelloader/_index.md | 2 +- .../irasterimageargb64pixelloader/_index.md | 2 +- .../irasterimagepixelloader/_index.md | 2 +- .../irasterimagerawdataloader/_index.md | 2 +- .../com.aspose.imaging/knowncolor/_index.md | 2 +- .../java/com.aspose.imaging/license/_index.md | 2 +- .../java/com.aspose.imaging/linecap/_index.md | 2 +- .../com.aspose.imaging/linejoin/_index.md | 2 +- .../com.aspose.imaging/loadoptions/_index.md | 2 +- .../localeoptions/_index.md | 2 +- .../java/com.aspose.imaging/matrix/_index.md | 2 +- .../com.aspose.imaging/matrixorder/_index.md | 2 +- .../java/com.aspose.imaging/metered/_index.md | 2 +- .../nongenericdictionary/_index.md | 2 +- .../nongenericlist/_index.md | 2 +- .../objectwithbounds/_index.md | 2 +- .../opentypefontscache/_index.md | 2 +- .../pageexportingaction/_index.md | 2 +- .../paletteminingmethod/_index.md | 2 +- .../pdfcomplianceversion/_index.md | 2 +- english/java/com.aspose.imaging/pen/_index.md | 2 +- .../com.aspose.imaging/penalignment/_index.md | 2 +- .../java/com.aspose.imaging/pentype/_index.md | 2 +- .../pixeldataformat/_index.md | 2 +- .../com.aspose.imaging/pixelformat/_index.md | 2 +- .../java/com.aspose.imaging/point/_index.md | 2 +- .../java/com.aspose.imaging/pointf/_index.md | 2 +- .../progresseventhandler/_index.md | 2 +- .../rastercachedimage/_index.md | 2 +- .../rastercachedmultipageimage/_index.md | 2 +- .../com.aspose.imaging/rasterimage/_index.md | 171 ++-------- .../rawdatasettings/_index.md | 2 +- .../com.aspose.imaging/rectangle/_index.md | 2 +- .../com.aspose.imaging/rectanglef/_index.md | 2 +- .../java/com.aspose.imaging/region/_index.md | 2 +- .../removebackgroundsettings/_index.md | 2 +- .../com.aspose.imaging/resizetype/_index.md | 2 +- .../resolutionsetting/_index.md | 2 +- .../resolutionunit/_index.md | 2 +- .../rotatefliptype/_index.md | 2 +- .../com.aspose.imaging/seekorigin/_index.md | 2 +- .../java/com.aspose.imaging/shape/_index.md | 2 +- .../com.aspose.imaging/shapesegment/_index.md | 2 +- .../java/com.aspose.imaging/size/_index.md | 2 +- .../java/com.aspose.imaging/sizef/_index.md | 2 +- .../smoothingmode/_index.md | 2 +- .../java/com.aspose.imaging/source/_index.md | 2 +- .../splitstreamcontainer/_index.md | 2 +- .../streamcontainer/_index.md | 2 +- .../stringalignment/_index.md | 2 +- .../stringdigitsubstitute/_index.md | 2 +- .../com.aspose.imaging/stringformat/_index.md | 2 +- .../stringformatflags/_index.md | 2 +- .../stringtrimming/_index.md | 2 +- .../textrenderinghint/_index.md | 2 +- .../transparencysupporter/_index.md | 2 +- .../com.aspose.imaging/vectorimage/_index.md | 80 ++++- .../vectormultipageimage/_index.md | 53 ++- .../com.aspose.imaging/warpmode/_index.md | 2 +- .../com.aspose.imaging/wrapmode/_index.md | 2 +- .../apngframe/_index.md | 4 +- .../apngimage/_index.md | 2 +- .../avifimage/_index.md | 4 +- .../bigtiffimage/_index.md | 2 +- .../bmpimage/_index.md | 4 +- .../cdrtransforms/transforms/_index.md | 2 +- .../cdrimage/_index.md | 17 +- .../cdrimage/height/_index.md | 4 +- .../cdrimage/setpalette/_index.md | 2 +- .../cdrimage/width/_index.md | 4 +- .../cdrimagepage/_index.md | 17 +- .../cdrimagepage/cachedata/_index.md | 2 +- .../cdrimagepage/getdefaultoptions/_index.md | 2 +- .../cdrimagepage/iscached/_index.md | 2 +- .../cdrimagepage/pagenumber/_index.md | 2 +- .../cdrimagepage/parentimage/_index.md | 2 +- .../cdrimagepage/setpalette/_index.md | 2 +- .../cmximage/_index.md | 13 +- .../cmximage/setpalette/_index.md | 2 +- .../cmximagepage/_index.md | 15 +- .../cmximagepage/cachedata/_index.md | 2 +- .../cmximagepage/getdefaultoptions/_index.md | 2 +- .../cmximagepage/height/_index.md | 27 ++ .../cmximagepage/heightf/_index.md | 2 +- .../cmximagepage/iscached/_index.md | 2 +- .../cmximagepage/resize/_index.md | 27 +- .../cmximagepage/setpalette/_index.md | 2 +- .../cmximagepage/width/_index.md | 27 ++ .../cmximagepage/widthf/_index.md | 2 +- .../dicomimage/_index.md | 2 +- .../dicompage/_index.md | 4 +- .../djvuimage/_index.md | 2 +- .../djvupage/_index.md | 4 +- .../djvuraster/_index.md | 4 +- .../dngimage/_index.md | 4 +- .../emfimage/_index.md | 25 +- .../emfimage/getdefaultoptions/_index.md | 2 +- .../emfimage/getusedfonts/_index.md | 2 +- .../emfimage/heightf/_index.md | 27 ++ .../emfimage/resizecanvas/_index.md | 2 +- .../emfimage/setpalette/_index.md | 8 +- .../emfimage/widthf/_index.md | 27 ++ .../metaimage/_index.md | 15 +- .../metaimage/getmissedfonts/_index.md | 2 +- .../metaimage/getusedfonts/_index.md | 2 +- .../metaimage/resizecanvas/_index.md | 2 +- .../epsimage/_index.md | 21 +- .../epsimage/heightf/_index.md | 27 ++ .../epsimage/setpalette/_index.md | 2 +- .../epsimage/widthf/_index.md | 27 ++ .../epsoptions/_index.md | 2 +- .../gifframeblock/_index.md | 4 +- .../gifimage/_index.md | 2 +- .../icoimage/_index.md | 2 +- .../jpegimage/_index.md | 4 +- .../jpeg2000image/_index.md | 4 +- .../odgimage/_index.md | 17 +- .../odimage/_index.md | 17 +- .../odimage/iscached/_index.md | 2 +- .../odimage/metadata/_index.md | 2 +- .../odimage/pagecount/_index.md | 2 +- .../odimage/records/_index.md | 2 +- .../otgimage/_index.md | 17 +- .../pngimage/_index.md | 4 +- .../svgimage/_index.md | 15 +- .../svgimage/cachedata/_index.md | 2 +- .../svgimage/crop/_index.md | 28 ++ .../svgimage/getdefaultoptions/_index.md | 2 +- .../svgimage/iscached/_index.md | 2 +- .../svgimage/resize/_index.md | 27 +- .../svgimage/rotate/_index.md | 27 ++ .../svgimage/setpalette/_index.md | 2 +- .../tgaimage/_index.md | 2 +- .../tiffstreamreader/_index.md | 2 +- .../tiffstreamwriter/_index.md | 2 +- .../tiffframe/_index.md | 4 +- .../tiffimage/_index.md | 2 +- .../webpframeblock/_index.md | 4 +- .../webpimage/_index.md | 2 +- .../wmfimage/_index.md | 23 +- .../wmfimage/getdefaultoptions/_index.md | 2 +- .../wmfimage/getpostscript/_index.md | 2 +- .../wmfimage/getusedfonts/_index.md | 2 +- .../wmfimage/heightf/_index.md | 33 ++ .../wmfimage/resizecanvas/_index.md | 2 +- .../wmfimage/setpalette/_index.md | 2 +- .../wmfimage/widthf/_index.md | 33 ++ .../net/aspose.imaging.imageoptions/_index.md | 2 +- .../apngoptions/_index.md | 2 +- .../bmpoptions/_index.md | 2 +- .../cdrrasterizationoptions/_index.md | 8 +- .../cmxrasterizationoptions/_index.md | 8 +- .../dicomoptions/_index.md | 2 +- .../dxfoptions/_index.md | 2 +- .../emfoptions/_index.md | 2 +- .../emfrasterizationoptions/_index.md | 8 +- .../epsrasterizationoptions/_index.md | 8 +- .../gifoptions/_index.md | 2 +- .../html5canvasoptions/_index.md | 2 +- .../icooptions/_index.md | 2 +- .../jpeg2000options/_index.md | 2 +- .../jpegoptions/_index.md | 2 +- .../metafileoptions/_index.md | 2 +- .../metafilerasterizationoptions/_index.md | 8 +- .../odgrasterizationoptions/_index.md | 8 +- .../odrasterizationoptions/_index.md | 8 +- .../otgrasterizationoptions/_index.md | 8 +- .../pdfoptions/_index.md | 2 +- .../pngoptions/_index.md | 2 +- .../psdoptions/_index.md | 2 +- .../svgoptions/_index.md | 2 +- .../svgrasterizationoptions/_index.md | 8 +- .../tgaoptions/_index.md | 2 +- .../vectorrasterizationoptions/_index.md | 12 +- .../pageheight/_index.md | 4 +- .../pagesize/_index.md | 4 +- .../pagewidth/_index.md | 4 +- .../webpoptions/_index.md | 2 +- .../wmfoptions/_index.md | 2 +- .../wmfrasterizationoptions/_index.md | 8 +- .../cmykcolorhelper/tocmykicc/_index.md | 54 +-- .../cmykcolorhelper/topsdcmykicc/_index.md | 40 +-- english/net/aspose.imaging/image/_index.md | 9 +- .../aspose.imaging/image/canload/_index.md | 2 +- .../net/aspose.imaging/image/create/_index.md | 4 +- .../net/aspose.imaging/image/crop/_index.md | 92 ++++++ .../image/getdefaultoptions/_index.md | 2 +- .../image/getfileformat/_index.md | 2 +- .../image/getfittingrectangle/_index.md | 2 +- .../image/getoriginaloptions/_index.md | 2 +- .../image/getproportionalheight/_index.md | 2 +- .../image/getproportionalwidth/_index.md | 2 +- .../image/getserializedstream/_index.md | 2 +- .../image/removemetadata/_index.md | 2 +- .../net/aspose.imaging/image/resize/_index.md | 307 +++++++++++++----- .../resizeheightproportionally/_index.md | 2 +- .../image/resizewidthproportionally/_index.md | 2 +- .../net/aspose.imaging/image/rotate/_index.md | 27 ++ .../aspose.imaging/image/rotateflip/_index.md | 28 +- .../net/aspose.imaging/image/save/_index.md | 2 +- .../aspose.imaging/image/setpalette/_index.md | 2 +- .../aspose.imaging/imageoptionsbase/_index.md | 4 +- .../imageoptionsbase/clone/_index.md | 6 +- .../rastercachedimage/_index.md | 4 +- .../rastercachedmultipageimage/_index.md | 2 +- .../net/aspose.imaging/rasterimage/_index.md | 8 +- .../rasterimage/dither/_index.md | 2 +- .../rasterimage/filter/_index.md | 2 +- .../rasterimage/getargb32pixel/_index.md | 2 +- .../getdefaultargb32pixels/_index.md | 2 +- .../rasterimage/getdefaultpixels/_index.md | 2 +- .../rasterimage/getdefaultrawdata/_index.md | 2 +- .../rasterimage/getmodifydate/_index.md | 2 +- .../rasterimage/getpixel/_index.md | 2 +- .../rasterimage/getskewangle/_index.md | 2 +- .../rasterimage/grayscale/_index.md | 2 +- .../rasterimage/loadargb32pixels/_index.md | 2 +- .../rasterimage/loadargb64pixels/_index.md | 2 +- .../rasterimage/loadcmyk32pixels/_index.md | 2 +- .../loadpartialargb32pixels/_index.md | 2 +- .../loadpartialargb64pixels/_index.md | 2 +- .../rasterimage/loadpartialpixels/_index.md | 2 +- .../rasterimage/loadpixels/_index.md | 2 +- .../rasterimage/loadrawdata/_index.md | 2 +- .../rasterimage/normalizeangle/_index.md | 2 +- .../rasterimage/readargb32scanline/_index.md | 2 +- .../rasterimage/readscanline/_index.md | 2 +- .../rasterimage/removemetadata/_index.md | 2 +- .../rasterimage/replacecolor/_index.md | 2 +- .../replacenontransparentcolors/_index.md | 2 +- .../rasterimage/resize/_index.md | 69 +--- .../rasterimage/rotate/_index.md | 4 +- .../aspose.imaging/rasterimage/save/_index.md | 2 +- .../rasterimage/saveargb32pixels/_index.md | 2 +- .../rasterimage/savecmyk32pixels/_index.md | 2 +- .../rasterimage/savepixels/_index.md | 2 +- .../rasterimage/saverawdata/_index.md | 2 +- .../rasterimage/setargb32pixel/_index.md | 2 +- .../rasterimage/setpalette/_index.md | 2 +- .../rasterimage/setpixel/_index.md | 2 +- .../rasterimage/setresolution/_index.md | 2 +- .../rasterimage/tobitmap/_index.md | 2 +- .../rasterimage/writeargb32scanline/_index.md | 2 +- .../rasterimage/writescanline/_index.md | 2 +- .../net/aspose.imaging/vectorimage/_index.md | 13 +- .../aspose.imaging/vectorimage/crop/_index.md | 28 ++ .../vectorimage/getembeddedimages/_index.md | 2 +- .../vectorimage/removebackground/_index.md | 6 +- .../vectorimage/resize/_index.md | 53 +++ .../vectorimage/rotate/_index.md | 27 ++ .../vectorimage/rotateflip/_index.md | 34 ++ .../vectormultipageimage/_index.md | 7 +- .../vectormultipageimage/crop/_index.md | 28 ++ .../getembeddedimages/_index.md | 2 +- .../getserializedstream/_index.md | 2 +- .../removebackground/_index.md | 44 +++ .../vectormultipageimage/resize/_index.md | 2 +- .../vectormultipageimage/rotate/_index.md | 27 ++ .../vectormultipageimage/rotateflip/_index.md | 2 +- .../vectormultipageimage/setpalette/_index.md | 2 +- 301 files changed, 1700 insertions(+), 1480 deletions(-) create mode 100644 english/net/aspose.imaging.fileformats.cmx/cmximagepage/height/_index.md create mode 100644 english/net/aspose.imaging.fileformats.cmx/cmximagepage/width/_index.md create mode 100644 english/net/aspose.imaging.fileformats.emf/emfimage/heightf/_index.md create mode 100644 english/net/aspose.imaging.fileformats.emf/emfimage/widthf/_index.md create mode 100644 english/net/aspose.imaging.fileformats.eps/epsimage/heightf/_index.md create mode 100644 english/net/aspose.imaging.fileformats.eps/epsimage/widthf/_index.md create mode 100644 english/net/aspose.imaging.fileformats.svg/svgimage/crop/_index.md create mode 100644 english/net/aspose.imaging.fileformats.svg/svgimage/rotate/_index.md create mode 100644 english/net/aspose.imaging.fileformats.wmf/wmfimage/heightf/_index.md create mode 100644 english/net/aspose.imaging.fileformats.wmf/wmfimage/widthf/_index.md create mode 100644 english/net/aspose.imaging/image/crop/_index.md create mode 100644 english/net/aspose.imaging/image/rotate/_index.md create mode 100644 english/net/aspose.imaging/vectorimage/crop/_index.md create mode 100644 english/net/aspose.imaging/vectorimage/resize/_index.md create mode 100644 english/net/aspose.imaging/vectorimage/rotate/_index.md create mode 100644 english/net/aspose.imaging/vectorimage/rotateflip/_index.md create mode 100644 english/net/aspose.imaging/vectormultipageimage/crop/_index.md create mode 100644 english/net/aspose.imaging/vectormultipageimage/removebackground/_index.md create mode 100644 english/net/aspose.imaging/vectormultipageimage/rotate/_index.md diff --git a/english/java/com.aspose.imaging.fileformats.cdr/cdrimage/_index.md b/english/java/com.aspose.imaging.fileformats.cdr/cdrimage/_index.md index b62697ce65..b802a377ba 100644 --- a/english/java/com.aspose.imaging.fileformats.cdr/cdrimage/_index.md +++ b/english/java/com.aspose.imaging.fileformats.cdr/cdrimage/_index.md @@ -29,17 +29,14 @@ The API for CorelDRAW CDR vector image format support is an essential toolkit fo | [getDefaultPage()](#getDefaultPage--) | Retrieve the default page of the image with ease using this user-friendly property. | | [isCached()](#isCached--) | Effortlessly determine whether the object's data is currently cached, eliminating the need for data reading. | | [getBitsPerPixel()](#getBitsPerPixel--) | Retrieve the bit depth of the image effortlessly with this user-friendly property. | -| [getWidth()](#getWidth--) | Retrieve the width of the image seamlessly with this intuitive property. | -| [getHeight()](#getHeight--) | Retrieve the height of the image effortlessly with this intuitive property. | | [getPageCount()](#getPageCount--) | Effortlessly retrieve or update the total page count of the image with this intuitive property. | | [getPages()](#getPages--) | Retrieve the pages of the image seamlessly with this intuitive property. | | [getCdrDocument()](#getCdrDocument--) | Effortlessly retrieve or update the CDR document using this intuitive property. | | [getFileFormat()](#getFileFormat--) | Retrieve the file format of the image effortlessly with this intuitive property. | +| [getWidth()](#getWidth--) | Gets the image width. | +| [getHeight()](#getHeight--) | Gets the image height. | | [getDefaultOptions(Object[] args)](#getDefaultOptions-java.lang.Object---) | Retrieve the default options effortlessly with this user-friendly method. | | [cacheData()](#cacheData--) | Effortlessly cache the data to prevent additional loading from the underlying source with this user-friendly method. | -| [resize(int newWidth, int newHeight, int resizeType)](#resize-int-int-int-) | Effortlessly resize the image to desired dimensions with this intuitive method. | -| [resize(int newWidth, int newHeight, ImageResizeSettings settings)](#resize-int-int-com.aspose.imaging.ImageResizeSettings-) | Resizes the image. | -| [rotateFlip(int rotateFlipType)](#rotateFlip-int-) | Adjust the orientation of the image by rotating, flipping, or applying both operations with this versatile method. | | [setPalette(IColorPalette palette, boolean updateColors)](#setPalette-com.aspose.imaging.IColorPalette-boolean-) | Customize the color palette of the image with this intuitive method. | ## Example: The following example shows how to cache all pages of a CDR image. @@ -118,26 +115,6 @@ Retrieve the bit depth of the image effortlessly with this user-friendly propert **Returns:** int - The image bits per pixel count. -### getWidth() {#getWidth--} -``` -public int getWidth() -``` - - -Retrieve the width of the image seamlessly with this intuitive property. Ideal for developers seeking to access the dimensions of their images dynamically, ensuring precise layout and rendering in their applications. - -**Returns:** -int - The image width in pixels. -### getHeight() {#getHeight--} -``` -public int getHeight() -``` - - -Retrieve the height of the image effortlessly with this intuitive property. Perfect for developers seeking to access the dimensions of their images dynamically, ensuring accurate layout and rendering in their applications. - -**Returns:** -int - the image height in pixels. ### getPageCount() {#getPageCount--} ``` public final int getPageCount() @@ -207,6 +184,30 @@ Retrieve the file format of the image effortlessly with this intuitive property. **Returns:** long +### getWidth() {#getWidth--} +``` +public int getWidth() +``` + + +Gets the image width. + +Value: The image width. + +**Returns:** +int - the image width. +### getHeight() {#getHeight--} +``` +public int getHeight() +``` + + +Gets the image height. + +Value: The image height. + +**Returns:** +int - the image height. ### getDefaultOptions(Object[] args) {#getDefaultOptions-java.lang.Object---} ``` public ImageOptionsBase getDefaultOptions(Object[] args) @@ -251,49 +252,6 @@ try { } ``` -### resize(int newWidth, int newHeight, int resizeType) {#resize-int-int-int-} -``` -public void resize(int newWidth, int newHeight, int resizeType) -``` - - -Effortlessly resize the image to desired dimensions with this intuitive method. Perfect for developers seeking to adjust the size of images dynamically, ensuring they fit the layout or requirements of their applications seamlessly. - -**Parameters:** -| Parameter | Type | Description | -| --- | --- | --- | -| newWidth | int | The new width. | -| newHeight | int | The new height. | -| resizeType | int | The resize type. | - -### resize(int newWidth, int newHeight, ImageResizeSettings settings) {#resize-int-int-com.aspose.imaging.ImageResizeSettings-} -``` -public void resize(int newWidth, int newHeight, ImageResizeSettings settings) -``` - - -Resizes the image. - -**Parameters:** -| Parameter | Type | Description | -| --- | --- | --- | -| newWidth | int | The new width. | -| newHeight | int | The new height. | -| settings | [ImageResizeSettings](../../com.aspose.imaging/imageresizesettings) | The resize settings. | - -### rotateFlip(int rotateFlipType) {#rotateFlip-int-} -``` -public void rotateFlip(int rotateFlipType) -``` - - -Adjust the orientation of the image by rotating, flipping, or applying both operations with this versatile method. Perfect for developers seeking to customize image orientation dynamically, ensuring optimal presentation or alignment in their applications. - -**Parameters:** -| Parameter | Type | Description | -| --- | --- | --- | -| rotateFlipType | int | Type of rotating flip. | - ### setPalette(IColorPalette palette, boolean updateColors) {#setPalette-com.aspose.imaging.IColorPalette-boolean-} ``` public void setPalette(IColorPalette palette, boolean updateColors) diff --git a/english/java/com.aspose.imaging.fileformats.cdr/cdrimagepage/_index.md b/english/java/com.aspose.imaging.fileformats.cdr/cdrimagepage/_index.md index fc4d9f50b8..a64a3de496 100644 --- a/english/java/com.aspose.imaging.fileformats.cdr/cdrimagepage/_index.md +++ b/english/java/com.aspose.imaging.fileformats.cdr/cdrimagepage/_index.md @@ -24,15 +24,10 @@ The Cdr image page | [getPageNumber()](#getPageNumber--) | Gets the page number. | | [isCached()](#isCached--) | Gets a value indicating whether object's data is cached currently and no data reading is required. | | [getBitsPerPixel()](#getBitsPerPixel--) | Gets the image bits per pixel count. | -| [getWidth()](#getWidth--) | Gets the image width. | -| [getHeight()](#getHeight--) | Gets the image height. | | [getFileFormat()](#getFileFormat--) | Gets a value of file format | | [getDefaultOptions(Object[] args)](#getDefaultOptions-java.lang.Object---) | Gets the default options. | | [getCdrDocument()](#getCdrDocument--) | Gets the CDR document. | | [cacheData()](#cacheData--) | Caches the data and ensures no additional data loading will be performed from the underlying `P:com.aspose.imaging.dataStreamSupporter.dataStreamContainer`. | -| [resize(int newWidth, int newHeight, int resizeType)](#resize-int-int-int-) | Resizes the image. | -| [resize(int newWidth, int newHeight, ImageResizeSettings settings)](#resize-int-int-com.aspose.imaging.ImageResizeSettings-) | Resizes the image. | -| [rotateFlip(int rotateFlipType)](#rotateFlip-int-) | Rotates, flips, or rotates and flips the image. | | [setPalette(IColorPalette palette, boolean updateColors)](#setPalette-com.aspose.imaging.IColorPalette-boolean-) | Sets the image palette. | ### getParentImage() {#getParentImage--} ``` @@ -78,26 +73,6 @@ Gets the image bits per pixel count. **Returns:** int - the image bits per pixel count. -### getWidth() {#getWidth--} -``` -public int getWidth() -``` - - -Gets the image width. - -**Returns:** -int - the image width. -### getHeight() {#getHeight--} -``` -public int getHeight() -``` - - -Gets the image height. - -**Returns:** -int - the image height. ### getFileFormat() {#getFileFormat--} ``` public long getFileFormat() @@ -141,49 +116,6 @@ public synchronized void cacheData() Caches the data and ensures no additional data loading will be performed from the underlying `P:com.aspose.imaging.dataStreamSupporter.dataStreamContainer`. -### resize(int newWidth, int newHeight, int resizeType) {#resize-int-int-int-} -``` -public void resize(int newWidth, int newHeight, int resizeType) -``` - - -Resizes the image. - -**Parameters:** -| Parameter | Type | Description | -| --- | --- | --- | -| newWidth | int | The new width. | -| newHeight | int | The new height. | -| resizeType | int | The resize type. | - -### resize(int newWidth, int newHeight, ImageResizeSettings settings) {#resize-int-int-com.aspose.imaging.ImageResizeSettings-} -``` -public void resize(int newWidth, int newHeight, ImageResizeSettings settings) -``` - - -Resizes the image. - -**Parameters:** -| Parameter | Type | Description | -| --- | --- | --- | -| newWidth | int | The new width. | -| newHeight | int | The new height. | -| settings | [ImageResizeSettings](../../com.aspose.imaging/imageresizesettings) | The resize settings. | - -### rotateFlip(int rotateFlipType) {#rotateFlip-int-} -``` -public void rotateFlip(int rotateFlipType) -``` - - -Rotates, flips, or rotates and flips the image. - -**Parameters:** -| Parameter | Type | Description | -| --- | --- | --- | -| rotateFlipType | int | Type of rotation and flipping. | - ### setPalette(IColorPalette palette, boolean updateColors) {#setPalette-com.aspose.imaging.IColorPalette-boolean-} ``` public void setPalette(IColorPalette palette, boolean updateColors) diff --git a/english/java/com.aspose.imaging.fileformats.cmx/cmximage/_index.md b/english/java/com.aspose.imaging.fileformats.cmx/cmximage/_index.md index 7ce7e6401a..ff035747f7 100644 --- a/english/java/com.aspose.imaging.fileformats.cmx/cmximage/_index.md +++ b/english/java/com.aspose.imaging.fileformats.cmx/cmximage/_index.md @@ -37,9 +37,6 @@ The API for Corel Metafile Exchange (CMX) vector image format with metadata desc | [getPages()](#getPages--) | Retrieve the pages of the image seamlessly with this intuitive property. | | [getDefaultOptions(Object[] args)](#getDefaultOptions-java.lang.Object---) | Retrieve the default options effortlessly with this user-friendly method. | | [cacheData()](#cacheData--) | Cache the data to prevent additional loading from the underlying source [DataStreamSupporter](../../com.aspose.imaging/datastreamsupporter) with this convenient method. | -| [resize(int newWidth, int newHeight, int resizeType)](#resize-int-int-int-) | Effortlessly resize the image to desired dimensions with this intuitive method. | -| [resize(int newWidth, int newHeight, ImageResizeSettings settings)](#resize-int-int-com.aspose.imaging.ImageResizeSettings-) | Resizes the image. | -| [rotateFlip(int rotateFlipType)](#rotateFlip-int-) | Effortlessly adjust the orientation of the image by rotating, flipping, or applying both operations with this versatile method. | | [setPalette(IColorPalette palette, boolean updateColors)](#setPalette-com.aspose.imaging.IColorPalette-boolean-) | Customize the color palette of the image with this intuitive method. | ## Example: The following example shows how to cache all pages of a CMX image. @@ -241,49 +238,6 @@ try { } ``` -### resize(int newWidth, int newHeight, int resizeType) {#resize-int-int-int-} -``` -public void resize(int newWidth, int newHeight, int resizeType) -``` - - -Effortlessly resize the image to desired dimensions with this intuitive method. Perfect for developers seeking to adjust the size of images dynamically, ensuring they fit the layout or requirements of their applications seamlessly. - -**Parameters:** -| Parameter | Type | Description | -| --- | --- | --- | -| newWidth | int | The new width. | -| newHeight | int | The new height. | -| resizeType | int | The resize type. | - -### resize(int newWidth, int newHeight, ImageResizeSettings settings) {#resize-int-int-com.aspose.imaging.ImageResizeSettings-} -``` -public void resize(int newWidth, int newHeight, ImageResizeSettings settings) -``` - - -Resizes the image. - -**Parameters:** -| Parameter | Type | Description | -| --- | --- | --- | -| newWidth | int | The new width. | -| newHeight | int | The new height. | -| settings | [ImageResizeSettings](../../com.aspose.imaging/imageresizesettings) | The resize settings. | - -### rotateFlip(int rotateFlipType) {#rotateFlip-int-} -``` -public void rotateFlip(int rotateFlipType) -``` - - -Effortlessly adjust the orientation of the image by rotating, flipping, or applying both operations with this versatile method. Perfect for developers seeking to customize image orientation dynamically, ensuring optimal presentation or alignment in their applications. - -**Parameters:** -| Parameter | Type | Description | -| --- | --- | --- | -| rotateFlipType | int | Type of the rotate flip. | - ### setPalette(IColorPalette palette, boolean updateColors) {#setPalette-com.aspose.imaging.IColorPalette-boolean-} ``` public void setPalette(IColorPalette palette, boolean updateColors) diff --git a/english/java/com.aspose.imaging.fileformats.cmx/cmximagepage/_index.md b/english/java/com.aspose.imaging.fileformats.cmx/cmximagepage/_index.md index 53a1458e0b..5261911a87 100644 --- a/english/java/com.aspose.imaging.fileformats.cmx/cmximagepage/_index.md +++ b/english/java/com.aspose.imaging.fileformats.cmx/cmximagepage/_index.md @@ -32,11 +32,11 @@ The image of CMX page | [isCached()](#isCached--) | Gets a value indicating whether object's data is cached currently and no data reading is required. | | [getWidthF()](#getWidthF--) | Gets the object width, in inches. | | [getHeightF()](#getHeightF--) | Gets the object height, in inches. | +| [getWidth()](#getWidth--) | Gets the image width. | +| [getHeight()](#getHeight--) | Gets the image height. | | [getDefaultOptions(Object[] args)](#getDefaultOptions-java.lang.Object---) | Gets the default options. | | [cacheData()](#cacheData--) | Cache can not be used. | -| [resize(int newWidth, int newHeight, int resizeType)](#resize-int-int-int-) | Resizes the image. | | [resize(int newWidth, int newHeight, ImageResizeSettings settings)](#resize-int-int-com.aspose.imaging.ImageResizeSettings-) | Resizes the image. | -| [rotateFlip(int rotateFlipType)](#rotateFlip-int-) | Rotates, flips, or rotates and flips the image. | | [setPalette(IColorPalette palette, boolean updateColors)](#setPalette-com.aspose.imaging.IColorPalette-boolean-) | Sets the image palette. | ### CmxImagePage(CmxPage cmxPage, Image container) {#CmxImagePage-com.aspose.imaging.fileformats.cmx.objectmodel.CmxPage-com.aspose.imaging.Image-} ``` @@ -127,6 +127,30 @@ Gets the object height, in inches. **Returns:** float - the object height, in inches. +### getWidth() {#getWidth--} +``` +public int getWidth() +``` + + +Gets the image width. + +Value: The image width. + +**Returns:** +int - the image width. +### getHeight() {#getHeight--} +``` +public int getHeight() +``` + + +Gets the image height. + +Value: The image height. + +**Returns:** +int - the image height. ### getDefaultOptions(Object[] args) {#getDefaultOptions-java.lang.Object---} ``` public ImageOptionsBase getDefaultOptions(Object[] args) @@ -171,21 +195,6 @@ try { } ``` -### resize(int newWidth, int newHeight, int resizeType) {#resize-int-int-int-} -``` -public void resize(int newWidth, int newHeight, int resizeType) -``` - - -Resizes the image. - -**Parameters:** -| Parameter | Type | Description | -| --- | --- | --- | -| newWidth | int | The new width. | -| newHeight | int | The new height. | -| resizeType | int | The resize type. | - ### resize(int newWidth, int newHeight, ImageResizeSettings settings) {#resize-int-int-com.aspose.imaging.ImageResizeSettings-} ``` public void resize(int newWidth, int newHeight, ImageResizeSettings settings) @@ -201,19 +210,6 @@ Resizes the image. | newHeight | int | The new height. | | settings | [ImageResizeSettings](../../com.aspose.imaging/imageresizesettings) | The resize settings. | -### rotateFlip(int rotateFlipType) {#rotateFlip-int-} -``` -public void rotateFlip(int rotateFlipType) -``` - - -Rotates, flips, or rotates and flips the image. - -**Parameters:** -| Parameter | Type | Description | -| --- | --- | --- | -| rotateFlipType | int | Type of the rotation and flipping. | - ### setPalette(IColorPalette palette, boolean updateColors) {#setPalette-com.aspose.imaging.IColorPalette-boolean-} ``` public void setPalette(IColorPalette palette, boolean updateColors) diff --git a/english/java/com.aspose.imaging.fileformats.emf/emfimage/_index.md b/english/java/com.aspose.imaging.fileformats.emf/emfimage/_index.md index 423d59b9bb..e5d7a56d90 100644 --- a/english/java/com.aspose.imaging.fileformats.emf/emfimage/_index.md +++ b/english/java/com.aspose.imaging.fileformats.emf/emfimage/_index.md @@ -30,17 +30,13 @@ The API for Enhanced Metafile Format (EMF) vector image format support is a comp | [setRecords(MetaObjectList value)](#setRecords-com.aspose.imaging.fileformats.emf.MetaObjectList-) | Modify the records associated with the object. | | [getFileFormat()](#getFileFormat--) | Access the file format value associated with the object. | | [getBitsPerPixel()](#getBitsPerPixel--) | Retrieve the bit-per-pixel count specific to raster images, as this parameter doesn't apply to vector images. | -| [getWidth()](#getWidth--) | Access to the width of the image, providing essential information for precise rendering and processing. | -| [getHeight()](#getHeight--) | Retrieve the image's height, facilitating accurate rendering and layout adjustments. | +| [getWidthF()](#getWidthF--) | Access to the width of the image, providing essential information for precise rendering and processing. | +| [getHeightF()](#getHeightF--) | Retrieve the image's height, facilitating accurate rendering and layout adjustments. | | [cacheData()](#cacheData--) | Efficiently cache data and prevent redundant loading from the underlying `DataStreamSupporter.DataStreamContainer`([DataStreamSupporter.getDataStreamContainer](../../com.aspose.imaging/datastreamsupporter\#getDataStreamContainer) with this method. | | [getUsedFonts()](#getUsedFonts--) | Retrieve the list of fonts utilized within the metafile with this method. | -| [crop(Rectangle rectangle)](#crop-com.aspose.imaging.Rectangle-) | Crop the specified rectangle using this function. | | [resizeCanvas(Rectangle newRectangle)](#resizeCanvas-com.aspose.imaging.Rectangle-) | Resize the canvas with ease using this function. | -| [resize(int newWidth, int newHeight, int resizeType)](#resize-int-int-int-) | Resize your image effortlessly with this function, specifying the desired width, height, and type. | -| [resize(int newWidth, int newHeight, ImageResizeSettings settings)](#resize-int-int-com.aspose.imaging.ImageResizeSettings-) | Adjust your image size with customizable settings, ensuring optimal dimensions and clarity. | -| [rotateFlip(int rotateFlipType)](#rotateFlip-int-) | Easily rotate, flip, or perform both operations simultaneously on your image using this simple \`rotateFlip()\` method. | -| [setPalette(IColorPalette palette, boolean updateColors)](#setPalette-com.aspose.imaging.IColorPalette-boolean-) | Enhance your image's color palette by setting it with the specified \`IColorPalette\`. | | [getDefaultOptions(Object[] args)](#getDefaultOptions-java.lang.Object---) | Retrieve the default options for your image effortlessly. | +| [setPalette(IColorPalette palette, boolean updateColors)](#setPalette-com.aspose.imaging.IColorPalette-boolean-) | Sets the image palette. | ## Example: This example shows how to load a EMF image from a file and convert it to SVG using EmfRasterizationOptions. @@ -240,26 +236,26 @@ Retrieve the bit-per-pixel count specific to raster images, as this parameter do **Returns:** int - The image bits per pixel count. -### getWidth() {#getWidth--} +### getWidthF() {#getWidthF--} ``` -public int getWidth() +public float getWidthF() ``` Access to the width of the image, providing essential information for precise rendering and processing. Quickly retrieve the image's width to ensure compatibility and proper layout within various applications and platforms. **Returns:** -int - The image width in pixels. -### getHeight() {#getHeight--} +float - The image width in pixels. +### getHeightF() {#getHeightF--} ``` -public int getHeight() +public float getHeightF() ``` Retrieve the image's height, facilitating accurate rendering and layout adjustments. Accessing the height property ensures compatibility and seamless integration across different platforms and applications. **Returns:** -int - The image height in pixels. +float - The image height in pixels. ### cacheData() {#cacheData--} ``` public void cacheData() @@ -356,19 +352,6 @@ Retrieve the list of fonts utilized within the metafile with this method. Gain i **Returns:** java.lang.String[] - The font list -### crop(Rectangle rectangle) {#crop-com.aspose.imaging.Rectangle-} -``` -public void crop(Rectangle rectangle) -``` - - -Crop the specified rectangle using this function. Ideal for refining image composition and focusing on specific areas of interest within the image. Improve visual clarity and highlight key details with precise cropping functionality. - -**Parameters:** -| Parameter | Type | Description | -| --- | --- | --- | -| rectangle | [Rectangle](../../com.aspose.imaging/rectangle) | The rectangle. | - ### resizeCanvas(Rectangle newRectangle) {#resizeCanvas-com.aspose.imaging.Rectangle-} ``` public void resizeCanvas(Rectangle newRectangle) @@ -382,56 +365,28 @@ Resize the canvas with ease using this function. Perfect for adjusting the overa | --- | --- | --- | | newRectangle | [Rectangle](../../com.aspose.imaging/rectangle) | The new rectangle. | -### resize(int newWidth, int newHeight, int resizeType) {#resize-int-int-int-} -``` -public void resize(int newWidth, int newHeight, int resizeType) -``` - - -Resize your image effortlessly with this function, specifying the desired width, height, and type. Perfect for adjusting images to fit specific dimensions while maintaining clarity and quality. Ideal for optimizing images for various platforms and applications. - -**Parameters:** -| Parameter | Type | Description | -| --- | --- | --- | -| newWidth | int | The new width. | -| newHeight | int | The new height. | -| resizeType | int | The resize type. | - -### resize(int newWidth, int newHeight, ImageResizeSettings settings) {#resize-int-int-com.aspose.imaging.ImageResizeSettings-} -``` -public void resize(int newWidth, int newHeight, ImageResizeSettings settings) -``` - - -Adjust your image size with customizable settings, ensuring optimal dimensions and clarity. Perfect for tailoring images to specific requirements while maintaining quality. - -**Parameters:** -| Parameter | Type | Description | -| --- | --- | --- | -| newWidth | int | The new width. | -| newHeight | int | The new height. | -| settings | [ImageResizeSettings](../../com.aspose.imaging/imageresizesettings) | The resize settings. | - -### rotateFlip(int rotateFlipType) {#rotateFlip-int-} +### getDefaultOptions(Object[] args) {#getDefaultOptions-java.lang.Object---} ``` -public void rotateFlip(int rotateFlipType) +public ImageOptionsBase getDefaultOptions(Object[] args) ``` -Easily rotate, flip, or perform both operations simultaneously on your image using this simple \`rotateFlip()\` method. Perfect for adjusting orientation and enhancing visual appeal without hassle. Ideal for achieving the desired presentation of your images in any project or application. +Retrieve the default options for your image effortlessly. With this feature, you can quickly access the preset configurations, ensuring seamless integration and optimal performance for your projects. Ideal for streamlining your workflow and achieving consistent results across your images. **Parameters:** | Parameter | Type | Description | | --- | --- | --- | -| rotateFlipType | int | Type of the rotating flip. | +| args | java.lang.Object[] | The arguments. | +**Returns:** +[ImageOptionsBase](../../com.aspose.imaging/imageoptionsbase) - Default options ### setPalette(IColorPalette palette, boolean updateColors) {#setPalette-com.aspose.imaging.IColorPalette-boolean-} ``` public void setPalette(IColorPalette palette, boolean updateColors) ``` -Enhance your image's color palette by setting it with the specified \`IColorPalette\`. Achieve vivid, vibrant visuals with ease, ensuring your images stand out and captivate viewers. Ideal for optimizing color schemes and achieving the perfect look for your projects. +Sets the image palette. **Parameters:** | Parameter | Type | Description | @@ -439,18 +394,3 @@ Enhance your image's color palette by setting it with the specified \`IColorPale | palette | [IColorPalette](../../com.aspose.imaging/icolorpalette) | The palette to set. | | updateColors | boolean | if set to `true` colors will be updated according to the new palette; otherwise color indexes remain unchanged. Note that unchanged indexes may crash the image on loading if some indexes have no corresponding palette entries. | -### getDefaultOptions(Object[] args) {#getDefaultOptions-java.lang.Object---} -``` -public ImageOptionsBase getDefaultOptions(Object[] args) -``` - - -Retrieve the default options for your image effortlessly. With this feature, you can quickly access the preset configurations, ensuring seamless integration and optimal performance for your projects. Ideal for streamlining your workflow and achieving consistent results across your images. - -**Parameters:** -| Parameter | Type | Description | -| --- | --- | --- | -| args | java.lang.Object[] | The arguments. | - -**Returns:** -[ImageOptionsBase](../../com.aspose.imaging/imageoptionsbase) - Default options diff --git a/english/java/com.aspose.imaging.fileformats.emf/metaimage/_index.md b/english/java/com.aspose.imaging.fileformats.emf/metaimage/_index.md index 1233e9c4c9..b22499d1b9 100644 --- a/english/java/com.aspose.imaging.fileformats.emf/metaimage/_index.md +++ b/english/java/com.aspose.imaging.fileformats.emf/metaimage/_index.md @@ -26,8 +26,6 @@ Base class for Meta object classes | [setRecords(MetaObjectList value)](#setRecords-com.aspose.imaging.fileformats.emf.MetaObjectList-) | Sets the records. | | [getUsedFonts()](#getUsedFonts--) | Returns the list of font which used inside metafile. | | [getMissedFonts()](#getMissedFonts--) | Returns the list of fonts which used inside metafile but not found. | -| [crop(int leftShift, int rightShift, int topShift, int bottomShift)](#crop-int-int-int-int-) | Crop image with shifts. | -| [crop(Rectangle rectangle)](#crop-com.aspose.imaging.Rectangle-) | Crops the specified rectangle. | | [resizeCanvas(Rectangle newRectangle)](#resizeCanvas-com.aspose.imaging.Rectangle-) | Resizes the canvas. | ### MetaImage() {#MetaImage--} ``` @@ -336,35 +334,6 @@ try { // Missed font: MICROSOFT SANS SERIF ``` -### crop(int leftShift, int rightShift, int topShift, int bottomShift) {#crop-int-int-int-int-} -``` -public void crop(int leftShift, int rightShift, int topShift, int bottomShift) -``` - - -Crop image with shifts. - -**Parameters:** -| Parameter | Type | Description | -| --- | --- | --- | -| leftShift | int | The left shift. | -| rightShift | int | The right shift. | -| topShift | int | The top shift. | -| bottomShift | int | The bottom shift. | - -### crop(Rectangle rectangle) {#crop-com.aspose.imaging.Rectangle-} -``` -public void crop(Rectangle rectangle) -``` - - -Crops the specified rectangle. - -**Parameters:** -| Parameter | Type | Description | -| --- | --- | --- | -| rectangle | [Rectangle](../../com.aspose.imaging/rectangle) | The rectangle. | - ### resizeCanvas(Rectangle newRectangle) {#resizeCanvas-com.aspose.imaging.Rectangle-} ``` public abstract void resizeCanvas(Rectangle newRectangle) diff --git a/english/java/com.aspose.imaging.fileformats.eps/epsimage/_index.md b/english/java/com.aspose.imaging.fileformats.eps/epsimage/_index.md index f544574974..404b9c653a 100644 --- a/english/java/com.aspose.imaging.fileformats.eps/epsimage/_index.md +++ b/english/java/com.aspose.imaging.fileformats.eps/epsimage/_index.md @@ -23,8 +23,8 @@ The API for Encapsulated PostScript (EPS) image file format support offers robus | [getEpsType()](#getEpsType--) | Access and interpret the subtype value of your EPS image, streamlining your workflow and enhancing compatibility across platforms. | | [hasRasterPreview()](#hasRasterPreview--) | Discover the presence of a raster preview effortlessly with this property. | | [getBitsPerPixel()](#getBitsPerPixel--) | Access the precise bit depth of the image effortlessly with this property. | -| [getWidth()](#getWidth--) | Retrieve the width of the image with this convenient property. | -| [getHeight()](#getHeight--) | Access the height of the image using this property. | +| [getWidthF()](#getWidthF--) | Retrieve the width of the image with this convenient property. | +| [getHeightF()](#getHeightF--) | Access the height of the image using this property. | | [isCached()](#isCached--) | This property provides a convenient way to check if the object's data is currently cached, eliminating the need for additional data reading. | | [getPsStream()](#getPsStream--) | Gets the stream containing the PostScript to execute. | | [getPostScriptVersion()](#getPostScriptVersion--) | This property retrieves the PostScript version associated with the [EpsImage](../../com.aspose.imaging.fileformats.eps/epsimage) instance. | @@ -38,9 +38,6 @@ The API for Encapsulated PostScript (EPS) image file format support offers robus | [getPreviewImagesIter()](#getPreviewImagesIter--) | Accesses the preview images linked to the [EpsImage](../../com.aspose.imaging.fileformats.eps/epsimage) instance, allowing seamless retrieval for inspection or utilization in applications. | | [getPreviewImage()](#getPreviewImage--) | Retrieves the existing preview image in the specified `format` or returns `` if none is found. | | [getPreviewImage(long format)](#getPreviewImage-long-) | Retrieves the existing preview image in the specified `format` or returns `` if none is found. | -| [resize(int newWidth, int newHeight, int resizeType)](#resize-int-int-int-) | This method resizes the image, adjusting its dimensions according to specified parameters. | -| [resize(int newWidth, int newHeight, ImageResizeSettings settings)](#resize-int-int-com.aspose.imaging.ImageResizeSettings-) | This method resizes the image using predefined settings, allowing for efficient adjustment of dimensions. | -| [rotateFlip(int rotateFlipType)](#rotateFlip-int-) | This method facilitates versatile manipulation of the image by enabling rotation, flipping, or both rotation and flipping simultaneously. | | [setPalette(IColorPalette palette, boolean updateColors)](#setPalette-com.aspose.imaging.IColorPalette-boolean-) | Customize image palettes to achieve unique color schemes and enhance visual appeal. | | [getDefaultOptions(Object[] args)](#getDefaultOptions-java.lang.Object---) | Retrieve default options effortlessly to streamline image processing tasks. | @@ -175,26 +172,26 @@ Access the precise bit depth of the image effortlessly with this property. Retri **Returns:** int -### getWidth() {#getWidth--} +### getWidthF() {#getWidthF--} ``` -public int getWidth() +public float getWidthF() ``` Retrieve the width of the image with this convenient property. Obtain the image's width effortlessly, facilitating precise layout calculations, scaling operations, and dimension-related tasks within your application. Ideal for ensuring accurate rendering and display of images across various platforms and devices. **Returns:** -int - The image width in pixels. -### getHeight() {#getHeight--} +float - The image width in pixels. +### getHeightF() {#getHeightF--} ``` -public int getHeight() +public float getHeightF() ``` Access the height of the image using this property. Obtain the image's height with ease, enabling seamless layout adjustments, aspect ratio calculations, and precise rendering across different screen resolutions and display environments. **Returns:** -int - The image height in pixels. +float - The image height in pixels. ### isCached() {#isCached--} ``` public boolean isCached() @@ -331,89 +328,6 @@ Retrieves the existing preview image in the specified `format` or returns `` if **Returns:** [Image](../../com.aspose.imaging/image) - The existing preview image or ``. -### resize(int newWidth, int newHeight, int resizeType) {#resize-int-int-int-} -``` -public void resize(int newWidth, int newHeight, int resizeType) -``` - - -This method resizes the image, adjusting its dimensions according to specified parameters. It offers a straightforward way to modify the size of the image, ensuring flexibility and ease of use for developers. - -**Parameters:** -| Parameter | Type | Description | -| --- | --- | --- | -| newWidth | int | The new width. | -| newHeight | int | The new height. | -| resizeType | int | The resize type. | - - -**Example: Resize EPS image and export it to PNG format.** - -``` java -// Load EPS image -try (Image image = Image.load("AstrixObelix.eps")) -{ - // Resize the image using the Mitchell cubic interpolation method - image.resize(400, 400, ResizeType.Mitchell); - - // Export image to PNG format - image.save("ExportResult.png", new PngOptions()); -} -``` - -### resize(int newWidth, int newHeight, ImageResizeSettings settings) {#resize-int-int-com.aspose.imaging.ImageResizeSettings-} -``` -public void resize(int newWidth, int newHeight, ImageResizeSettings settings) -``` - - -This method resizes the image using predefined settings, allowing for efficient adjustment of dimensions. It provides a convenient way to modify the image size while maintaining control over various parameters, ensuring optimal results for different use cases. - -**Parameters:** -| Parameter | Type | Description | -| --- | --- | --- | -| newWidth | int | The new width. | -| newHeight | int | The new height. | -| settings | [ImageResizeSettings](../../com.aspose.imaging/imageresizesettings) | The resize settings. | - - -**Example: Resize EPS image using advanced settings.** - -``` java -// Load EPS image -try (Image image = Image.load("AstrixObelix.eps")) -{ - ImageResizeSettings resizeSettings = new ImageResizeSettings(); - // Set the interpolation mode - resizeSettings.setMode(ResizeType.LanczosResample); - // Set the type of the filter - resizeSettings.setFilterType(ImageFilterType.SmallRectangular); - // Sets the color compare method - resizeSettings.setColorCompareMethod(ColorCompareMethod.Euclidian); - // Set the color quantization method - resizeSettings.setColorQuantizationMethod(ColorQuantizationMethod.Popularity); - - // Resize the image using advanced resize settings - image.resize(400, 400, resizeSettings); - - // Export image to PNG format - image.save("ExportResult.png", new PngOptions()); -} -``` - -### rotateFlip(int rotateFlipType) {#rotateFlip-int-} -``` -public void rotateFlip(int rotateFlipType) -``` - - -This method facilitates versatile manipulation of the image by enabling rotation, flipping, or both rotation and flipping simultaneously. It offers flexibility in adjusting the orientation of the image to suit specific requirements, enhancing its usability and visual appeal. - -**Parameters:** -| Parameter | Type | Description | -| --- | --- | --- | -| rotateFlipType | int | Type of the rotate flip. | - ### setPalette(IColorPalette palette, boolean updateColors) {#setPalette-com.aspose.imaging.IColorPalette-boolean-} ``` public void setPalette(IColorPalette palette, boolean updateColors) diff --git a/english/java/com.aspose.imaging.fileformats.opendocument/odgimage/_index.md b/english/java/com.aspose.imaging.fileformats.opendocument/odgimage/_index.md index f6cdf3428f..6dc98748fd 100644 --- a/english/java/com.aspose.imaging.fileformats.opendocument/odgimage/_index.md +++ b/english/java/com.aspose.imaging.fileformats.opendocument/odgimage/_index.md @@ -26,9 +26,6 @@ Manipulate OpenDocument Graphic (ODG) vector image file format with our API, wid | [getFileFormat()](#getFileFormat--) | Easily retrieve the file format value with this user-friendly property. | | [getPages()](#getPages--) | Retrieving the collection of pages, this property empowers to access the entirety of pages associated with an image. | | [getDefaultOptions(Object[] args)](#getDefaultOptions-java.lang.Object---) | This property provides access to the default options associated with an image. | -| [resize(int newWidth, int newHeight, ImageResizeSettings settings)](#resize-int-int-com.aspose.imaging.ImageResizeSettings-) | This method helps developers to resize images programmatically. | -| [resize(int newWidth, int newHeight, int resizeType)](#resize-int-int-int-) | This method facilitates image resizing with precise control over width, height, and resize type parameters. | -| [rotateFlip(int rotateFlipType)](#rotateFlip-int-) | This versatile method apply various transformations to images, including rotation and flipping, to achieve desired orientations and visual effects. | ## Example: This example loads a multi-page ODG image. @@ -137,46 +134,3 @@ This property provides access to the default options associated with an image. B **Returns:** [ImageOptionsBase](../../com.aspose.imaging/imageoptionsbase) - Default options -### resize(int newWidth, int newHeight, ImageResizeSettings settings) {#resize-int-int-com.aspose.imaging.ImageResizeSettings-} -``` -public void resize(int newWidth, int newHeight, ImageResizeSettings settings) -``` - - -This method helps developers to resize images programmatically. By invoking this function, you can dynamically adjust the dimensions of images, catering to specific requirements or constraints within their applications. - -**Parameters:** -| Parameter | Type | Description | -| --- | --- | --- | -| newWidth | int | The new width. | -| newHeight | int | The new height. | -| settings | [ImageResizeSettings](../../com.aspose.imaging/imageresizesettings) | The resize settings. | - -### resize(int newWidth, int newHeight, int resizeType) {#resize-int-int-int-} -``` -public void resize(int newWidth, int newHeight, int resizeType) -``` - - -This method facilitates image resizing with precise control over width, height, and resize type parameters. You can specify the desired dimensions and choose from different resizing algorithms or types to achieve optimal results based on application's requirements. - -**Parameters:** -| Parameter | Type | Description | -| --- | --- | --- | -| newWidth | int | The new width. | -| newHeight | int | The new height. | -| resizeType | int | The resize type. | - -### rotateFlip(int rotateFlipType) {#rotateFlip-int-} -``` -public void rotateFlip(int rotateFlipType) -``` - - -This versatile method apply various transformations to images, including rotation and flipping, to achieve desired orientations and visual effects. With intuitive parameters, you can specify the degree of rotation and the type of flipping (horizontal, vertical, or both) to precisely manipulate the image as needed. - -**Parameters:** -| Parameter | Type | Description | -| --- | --- | --- | -| rotateFlipType | int | Type of the rotate flip. | - diff --git a/english/java/com.aspose.imaging.fileformats.opendocument/odimage/_index.md b/english/java/com.aspose.imaging.fileformats.opendocument/odimage/_index.md index a10987a029..20cb5faa36 100644 --- a/english/java/com.aspose.imaging.fileformats.opendocument/odimage/_index.md +++ b/english/java/com.aspose.imaging.fileformats.opendocument/odimage/_index.md @@ -29,14 +29,9 @@ The open document | [getDefaultPage()](#getDefaultPage--) | Retrieves the default page associated with the image, providing essential access to the primary page within the image collection. | | [isCached()](#isCached--) | Obtains a boolean value indicating whether the data of the object is currently cached, thus eliminating the need for data reading. | | [getBitsPerPixel()](#getBitsPerPixel--) | Retrieves the count of bits per pixel for the image. | -| [getWidth()](#getWidth--) | Retrieves the width of the image, indicating the horizontal dimension in pixels. | -| [getHeight()](#getHeight--) | Returns the height of the image, denoting the vertical dimension in pixels. | | [getPageCount()](#getPageCount--) | Retrieves the total count of pages within the image. | | [getMetadata()](#getMetadata--) | Retrieves metadata specific to OpenDocument files. | | [getRecords()](#getRecords--) | Retrieves the OpenDocument records stored within the image. | -| [resize(int newWidth, int newHeight, ImageResizeSettings settings)](#resize-int-int-com.aspose.imaging.ImageResizeSettings-) | Adjusts the dimensions of the image according to specified width, height, and resize settings. | -| [resize(int newWidth, int newHeight, int resizeType)](#resize-int-int-int-) | This method resizes the image, adjusting both width and height based on the specified dimensions and resize type. | -| [rotateFlip(int rotateFlipType)](#rotateFlip-int-) | This method provides functionality to rotate, flip, or perform both operations simultaneously on the image. | ### OdImage(StreamContainer streamContainer, LoadOptions options) {#OdImage-com.aspose.imaging.StreamContainer-com.aspose.imaging.LoadOptions-} ``` public OdImage(StreamContainer streamContainer, LoadOptions options) @@ -94,26 +89,6 @@ Retrieves the count of bits per pixel for the image. This property provides insi **Returns:** int - the image bits per pixel count. -### getWidth() {#getWidth--} -``` -public int getWidth() -``` - - -Retrieves the width of the image, indicating the horizontal dimension in pixels. This property provides essential information about the image's size, enabling precise rendering, manipulation, and analysis of image data. - -**Returns:** -int - the image width in pixels. -### getHeight() {#getHeight--} -``` -public int getHeight() -``` - - -Returns the height of the image, denoting the vertical dimension in pixels. This property is crucial for understanding the image's overall size and proportions, facilitating accurate display and processing of image content. - -**Returns:** -int - the image height in pixels. ### getPageCount() {#getPageCount--} ``` public int getPageCount() @@ -144,46 +119,3 @@ Retrieves the OpenDocument records stored within the image. This property grants **Returns:** com.aspose.imaging.fileformats.opendocument.OdObject[] - the records. -### resize(int newWidth, int newHeight, ImageResizeSettings settings) {#resize-int-int-com.aspose.imaging.ImageResizeSettings-} -``` -public void resize(int newWidth, int newHeight, ImageResizeSettings settings) -``` - - -Adjusts the dimensions of the image according to specified width, height, and resize settings. This method provides flexibility in resizing images while maintaining desired proportions and adhering to defined resize configurations, ensuring accurate adjustment of image dimensions to meet specific requirements or display criteria. - -**Parameters:** -| Parameter | Type | Description | -| --- | --- | --- | -| newWidth | int | The new width. | -| newHeight | int | The new height. | -| settings | [ImageResizeSettings](../../com.aspose.imaging/imageresizesettings) | The resize settings. | - -### resize(int newWidth, int newHeight, int resizeType) {#resize-int-int-int-} -``` -public void resize(int newWidth, int newHeight, int resizeType) -``` - - -This method resizes the image, adjusting both width and height based on the specified dimensions and resize type. It offers a comprehensive approach to resizing, allowing for precise adjustments while maintaining image quality and integrity. By incorporating the resize type parameter, users can choose from various resizing algorithms or methods to achieve optimal results for different use cases or preferences. - -**Parameters:** -| Parameter | Type | Description | -| --- | --- | --- | -| newWidth | int | The new width. | -| newHeight | int | The new height. | -| resizeType | int | The resize type. | - -### rotateFlip(int rotateFlipType) {#rotateFlip-int-} -``` -public void rotateFlip(int rotateFlipType) -``` - - -This method provides functionality to rotate, flip, or perform both operations simultaneously on the image. It allows users to manipulate the orientation of the image according to their specific requirements. With support for rotation angles and flip directions, it offers flexibility in transforming the image to desired orientations or orientations. - -**Parameters:** -| Parameter | Type | Description | -| --- | --- | --- | -| rotateFlipType | int | Type of the rotate flip. | - diff --git a/english/java/com.aspose.imaging.fileformats.svg/svgimage/_index.md b/english/java/com.aspose.imaging.fileformats.svg/svgimage/_index.md index 2a5caf28ce..76c6da80b4 100644 --- a/english/java/com.aspose.imaging.fileformats.svg/svgimage/_index.md +++ b/english/java/com.aspose.imaging.fileformats.svg/svgimage/_index.md @@ -27,14 +27,12 @@ Manipulate Scalar Vector Graphics (SVG) image files with our API, utilizing the | --- | --- | | [isCached()](#isCached--) | Retrieves a boolean value indicating whether the object's data is presently cached, eliminating the need for additional data reading operations. | | [getBitsPerPixel()](#getBitsPerPixel--) | Retrieves the bits per pixel count of the image. | -| [getHeight()](#getHeight--) | Retrieves the height of the image, indicating its vertical size in pixels. | -| [getWidth()](#getWidth--) | Returns the width of the image, denoting its horizontal size in pixels. | | [getFileFormat()](#getFileFormat--) | Retrieves the file format of the image, providing essential metadata for processing and compatibility checks. | | [getDefaultOptions(Object[] args)](#getDefaultOptions-java.lang.Object---) | Retrieve the default options configured for the image, providing a baseline setting for various operations such as resizing, compression, or encoding. | | [cacheData()](#cacheData--) | Cache the data and guarantee that there will be no further loading of data from the underlying `DataStreamSupporter.DataStreamContainer`([DataStreamSupporter.getDataStreamContainer](../../com.aspose.imaging/datastreamsupporter\#getDataStreamContainer)). | | [resize(int newWidth, int newHeight, int resizeType)](#resize-int-int-int-) | Resize the image to fit the specified dimensions while preserving its aspect ratio. | -| [resize(int newWidth, int newHeight, ImageResizeSettings settings)](#resize-int-int-com.aspose.imaging.ImageResizeSettings-) | Adjusts the image size according to the specified settings, enabling customization of the resizing process to meet specific requirements. | -| [rotateFlip(int rotateFlipType)](#rotateFlip-int-) | Applies rotation, flipping, or both to the image as per the specified parameters. | +| [crop(Rectangle rectangle)](#crop-com.aspose.imaging.Rectangle-) | Crops the specified rectangle. | +| [rotate(float angle)](#rotate-float-) | Rotate image around the center. | | [setPalette(IColorPalette palette, boolean updateColors)](#setPalette-com.aspose.imaging.IColorPalette-boolean-) | Applies a specified palette to the image, enabling customization of color schemes for aesthetic or functional purposes. | ## Example: This example shows how to load an SVG image from a file stream and rasterize it to PNG. @@ -192,26 +190,6 @@ Retrieves the bits per pixel count of the image. It's important to note that thi **Returns:** int - The image bits per pixel count. -### getHeight() {#getHeight--} -``` -public int getHeight() -``` - - -Retrieves the height of the image, indicating its vertical size in pixels. This property provides essential information for layout calculations and rendering processes, ensuring accurate display and manipulation of the image. - -**Returns:** -int - The image height in pixels. -### getWidth() {#getWidth--} -``` -public int getWidth() -``` - - -Returns the width of the image, denoting its horizontal size in pixels. This property is crucial for layout computations and display rendering, ensuring precise positioning and visualization of the image content. - -**Returns:** -int - The image width in pixels. ### getFileFormat() {#getFileFormat--} ``` public long getFileFormat() @@ -260,33 +238,31 @@ Resize the image to fit the specified dimensions while preserving its aspect rat | newHeight | int | The new height. | | resizeType | int | The resize type. | -### resize(int newWidth, int newHeight, ImageResizeSettings settings) {#resize-int-int-com.aspose.imaging.ImageResizeSettings-} +### crop(Rectangle rectangle) {#crop-com.aspose.imaging.Rectangle-} ``` -public void resize(int newWidth, int newHeight, ImageResizeSettings settings) +public void crop(Rectangle rectangle) ``` -Adjusts the image size according to the specified settings, enabling customization of the resizing process to meet specific requirements. This method offers flexibility in resizing operations, allowing for precise control over aspects such as interpolation methods, aspect ratio preservation, and output quality. +Crops the specified rectangle. **Parameters:** | Parameter | Type | Description | | --- | --- | --- | -| newWidth | int | The new width. | -| newHeight | int | The new height. | -| settings | [ImageResizeSettings](../../com.aspose.imaging/imageresizesettings) | The resize settings. | +| rectangle | [Rectangle](../../com.aspose.imaging/rectangle) | The rectangle. | -### rotateFlip(int rotateFlipType) {#rotateFlip-int-} +### rotate(float angle) {#rotate-float-} ``` -public void rotateFlip(int rotateFlipType) +public void rotate(float angle) ``` -Applies rotation, flipping, or both to the image as per the specified parameters. This method offers versatility in image manipulation, allowing for seamless adjustment of orientation to achieve desired visual effects or correct orientation errors. +Rotate image around the center. **Parameters:** | Parameter | Type | Description | | --- | --- | --- | -| rotateFlipType | int | Type of the rotating flip. | +| angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | ### setPalette(IColorPalette palette, boolean updateColors) {#setPalette-com.aspose.imaging.IColorPalette-boolean-} ``` diff --git a/english/java/com.aspose.imaging.fileformats.wmf/wmfimage/_index.md b/english/java/com.aspose.imaging.fileformats.wmf/wmfimage/_index.md index 5d7af0d36a..e2b774ac18 100644 --- a/english/java/com.aspose.imaging.fileformats.wmf/wmfimage/_index.md +++ b/english/java/com.aspose.imaging.fileformats.wmf/wmfimage/_index.md @@ -25,20 +25,16 @@ Manipulate Microsoft Windows Metafile (WMF) images with our API, seamlessly hand | --- | --- | | [isCached()](#isCached--) | Retrieve a boolean value indicating whether the object's data is currently cached, eliminating the need for additional data reading operations. | | [getBitsPerPixel()](#getBitsPerPixel--) | Retrieve the count of bits per pixel for the image, indicating the level of color depth or granularity. | -| [getWidth()](#getWidth--) | Access the width of the image, indicating the number of pixels along its horizontal axis. | -| [getHeight()](#getHeight--) | Access the image's height, representing the number of pixels along its vertical axis. | +| [getWidthF()](#getWidthF--) | Access the width of the image, indicating the number of pixels along its horizontal axis. | +| [getHeightF()](#getHeightF--) | Access the image's height, representing the number of pixels along its vertical axis. | | [getInch()](#getInch--) | Access or modify the inch property, representing a unit of measurement typically used for specifying physical dimensions in print or display contexts. | | [setInch(int value)](#setInch-int-) | Access or modify the inch property, representing a unit of measurement typically used for specifying physical dimensions in print or display contexts. | | [getFileFormat()](#getFileFormat--) | Access the file format value associated with the image, providing information about the format in which the image is stored. | | [getFrameBounds()](#getFrameBounds--) | Access the bounds of the frame, indicating its position and dimensions within the image. | | [cacheData()](#cacheData--) | Efficiently cache the data, eliminating the need for additional loading from the underlying `DataStreamSupporter.DataStreamContainer`([DataStreamSupporter.getDataStreamContainer](../../com.aspose.imaging/datastreamsupporter\#getDataStreamContainer)). | -| [resize(int newWidth, int newHeight, int resizeType)](#resize-int-int-int-) | Resize the image with the specified resizing type, allowing for flexible adjustment of dimensions while preserving aspect ratio or applying specific scaling algorithms. | -| [resize(int newWidth, int newHeight, ImageResizeSettings settings)](#resize-int-int-com.aspose.imaging.ImageResizeSettings-) | Adjust the size of the image based on specified settings, enabling precise control over dimensions, aspect ratio, and scaling behavior. | -| [rotateFlip(int rotateFlipType)](#rotateFlip-int-) | Perform rotation, flipping, or a combination of both operations on the image. | | [setPalette(IColorPalette palette, boolean updateColors)](#setPalette-com.aspose.imaging.IColorPalette-boolean-) | Apply a specified palette to the image, enabling customization of color representation. | | [getUsedFonts()](#getUsedFonts--) | Retrieve the list of fonts used within the metafile, providing insight into the font resources utilized in the image. | | [getDefaultOptions(Object[] args)](#getDefaultOptions-java.lang.Object---) | Retrieve the default options associated with the image, providing access to predefined settings or configurations. | -| [crop(Rectangle rectangle)](#crop-com.aspose.imaging.Rectangle-) | Crop the image to the specified rectangle, retaining only the selected region while discarding the rest. | | [resizeCanvas(Rectangle newRectangle)](#resizeCanvas-com.aspose.imaging.Rectangle-) | Resize the canvas of the image, adjusting its dimensions while retaining the image content. | | [addRecord(WmfObject record)](#addRecord-com.aspose.imaging.fileformats.wmf.objects.WmfObject-) | Incorporate the specified record object into the image, enriching its content with additional data or metadata. | | [getPostScript()](#getPostScript--) | Access the PostScript data associated with the image, providing detailed information about its structure or content. | @@ -147,26 +143,26 @@ Retrieve the count of bits per pixel for the image, indicating the level of colo **Returns:** int -### getWidth() {#getWidth--} +### getWidthF() {#getWidthF--} ``` -public int getWidth() +public float getWidthF() ``` Access the width of the image, indicating the number of pixels along its horizontal axis. Utilize this property to determine the image's spatial dimensions and aspect ratio, enabling precise layout and rendering adjustments within your application. **Returns:** -int - The image width in pixels. -### getHeight() {#getHeight--} +float - The image width in pixels. +### getHeightF() {#getHeightF--} ``` -public int getHeight() +public float getHeightF() ``` Access the image's height, representing the number of pixels along its vertical axis. Utilize this property to ascertain the image's spatial dimensions and aspect ratio, enabling accurate layout and rendering adjustments within your application. **Returns:** -int - The image height in pixels. +float - The image height in pixels. ### getInch() {#getInch--} ``` public int getInch() @@ -288,88 +284,6 @@ try { //WmfEof: 1 ``` -### resize(int newWidth, int newHeight, int resizeType) {#resize-int-int-int-} -``` -public void resize(int newWidth, int newHeight, int resizeType) -``` - - -Resize the image with the specified resizing type, allowing for flexible adjustment of dimensions while preserving aspect ratio or applying specific scaling algorithms. Integrate this method into your image processing workflow to achieve precise resizing operations tailored to your application's requirements. - -**Parameters:** -| Parameter | Type | Description | -| --- | --- | --- | -| newWidth | int | The new width. | -| newHeight | int | The new height. | -| resizeType | int | The resize type. | - - -**Example: This example loads a WMF image and resizes it using various resizing methods.** - -``` java -String dir = "c:\\temp\\"; - -com.aspose.imaging.fileformats.wmf.WmfImage image = (com.aspose.imaging.fileformats.wmf.WmfImage) com.aspose.imaging.Image.load(dir + "sample.wmf"); -try { - // Scale up by 2 times using Nearest Neighbour resampling. - image.resize(image.getWidth() * 2, image.getHeight() * 2, com.aspose.imaging.ResizeType.NearestNeighbourResample); -} finally { - image.dispose(); -} - -image = (com.aspose.imaging.fileformats.wmf.WmfImage) com.aspose.imaging.Image.load(dir + "sample.wmf"); -try { - // Scale down by 2 times using Nearest Neighbour resampling. - image.resize(image.getWidth() / 2, image.getHeight() / 2, com.aspose.imaging.ResizeType.NearestNeighbourResample); -} finally { - image.dispose(); -} - -image = (com.aspose.imaging.fileformats.wmf.WmfImage) com.aspose.imaging.Image.load(dir + "sample.wmf"); -try { - // Scale up by 2 times using Bilinear resampling. - image.resize(image.getWidth() * 2, image.getHeight() * 2, com.aspose.imaging.ResizeType.BilinearResample); -} finally { - image.dispose(); -} - -image = (com.aspose.imaging.fileformats.wmf.WmfImage) com.aspose.imaging.Image.load(dir + "sample.wmf"); -try { - // Scale down by 2 times using Bilinear resampling. - image.resize(image.getWidth() / 2, image.getHeight() / 2, com.aspose.imaging.ResizeType.BilinearResample); -} finally { - image.dispose(); -} -``` - -### resize(int newWidth, int newHeight, ImageResizeSettings settings) {#resize-int-int-com.aspose.imaging.ImageResizeSettings-} -``` -public void resize(int newWidth, int newHeight, ImageResizeSettings settings) -``` - - -Adjust the size of the image based on specified settings, enabling precise control over dimensions, aspect ratio, and scaling behavior. Integrate this method into your image processing workflow to achieve customized resizing operations tailored to the specific requirements of your application. - -**Parameters:** -| Parameter | Type | Description | -| --- | --- | --- | -| newWidth | int | The new width. | -| newHeight | int | The new height. | -| settings | [ImageResizeSettings](../../com.aspose.imaging/imageresizesettings) | The resize settings. | - -### rotateFlip(int rotateFlipType) {#rotateFlip-int-} -``` -public void rotateFlip(int rotateFlipType) -``` - - -Perform rotation, flipping, or a combination of both operations on the image. Integrate this method into your image processing workflow to achieve precise manipulation of image orientation and alignment within your application. - -**Parameters:** -| Parameter | Type | Description | -| --- | --- | --- | -| rotateFlipType | int | Type of the rotation and flipping. | - ### setPalette(IColorPalette palette, boolean updateColors) {#setPalette-com.aspose.imaging.IColorPalette-boolean-} ``` public void setPalette(IColorPalette palette, boolean updateColors) @@ -409,19 +323,6 @@ Retrieve the default options associated with the image, providing access to pred **Returns:** [ImageOptionsBase](../../com.aspose.imaging/imageoptionsbase) - Default options -### crop(Rectangle rectangle) {#crop-com.aspose.imaging.Rectangle-} -``` -public void crop(Rectangle rectangle) -``` - - -Crop the image to the specified rectangle, retaining only the selected region while discarding the rest. Integrate this method into your image processing workflow to extract specific areas of interest and customize the composition of the image within your application. - -**Parameters:** -| Parameter | Type | Description | -| --- | --- | --- | -| rectangle | [Rectangle](../../com.aspose.imaging/rectangle) | The rectangle. | - ### resizeCanvas(Rectangle newRectangle) {#resizeCanvas-com.aspose.imaging.Rectangle-} ``` public void resizeCanvas(Rectangle newRectangle) diff --git a/english/java/com.aspose.imaging.imageoptions/vectorrasterizationoptions/_index.md b/english/java/com.aspose.imaging.imageoptions/vectorrasterizationoptions/_index.md index 94808a612d..d7930895e6 100644 --- a/english/java/com.aspose.imaging.imageoptions/vectorrasterizationoptions/_index.md +++ b/english/java/com.aspose.imaging.imageoptions/vectorrasterizationoptions/_index.md @@ -12,7 +12,7 @@ java.lang.Object, [com.aspose.imaging.DisposableObject](../../com.aspose.imaging public class VectorRasterizationOptions extends ImageOptionsBase ``` -The vector rasterization options. +The vector rasterization options. Please note that `VectorRasterizationOptions`([ImageOptionsBase.getVectorRasterizationOptions](../../com.aspose.imaging/imageoptionsbase\#getVectorRasterizationOptions)/[ImageOptionsBase.setVectorRasterizationOptions(VectorRasterizationOptions)](../../com.aspose.imaging/imageoptionsbase\#setVectorRasterizationOptions-VectorRasterizationOptions-)) will no longer derive from [ImageOptionsBase](../../com.aspose.imaging/imageoptionsbase) since Aspose.Imaging 24.12 version. ## Constructors | Constructor | Description | diff --git a/english/java/com.aspose.imaging/_index.md b/english/java/com.aspose.imaging/_index.md index 4474b69597..1ea40797c7 100644 --- a/english/java/com.aspose.imaging/_index.md +++ b/english/java/com.aspose.imaging/_index.md @@ -67,7 +67,6 @@ The package is the core for nested packages and the most basic objects used for | [ImageFilterType](../com.aspose.imaging/imagefiltertype) | Image filters to use | | [ImageLoadersRegistry](../com.aspose.imaging/imageloadersregistry) | Represents the image loaders registry. | | [ImageOptionsBase](../com.aspose.imaging/imageoptionsbase) | The image base options. | -| [ImageOptionsDefault](../com.aspose.imaging/imageoptionsdefault) | The image options default | | [ImageResizeSettings](../com.aspose.imaging/imageresizesettings) | Image resize settings class | | [IntRange](../com.aspose.imaging/intrange) | Class for representing sequence of elements | | [InterpolationMode](../com.aspose.imaging/interpolationmode) | The `com.aspose.imaging.InterpolationMode` enumeration specifies the algorithm that is used when images are scaled or rotated. | diff --git a/english/java/com.aspose.imaging/customfontsource/_index.md b/english/java/com.aspose.imaging/customfontsource/_index.md index f0b25bd83e..67f392673d 100644 --- a/english/java/com.aspose.imaging/customfontsource/_index.md +++ b/english/java/com.aspose.imaging/customfontsource/_index.md @@ -3,7 +3,7 @@ title: CustomFontSource second_title: Aspose.Imaging for Java API Reference description: Custom font source provider interface type: docs -weight: 122 +weight: 121 url: /java/com.aspose.imaging/customfontsource/ ---``` public interface CustomFontSource diff --git a/english/java/com.aspose.imaging/iadvancedbufferprocessor/_index.md b/english/java/com.aspose.imaging/iadvancedbufferprocessor/_index.md index cafabd5bf5..c712c06b76 100644 --- a/english/java/com.aspose.imaging/iadvancedbufferprocessor/_index.md +++ b/english/java/com.aspose.imaging/iadvancedbufferprocessor/_index.md @@ -3,7 +3,7 @@ title: IAdvancedBufferProcessor second_title: Aspose.Imaging for Java API Reference description: The advanced buffer processor. type: docs -weight: 123 +weight: 122 url: /java/com.aspose.imaging/iadvancedbufferprocessor/ --- **All Implemented Interfaces:** diff --git a/english/java/com.aspose.imaging/ianimationframe/_index.md b/english/java/com.aspose.imaging/ianimationframe/_index.md index d376186607..2dc0bb9b04 100644 --- a/english/java/com.aspose.imaging/ianimationframe/_index.md +++ b/english/java/com.aspose.imaging/ianimationframe/_index.md @@ -3,7 +3,7 @@ title: IAnimationFrame second_title: Aspose.Imaging for Java API Reference description: The Animation frame type: docs -weight: 124 +weight: 123 url: /java/com.aspose.imaging/ianimationframe/ ---``` public interface IAnimationFrame diff --git a/english/java/com.aspose.imaging/ibufferprocessor/_index.md b/english/java/com.aspose.imaging/ibufferprocessor/_index.md index 3af6690d15..cd863a1b4f 100644 --- a/english/java/com.aspose.imaging/ibufferprocessor/_index.md +++ b/english/java/com.aspose.imaging/ibufferprocessor/_index.md @@ -3,7 +3,7 @@ title: IBufferProcessor second_title: Aspose.Imaging for Java API Reference description: The buffer processor. type: docs -weight: 125 +weight: 124 url: /java/com.aspose.imaging/ibufferprocessor/ ---``` public interface IBufferProcessor diff --git a/english/java/com.aspose.imaging/icolorconverter/_index.md b/english/java/com.aspose.imaging/icolorconverter/_index.md index a56af7d696..46d193825d 100644 --- a/english/java/com.aspose.imaging/icolorconverter/_index.md +++ b/english/java/com.aspose.imaging/icolorconverter/_index.md @@ -3,7 +3,7 @@ title: IColorConverter second_title: Aspose.Imaging for Java API Reference description: The color converter. type: docs -weight: 126 +weight: 125 url: /java/com.aspose.imaging/icolorconverter/ ---``` public interface IColorConverter diff --git a/english/java/com.aspose.imaging/icolorpalette/_index.md b/english/java/com.aspose.imaging/icolorpalette/_index.md index 37b2fc5c70..4178c1aab9 100644 --- a/english/java/com.aspose.imaging/icolorpalette/_index.md +++ b/english/java/com.aspose.imaging/icolorpalette/_index.md @@ -3,7 +3,7 @@ title: IColorPalette second_title: Aspose.Imaging for Java API Reference description: The color palette interface. type: docs -weight: 127 +weight: 126 url: /java/com.aspose.imaging/icolorpalette/ ---``` public interface IColorPalette diff --git a/english/java/com.aspose.imaging/ihasmetadata/_index.md b/english/java/com.aspose.imaging/ihasmetadata/_index.md index cfb6220b52..69e3bf56f3 100644 --- a/english/java/com.aspose.imaging/ihasmetadata/_index.md +++ b/english/java/com.aspose.imaging/ihasmetadata/_index.md @@ -3,7 +3,7 @@ title: IHasMetadata second_title: Aspose.Imaging for Java API Reference description: Image metadata interface. type: docs -weight: 128 +weight: 127 url: /java/com.aspose.imaging/ihasmetadata/ ---``` public interface IHasMetadata diff --git a/english/java/com.aspose.imaging/iimagecreator/_index.md b/english/java/com.aspose.imaging/iimagecreator/_index.md index 9d54e31770..28a93c798d 100644 --- a/english/java/com.aspose.imaging/iimagecreator/_index.md +++ b/english/java/com.aspose.imaging/iimagecreator/_index.md @@ -3,7 +3,7 @@ title: IImageCreator second_title: Aspose.Imaging for Java API Reference description: The image creator. type: docs -weight: 129 +weight: 128 url: /java/com.aspose.imaging/iimagecreator/ ---``` public interface IImageCreator diff --git a/english/java/com.aspose.imaging/iimagecreatordescriptor/_index.md b/english/java/com.aspose.imaging/iimagecreatordescriptor/_index.md index fa13bf3a80..a19f18b34a 100644 --- a/english/java/com.aspose.imaging/iimagecreatordescriptor/_index.md +++ b/english/java/com.aspose.imaging/iimagecreatordescriptor/_index.md @@ -3,7 +3,7 @@ title: IImageCreatorDescriptor second_title: Aspose.Imaging for Java API Reference description: The image creator descriptor specifying the creator properties. type: docs -weight: 130 +weight: 129 url: /java/com.aspose.imaging/iimagecreatordescriptor/ --- **All Implemented Interfaces:** diff --git a/english/java/com.aspose.imaging/iimagedescriptor/_index.md b/english/java/com.aspose.imaging/iimagedescriptor/_index.md index 20a84a512d..5c9bb1afec 100644 --- a/english/java/com.aspose.imaging/iimagedescriptor/_index.md +++ b/english/java/com.aspose.imaging/iimagedescriptor/_index.md @@ -3,7 +3,7 @@ title: IImageDescriptor second_title: Aspose.Imaging for Java API Reference description: The image descriptor. type: docs -weight: 131 +weight: 130 url: /java/com.aspose.imaging/iimagedescriptor/ ---``` public interface IImageDescriptor diff --git a/english/java/com.aspose.imaging/iimageexporter/_index.md b/english/java/com.aspose.imaging/iimageexporter/_index.md index 303d72594e..10d17ddaa6 100644 --- a/english/java/com.aspose.imaging/iimageexporter/_index.md +++ b/english/java/com.aspose.imaging/iimageexporter/_index.md @@ -3,7 +3,7 @@ title: IImageExporter second_title: Aspose.Imaging for Java API Reference description: The image exporter. type: docs -weight: 132 +weight: 131 url: /java/com.aspose.imaging/iimageexporter/ ---``` public interface IImageExporter diff --git a/english/java/com.aspose.imaging/iimageexporterdescriptor/_index.md b/english/java/com.aspose.imaging/iimageexporterdescriptor/_index.md index 5855e3bca8..d9d0c2a466 100644 --- a/english/java/com.aspose.imaging/iimageexporterdescriptor/_index.md +++ b/english/java/com.aspose.imaging/iimageexporterdescriptor/_index.md @@ -3,7 +3,7 @@ title: IImageExporterDescriptor second_title: Aspose.Imaging for Java API Reference description: Represents the image exporter descriptor. type: docs -weight: 133 +weight: 132 url: /java/com.aspose.imaging/iimageexporterdescriptor/ --- **All Implemented Interfaces:** diff --git a/english/java/com.aspose.imaging/iimageloader/_index.md b/english/java/com.aspose.imaging/iimageloader/_index.md index 4730acfdba..15a5477d83 100644 --- a/english/java/com.aspose.imaging/iimageloader/_index.md +++ b/english/java/com.aspose.imaging/iimageloader/_index.md @@ -3,7 +3,7 @@ title: IImageLoader second_title: Aspose.Imaging for Java API Reference description: The image loader. type: docs -weight: 134 +weight: 133 url: /java/com.aspose.imaging/iimageloader/ ---``` public interface IImageLoader diff --git a/english/java/com.aspose.imaging/iimageloaderdescriptor/_index.md b/english/java/com.aspose.imaging/iimageloaderdescriptor/_index.md index cb24d54f9f..1d6c221044 100644 --- a/english/java/com.aspose.imaging/iimageloaderdescriptor/_index.md +++ b/english/java/com.aspose.imaging/iimageloaderdescriptor/_index.md @@ -3,7 +3,7 @@ title: IImageLoaderDescriptor second_title: Aspose.Imaging for Java API Reference description: The image loader descriptor specifying the loader properties. type: docs -weight: 135 +weight: 134 url: /java/com.aspose.imaging/iimageloaderdescriptor/ --- **All Implemented Interfaces:** diff --git a/english/java/com.aspose.imaging/iindexedcolorconverter/_index.md b/english/java/com.aspose.imaging/iindexedcolorconverter/_index.md index f2f0efa94c..7c437e417a 100644 --- a/english/java/com.aspose.imaging/iindexedcolorconverter/_index.md +++ b/english/java/com.aspose.imaging/iindexedcolorconverter/_index.md @@ -3,7 +3,7 @@ title: IIndexedColorConverter second_title: Aspose.Imaging for Java API Reference description: The color converter for indexed image formats. type: docs -weight: 136 +weight: 135 url: /java/com.aspose.imaging/iindexedcolorconverter/ ---``` public interface IIndexedColorConverter diff --git a/english/java/com.aspose.imaging/ikeyedobject/_index.md b/english/java/com.aspose.imaging/ikeyedobject/_index.md index e65561e73b..7eaa1b7417 100644 --- a/english/java/com.aspose.imaging/ikeyedobject/_index.md +++ b/english/java/com.aspose.imaging/ikeyedobject/_index.md @@ -3,7 +3,7 @@ title: IKeyedObject second_title: Aspose.Imaging for Java API Reference description: Represents interface for objects with keys. type: docs -weight: 137 +weight: 136 url: /java/com.aspose.imaging/ikeyedobject/ ---``` public interface IKeyedObject diff --git a/english/java/com.aspose.imaging/image/_index.md b/english/java/com.aspose.imaging/image/_index.md index 6f1f545827..10d3c30840 100644 --- a/english/java/com.aspose.imaging/image/_index.md +++ b/english/java/com.aspose.imaging/image/_index.md @@ -27,8 +27,8 @@ The image is the base class for all type of images. | [create(ImageOptionsBase imageOptions, int width, int height)](#create-com.aspose.imaging.ImageOptionsBase-int-int-) | Creates a new image using the specified create options. | | [create(Image[] images)](#create-com.aspose.imaging.Image---) | Creates a new image using the specified images as pages | | [create(MultipageCreateOptions multipageCreateOptions)](#create-com.aspose.imaging.imageoptions.MultipageCreateOptions-) | Creates the specified multipage create options. | -| [create(String[] files, boolean throwExceptionOnLoadError)](#create-java.lang.String---boolean-) | Creates the specified files. | -| [create(String[] files)](#create-java.lang.String---) | Creates the specified files. | +| [create(String[] files, boolean throwExceptionOnLoadError)](#create-java.lang.String---boolean-) | Creates the multipage image containing the specified files. | +| [create(String[] files)](#create-java.lang.String---) | Creates the multipage image containing the specified files. | | [create(Image[] images, boolean disposeImages)](#create-com.aspose.imaging.Image---boolean-) | Creates a new image the specified images as pages. | | [getFileFormat(String filePath)](#getFileFormat-java.lang.String-) | Gets the file format. | | [load(String filePath, LoadOptions loadOptions)](#load-java.lang.String-com.aspose.imaging.LoadOptions-) | Loads a new image from the specified file path or URL. | @@ -78,6 +78,9 @@ The image is the base class for all type of images. | [resizeWidthProportionally(int newWidth, ImageResizeSettings settings)](#resizeWidthProportionally-int-com.aspose.imaging.ImageResizeSettings-) | Resizes the width proportionally. | | [resizeHeightProportionally(int newHeight, ImageResizeSettings settings)](#resizeHeightProportionally-int-com.aspose.imaging.ImageResizeSettings-) | Resizes the height proportionally. | | [rotateFlip(int rotateFlipType)](#rotateFlip-int-) | Rotates, flips, or rotates and flips the image. | +| [rotate(float angle)](#rotate-float-) | Rotate image around the center. | +| [crop(Rectangle rectangle)](#crop-com.aspose.imaging.Rectangle-) | Crops the specified rectangle. | +| [crop(int leftShift, int rightShift, int topShift, int bottomShift)](#crop-int-int-int-int-) | Crop image with shifts. | | [save()](#save--) | Saves the image data to the underlying stream. | | [save(String filePath)](#save-java.lang.String-) | Saves the image to the specified file location. | | [save(String filePath, ImageOptionsBase options)](#save-java.lang.String-com.aspose.imaging.ImageOptionsBase-) | Saves the object's data to the specified file location in the specified file format according to save options. | @@ -318,7 +321,7 @@ public static Image create(String[] files, boolean throwExceptionOnLoadError) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** | Parameter | Type | Description | @@ -334,7 +337,7 @@ public static Image create(String[] files) ``` -Creates the specified files. +Creates the multipage image containing the specified files. **Parameters:** | Parameter | Type | Description | @@ -1136,7 +1139,7 @@ for (String inputFile : fileNames) { ### resize(int newWidth, int newHeight, int resizeType) {#resize-int-int-int-} ``` -public abstract void resize(int newWidth, int newHeight, int resizeType) +public void resize(int newWidth, int newHeight, int resizeType) ``` @@ -1645,6 +1648,48 @@ try { } ``` +### rotate(float angle) {#rotate-float-} +``` +public void rotate(float angle) +``` + + +Rotate image around the center. + +**Parameters:** +| Parameter | Type | Description | +| --- | --- | --- | +| angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | + +### crop(Rectangle rectangle) {#crop-com.aspose.imaging.Rectangle-} +``` +public void crop(Rectangle rectangle) +``` + + +Crops the specified rectangle. + +**Parameters:** +| Parameter | Type | Description | +| --- | --- | --- | +| rectangle | [Rectangle](../../com.aspose.imaging/rectangle) | The rectangle. | + +### crop(int leftShift, int rightShift, int topShift, int bottomShift) {#crop-int-int-int-int-} +``` +public void crop(int leftShift, int rightShift, int topShift, int bottomShift) +``` + + +Crop image with shifts. + +**Parameters:** +| Parameter | Type | Description | +| --- | --- | --- | +| leftShift | int | The left shift. | +| rightShift | int | The right shift. | +| topShift | int | The top shift. | +| bottomShift | int | The bottom shift. | + ### save() {#save--} ``` public final void save() diff --git a/english/java/com.aspose.imaging/imageresizesettings/_index.md b/english/java/com.aspose.imaging/imageresizesettings/_index.md index d9d28e8917..f3e82eab74 100644 --- a/english/java/com.aspose.imaging/imageresizesettings/_index.md +++ b/english/java/com.aspose.imaging/imageresizesettings/_index.md @@ -3,7 +3,7 @@ title: ImageResizeSettings second_title: Aspose.Imaging for Java API Reference description: Image resize settings class type: docs -weight: 64 +weight: 63 url: /java/com.aspose.imaging/imageresizesettings/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/imultipageimage/_index.md b/english/java/com.aspose.imaging/imultipageimage/_index.md index 4e66394dc5..1e123cac57 100644 --- a/english/java/com.aspose.imaging/imultipageimage/_index.md +++ b/english/java/com.aspose.imaging/imultipageimage/_index.md @@ -3,7 +3,7 @@ title: IMultipageImage second_title: Aspose.Imaging for Java API Reference description: The multipage image interface type: docs -weight: 138 +weight: 137 url: /java/com.aspose.imaging/imultipageimage/ ---``` public interface IMultipageImage diff --git a/english/java/com.aspose.imaging/imultipageimageext/_index.md b/english/java/com.aspose.imaging/imultipageimageext/_index.md index d8677accef..e319cc5020 100644 --- a/english/java/com.aspose.imaging/imultipageimageext/_index.md +++ b/english/java/com.aspose.imaging/imultipageimageext/_index.md @@ -3,7 +3,7 @@ title: IMultipageImageExt second_title: Aspose.Imaging for Java API Reference description: The extended multipage image interface type: docs -weight: 139 +weight: 138 url: /java/com.aspose.imaging/imultipageimageext/ --- **All Implemented Interfaces:** diff --git a/english/java/com.aspose.imaging/interpolationmode/_index.md b/english/java/com.aspose.imaging/interpolationmode/_index.md index 568f515a33..80a12f4e43 100644 --- a/english/java/com.aspose.imaging/interpolationmode/_index.md +++ b/english/java/com.aspose.imaging/interpolationmode/_index.md @@ -3,7 +3,7 @@ title: InterpolationMode second_title: Aspose.Imaging for Java API Reference description: The com.aspose.imaging.InterpolationMode enumeration specifies the algorithm that is used when images are scaled or rotated. type: docs -weight: 66 +weight: 65 url: /java/com.aspose.imaging/interpolationmode/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/intrange/_index.md b/english/java/com.aspose.imaging/intrange/_index.md index 64b72e5ee0..bcd2ccfc9c 100644 --- a/english/java/com.aspose.imaging/intrange/_index.md +++ b/english/java/com.aspose.imaging/intrange/_index.md @@ -3,7 +3,7 @@ title: IntRange second_title: Aspose.Imaging for Java API Reference description: Class for representing sequence of elements type: docs -weight: 65 +weight: 64 url: /java/com.aspose.imaging/intrange/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/iobjectwithbounds/_index.md b/english/java/com.aspose.imaging/iobjectwithbounds/_index.md index e16503f7c9..9abafdf55c 100644 --- a/english/java/com.aspose.imaging/iobjectwithbounds/_index.md +++ b/english/java/com.aspose.imaging/iobjectwithbounds/_index.md @@ -3,7 +3,7 @@ title: IObjectWithBounds second_title: Aspose.Imaging for Java API Reference description: Represents an object with bounds. type: docs -weight: 140 +weight: 139 url: /java/com.aspose.imaging/iobjectwithbounds/ ---``` public interface IObjectWithBounds diff --git a/english/java/com.aspose.imaging/iorderedshape/_index.md b/english/java/com.aspose.imaging/iorderedshape/_index.md index f14435ecc5..600f4a3151 100644 --- a/english/java/com.aspose.imaging/iorderedshape/_index.md +++ b/english/java/com.aspose.imaging/iorderedshape/_index.md @@ -3,7 +3,7 @@ title: IOrderedShape second_title: Aspose.Imaging for Java API Reference description: Represents an ordered shape. type: docs -weight: 141 +weight: 140 url: /java/com.aspose.imaging/iorderedshape/ ---``` public interface IOrderedShape diff --git a/english/java/com.aspose.imaging/ipartialargb32pixelloader/_index.md b/english/java/com.aspose.imaging/ipartialargb32pixelloader/_index.md index a9fa148697..3e6393af7e 100644 --- a/english/java/com.aspose.imaging/ipartialargb32pixelloader/_index.md +++ b/english/java/com.aspose.imaging/ipartialargb32pixelloader/_index.md @@ -3,7 +3,7 @@ title: IPartialArgb32PixelLoader second_title: Aspose.Imaging for Java API Reference description: Conforms to the 32-bit ARGB pixels loaded partially. type: docs -weight: 142 +weight: 141 url: /java/com.aspose.imaging/ipartialargb32pixelloader/ ---``` public interface IPartialArgb32PixelLoader diff --git a/english/java/com.aspose.imaging/ipartialargb64pixelloader/_index.md b/english/java/com.aspose.imaging/ipartialargb64pixelloader/_index.md index caec7ca1e2..6203cb5ed4 100644 --- a/english/java/com.aspose.imaging/ipartialargb64pixelloader/_index.md +++ b/english/java/com.aspose.imaging/ipartialargb64pixelloader/_index.md @@ -3,7 +3,7 @@ title: IPartialArgb64PixelLoader second_title: Aspose.Imaging for Java API Reference description: The 64-bit ARGB pixels loader. type: docs -weight: 143 +weight: 142 url: /java/com.aspose.imaging/ipartialargb64pixelloader/ --- **All Implemented Interfaces:** diff --git a/english/java/com.aspose.imaging/ipartialpixelloader/_index.md b/english/java/com.aspose.imaging/ipartialpixelloader/_index.md index ff61790d4b..4b06fe004a 100644 --- a/english/java/com.aspose.imaging/ipartialpixelloader/_index.md +++ b/english/java/com.aspose.imaging/ipartialpixelloader/_index.md @@ -3,7 +3,7 @@ title: IPartialPixelLoader second_title: Aspose.Imaging for Java API Reference description: Conforms to the pixels loaded partially. type: docs -weight: 144 +weight: 143 url: /java/com.aspose.imaging/ipartialpixelloader/ ---``` public interface IPartialPixelLoader diff --git a/english/java/com.aspose.imaging/ipartialrawdataloader/_index.md b/english/java/com.aspose.imaging/ipartialrawdataloader/_index.md index e7f5943401..71a8c03785 100644 --- a/english/java/com.aspose.imaging/ipartialrawdataloader/_index.md +++ b/english/java/com.aspose.imaging/ipartialrawdataloader/_index.md @@ -3,7 +3,7 @@ title: IPartialRawDataLoader second_title: Aspose.Imaging for Java API Reference description: The partial data loader. type: docs -weight: 145 +weight: 144 url: /java/com.aspose.imaging/ipartialrawdataloader/ ---``` public interface IPartialRawDataLoader diff --git a/english/java/com.aspose.imaging/irasterimageargb32pixelloader/_index.md b/english/java/com.aspose.imaging/irasterimageargb32pixelloader/_index.md index aa669ed43d..e400c04342 100644 --- a/english/java/com.aspose.imaging/irasterimageargb32pixelloader/_index.md +++ b/english/java/com.aspose.imaging/irasterimageargb32pixelloader/_index.md @@ -3,7 +3,7 @@ title: IRasterImageArgb32PixelLoader second_title: Aspose.Imaging for Java API Reference description: The raster image 32-bit ARGB pixel loader. type: docs -weight: 146 +weight: 145 url: /java/com.aspose.imaging/irasterimageargb32pixelloader/ --- **All Implemented Interfaces:** diff --git a/english/java/com.aspose.imaging/irasterimageargb64pixelloader/_index.md b/english/java/com.aspose.imaging/irasterimageargb64pixelloader/_index.md index 27a491e1a4..4d017a46de 100644 --- a/english/java/com.aspose.imaging/irasterimageargb64pixelloader/_index.md +++ b/english/java/com.aspose.imaging/irasterimageargb64pixelloader/_index.md @@ -3,7 +3,7 @@ title: IRasterImageArgb64PixelLoader second_title: Aspose.Imaging for Java API Reference description: The raster image 64-bit ARGB pixel loader. type: docs -weight: 147 +weight: 146 url: /java/com.aspose.imaging/irasterimageargb64pixelloader/ --- **All Implemented Interfaces:** diff --git a/english/java/com.aspose.imaging/irasterimagepixelloader/_index.md b/english/java/com.aspose.imaging/irasterimagepixelloader/_index.md index b933469150..e194aacd36 100644 --- a/english/java/com.aspose.imaging/irasterimagepixelloader/_index.md +++ b/english/java/com.aspose.imaging/irasterimagepixelloader/_index.md @@ -3,7 +3,7 @@ title: IRasterImagePixelLoader second_title: Aspose.Imaging for Java API Reference description: The raster image pixel loader. type: docs -weight: 148 +weight: 147 url: /java/com.aspose.imaging/irasterimagepixelloader/ --- **All Implemented Interfaces:** diff --git a/english/java/com.aspose.imaging/irasterimagerawdataloader/_index.md b/english/java/com.aspose.imaging/irasterimagerawdataloader/_index.md index 61623119d1..251d4c8ef9 100644 --- a/english/java/com.aspose.imaging/irasterimagerawdataloader/_index.md +++ b/english/java/com.aspose.imaging/irasterimagerawdataloader/_index.md @@ -3,7 +3,7 @@ title: IRasterImageRawDataLoader second_title: Aspose.Imaging for Java API Reference description: The raster image raw data loader. type: docs -weight: 149 +weight: 148 url: /java/com.aspose.imaging/irasterimagerawdataloader/ ---``` public interface IRasterImageRawDataLoader diff --git a/english/java/com.aspose.imaging/knowncolor/_index.md b/english/java/com.aspose.imaging/knowncolor/_index.md index 5eead46424..6a7367bba4 100644 --- a/english/java/com.aspose.imaging/knowncolor/_index.md +++ b/english/java/com.aspose.imaging/knowncolor/_index.md @@ -3,7 +3,7 @@ title: KnownColor second_title: Aspose.Imaging for Java API Reference description: Specifies the known system colors. type: docs -weight: 67 +weight: 66 url: /java/com.aspose.imaging/knowncolor/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/license/_index.md b/english/java/com.aspose.imaging/license/_index.md index edbf49c782..e7f2d640a1 100644 --- a/english/java/com.aspose.imaging/license/_index.md +++ b/english/java/com.aspose.imaging/license/_index.md @@ -3,7 +3,7 @@ title: License second_title: Aspose.Imaging for Java API Reference description: Provides methods to license the component. type: docs -weight: 68 +weight: 67 url: /java/com.aspose.imaging/license/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/linecap/_index.md b/english/java/com.aspose.imaging/linecap/_index.md index 9b9a8090ca..bd62cf44a6 100644 --- a/english/java/com.aspose.imaging/linecap/_index.md +++ b/english/java/com.aspose.imaging/linecap/_index.md @@ -3,7 +3,7 @@ title: LineCap second_title: Aspose.Imaging for Java API Reference description: Specifies the available cap styles with which a Pen object can end a line. type: docs -weight: 69 +weight: 68 url: /java/com.aspose.imaging/linecap/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/linejoin/_index.md b/english/java/com.aspose.imaging/linejoin/_index.md index 8cf2d008e8..e6e7acc2ec 100644 --- a/english/java/com.aspose.imaging/linejoin/_index.md +++ b/english/java/com.aspose.imaging/linejoin/_index.md @@ -3,7 +3,7 @@ title: LineJoin second_title: Aspose.Imaging for Java API Reference description: Specifies how to join consecutive line or curve segments in a figure subpath contained in a GraphicsPath object. type: docs -weight: 70 +weight: 69 url: /java/com.aspose.imaging/linejoin/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/loadoptions/_index.md b/english/java/com.aspose.imaging/loadoptions/_index.md index d125432ac3..72168ec548 100644 --- a/english/java/com.aspose.imaging/loadoptions/_index.md +++ b/english/java/com.aspose.imaging/loadoptions/_index.md @@ -3,7 +3,7 @@ title: LoadOptions second_title: Aspose.Imaging for Java API Reference description: Represents the loading options. type: docs -weight: 71 +weight: 70 url: /java/com.aspose.imaging/loadoptions/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/localeoptions/_index.md b/english/java/com.aspose.imaging/localeoptions/_index.md index 9678fe5a7d..1accf88740 100644 --- a/english/java/com.aspose.imaging/localeoptions/_index.md +++ b/english/java/com.aspose.imaging/localeoptions/_index.md @@ -3,7 +3,7 @@ title: LocaleOptions second_title: Aspose.Imaging for Java API Reference description: LocaleOptions type specifies locale configuration for Aspose.Imaging. type: docs -weight: 72 +weight: 71 url: /java/com.aspose.imaging/localeoptions/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/matrix/_index.md b/english/java/com.aspose.imaging/matrix/_index.md index 9aa7d83c56..afde0f94fe 100644 --- a/english/java/com.aspose.imaging/matrix/_index.md +++ b/english/java/com.aspose.imaging/matrix/_index.md @@ -3,7 +3,7 @@ title: Matrix second_title: Aspose.Imaging for Java API Reference description: Replaces the GDI Matrix. type: docs -weight: 73 +weight: 72 url: /java/com.aspose.imaging/matrix/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/matrixorder/_index.md b/english/java/com.aspose.imaging/matrixorder/_index.md index e9e43709d2..de6a15c9fb 100644 --- a/english/java/com.aspose.imaging/matrixorder/_index.md +++ b/english/java/com.aspose.imaging/matrixorder/_index.md @@ -3,7 +3,7 @@ title: MatrixOrder second_title: Aspose.Imaging for Java API Reference description: Specifies the order for matrix transform operations. type: docs -weight: 74 +weight: 73 url: /java/com.aspose.imaging/matrixorder/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/metered/_index.md b/english/java/com.aspose.imaging/metered/_index.md index 0ffb36b7b1..666fad344f 100644 --- a/english/java/com.aspose.imaging/metered/_index.md +++ b/english/java/com.aspose.imaging/metered/_index.md @@ -3,7 +3,7 @@ title: Metered second_title: Aspose.Imaging for Java API Reference description: Provides metered methods for integration type: docs -weight: 75 +weight: 74 url: /java/com.aspose.imaging/metered/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/nongenericdictionary/_index.md b/english/java/com.aspose.imaging/nongenericdictionary/_index.md index a7c4fc87f7..4819f02a45 100644 --- a/english/java/com.aspose.imaging/nongenericdictionary/_index.md +++ b/english/java/com.aspose.imaging/nongenericdictionary/_index.md @@ -3,7 +3,7 @@ title: NonGenericDictionary second_title: Aspose.Imaging for Java API Reference description: Represents a non generic dictionary. type: docs -weight: 76 +weight: 75 url: /java/com.aspose.imaging/nongenericdictionary/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/nongenericlist/_index.md b/english/java/com.aspose.imaging/nongenericlist/_index.md index d94dc29eeb..06cd32ac1e 100644 --- a/english/java/com.aspose.imaging/nongenericlist/_index.md +++ b/english/java/com.aspose.imaging/nongenericlist/_index.md @@ -3,7 +3,7 @@ title: NonGenericList second_title: Aspose.Imaging for Java API Reference description: Non generic list of objects type: docs -weight: 77 +weight: 76 url: /java/com.aspose.imaging/nongenericlist/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/objectwithbounds/_index.md b/english/java/com.aspose.imaging/objectwithbounds/_index.md index 672ddf9ef9..22cdda6e17 100644 --- a/english/java/com.aspose.imaging/objectwithbounds/_index.md +++ b/english/java/com.aspose.imaging/objectwithbounds/_index.md @@ -3,7 +3,7 @@ title: ObjectWithBounds second_title: Aspose.Imaging for Java API Reference description: The object having bounds. type: docs -weight: 78 +weight: 77 url: /java/com.aspose.imaging/objectwithbounds/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/opentypefontscache/_index.md b/english/java/com.aspose.imaging/opentypefontscache/_index.md index 9e4f6d8063..1b2d5bcfd2 100644 --- a/english/java/com.aspose.imaging/opentypefontscache/_index.md +++ b/english/java/com.aspose.imaging/opentypefontscache/_index.md @@ -3,7 +3,7 @@ title: OpenTypeFontsCache second_title: Aspose.Imaging for Java API Reference description: OpenTypeInfoCacheProcessor type: docs -weight: 79 +weight: 78 url: /java/com.aspose.imaging/opentypefontscache/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/pageexportingaction/_index.md b/english/java/com.aspose.imaging/pageexportingaction/_index.md index 2717ad2618..a2a2109238 100644 --- a/english/java/com.aspose.imaging/pageexportingaction/_index.md +++ b/english/java/com.aspose.imaging/pageexportingaction/_index.md @@ -3,7 +3,7 @@ title: PageExportingAction second_title: Aspose.Imaging for Java API Reference description: Delegate for firing before page is exported type: docs -weight: 150 +weight: 149 url: /java/com.aspose.imaging/pageexportingaction/ ---``` public interface PageExportingAction diff --git a/english/java/com.aspose.imaging/paletteminingmethod/_index.md b/english/java/com.aspose.imaging/paletteminingmethod/_index.md index 80c587a80b..6410ccba9a 100644 --- a/english/java/com.aspose.imaging/paletteminingmethod/_index.md +++ b/english/java/com.aspose.imaging/paletteminingmethod/_index.md @@ -3,7 +3,7 @@ title: PaletteMiningMethod second_title: Aspose.Imaging for Java API Reference description: The image palette mining method type: docs -weight: 80 +weight: 79 url: /java/com.aspose.imaging/paletteminingmethod/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/pdfcomplianceversion/_index.md b/english/java/com.aspose.imaging/pdfcomplianceversion/_index.md index ad1f6709e1..2b9678eaa8 100644 --- a/english/java/com.aspose.imaging/pdfcomplianceversion/_index.md +++ b/english/java/com.aspose.imaging/pdfcomplianceversion/_index.md @@ -3,7 +3,7 @@ title: PdfComplianceVersion second_title: Aspose.Imaging for Java API Reference description: Specifies the PDF compliance level to output file. type: docs -weight: 81 +weight: 80 url: /java/com.aspose.imaging/pdfcomplianceversion/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/pen/_index.md b/english/java/com.aspose.imaging/pen/_index.md index fb2498f7af..dba8adb136 100644 --- a/english/java/com.aspose.imaging/pen/_index.md +++ b/english/java/com.aspose.imaging/pen/_index.md @@ -3,7 +3,7 @@ title: Pen second_title: Aspose.Imaging for Java API Reference description: Defines an object used to draw lines curves and figures. type: docs -weight: 82 +weight: 81 url: /java/com.aspose.imaging/pen/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/penalignment/_index.md b/english/java/com.aspose.imaging/penalignment/_index.md index 650afd19e2..c6a46d2e9e 100644 --- a/english/java/com.aspose.imaging/penalignment/_index.md +++ b/english/java/com.aspose.imaging/penalignment/_index.md @@ -3,7 +3,7 @@ title: PenAlignment second_title: Aspose.Imaging for Java API Reference description: Specifies the alignment of a Pen object in relation to the theoretical zero-width line. type: docs -weight: 83 +weight: 82 url: /java/com.aspose.imaging/penalignment/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/pentype/_index.md b/english/java/com.aspose.imaging/pentype/_index.md index d806f234d3..b10d778102 100644 --- a/english/java/com.aspose.imaging/pentype/_index.md +++ b/english/java/com.aspose.imaging/pentype/_index.md @@ -3,7 +3,7 @@ title: PenType second_title: Aspose.Imaging for Java API Reference description: Specifies the type of fill a Pen object uses to fill lines. type: docs -weight: 84 +weight: 83 url: /java/com.aspose.imaging/pentype/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/pixeldataformat/_index.md b/english/java/com.aspose.imaging/pixeldataformat/_index.md index e5236f2a79..1fdeea7176 100644 --- a/english/java/com.aspose.imaging/pixeldataformat/_index.md +++ b/english/java/com.aspose.imaging/pixeldataformat/_index.md @@ -3,7 +3,7 @@ title: PixelDataFormat second_title: Aspose.Imaging for Java API Reference description: The pixel data format. type: docs -weight: 85 +weight: 84 url: /java/com.aspose.imaging/pixeldataformat/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/pixelformat/_index.md b/english/java/com.aspose.imaging/pixelformat/_index.md index e141c9881b..9885ef6397 100644 --- a/english/java/com.aspose.imaging/pixelformat/_index.md +++ b/english/java/com.aspose.imaging/pixelformat/_index.md @@ -3,7 +3,7 @@ title: PixelFormat second_title: Aspose.Imaging for Java API Reference description: The pixel data format actual meaning. type: docs -weight: 86 +weight: 85 url: /java/com.aspose.imaging/pixelformat/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/point/_index.md b/english/java/com.aspose.imaging/point/_index.md index e534626831..1e69a6ddeb 100644 --- a/english/java/com.aspose.imaging/point/_index.md +++ b/english/java/com.aspose.imaging/point/_index.md @@ -3,7 +3,7 @@ title: Point second_title: Aspose.Imaging for Java API Reference description: Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional plane. type: docs -weight: 87 +weight: 86 url: /java/com.aspose.imaging/point/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/pointf/_index.md b/english/java/com.aspose.imaging/pointf/_index.md index 719d04e902..232269b494 100644 --- a/english/java/com.aspose.imaging/pointf/_index.md +++ b/english/java/com.aspose.imaging/pointf/_index.md @@ -3,7 +3,7 @@ title: PointF second_title: Aspose.Imaging for Java API Reference description: Represents an ordered pair of floating-point x- and y-coordinates that defines a point in a two-dimensional plane. type: docs -weight: 88 +weight: 87 url: /java/com.aspose.imaging/pointf/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/progresseventhandler/_index.md b/english/java/com.aspose.imaging/progresseventhandler/_index.md index 8b8ac5448d..f6f78f8f43 100644 --- a/english/java/com.aspose.imaging/progresseventhandler/_index.md +++ b/english/java/com.aspose.imaging/progresseventhandler/_index.md @@ -3,7 +3,7 @@ title: ProgressEventHandler second_title: Aspose.Imaging for Java API Reference description: Progress event handler function reference type: docs -weight: 89 +weight: 88 url: /java/com.aspose.imaging/progresseventhandler/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/rastercachedimage/_index.md b/english/java/com.aspose.imaging/rastercachedimage/_index.md index 84b165518a..ddb2e9e0b3 100644 --- a/english/java/com.aspose.imaging/rastercachedimage/_index.md +++ b/english/java/com.aspose.imaging/rastercachedimage/_index.md @@ -3,7 +3,7 @@ title: RasterCachedImage second_title: Aspose.Imaging for Java API Reference description: Represents a raster image supporting raster graphics operations. type: docs -weight: 90 +weight: 89 url: /java/com.aspose.imaging/rastercachedimage/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/rastercachedmultipageimage/_index.md b/english/java/com.aspose.imaging/rastercachedmultipageimage/_index.md index 18e3b66ba7..763273b3f6 100644 --- a/english/java/com.aspose.imaging/rastercachedmultipageimage/_index.md +++ b/english/java/com.aspose.imaging/rastercachedmultipageimage/_index.md @@ -3,7 +3,7 @@ title: RasterCachedMultipageImage second_title: Aspose.Imaging for Java API Reference description: The raster multipage image type: docs -weight: 91 +weight: 90 url: /java/com.aspose.imaging/rastercachedmultipageimage/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/rasterimage/_index.md b/english/java/com.aspose.imaging/rasterimage/_index.md index 83d671f572..1aeae89689 100644 --- a/english/java/com.aspose.imaging/rasterimage/_index.md +++ b/english/java/com.aspose.imaging/rasterimage/_index.md @@ -3,7 +3,7 @@ title: RasterImage second_title: Aspose.Imaging for Java API Reference description: Represents a raster image supporting raster graphics operations. type: docs -weight: 92 +weight: 91 url: /java/com.aspose.imaging/rasterimage/ --- **Inheritance:** @@ -83,9 +83,9 @@ Represents a raster image supporting raster graphics operations. | [saveCmyk32Pixels(Rectangle rectangle, int[] pixels)](#saveCmyk32Pixels-com.aspose.imaging.Rectangle-int---) | Saves the pixels. | | [setResolution(double dpiX, double dpiY)](#setResolution-double-double-) | Sets the resolution for this `RasterImage`. | | [setPalette(IColorPalette palette, boolean updateColors)](#setPalette-com.aspose.imaging.IColorPalette-boolean-) | Sets the image palette. | -| [resize(int newWidth, int newHeight, int resizeType)](#resize-int-int-int-) | Resizes the image. | | [resize(int newWidth, int newHeight, ImageResizeSettings settings)](#resize-int-int-com.aspose.imaging.ImageResizeSettings-) | Resizes the image with extended options. | -| [crop(Rectangle rectangle)](#crop-com.aspose.imaging.Rectangle-) | Crops the specified rectangle. | +| [rotate(float angle, boolean resizeProportionally, Color backgroundColor)](#rotate-float-boolean-com.aspose.imaging.Color-) | Rotate image around the center. | +| [rotate(float angle)](#rotate-float-) | Rotate image around the center. | | [binarizeFixed(byte threshold)](#binarizeFixed-byte-) | Binarization of an image with predefined threshold | | [binarizeOtsu()](#binarizeOtsu--) | Binarization of an image with Otsu thresholding | | [binarizeBradley(double brightnessDifference)](#binarizeBradley-double-) | Binarization of an image using Bradley's adaptive thresholding algorithm using the integral image thresholding | @@ -99,9 +99,6 @@ Represents a raster image supporting raster graphics operations. | [adjustContrast(float contrast)](#adjustContrast-float-) | Image contrasting | | [adjustGamma(float gammaRed, float gammaGreen, float gammaBlue)](#adjustGamma-float-float-float-) | Gamma-correction of an image. | | [adjustGamma(float gamma)](#adjustGamma-float-) | Gamma-correction of an image. | -| [crop(int leftShift, int rightShift, int topShift, int bottomShift)](#crop-int-int-int-int-) | Crop image with shifts. | -| [rotate(float angle, boolean resizeProportionally, Color backgroundColor)](#rotate-float-boolean-com.aspose.imaging.Color-) | Rotate image around the center. | -| [rotate(float angle)](#rotate-float-) | Rotate image around the center. | | [getSkewAngle()](#getSkewAngle--) | Gets the skew angle. | | [normalizeAngle()](#normalizeAngle--) | Normalizes the angle. | | [normalizeAngle(boolean resizeProportionally, Color backgroundColor)](#normalizeAngle-boolean-com.aspose.imaging.Color-) | Normalizes the angle. | @@ -1726,64 +1723,6 @@ Sets the image palette. | palette | [IColorPalette](../../com.aspose.imaging/icolorpalette) | The palette to set. | | updateColors | boolean | if set to `true` colors will be updated according to the new palette; otherwise color indexes remain unchanged. Note that unchanged indexes may crash the image on loading if some indexes have no corresponding palette entries. | -### resize(int newWidth, int newHeight, int resizeType) {#resize-int-int-int-} -``` -public void resize(int newWidth, int newHeight, int resizeType) -``` - - -Resizes the image. - -**Parameters:** -| Parameter | Type | Description | -| --- | --- | --- | -| newWidth | int | The new width. | -| newHeight | int | The new height. | -| resizeType | int | The resize type. | - - -**Example: This example loads a raster image and resizes it using various resizing methods.** - -``` java -String dir = "c:\\temp\\"; - -com.aspose.imaging.RasterImage image = (com.aspose.imaging.RasterImage) com.aspose.imaging.Image.load(dir + "sample.gif"); -try { - // Scale up by 2 times using Nearest Neighbour resampling. - image.resize(image.getWidth() * 2, image.getHeight() * 2, com.aspose.imaging.ResizeType.NearestNeighbourResample); - image.save(dir + "upsample.nearestneighbour.gif"); -} finally { - image.dispose(); -} - -image = (com.aspose.imaging.RasterImage) com.aspose.imaging.Image.load(dir + "sample.gif"); -try { - // Scale down by 2 times using Nearest Neighbour resampling. - image.resize(image.getWidth() / 2, image.getHeight() / 2, com.aspose.imaging.ResizeType.NearestNeighbourResample); - image.save(dir + "downsample.nearestneighbour.gif"); -} finally { - image.dispose(); -} - -image = (com.aspose.imaging.RasterImage) com.aspose.imaging.Image.load(dir + "sample.gif"); -try { - // Scale up by 2 times using Bilinear resampling. - image.resize(image.getWidth() * 2, image.getHeight() * 2, com.aspose.imaging.ResizeType.BilinearResample); - image.save(dir + "upsample.bilinear.gif"); -} finally { - image.dispose(); -} - -image = (com.aspose.imaging.RasterImage) com.aspose.imaging.Image.load(dir + "sample.gif"); -try { - // Scale down by 2 times using Bilinear resampling. - image.resize(image.getWidth() / 2, image.getHeight() / 2, com.aspose.imaging.ResizeType.BilinearResample); - image.save(dir + "downsample.bilinear.gif"); -} finally { - image.dispose(); -} -``` - ### resize(int newWidth, int newHeight, ImageResizeSettings settings) {#resize-int-int-com.aspose.imaging.ImageResizeSettings-} ``` public void resize(int newWidth, int newHeight, ImageResizeSettings settings) @@ -1832,39 +1771,33 @@ try { } ``` -### crop(Rectangle rectangle) {#crop-com.aspose.imaging.Rectangle-} +### rotate(float angle, boolean resizeProportionally, Color backgroundColor) {#rotate-float-boolean-com.aspose.imaging.Color-} ``` -public void crop(Rectangle rectangle) +public void rotate(float angle, boolean resizeProportionally, Color backgroundColor) ``` -Crops the specified rectangle. +Rotate image around the center. **Parameters:** | Parameter | Type | Description | | --- | --- | --- | -| rectangle | [Rectangle](../../com.aspose.imaging/rectangle) | The rectangle. | - +| angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | +| resizeProportionally | boolean | if set to `true` you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | +| backgroundColor | [Color](../../com.aspose.imaging/color) | Color of the background. | -**Example: The following example crops a raster image.** -The following example crops a raster image. The cropping area is be specified via com.aspose.imaging.Rectangle. -``` java -String dir = "c:\\temp\\"; +### rotate(float angle) {#rotate-float-} +``` +public void rotate(float angle) +``` -com.aspose.imaging.Image image = com.aspose.imaging.Image.load(dir + "sample.png"); -try { - com.aspose.imaging.RasterImage rasterImage = (com.aspose.imaging.RasterImage) image; - // Crop the image. The cropping area is the rectangular central area of the image. - com.aspose.imaging.Rectangle area = new com.aspose.imaging.Rectangle(rasterImage.getWidth() / 4, rasterImage.getHeight() / 4, rasterImage.getWidth() / 2, rasterImage.getHeight() / 2); - rasterImage.crop(area); +Rotate image around the center. - // Save the cropped image to PNG - rasterImage.save(dir + "sample.Crop.png"); -} finally { - image.dispose(); -} -``` +**Parameters:** +| Parameter | Type | Description | +| --- | --- | --- | +| angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | ### binarizeFixed(byte threshold) {#binarizeFixed-byte-} ``` @@ -2180,72 +2113,6 @@ try { } ``` -### crop(int leftShift, int rightShift, int topShift, int bottomShift) {#crop-int-int-int-int-} -``` -public void crop(int leftShift, int rightShift, int topShift, int bottomShift) -``` - - -Crop image with shifts. - -**Parameters:** -| Parameter | Type | Description | -| --- | --- | --- | -| leftShift | int | The left shift. | -| rightShift | int | The right shift. | -| topShift | int | The top shift. | -| bottomShift | int | The bottom shift. | - - -**Example: The following example crops a raster image.** -The following example crops a raster image. The cropping area is specified via Left, Top, Right, Bottom margins. -``` java -String dir = "c:\\temp\\"; - -com.aspose.imaging.Image image = com.aspose.imaging.Image.load(dir + "sample.png"); -try { - com.aspose.imaging.RasterImage rasterImage = (com.aspose.imaging.RasterImage) image; - - // Crop again. Set a margin of 10% of the image size. - int horizontalMargin = rasterImage.getWidth() / 10; - int verticalMargin = rasterImage.getHeight() / 10; - rasterImage.crop(horizontalMargin, horizontalMargin, verticalMargin, verticalMargin); - - // Save the cropped image to PNG. - rasterImage.save(dir + "sample.Crop.png"); -} finally { - image.dispose(); -} -``` - -### rotate(float angle, boolean resizeProportionally, Color backgroundColor) {#rotate-float-boolean-com.aspose.imaging.Color-} -``` -public void rotate(float angle, boolean resizeProportionally, Color backgroundColor) -``` - - -Rotate image around the center. - -**Parameters:** -| Parameter | Type | Description | -| --- | --- | --- | -| angle | float | The rotation angle in degrees. Positive values will rotate clockwise. | -| resizeProportionally | boolean | if set to `true` you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated. | -| backgroundColor | [Color](../../com.aspose.imaging/color) | Color of the background. | - -### rotate(float angle) {#rotate-float-} -``` -public void rotate(float angle) -``` - - -Rotate image around the center. - -**Parameters:** -| Parameter | Type | Description | -| --- | --- | --- | -| angle | float | The rotation angle in degrees. Positive values will rotate clockwise. | - ### getSkewAngle() {#getSkewAngle--} ``` public final float getSkewAngle() @@ -2262,7 +2129,7 @@ public final void normalizeAngle() ``` -Normalizes the angle. This method is applicable to scanned text documents to get rid of the skewed scan. This method uses [.getSkewAngle](../../null/\#getSkewAngle) and [.rotate(float)](../../null/\#rotate-float-) methods. +Normalizes the angle. This method is applicable to scanned text documents to get rid of the skewed scan. This method uses [.getSkewAngle](../../null/\#getSkewAngle) and [Image.rotate(float)](../../com.aspose.imaging/image\#rotate-float-) methods. ### normalizeAngle(boolean resizeProportionally, Color backgroundColor) {#normalizeAngle-boolean-com.aspose.imaging.Color-} ``` diff --git a/english/java/com.aspose.imaging/rawdatasettings/_index.md b/english/java/com.aspose.imaging/rawdatasettings/_index.md index f11f6e9ea1..9faa114d19 100644 --- a/english/java/com.aspose.imaging/rawdatasettings/_index.md +++ b/english/java/com.aspose.imaging/rawdatasettings/_index.md @@ -3,7 +3,7 @@ title: RawDataSettings second_title: Aspose.Imaging for Java API Reference description: The raw data settings type: docs -weight: 93 +weight: 92 url: /java/com.aspose.imaging/rawdatasettings/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/rectangle/_index.md b/english/java/com.aspose.imaging/rectangle/_index.md index 2fd62d4b85..4a81a7839f 100644 --- a/english/java/com.aspose.imaging/rectangle/_index.md +++ b/english/java/com.aspose.imaging/rectangle/_index.md @@ -3,7 +3,7 @@ title: Rectangle second_title: Aspose.Imaging for Java API Reference description: Stores a set of four integers that represent the location and size of a rectangle. type: docs -weight: 94 +weight: 93 url: /java/com.aspose.imaging/rectangle/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/rectanglef/_index.md b/english/java/com.aspose.imaging/rectanglef/_index.md index 8c9c1f9edc..00de6a18b8 100644 --- a/english/java/com.aspose.imaging/rectanglef/_index.md +++ b/english/java/com.aspose.imaging/rectanglef/_index.md @@ -3,7 +3,7 @@ title: RectangleF second_title: Aspose.Imaging for Java API Reference description: Stores a set of four floating-point numbers that represent the location and size of a rectangle. type: docs -weight: 95 +weight: 94 url: /java/com.aspose.imaging/rectanglef/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/region/_index.md b/english/java/com.aspose.imaging/region/_index.md index 60e294e1d9..88db4a06c7 100644 --- a/english/java/com.aspose.imaging/region/_index.md +++ b/english/java/com.aspose.imaging/region/_index.md @@ -3,7 +3,7 @@ title: Region second_title: Aspose.Imaging for Java API Reference description: Describes the interior of a graphics shape composed of rectangles and paths. type: docs -weight: 96 +weight: 95 url: /java/com.aspose.imaging/region/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/removebackgroundsettings/_index.md b/english/java/com.aspose.imaging/removebackgroundsettings/_index.md index adb1ac9e2c..96bf75d6f2 100644 --- a/english/java/com.aspose.imaging/removebackgroundsettings/_index.md +++ b/english/java/com.aspose.imaging/removebackgroundsettings/_index.md @@ -3,7 +3,7 @@ title: RemoveBackgroundSettings second_title: Aspose.Imaging for Java API Reference description: The remove background settings type: docs -weight: 97 +weight: 96 url: /java/com.aspose.imaging/removebackgroundsettings/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/resizetype/_index.md b/english/java/com.aspose.imaging/resizetype/_index.md index 155cecf444..d34ff82b7e 100644 --- a/english/java/com.aspose.imaging/resizetype/_index.md +++ b/english/java/com.aspose.imaging/resizetype/_index.md @@ -3,7 +3,7 @@ title: ResizeType second_title: Aspose.Imaging for Java API Reference description: Specifies the resize type. type: docs -weight: 98 +weight: 97 url: /java/com.aspose.imaging/resizetype/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/resolutionsetting/_index.md b/english/java/com.aspose.imaging/resolutionsetting/_index.md index 10b9a7be7c..ea345e6ade 100644 --- a/english/java/com.aspose.imaging/resolutionsetting/_index.md +++ b/english/java/com.aspose.imaging/resolutionsetting/_index.md @@ -3,7 +3,7 @@ title: ResolutionSetting second_title: Aspose.Imaging for Java API Reference description: The resolution setting for image save options. type: docs -weight: 99 +weight: 98 url: /java/com.aspose.imaging/resolutionsetting/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/resolutionunit/_index.md b/english/java/com.aspose.imaging/resolutionunit/_index.md index ae492c599a..78445d7fb3 100644 --- a/english/java/com.aspose.imaging/resolutionunit/_index.md +++ b/english/java/com.aspose.imaging/resolutionunit/_index.md @@ -3,7 +3,7 @@ title: ResolutionUnit second_title: Aspose.Imaging for Java API Reference description: Resolution unit enum. type: docs -weight: 100 +weight: 99 url: /java/com.aspose.imaging/resolutionunit/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/rotatefliptype/_index.md b/english/java/com.aspose.imaging/rotatefliptype/_index.md index bce63acd65..9f95d9e7f3 100644 --- a/english/java/com.aspose.imaging/rotatefliptype/_index.md +++ b/english/java/com.aspose.imaging/rotatefliptype/_index.md @@ -3,7 +3,7 @@ title: RotateFlipType second_title: Aspose.Imaging for Java API Reference description: Specifies how much an image is rotated and the axis used to flip the image. type: docs -weight: 101 +weight: 100 url: /java/com.aspose.imaging/rotatefliptype/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/seekorigin/_index.md b/english/java/com.aspose.imaging/seekorigin/_index.md index 9131f897f9..ae0d987365 100644 --- a/english/java/com.aspose.imaging/seekorigin/_index.md +++ b/english/java/com.aspose.imaging/seekorigin/_index.md @@ -3,7 +3,7 @@ title: SeekOrigin second_title: Aspose.Imaging for Java API Reference description: Provides the fields that represent reference points in StreamContainer for seeking. type: docs -weight: 102 +weight: 101 url: /java/com.aspose.imaging/seekorigin/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/shape/_index.md b/english/java/com.aspose.imaging/shape/_index.md index 7e1de59397..faff15e98d 100644 --- a/english/java/com.aspose.imaging/shape/_index.md +++ b/english/java/com.aspose.imaging/shape/_index.md @@ -3,7 +3,7 @@ title: Shape second_title: Aspose.Imaging for Java API Reference description: The shape. type: docs -weight: 103 +weight: 102 url: /java/com.aspose.imaging/shape/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/shapesegment/_index.md b/english/java/com.aspose.imaging/shapesegment/_index.md index 468b0f8ebc..06dc4aebfc 100644 --- a/english/java/com.aspose.imaging/shapesegment/_index.md +++ b/english/java/com.aspose.imaging/shapesegment/_index.md @@ -3,7 +3,7 @@ title: ShapeSegment second_title: Aspose.Imaging for Java API Reference description: Represents a shape segment. type: docs -weight: 104 +weight: 103 url: /java/com.aspose.imaging/shapesegment/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/size/_index.md b/english/java/com.aspose.imaging/size/_index.md index acca3ebdcb..d801eda4f3 100644 --- a/english/java/com.aspose.imaging/size/_index.md +++ b/english/java/com.aspose.imaging/size/_index.md @@ -3,7 +3,7 @@ title: Size second_title: Aspose.Imaging for Java API Reference description: Represents size. type: docs -weight: 105 +weight: 104 url: /java/com.aspose.imaging/size/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/sizef/_index.md b/english/java/com.aspose.imaging/sizef/_index.md index b44bf85336..aab01982a6 100644 --- a/english/java/com.aspose.imaging/sizef/_index.md +++ b/english/java/com.aspose.imaging/sizef/_index.md @@ -3,7 +3,7 @@ title: SizeF second_title: Aspose.Imaging for Java API Reference description: Stores an ordered pair of floating-point numbers typically the width and height of a rectangle. type: docs -weight: 106 +weight: 105 url: /java/com.aspose.imaging/sizef/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/smoothingmode/_index.md b/english/java/com.aspose.imaging/smoothingmode/_index.md index 8d10a52f6a..cf506f6f6f 100644 --- a/english/java/com.aspose.imaging/smoothingmode/_index.md +++ b/english/java/com.aspose.imaging/smoothingmode/_index.md @@ -3,7 +3,7 @@ title: SmoothingMode second_title: Aspose.Imaging for Java API Reference description: Specifies whether smoothing antialiasing is applied to lines and curves and the edges of filled areas. type: docs -weight: 107 +weight: 106 url: /java/com.aspose.imaging/smoothingmode/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/source/_index.md b/english/java/com.aspose.imaging/source/_index.md index 1b131684e5..b1a516f885 100644 --- a/english/java/com.aspose.imaging/source/_index.md +++ b/english/java/com.aspose.imaging/source/_index.md @@ -3,7 +3,7 @@ title: Source second_title: Aspose.Imaging for Java API Reference description: The source is used to contain all relevant information for an object pipe. type: docs -weight: 108 +weight: 107 url: /java/com.aspose.imaging/source/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/splitstreamcontainer/_index.md b/english/java/com.aspose.imaging/splitstreamcontainer/_index.md index bece8198b1..b390a65461 100644 --- a/english/java/com.aspose.imaging/splitstreamcontainer/_index.md +++ b/english/java/com.aspose.imaging/splitstreamcontainer/_index.md @@ -3,7 +3,7 @@ title: SplitStreamContainer second_title: Aspose.Imaging for Java API Reference description: Represents split stream container which contains the stream and provides stream processing routines. type: docs -weight: 109 +weight: 108 url: /java/com.aspose.imaging/splitstreamcontainer/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/streamcontainer/_index.md b/english/java/com.aspose.imaging/streamcontainer/_index.md index 4cce92f73d..d7d398528d 100644 --- a/english/java/com.aspose.imaging/streamcontainer/_index.md +++ b/english/java/com.aspose.imaging/streamcontainer/_index.md @@ -3,7 +3,7 @@ title: StreamContainer second_title: Aspose.Imaging for Java API Reference description: Represents stream container which contains the stream and provides stream processing routines. type: docs -weight: 110 +weight: 109 url: /java/com.aspose.imaging/streamcontainer/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/stringalignment/_index.md b/english/java/com.aspose.imaging/stringalignment/_index.md index 0ac4ddd13a..fbe5141e2d 100644 --- a/english/java/com.aspose.imaging/stringalignment/_index.md +++ b/english/java/com.aspose.imaging/stringalignment/_index.md @@ -3,7 +3,7 @@ title: StringAlignment second_title: Aspose.Imaging for Java API Reference description: Specifies the alignment of a text string relative to its layout rectangle. type: docs -weight: 111 +weight: 110 url: /java/com.aspose.imaging/stringalignment/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/stringdigitsubstitute/_index.md b/english/java/com.aspose.imaging/stringdigitsubstitute/_index.md index 8245aba857..90aaa8c49d 100644 --- a/english/java/com.aspose.imaging/stringdigitsubstitute/_index.md +++ b/english/java/com.aspose.imaging/stringdigitsubstitute/_index.md @@ -3,7 +3,7 @@ title: StringDigitSubstitute second_title: Aspose.Imaging for Java API Reference description: The enumeration specifies how to substitute digits in a string according to a users locale or language. type: docs -weight: 112 +weight: 111 url: /java/com.aspose.imaging/stringdigitsubstitute/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/stringformat/_index.md b/english/java/com.aspose.imaging/stringformat/_index.md index f10cc8c26b..a2013dbdfc 100644 --- a/english/java/com.aspose.imaging/stringformat/_index.md +++ b/english/java/com.aspose.imaging/stringformat/_index.md @@ -3,7 +3,7 @@ title: StringFormat second_title: Aspose.Imaging for Java API Reference description: Encapsulates text layout information such as alignment orientation and tab stops display manipulations such as ellipsis insertion and national digit substitution and OpenType features. type: docs -weight: 113 +weight: 112 url: /java/com.aspose.imaging/stringformat/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/stringformatflags/_index.md b/english/java/com.aspose.imaging/stringformatflags/_index.md index ed6cda8c89..2fd0b631c1 100644 --- a/english/java/com.aspose.imaging/stringformatflags/_index.md +++ b/english/java/com.aspose.imaging/stringformatflags/_index.md @@ -3,7 +3,7 @@ title: StringFormatFlags second_title: Aspose.Imaging for Java API Reference description: Specifies the display and layout information for text strings. type: docs -weight: 114 +weight: 113 url: /java/com.aspose.imaging/stringformatflags/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/stringtrimming/_index.md b/english/java/com.aspose.imaging/stringtrimming/_index.md index 29c8d4accf..299be78746 100644 --- a/english/java/com.aspose.imaging/stringtrimming/_index.md +++ b/english/java/com.aspose.imaging/stringtrimming/_index.md @@ -3,7 +3,7 @@ title: StringTrimming second_title: Aspose.Imaging for Java API Reference description: Specifies how to trim characters from a string that does not completely fit into a layout shape. type: docs -weight: 115 +weight: 114 url: /java/com.aspose.imaging/stringtrimming/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/textrenderinghint/_index.md b/english/java/com.aspose.imaging/textrenderinghint/_index.md index f9eeb1b2c2..1e9b3925ac 100644 --- a/english/java/com.aspose.imaging/textrenderinghint/_index.md +++ b/english/java/com.aspose.imaging/textrenderinghint/_index.md @@ -3,7 +3,7 @@ title: TextRenderingHint second_title: Aspose.Imaging for Java API Reference description: Specifies the quality of text rendering. type: docs -weight: 116 +weight: 115 url: /java/com.aspose.imaging/textrenderinghint/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/transparencysupporter/_index.md b/english/java/com.aspose.imaging/transparencysupporter/_index.md index 0c3a3716fd..f162e047b0 100644 --- a/english/java/com.aspose.imaging/transparencysupporter/_index.md +++ b/english/java/com.aspose.imaging/transparencysupporter/_index.md @@ -3,7 +3,7 @@ title: TransparencySupporter second_title: Aspose.Imaging for Java API Reference description: The object supporting transparency. type: docs -weight: 117 +weight: 116 url: /java/com.aspose.imaging/transparencysupporter/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/vectorimage/_index.md b/english/java/com.aspose.imaging/vectorimage/_index.md index 9bc6dceb6f..aefc81e586 100644 --- a/english/java/com.aspose.imaging/vectorimage/_index.md +++ b/english/java/com.aspose.imaging/vectorimage/_index.md @@ -3,7 +3,7 @@ title: VectorImage second_title: Aspose.Imaging for Java API Reference description: The vector image is the base class for all type of vector images. type: docs -weight: 118 +weight: 117 url: /java/com.aspose.imaging/vectorimage/ --- **Inheritance:** @@ -25,6 +25,11 @@ The vector image is the base class for all type of vector images. | Method | Description | | --- | --- | +| [resize(int newWidth, int newHeight, int resizeType)](#resize-int-int-int-) | Resizes the specified new width. | +| [resize(int newWidth, int newHeight, ImageResizeSettings settings)](#resize-int-int-com.aspose.imaging.ImageResizeSettings-) | Resizes the image with extended options. | +| [rotateFlip(int rotateFlipType)](#rotateFlip-int-) | Rotates, flips, or rotates and flips the image. | +| [crop(Rectangle rectangle)](#crop-com.aspose.imaging.Rectangle-) | Crops the specified rectangle. | +| [rotate(float angle)](#rotate-float-) | Rotate image around the center. | | [getSizeF()](#getSizeF--) | Gets the object size, in inches. | | [getWidthF()](#getWidthF--) | Gets the object width, in inches. | | [getHeightF()](#getHeightF--) | Gets the object height, in inches. | @@ -72,6 +77,75 @@ public VectorImage() ``` +### resize(int newWidth, int newHeight, int resizeType) {#resize-int-int-int-} +``` +public void resize(int newWidth, int newHeight, int resizeType) +``` + + +Resizes the specified new width. + +**Parameters:** +| Parameter | Type | Description | +| --- | --- | --- | +| newWidth | int | The new width. | +| newHeight | int | The new height. | +| resizeType | int | Type of the resize. | + +### resize(int newWidth, int newHeight, ImageResizeSettings settings) {#resize-int-int-com.aspose.imaging.ImageResizeSettings-} +``` +public void resize(int newWidth, int newHeight, ImageResizeSettings settings) +``` + + +Resizes the image with extended options. + +**Parameters:** +| Parameter | Type | Description | +| --- | --- | --- | +| newWidth | int | The new width. | +| newHeight | int | The new height. | +| settings | [ImageResizeSettings](../../com.aspose.imaging/imageresizesettings) | The resize settings. | + +### rotateFlip(int rotateFlipType) {#rotateFlip-int-} +``` +public void rotateFlip(int rotateFlipType) +``` + + +Rotates, flips, or rotates and flips the image. + +**Parameters:** +| Parameter | Type | Description | +| --- | --- | --- | +| rotateFlipType | int | Type of the rotate&flip. | + +### crop(Rectangle rectangle) {#crop-com.aspose.imaging.Rectangle-} +``` +public void crop(Rectangle rectangle) +``` + + +Crops the specified rectangle. + +**Parameters:** +| Parameter | Type | Description | +| --- | --- | --- | +| rectangle | [Rectangle](../../com.aspose.imaging/rectangle) | The rectangle. | + +### rotate(float angle) {#rotate-float-} +``` +public void rotate(float angle) +``` + + +Rotate image around the center. + +**Parameters:** +| Parameter | Type | Description | +| --- | --- | --- | +| angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | + ### getSizeF() {#getSizeF--} ``` public final SizeF getSizeF() @@ -158,7 +232,7 @@ try (Image image = com.aspose.imaging.Image.load(inputFileName)) ### removeBackground() {#removeBackground--} ``` -public final void removeBackground() +public void removeBackground() ``` @@ -166,7 +240,7 @@ Removes the background. ### removeBackground(RemoveBackgroundSettings settings) {#removeBackground-com.aspose.imaging.RemoveBackgroundSettings-} ``` -public final void removeBackground(RemoveBackgroundSettings settings) +public void removeBackground(RemoveBackgroundSettings settings) ``` diff --git a/english/java/com.aspose.imaging/vectormultipageimage/_index.md b/english/java/com.aspose.imaging/vectormultipageimage/_index.md index 537bcef42d..c07ffe4783 100644 --- a/english/java/com.aspose.imaging/vectormultipageimage/_index.md +++ b/english/java/com.aspose.imaging/vectormultipageimage/_index.md @@ -3,7 +3,7 @@ title: VectorMultipageImage second_title: Aspose.Imaging for Java API Reference description: The Vector multipage image type: docs -weight: 119 +weight: 118 url: /java/com.aspose.imaging/vectormultipageimage/ --- **Inheritance:** @@ -33,9 +33,13 @@ The Vector multipage image | [getPageExportingAction()](#getPageExportingAction--) | Gets the page exporting action. | | [setPageExportingAction(PageExportingAction value)](#setPageExportingAction-com.aspose.imaging.PageExportingAction-) | Sets the page exporting action. | | [cacheData()](#cacheData--) | Caches the data and ensures no additional data loading will be performed from the underlying `DataStreamSupporter.getDataStreamContainer()`([DataStreamSupporter.getDataStreamContainer](../../com.aspose.imaging/datastreamsupporter\#getDataStreamContainer)). | +| [crop(Rectangle rectangle)](#crop-com.aspose.imaging.Rectangle-) | Crops the specified rectangle. | | [resize(int newWidth, int newHeight, int resizeType)](#resize-int-int-int-) | Resizes the image. | +| [rotate(float angle)](#rotate-float-) | Rotate image around the center. | | [resize(int newWidth, int newHeight, ImageResizeSettings settings)](#resize-int-int-com.aspose.imaging.ImageResizeSettings-) | Resizes the image. | | [rotateFlip(int rotateFlipType)](#rotateFlip-int-) | Rotates, flips, or rotates and flips the image. | +| [removeBackground(RemoveBackgroundSettings settings)](#removeBackground-com.aspose.imaging.RemoveBackgroundSettings-) | Removes the background. | +| [removeBackground()](#removeBackground--) | Removes the background. | | [setPalette(IColorPalette palette, boolean updateColors)](#setPalette-com.aspose.imaging.IColorPalette-boolean-) | Sets the image palette. | | [getEmbeddedImages()](#getEmbeddedImages--) | Gets the embedded images. | ### VectorMultipageImage() {#VectorMultipageImage--} @@ -139,6 +143,19 @@ public void cacheData() Caches the data and ensures no additional data loading will be performed from the underlying `DataStreamSupporter.getDataStreamContainer()`([DataStreamSupporter.getDataStreamContainer](../../com.aspose.imaging/datastreamsupporter\#getDataStreamContainer)). +### crop(Rectangle rectangle) {#crop-com.aspose.imaging.Rectangle-} +``` +public void crop(Rectangle rectangle) +``` + + +Crops the specified rectangle. + +**Parameters:** +| Parameter | Type | Description | +| --- | --- | --- | +| rectangle | [Rectangle](../../com.aspose.imaging/rectangle) | The rectangle. | + ### resize(int newWidth, int newHeight, int resizeType) {#resize-int-int-int-} ``` public void resize(int newWidth, int newHeight, int resizeType) @@ -154,6 +171,19 @@ Resizes the image. | newHeight | int | The new height. | | resizeType | int | The resize type. | +### rotate(float angle) {#rotate-float-} +``` +public void rotate(float angle) +``` + + +Rotate image around the center. + +**Parameters:** +| Parameter | Type | Description | +| --- | --- | --- | +| angle | float | The rotate angle in degrees. Positive values will rotate clockwise. | + ### resize(int newWidth, int newHeight, ImageResizeSettings settings) {#resize-int-int-com.aspose.imaging.ImageResizeSettings-} ``` public void resize(int newWidth, int newHeight, ImageResizeSettings settings) @@ -182,6 +212,27 @@ Rotates, flips, or rotates and flips the image. | --- | --- | --- | | rotateFlipType | int | Type of the rotation and flip. | +### removeBackground(RemoveBackgroundSettings settings) {#removeBackground-com.aspose.imaging.RemoveBackgroundSettings-} +``` +public void removeBackground(RemoveBackgroundSettings settings) +``` + + +Removes the background. + +**Parameters:** +| Parameter | Type | Description | +| --- | --- | --- | +| settings | [RemoveBackgroundSettings](../../com.aspose.imaging/removebackgroundsettings) | The settings. | + +### removeBackground() {#removeBackground--} +``` +public void removeBackground() +``` + + +Removes the background. + ### setPalette(IColorPalette palette, boolean updateColors) {#setPalette-com.aspose.imaging.IColorPalette-boolean-} ``` public void setPalette(IColorPalette palette, boolean updateColors) diff --git a/english/java/com.aspose.imaging/warpmode/_index.md b/english/java/com.aspose.imaging/warpmode/_index.md index c43508e317..02fdd59396 100644 --- a/english/java/com.aspose.imaging/warpmode/_index.md +++ b/english/java/com.aspose.imaging/warpmode/_index.md @@ -3,7 +3,7 @@ title: WarpMode second_title: Aspose.Imaging for Java API Reference description: Specifies the type of warp transformation applied. type: docs -weight: 120 +weight: 119 url: /java/com.aspose.imaging/warpmode/ --- **Inheritance:** diff --git a/english/java/com.aspose.imaging/wrapmode/_index.md b/english/java/com.aspose.imaging/wrapmode/_index.md index a15c620458..0a6145ad1f 100644 --- a/english/java/com.aspose.imaging/wrapmode/_index.md +++ b/english/java/com.aspose.imaging/wrapmode/_index.md @@ -3,7 +3,7 @@ title: WrapMode second_title: Aspose.Imaging for Java API Reference description: Specifies how a texture or gradient is tiled when it is smaller than the area being filled. type: docs -weight: 121 +weight: 120 url: /java/com.aspose.imaging/wrapmode/ --- **Inheritance:** diff --git a/english/net/aspose.imaging.fileformats.apng/apngframe/_index.md b/english/net/aspose.imaging.fileformats.apng/apngframe/_index.md index 1e7effaf3b..1e141b9c97 100644 --- a/english/net/aspose.imaging.fileformats.apng/apngframe/_index.md +++ b/english/net/aspose.imaging.fileformats.apng/apngframe/_index.md @@ -75,7 +75,7 @@ public class ApngFrame : RasterCachedImage, IAnimationFrame | override [CacheData](../../aspose.imaging.fileformats.apng/apngframe/cachedata/)() | Caches the data and ensures no additional data loading will be performed from the underlying [`DataStreamContainer`](../../aspose.imaging/datastreamsupporter/datastreamcontainer/). | | [CanSave](../../aspose.imaging/image/cansave/)(ImageOptionsBase) | Determines whether image can be saved to the specified file format represented by the passed save options. | | override [Crop](../../aspose.imaging/rastercachedimage/crop/)(Rectangle) | Cropping the image. | -| virtual [Crop](../../aspose.imaging/rasterimage/crop/)(int, int, int, int) | Crop image with shifts. | +| virtual [Crop](../../aspose.imaging/image/crop/)(int, int, int, int) | Crop image with shifts. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | | [Dither](../../aspose.imaging/rasterimage/dither/)(DitheringMethod, int) | Performs dithering on the current image. | | override [Dither](../../aspose.imaging/rastercachedimage/dither/)(DitheringMethod, int, IColorPalette) | Performs dithering on the current image. | @@ -120,7 +120,7 @@ public class ApngFrame : RasterCachedImage, IAnimationFrame | [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int) | Resizes the width proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ImageResizeSettings) | Resizes the width proportionally. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ResizeType) | Resizes the width proportionally. | -| virtual [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | +| override [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | | override [Rotate](../../aspose.imaging/rastercachedimage/rotate/)(float, bool, Color) | Rotate image around the center. | | override [RotateFlip](../../aspose.imaging/rastercachedimage/rotateflip/)(RotateFlipType) | Rotates, flips, or rotates and flips the image. | | [Save](../../aspose.imaging/image/save/)() | Saves the image data to the underlying stream. | diff --git a/english/net/aspose.imaging.fileformats.apng/apngimage/_index.md b/english/net/aspose.imaging.fileformats.apng/apngimage/_index.md index b16312fe13..a4b7faf406 100644 --- a/english/net/aspose.imaging.fileformats.apng/apngimage/_index.md +++ b/english/net/aspose.imaging.fileformats.apng/apngimage/_index.md @@ -137,7 +137,7 @@ public sealed class ApngImage : RasterCachedMultipageImage, IMultipageImageExt | [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int) | Resizes the width proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ImageResizeSettings) | Resizes the width proportionally. | | override [ResizeWidthProportionally](../../aspose.imaging.fileformats.apng/apngimage/resizewidthproportionally/#resizewidthproportionally_2)(int, ResizeType) | Proportionally resize the width of the image effortlessly with this intuitive method. Ideal for developers seeking to maintain the aspect ratio of their images while adjusting their dimensions. | -| virtual [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | +| override [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | | override [Rotate](../../aspose.imaging.fileformats.apng/apngimage/rotate/#rotate_1)(float, bool, Color) | Rotate the image around its center effortlessly with this intuitive method. Perfect for developers seeking to adjust the orientation of their images dynamically. | | override [RotateFlip](../../aspose.imaging.fileformats.apng/apngimage/rotateflip/)(RotateFlipType) | Effortlessly manipulate the active frame by rotating, flipping, or both with this intuitive method. Ideal for developers seeking to customize image frame orientations. | | [Save](../../aspose.imaging/image/save/)() | Saves the image data to the underlying stream. | diff --git a/english/net/aspose.imaging.fileformats.avif/avifimage/_index.md b/english/net/aspose.imaging.fileformats.avif/avifimage/_index.md index c145f50adc..830832d059 100644 --- a/english/net/aspose.imaging.fileformats.avif/avifimage/_index.md +++ b/english/net/aspose.imaging.fileformats.avif/avifimage/_index.md @@ -76,7 +76,7 @@ public class AvifImage : RasterCachedImage | override [CacheData](../../aspose.imaging/rastercachedimage/cachedata/)() | Caches the data and ensures no additional data loading will be performed from the underlying [`DataStreamContainer`](../../aspose.imaging/datastreamsupporter/datastreamcontainer/). | | [CanSave](../../aspose.imaging/image/cansave/)(ImageOptionsBase) | Determines whether image can be saved to the specified file format represented by the passed save options. | | override [Crop](../../aspose.imaging/rastercachedimage/crop/)(Rectangle) | Cropping the image. | -| virtual [Crop](../../aspose.imaging/rasterimage/crop/)(int, int, int, int) | Crop image with shifts. | +| virtual [Crop](../../aspose.imaging/image/crop/)(int, int, int, int) | Crop image with shifts. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | | [Dither](../../aspose.imaging/rasterimage/dither/)(DitheringMethod, int) | Performs dithering on the current image. | | override [Dither](../../aspose.imaging/rastercachedimage/dither/)(DitheringMethod, int, IColorPalette) | Performs dithering on the current image. | @@ -120,7 +120,7 @@ public class AvifImage : RasterCachedImage | [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int) | Resizes the width proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ImageResizeSettings) | Resizes the width proportionally. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ResizeType) | Resizes the width proportionally. | -| virtual [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | +| override [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | | override [Rotate](../../aspose.imaging/rastercachedimage/rotate/)(float, bool, Color) | Rotate image around the center. | | override [RotateFlip](../../aspose.imaging/rastercachedimage/rotateflip/)(RotateFlipType) | Rotates, flips, or rotates and flips the image. | | [Save](../../aspose.imaging/image/save/)() | Saves the image data to the underlying stream. | diff --git a/english/net/aspose.imaging.fileformats.bigtiff/bigtiffimage/_index.md b/english/net/aspose.imaging.fileformats.bigtiff/bigtiffimage/_index.md index 2cbbd4f057..cf15138cfc 100644 --- a/english/net/aspose.imaging.fileformats.bigtiff/bigtiffimage/_index.md +++ b/english/net/aspose.imaging.fileformats.bigtiff/bigtiffimage/_index.md @@ -138,7 +138,7 @@ public sealed class BigTiffImage : TiffImage | [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int) | Resizes the width proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ImageResizeSettings) | Resizes the width proportionally. | | override [ResizeWidthProportionally](../../aspose.imaging.fileformats.tiff/tiffimage/resizewidthproportionally/)(int, ResizeType) | Adjust the width of the image while maintaining its aspect ratio, ensuring proportional resizing for optimal visual presentation. Utilize this method to dynamically scale images within your application, facilitating consistent and aesthetically pleasing rendering across various display contexts. | -| virtual [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | +| override [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | | override [Rotate](../../aspose.imaging.fileformats.tiff/tiffimage/rotate/)(float, bool, Color) | Rotate the image around its center point by a specified angle, enabling precise orientation adjustments. Incorporate this functionality into your image processing pipeline to facilitate accurate transformations, ensuring optimal alignment and presentation of visual content within your application. | | override [RotateFlip](../../aspose.imaging.fileformats.tiff/tiffimage/rotateflip/)(RotateFlipType) | Perform rotation, flipping, or a combination of both operations exclusively on the active frame. This method allows precise manipulation of individual frames within the image sequence, enhancing flexibility in image editing and composition within your application. | | [Save](../../aspose.imaging/image/save/)() | Saves the image data to the underlying stream. | diff --git a/english/net/aspose.imaging.fileformats.bmp/bmpimage/_index.md b/english/net/aspose.imaging.fileformats.bmp/bmpimage/_index.md index c6be32cec9..0b3e5bfa99 100644 --- a/english/net/aspose.imaging.fileformats.bmp/bmpimage/_index.md +++ b/english/net/aspose.imaging.fileformats.bmp/bmpimage/_index.md @@ -86,7 +86,7 @@ public sealed class BmpImage : RasterCachedImage | override [CacheData](../../aspose.imaging/rastercachedimage/cachedata/)() | Caches the data and ensures no additional data loading will be performed from the underlying [`DataStreamContainer`](../../aspose.imaging/datastreamsupporter/datastreamcontainer/). | | [CanSave](../../aspose.imaging/image/cansave/)(ImageOptionsBase) | Determines whether image can be saved to the specified file format represented by the passed save options. | | override [Crop](../../aspose.imaging/rastercachedimage/crop/)(Rectangle) | Cropping the image. | -| virtual [Crop](../../aspose.imaging/rasterimage/crop/)(int, int, int, int) | Crop image with shifts. | +| virtual [Crop](../../aspose.imaging/image/crop/)(int, int, int, int) | Crop image with shifts. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | | [Dither](../../aspose.imaging/rasterimage/dither/)(DitheringMethod, int) | Performs dithering on the current image. | | override [Dither](../../aspose.imaging/rastercachedimage/dither/)(DitheringMethod, int, IColorPalette) | Performs dithering on the current image. | @@ -130,7 +130,7 @@ public sealed class BmpImage : RasterCachedImage | [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int) | Resizes the width proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ImageResizeSettings) | Resizes the width proportionally. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ResizeType) | Resizes the width proportionally. | -| virtual [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | +| override [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | | override [Rotate](../../aspose.imaging/rastercachedimage/rotate/)(float, bool, Color) | Rotate image around the center. | | override [RotateFlip](../../aspose.imaging/rastercachedimage/rotateflip/)(RotateFlipType) | Rotates, flips, or rotates and flips the image. | | [Save](../../aspose.imaging/image/save/)() | Saves the image data to the underlying stream. | diff --git a/english/net/aspose.imaging.fileformats.cdr.objects/cdrtransforms/transforms/_index.md b/english/net/aspose.imaging.fileformats.cdr.objects/cdrtransforms/transforms/_index.md index 534928f48a..6f5dee9edc 100644 --- a/english/net/aspose.imaging.fileformats.cdr.objects/cdrtransforms/transforms/_index.md +++ b/english/net/aspose.imaging.fileformats.cdr.objects/cdrtransforms/transforms/_index.md @@ -11,7 +11,7 @@ url: /net/aspose.imaging.fileformats.cdr.objects/cdrtransforms/transforms/ Gets or sets the transforms. ```csharp -public List<#=zj2qPjOlOEhQ3SXK9v$7dVpQ=> Transforms { get; set; } +public List<#=zbp6hAj$I_3SduHfAaRy5Qks=> Transforms { get; set; } ``` ### Property Value diff --git a/english/net/aspose.imaging.fileformats.cdr/cdrimage/_index.md b/english/net/aspose.imaging.fileformats.cdr/cdrimage/_index.md index b5953e9a16..14b752bc29 100644 --- a/english/net/aspose.imaging.fileformats.cdr/cdrimage/_index.md +++ b/english/net/aspose.imaging.fileformats.cdr/cdrimage/_index.md @@ -35,7 +35,7 @@ public class CdrImage : VectorMultipageImage, ICdrImage | [Disposed](../../aspose.imaging/disposableobject/disposed/) { get; } | Gets a value indicating whether this instance is disposed. | | override [FileFormat](../../aspose.imaging.fileformats.cdr/cdrimage/fileformat/) { get; } | Retrieve the file format of the image effortlessly with this intuitive property. Ideal for developers seeking to determine the format of their images dynamically, ensuring compatibility and accurate processing in their applications. | | virtual [HasBackgroundColor](../../aspose.imaging/image/hasbackgroundcolor/) { get; set; } | Gets or sets a value indicating whether image has background color. | -| override [Height](../../aspose.imaging.fileformats.cdr/cdrimage/height/) { get; } | Retrieve the height of the image effortlessly with this intuitive property. Perfect for developers seeking to access the dimensions of their images dynamically, ensuring accurate layout and rendering in their applications. | +| override [Height](../../aspose.imaging.fileformats.cdr/cdrimage/height/) { get; } | Gets the image height. | | virtual [HeightF](../../aspose.imaging/vectorimage/heightf/) { get; } | Gets the object height, in inches. | | [InterruptMonitor](../../aspose.imaging/image/interruptmonitor/) { get; set; } | Gets or sets the interrupt monitor. | | override [IsCached](../../aspose.imaging.fileformats.cdr/cdrimage/iscached/) { get; } | Effortlessly determine whether the object's data is currently cached, eliminating the need for data reading. Ideal for developers seeking to optimize performance by leveraging cached data efficiently, ensuring faster access to object information. | @@ -46,7 +46,7 @@ public class CdrImage : VectorMultipageImage, ICdrImage | [Size](../../aspose.imaging/image/size/) { get; } | Gets the image size. | | [SizeF](../../aspose.imaging/vectorimage/sizef/) { get; } | Gets the object size, in inches. | | virtual [UsePalette](../../aspose.imaging/image/usepalette/) { get; } | Gets a value indicating whether the image palette is used. | -| override [Width](../../aspose.imaging.fileformats.cdr/cdrimage/width/) { get; } | Retrieve the width of the image seamlessly with this intuitive property. Ideal for developers seeking to access the dimensions of their images dynamically, ensuring precise layout and rendering in their applications. | +| override [Width](../../aspose.imaging.fileformats.cdr/cdrimage/width/) { get; } | Gets the image width. | | virtual [WidthF](../../aspose.imaging/vectorimage/widthf/) { get; } | Gets the object width, in inches. | ## Methods @@ -55,24 +55,27 @@ public class CdrImage : VectorMultipageImage, ICdrImage | --- | --- | | override [CacheData](../../aspose.imaging.fileformats.cdr/cdrimage/cachedata/)() | Effortlessly cache the data to prevent additional loading from the underlying source with this user-friendly method. Ideal for developers seeking to optimize performance by preloading data, ensuring faster access and smoother operation in their applications. [`DataStreamContainer`](../../aspose.imaging/datastreamsupporter/datastreamcontainer/). | | [CanSave](../../aspose.imaging/image/cansave/)(ImageOptionsBase) | Determines whether image can be saved to the specified file format represented by the passed save options. | +| override [Crop](../../aspose.imaging/vectormultipageimage/crop/)(Rectangle) | Crops the specified rectangle. | +| virtual [Crop](../../aspose.imaging/image/crop/)(int, int, int, int) | Crop image with shifts. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | | override [GetDefaultOptions](../../aspose.imaging.fileformats.cdr/cdrimage/getdefaultoptions/)(object[]) | Retrieve the default options effortlessly with this user-friendly method. Perfect for developers seeking quick access to the default settings or configurations associated with an object, ensuring efficient customization and streamlined workflow. | | override [GetEmbeddedImages](../../aspose.imaging/vectormultipageimage/getembeddedimages/)() | Gets the embedded images. | | virtual [GetOriginalOptions](../../aspose.imaging/image/getoriginaloptions/)() | Gets the options based on the original file settings. This can be helpful to keep bit-depth and other parameters of the original image unchanged. For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the [`Save`](../../aspose.imaging/datastreamsupporter/save/) method, the output PNG image with 8-bit per pixel will be produced. To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them to the [`Save`](../../aspose.imaging/image/save/) method as the second parameter. | | override [GetSerializedStream](../../aspose.imaging/vectormultipageimage/getserializedstream/)(ImageOptionsBase, Rectangle, out int) | Converts to aps. | -| [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/)() | Removes the background. | -| [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/)(RemoveBackgroundSettings) | Removes the background. | +| override [RemoveBackground](../../aspose.imaging/vectormultipageimage/removebackground/)() | Removes the background. | +| override [RemoveBackground](../../aspose.imaging/vectormultipageimage/removebackground/)(RemoveBackgroundSettings) | Removes the background. | | virtual [RemoveMetadata](../../aspose.imaging/image/removemetadata/)() | Removes metadata. | | [Resize](../../aspose.imaging/image/resize/)(int, int) | Resizes the image. The default NearestNeighbourResample is used. | -| override [Resize](../../aspose.imaging.fileformats.cdr/cdrimage/resize/#resize_1)(int, int, ImageResizeSettings) | Resizes the image. | -| override [Resize](../../aspose.imaging.fileformats.cdr/cdrimage/resize/#resize_2)(int, int, ResizeType) | Effortlessly resize the image to desired dimensions with this intuitive method. Perfect for developers seeking to adjust the size of images dynamically, ensuring they fit the layout or requirements of their applications seamlessly. | +| override [Resize](../../aspose.imaging/vectormultipageimage/resize/)(int, int, ImageResizeSettings) | Resizes the image. | +| override [Resize](../../aspose.imaging/vectormultipageimage/resize/)(int, int, ResizeType) | Resizes the image. | | [ResizeHeightProportionally](../../aspose.imaging/image/resizeheightproportionally/)(int) | Resizes the height proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeHeightProportionally](../../aspose.imaging/image/resizeheightproportionally/)(int, ImageResizeSettings) | Resizes the height proportionally. | | virtual [ResizeHeightProportionally](../../aspose.imaging/image/resizeheightproportionally/)(int, ResizeType) | Resizes the height proportionally. | | [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int) | Resizes the width proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ImageResizeSettings) | Resizes the width proportionally. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ResizeType) | Resizes the width proportionally. | -| override [RotateFlip](../../aspose.imaging.fileformats.cdr/cdrimage/rotateflip/)(RotateFlipType) | Adjust the orientation of the image by rotating, flipping, or applying both operations with this versatile method. Perfect for developers seeking to customize image orientation dynamically, ensuring optimal presentation or alignment in their applications. | +| override [Rotate](../../aspose.imaging/vectormultipageimage/rotate/)(float) | Rotate image around the center. | +| override [RotateFlip](../../aspose.imaging/vectormultipageimage/rotateflip/)(RotateFlipType) | Rotates, flips, or rotates and flips the image. | | [Save](../../aspose.imaging/image/save/)() | Saves the image data to the underlying stream. | | [Save](../../aspose.imaging/datastreamsupporter/save/)(Stream) | Saves the object's data to the specified stream. | | override [Save](../../aspose.imaging/image/save/)(string) | Saves the image to the specified file location. | diff --git a/english/net/aspose.imaging.fileformats.cdr/cdrimage/height/_index.md b/english/net/aspose.imaging.fileformats.cdr/cdrimage/height/_index.md index e739bd1af1..6822d99cce 100644 --- a/english/net/aspose.imaging.fileformats.cdr/cdrimage/height/_index.md +++ b/english/net/aspose.imaging.fileformats.cdr/cdrimage/height/_index.md @@ -1,14 +1,14 @@ --- title: CdrImage.Height second_title: Aspose.Imaging for .NET API Reference -description: CdrImage property. Retrieve the height of the image effortlessly with this intuitive property. Perfect for developers seeking to access the dimensions of their images dynamically ensuring accurate layout and rendering in their applications +description: CdrImage property. Gets the image height type: docs weight: 50 url: /net/aspose.imaging.fileformats.cdr/cdrimage/height/ --- ## CdrImage.Height property -Retrieve the height of the image effortlessly with this intuitive property. Perfect for developers seeking to access the dimensions of their images dynamically, ensuring accurate layout and rendering in their applications. +Gets the image height. ```csharp public override int Height { get; } diff --git a/english/net/aspose.imaging.fileformats.cdr/cdrimage/setpalette/_index.md b/english/net/aspose.imaging.fileformats.cdr/cdrimage/setpalette/_index.md index 4a96a8f6d1..edc7a227e1 100644 --- a/english/net/aspose.imaging.fileformats.cdr/cdrimage/setpalette/_index.md +++ b/english/net/aspose.imaging.fileformats.cdr/cdrimage/setpalette/_index.md @@ -3,7 +3,7 @@ title: CdrImage.SetPalette second_title: Aspose.Imaging for .NET API Reference description: CdrImage method. Customize the color palette of the image with this intuitive method. Ideal for developers seeking to apply specific color schemes or adjustments dynamically ensuring precise control over the visual appearance of their images type: docs -weight: 140 +weight: 120 url: /net/aspose.imaging.fileformats.cdr/cdrimage/setpalette/ --- ## CdrImage.SetPalette method diff --git a/english/net/aspose.imaging.fileformats.cdr/cdrimage/width/_index.md b/english/net/aspose.imaging.fileformats.cdr/cdrimage/width/_index.md index 4b24dbb364..9d7d00a957 100644 --- a/english/net/aspose.imaging.fileformats.cdr/cdrimage/width/_index.md +++ b/english/net/aspose.imaging.fileformats.cdr/cdrimage/width/_index.md @@ -1,14 +1,14 @@ --- title: CdrImage.Width second_title: Aspose.Imaging for .NET API Reference -description: CdrImage property. Retrieve the width of the image seamlessly with this intuitive property. Ideal for developers seeking to access the dimensions of their images dynamically ensuring precise layout and rendering in their applications +description: CdrImage property. Gets the image width type: docs weight: 90 url: /net/aspose.imaging.fileformats.cdr/cdrimage/width/ --- ## CdrImage.Width property -Retrieve the width of the image seamlessly with this intuitive property. Ideal for developers seeking to access the dimensions of their images dynamically, ensuring precise layout and rendering in their applications. +Gets the image width. ```csharp public override int Width { get; } diff --git a/english/net/aspose.imaging.fileformats.cdr/cdrimagepage/_index.md b/english/net/aspose.imaging.fileformats.cdr/cdrimagepage/_index.md index 767f8f430d..e3a7b52128 100644 --- a/english/net/aspose.imaging.fileformats.cdr/cdrimagepage/_index.md +++ b/english/net/aspose.imaging.fileformats.cdr/cdrimagepage/_index.md @@ -29,7 +29,7 @@ public class CdrImagePage : VectorImage, ICdrImage | [Disposed](../../aspose.imaging/disposableobject/disposed/) { get; } | Gets a value indicating whether this instance is disposed. | | override [FileFormat](../../aspose.imaging.fileformats.cdr/cdrimagepage/fileformat/) { get; } | Gets a value of file format | | virtual [HasBackgroundColor](../../aspose.imaging/image/hasbackgroundcolor/) { get; set; } | Gets or sets a value indicating whether image has background color. | -| override [Height](../../aspose.imaging.fileformats.cdr/cdrimagepage/height/) { get; } | Gets the image height. | +| override [Height](../../aspose.imaging/vectorimage/height/) { get; } | Gets the image height. | | virtual [HeightF](../../aspose.imaging/vectorimage/heightf/) { get; } | Gets the object height, in inches. | | [InterruptMonitor](../../aspose.imaging/image/interruptmonitor/) { get; set; } | Gets or sets the interrupt monitor. | | override [IsCached](../../aspose.imaging.fileformats.cdr/cdrimagepage/iscached/) { get; } | Gets a value indicating whether object's data is cached currently and no data readig is required. | @@ -39,7 +39,7 @@ public class CdrImagePage : VectorImage, ICdrImage | [Size](../../aspose.imaging/image/size/) { get; } | Gets the image size. | | [SizeF](../../aspose.imaging/vectorimage/sizef/) { get; } | Gets the object size, in inches. | | virtual [UsePalette](../../aspose.imaging/image/usepalette/) { get; } | Gets a value indicating whether the image palette is used. | -| override [Width](../../aspose.imaging.fileformats.cdr/cdrimagepage/width/) { get; } | Gets the image width. | +| override [Width](../../aspose.imaging/vectorimage/width/) { get; } | Gets the image width. | | virtual [WidthF](../../aspose.imaging/vectorimage/widthf/) { get; } | Gets the object width, in inches. | ## Methods @@ -48,24 +48,27 @@ public class CdrImagePage : VectorImage, ICdrImage | --- | --- | | override [CacheData](../../aspose.imaging.fileformats.cdr/cdrimagepage/cachedata/)() | Caches the data and ensures no additional data loading will be performed from the underlying [`DataStreamContainer`](../../aspose.imaging/datastreamsupporter/datastreamcontainer/). | | [CanSave](../../aspose.imaging/image/cansave/)(ImageOptionsBase) | Determines whether image can be saved to the specified file format represented by the passed save options. | +| override [Crop](../../aspose.imaging/vectorimage/crop/)(Rectangle) | Crops the specified rectangle. | +| virtual [Crop](../../aspose.imaging/image/crop/)(int, int, int, int) | Crop image with shifts. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | | override [GetDefaultOptions](../../aspose.imaging.fileformats.cdr/cdrimagepage/getdefaultoptions/)(object[]) | Gets the default options. | | virtual [GetEmbeddedImages](../../aspose.imaging/vectorimage/getembeddedimages/)() | Gets the embedded images. | | virtual [GetOriginalOptions](../../aspose.imaging/image/getoriginaloptions/)() | Gets the options based on the original file settings. This can be helpful to keep bit-depth and other parameters of the original image unchanged. For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the [`Save`](../../aspose.imaging/datastreamsupporter/save/) method, the output PNG image with 8-bit per pixel will be produced. To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them to the [`Save`](../../aspose.imaging/image/save/) method as the second parameter. | | virtual [GetSerializedStream](../../aspose.imaging/image/getserializedstream/)(ImageOptionsBase, Rectangle, out int) | Converts to aps. | -| [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/)() | Removes the background. | -| [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/)(RemoveBackgroundSettings) | Removes the background. | +| virtual [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/)() | Removes the background. | +| virtual [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/)(RemoveBackgroundSettings) | Removes the background. | | virtual [RemoveMetadata](../../aspose.imaging/image/removemetadata/)() | Removes metadata. | | [Resize](../../aspose.imaging/image/resize/)(int, int) | Resizes the image. The default NearestNeighbourResample is used. | -| override [Resize](../../aspose.imaging.fileformats.cdr/cdrimagepage/resize/#resize_1)(int, int, ImageResizeSettings) | Resizes the image. | -| override [Resize](../../aspose.imaging.fileformats.cdr/cdrimagepage/resize/#resize_2)(int, int, ResizeType) | Resizes the image. | +| override [Resize](../../aspose.imaging/vectorimage/resize/)(int, int, ImageResizeSettings) | Resizes the image with extended options. | +| override [Resize](../../aspose.imaging/vectorimage/resize/)(int, int, ResizeType) | Resizes the specified new width. | | [ResizeHeightProportionally](../../aspose.imaging/image/resizeheightproportionally/)(int) | Resizes the height proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeHeightProportionally](../../aspose.imaging/image/resizeheightproportionally/)(int, ImageResizeSettings) | Resizes the height proportionally. | | virtual [ResizeHeightProportionally](../../aspose.imaging/image/resizeheightproportionally/)(int, ResizeType) | Resizes the height proportionally. | | [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int) | Resizes the width proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ImageResizeSettings) | Resizes the width proportionally. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ResizeType) | Resizes the width proportionally. | -| override [RotateFlip](../../aspose.imaging.fileformats.cdr/cdrimagepage/rotateflip/)(RotateFlipType) | Rotates, flips, or rotates and flips the image. | +| override [Rotate](../../aspose.imaging/vectorimage/rotate/)(float) | Rotate image around the center. | +| override [RotateFlip](../../aspose.imaging/vectorimage/rotateflip/)(RotateFlipType) | Rotates, flips, or rotates and flips the image. | | [Save](../../aspose.imaging/image/save/)() | Saves the image data to the underlying stream. | | [Save](../../aspose.imaging/datastreamsupporter/save/)(Stream) | Saves the object's data to the specified stream. | | override [Save](../../aspose.imaging/image/save/)(string) | Saves the image to the specified file location. | diff --git a/english/net/aspose.imaging.fileformats.cdr/cdrimagepage/cachedata/_index.md b/english/net/aspose.imaging.fileformats.cdr/cdrimagepage/cachedata/_index.md index cbf8beeace..51c061ff41 100644 --- a/english/net/aspose.imaging.fileformats.cdr/cdrimagepage/cachedata/_index.md +++ b/english/net/aspose.imaging.fileformats.cdr/cdrimagepage/cachedata/_index.md @@ -3,7 +3,7 @@ title: CdrImagePage.CacheData second_title: Aspose.Imaging for .NET API Reference description: CdrImagePage method. Caches the data and ensures no additional data loading will be performed from the underlying DataStreamContainer type: docs -weight: 90 +weight: 70 url: /net/aspose.imaging.fileformats.cdr/cdrimagepage/cachedata/ --- ## CdrImagePage.CacheData method diff --git a/english/net/aspose.imaging.fileformats.cdr/cdrimagepage/getdefaultoptions/_index.md b/english/net/aspose.imaging.fileformats.cdr/cdrimagepage/getdefaultoptions/_index.md index f60764467c..a4f3648067 100644 --- a/english/net/aspose.imaging.fileformats.cdr/cdrimagepage/getdefaultoptions/_index.md +++ b/english/net/aspose.imaging.fileformats.cdr/cdrimagepage/getdefaultoptions/_index.md @@ -3,7 +3,7 @@ title: CdrImagePage.GetDefaultOptions second_title: Aspose.Imaging for .NET API Reference description: CdrImagePage method. Gets the default options type: docs -weight: 100 +weight: 80 url: /net/aspose.imaging.fileformats.cdr/cdrimagepage/getdefaultoptions/ --- ## CdrImagePage.GetDefaultOptions method diff --git a/english/net/aspose.imaging.fileformats.cdr/cdrimagepage/iscached/_index.md b/english/net/aspose.imaging.fileformats.cdr/cdrimagepage/iscached/_index.md index 82ca7aa492..5a156925b6 100644 --- a/english/net/aspose.imaging.fileformats.cdr/cdrimagepage/iscached/_index.md +++ b/english/net/aspose.imaging.fileformats.cdr/cdrimagepage/iscached/_index.md @@ -3,7 +3,7 @@ title: CdrImagePage.IsCached second_title: Aspose.Imaging for .NET API Reference description: CdrImagePage property. Gets a value indicating whether objects data is cached currently and no data readig is required type: docs -weight: 50 +weight: 40 url: /net/aspose.imaging.fileformats.cdr/cdrimagepage/iscached/ --- ## CdrImagePage.IsCached property diff --git a/english/net/aspose.imaging.fileformats.cdr/cdrimagepage/pagenumber/_index.md b/english/net/aspose.imaging.fileformats.cdr/cdrimagepage/pagenumber/_index.md index 7854b98f8d..c33ec9aac8 100644 --- a/english/net/aspose.imaging.fileformats.cdr/cdrimagepage/pagenumber/_index.md +++ b/english/net/aspose.imaging.fileformats.cdr/cdrimagepage/pagenumber/_index.md @@ -3,7 +3,7 @@ title: CdrImagePage.PageNumber second_title: Aspose.Imaging for .NET API Reference description: CdrImagePage property. Gets the page number type: docs -weight: 60 +weight: 50 url: /net/aspose.imaging.fileformats.cdr/cdrimagepage/pagenumber/ --- ## CdrImagePage.PageNumber property diff --git a/english/net/aspose.imaging.fileformats.cdr/cdrimagepage/parentimage/_index.md b/english/net/aspose.imaging.fileformats.cdr/cdrimagepage/parentimage/_index.md index aedf685079..0f19795610 100644 --- a/english/net/aspose.imaging.fileformats.cdr/cdrimagepage/parentimage/_index.md +++ b/english/net/aspose.imaging.fileformats.cdr/cdrimagepage/parentimage/_index.md @@ -3,7 +3,7 @@ title: CdrImagePage.ParentImage second_title: Aspose.Imaging for .NET API Reference description: CdrImagePage property. Gets the parent image type: docs -weight: 70 +weight: 60 url: /net/aspose.imaging.fileformats.cdr/cdrimagepage/parentimage/ --- ## CdrImagePage.ParentImage property diff --git a/english/net/aspose.imaging.fileformats.cdr/cdrimagepage/setpalette/_index.md b/english/net/aspose.imaging.fileformats.cdr/cdrimagepage/setpalette/_index.md index b86b5472a2..7c41094bf4 100644 --- a/english/net/aspose.imaging.fileformats.cdr/cdrimagepage/setpalette/_index.md +++ b/english/net/aspose.imaging.fileformats.cdr/cdrimagepage/setpalette/_index.md @@ -3,7 +3,7 @@ title: CdrImagePage.SetPalette second_title: Aspose.Imaging for .NET API Reference description: CdrImagePage method. Sets the image palette type: docs -weight: 130 +weight: 90 url: /net/aspose.imaging.fileformats.cdr/cdrimagepage/setpalette/ --- ## CdrImagePage.SetPalette method diff --git a/english/net/aspose.imaging.fileformats.cmx/cmximage/_index.md b/english/net/aspose.imaging.fileformats.cmx/cmximage/_index.md index 8c03cf6bf5..ed5762e89c 100644 --- a/english/net/aspose.imaging.fileformats.cmx/cmximage/_index.md +++ b/english/net/aspose.imaging.fileformats.cmx/cmximage/_index.md @@ -56,24 +56,27 @@ public class CmxImage : VectorMultipageImage, ICmxImage | --- | --- | | override [CacheData](../../aspose.imaging.fileformats.cmx/cmximage/cachedata/)() | Cache the data to prevent additional loading from the underlying source [`DataStreamContainer`](../../aspose.imaging/datastreamsupporter/datastreamcontainer/) with this convenient method. Ideal for developers seeking to optimize performance by preloading data, ensuring faster access and smoother operation in their applications. | | [CanSave](../../aspose.imaging/image/cansave/)(ImageOptionsBase) | Determines whether image can be saved to the specified file format represented by the passed save options. | +| override [Crop](../../aspose.imaging/vectormultipageimage/crop/)(Rectangle) | Crops the specified rectangle. | +| virtual [Crop](../../aspose.imaging/image/crop/)(int, int, int, int) | Crop image with shifts. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | | override [GetDefaultOptions](../../aspose.imaging.fileformats.cmx/cmximage/getdefaultoptions/)(object[]) | Retrieve the default options effortlessly with this user-friendly method. Perfect for developers seeking quick access to the default settings or configurations associated with an object, ensuring efficient customization and streamlined workflow. | | override [GetEmbeddedImages](../../aspose.imaging/vectormultipageimage/getembeddedimages/)() | Gets the embedded images. | | virtual [GetOriginalOptions](../../aspose.imaging/image/getoriginaloptions/)() | Gets the options based on the original file settings. This can be helpful to keep bit-depth and other parameters of the original image unchanged. For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the [`Save`](../../aspose.imaging/datastreamsupporter/save/) method, the output PNG image with 8-bit per pixel will be produced. To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them to the [`Save`](../../aspose.imaging/image/save/) method as the second parameter. | | override [GetSerializedStream](../../aspose.imaging/vectormultipageimage/getserializedstream/)(ImageOptionsBase, Rectangle, out int) | Converts to aps. | -| [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/)() | Removes the background. | -| [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/)(RemoveBackgroundSettings) | Removes the background. | +| override [RemoveBackground](../../aspose.imaging/vectormultipageimage/removebackground/)() | Removes the background. | +| override [RemoveBackground](../../aspose.imaging/vectormultipageimage/removebackground/)(RemoveBackgroundSettings) | Removes the background. | | virtual [RemoveMetadata](../../aspose.imaging/image/removemetadata/)() | Removes metadata. | | [Resize](../../aspose.imaging/image/resize/)(int, int) | Resizes the image. The default NearestNeighbourResample is used. | -| override [Resize](../../aspose.imaging.fileformats.cmx/cmximage/resize/#resize_1)(int, int, ImageResizeSettings) | Resizes the image. | -| override [Resize](../../aspose.imaging.fileformats.cmx/cmximage/resize/#resize_2)(int, int, ResizeType) | Effortlessly resize the image to desired dimensions with this intuitive method. Perfect for developers seeking to adjust the size of images dynamically, ensuring they fit the layout or requirements of their applications seamlessly. | +| override [Resize](../../aspose.imaging/vectormultipageimage/resize/)(int, int, ImageResizeSettings) | Resizes the image. | +| override [Resize](../../aspose.imaging/vectormultipageimage/resize/)(int, int, ResizeType) | Resizes the image. | | [ResizeHeightProportionally](../../aspose.imaging/image/resizeheightproportionally/)(int) | Resizes the height proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeHeightProportionally](../../aspose.imaging/image/resizeheightproportionally/)(int, ImageResizeSettings) | Resizes the height proportionally. | | virtual [ResizeHeightProportionally](../../aspose.imaging/image/resizeheightproportionally/)(int, ResizeType) | Resizes the height proportionally. | | [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int) | Resizes the width proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ImageResizeSettings) | Resizes the width proportionally. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ResizeType) | Resizes the width proportionally. | -| override [RotateFlip](../../aspose.imaging.fileformats.cmx/cmximage/rotateflip/)(RotateFlipType) | Effortlessly adjust the orientation of the image by rotating, flipping, or applying both operations with this versatile method. Perfect for developers seeking to customize image orientation dynamically, ensuring optimal presentation or alignment in their applications. | +| override [Rotate](../../aspose.imaging/vectormultipageimage/rotate/)(float) | Rotate image around the center. | +| override [RotateFlip](../../aspose.imaging/vectormultipageimage/rotateflip/)(RotateFlipType) | Rotates, flips, or rotates and flips the image. | | [Save](../../aspose.imaging/image/save/)() | Saves the image data to the underlying stream. | | [Save](../../aspose.imaging/datastreamsupporter/save/)(Stream) | Saves the object's data to the specified stream. | | override [Save](../../aspose.imaging/image/save/)(string) | Saves the image to the specified file location. | diff --git a/english/net/aspose.imaging.fileformats.cmx/cmximage/setpalette/_index.md b/english/net/aspose.imaging.fileformats.cmx/cmximage/setpalette/_index.md index 106c378d73..c9b90d9a30 100644 --- a/english/net/aspose.imaging.fileformats.cmx/cmximage/setpalette/_index.md +++ b/english/net/aspose.imaging.fileformats.cmx/cmximage/setpalette/_index.md @@ -3,7 +3,7 @@ title: CmxImage.SetPalette second_title: Aspose.Imaging for .NET API Reference description: CmxImage method. Customize the color palette of the image with this intuitive method. Ideal for developers seeking to apply specific color schemes or adjustments dynamically ensuring precise control over the visual appearance of their images type: docs -weight: 150 +weight: 130 url: /net/aspose.imaging.fileformats.cmx/cmximage/setpalette/ --- ## CmxImage.SetPalette method diff --git a/english/net/aspose.imaging.fileformats.cmx/cmximagepage/_index.md b/english/net/aspose.imaging.fileformats.cmx/cmximagepage/_index.md index f1e0c58980..9db093c499 100644 --- a/english/net/aspose.imaging.fileformats.cmx/cmximagepage/_index.md +++ b/english/net/aspose.imaging.fileformats.cmx/cmximagepage/_index.md @@ -36,7 +36,7 @@ public class CmxImagePage : VectorImage, ICmxImage | [Disposed](../../aspose.imaging/disposableobject/disposed/) { get; } | Gets a value indicating whether this instance is disposed. | | override [FileFormat](../../aspose.imaging.fileformats.cmx/cmximagepage/fileformat/) { get; } | Gets a value of file format | | virtual [HasBackgroundColor](../../aspose.imaging/image/hasbackgroundcolor/) { get; set; } | Gets or sets a value indicating whether image has background color. | -| override [Height](../../aspose.imaging/vectorimage/height/) { get; } | Gets the image height. | +| override [Height](../../aspose.imaging.fileformats.cmx/cmximagepage/height/) { get; } | Gets the image height. | | override [HeightF](../../aspose.imaging.fileformats.cmx/cmximagepage/heightf/) { get; } | Gets the object height, in inches. | | [InterruptMonitor](../../aspose.imaging/image/interruptmonitor/) { get; set; } | Gets or sets the interrupt monitor. | | override [IsCached](../../aspose.imaging.fileformats.cmx/cmximagepage/iscached/) { get; } | Gets a value indicating whether object's data is cached currently and no data reading is required. | @@ -44,7 +44,7 @@ public class CmxImagePage : VectorImage, ICmxImage | [Size](../../aspose.imaging/image/size/) { get; } | Gets the image size. | | [SizeF](../../aspose.imaging/vectorimage/sizef/) { get; } | Gets the object size, in inches. | | virtual [UsePalette](../../aspose.imaging/image/usepalette/) { get; } | Gets a value indicating whether the image palette is used. | -| override [Width](../../aspose.imaging/vectorimage/width/) { get; } | Gets the image width. | +| override [Width](../../aspose.imaging.fileformats.cmx/cmximagepage/width/) { get; } | Gets the image width. | | override [WidthF](../../aspose.imaging.fileformats.cmx/cmximagepage/widthf/) { get; } | Gets the object width, in inches. | ## Methods @@ -53,24 +53,27 @@ public class CmxImagePage : VectorImage, ICmxImage | --- | --- | | override [CacheData](../../aspose.imaging.fileformats.cmx/cmximagepage/cachedata/)() | Cache can not be used. | | [CanSave](../../aspose.imaging/image/cansave/)(ImageOptionsBase) | Determines whether image can be saved to the specified file format represented by the passed save options. | +| override [Crop](../../aspose.imaging/vectorimage/crop/)(Rectangle) | Crops the specified rectangle. | +| virtual [Crop](../../aspose.imaging/image/crop/)(int, int, int, int) | Crop image with shifts. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | | override [GetDefaultOptions](../../aspose.imaging.fileformats.cmx/cmximagepage/getdefaultoptions/)(object[]) | Gets the default options. | | virtual [GetEmbeddedImages](../../aspose.imaging/vectorimage/getembeddedimages/)() | Gets the embedded images. | | virtual [GetOriginalOptions](../../aspose.imaging/image/getoriginaloptions/)() | Gets the options based on the original file settings. This can be helpful to keep bit-depth and other parameters of the original image unchanged. For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the [`Save`](../../aspose.imaging/datastreamsupporter/save/) method, the output PNG image with 8-bit per pixel will be produced. To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them to the [`Save`](../../aspose.imaging/image/save/) method as the second parameter. | | virtual [GetSerializedStream](../../aspose.imaging/image/getserializedstream/)(ImageOptionsBase, Rectangle, out int) | Converts to aps. | -| [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/)() | Removes the background. | -| [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/)(RemoveBackgroundSettings) | Removes the background. | +| virtual [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/)() | Removes the background. | +| virtual [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/)(RemoveBackgroundSettings) | Removes the background. | | virtual [RemoveMetadata](../../aspose.imaging/image/removemetadata/)() | Removes metadata. | | [Resize](../../aspose.imaging/image/resize/)(int, int) | Resizes the image. The default NearestNeighbourResample is used. | | override [Resize](../../aspose.imaging.fileformats.cmx/cmximagepage/resize/#resize_1)(int, int, ImageResizeSettings) | Resizes the image. | -| override [Resize](../../aspose.imaging.fileformats.cmx/cmximagepage/resize/#resize_2)(int, int, ResizeType) | Resizes the image. | +| override [Resize](../../aspose.imaging/vectorimage/resize/)(int, int, ResizeType) | Resizes the specified new width. | | [ResizeHeightProportionally](../../aspose.imaging/image/resizeheightproportionally/)(int) | Resizes the height proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeHeightProportionally](../../aspose.imaging/image/resizeheightproportionally/)(int, ImageResizeSettings) | Resizes the height proportionally. | | virtual [ResizeHeightProportionally](../../aspose.imaging/image/resizeheightproportionally/)(int, ResizeType) | Resizes the height proportionally. | | [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int) | Resizes the width proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ImageResizeSettings) | Resizes the width proportionally. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ResizeType) | Resizes the width proportionally. | -| override [RotateFlip](../../aspose.imaging.fileformats.cmx/cmximagepage/rotateflip/)(RotateFlipType) | Rotates, flips, or rotates and flips the image. | +| override [Rotate](../../aspose.imaging/vectorimage/rotate/)(float) | Rotate image around the center. | +| override [RotateFlip](../../aspose.imaging/vectorimage/rotateflip/)(RotateFlipType) | Rotates, flips, or rotates and flips the image. | | [Save](../../aspose.imaging/image/save/)() | Saves the image data to the underlying stream. | | [Save](../../aspose.imaging/datastreamsupporter/save/)(Stream) | Saves the object's data to the specified stream. | | override [Save](../../aspose.imaging/image/save/)(string) | Saves the image to the specified file location. | diff --git a/english/net/aspose.imaging.fileformats.cmx/cmximagepage/cachedata/_index.md b/english/net/aspose.imaging.fileformats.cmx/cmximagepage/cachedata/_index.md index fe72477e97..f2c8899844 100644 --- a/english/net/aspose.imaging.fileformats.cmx/cmximagepage/cachedata/_index.md +++ b/english/net/aspose.imaging.fileformats.cmx/cmximagepage/cachedata/_index.md @@ -3,7 +3,7 @@ title: CmxImagePage.CacheData second_title: Aspose.Imaging for .NET API Reference description: CmxImagePage method. Cache can not be used type: docs -weight: 80 +weight: 100 url: /net/aspose.imaging.fileformats.cmx/cmximagepage/cachedata/ --- ## CmxImagePage.CacheData method diff --git a/english/net/aspose.imaging.fileformats.cmx/cmximagepage/getdefaultoptions/_index.md b/english/net/aspose.imaging.fileformats.cmx/cmximagepage/getdefaultoptions/_index.md index 667c585a30..3d019dfb39 100644 --- a/english/net/aspose.imaging.fileformats.cmx/cmximagepage/getdefaultoptions/_index.md +++ b/english/net/aspose.imaging.fileformats.cmx/cmximagepage/getdefaultoptions/_index.md @@ -3,7 +3,7 @@ title: CmxImagePage.GetDefaultOptions second_title: Aspose.Imaging for .NET API Reference description: CmxImagePage method. Gets the default options type: docs -weight: 90 +weight: 110 url: /net/aspose.imaging.fileformats.cmx/cmximagepage/getdefaultoptions/ --- ## CmxImagePage.GetDefaultOptions method diff --git a/english/net/aspose.imaging.fileformats.cmx/cmximagepage/height/_index.md b/english/net/aspose.imaging.fileformats.cmx/cmximagepage/height/_index.md new file mode 100644 index 0000000000..7ee3d66f3b --- /dev/null +++ b/english/net/aspose.imaging.fileformats.cmx/cmximagepage/height/_index.md @@ -0,0 +1,27 @@ +--- +title: CmxImagePage.Height +second_title: Aspose.Imaging for .NET API Reference +description: CmxImagePage property. Gets the image height +type: docs +weight: 50 +url: /net/aspose.imaging.fileformats.cmx/cmximagepage/height/ +--- +## CmxImagePage.Height property + +Gets the image height. + +```csharp +public override int Height { get; } +``` + +### Property Value + +The image height. + +### See Also + +* class [CmxImagePage](../) +* namespace [Aspose.Imaging.FileFormats.Cmx](../../cmximagepage/) +* assembly [Aspose.Imaging](../../../) + + diff --git a/english/net/aspose.imaging.fileformats.cmx/cmximagepage/heightf/_index.md b/english/net/aspose.imaging.fileformats.cmx/cmximagepage/heightf/_index.md index a32e05d918..1914595376 100644 --- a/english/net/aspose.imaging.fileformats.cmx/cmximagepage/heightf/_index.md +++ b/english/net/aspose.imaging.fileformats.cmx/cmximagepage/heightf/_index.md @@ -3,7 +3,7 @@ title: CmxImagePage.HeightF second_title: Aspose.Imaging for .NET API Reference description: CmxImagePage property. Gets the object height in inches type: docs -weight: 50 +weight: 60 url: /net/aspose.imaging.fileformats.cmx/cmximagepage/heightf/ --- ## CmxImagePage.HeightF property diff --git a/english/net/aspose.imaging.fileformats.cmx/cmximagepage/iscached/_index.md b/english/net/aspose.imaging.fileformats.cmx/cmximagepage/iscached/_index.md index 1df055f198..85e102ac9c 100644 --- a/english/net/aspose.imaging.fileformats.cmx/cmximagepage/iscached/_index.md +++ b/english/net/aspose.imaging.fileformats.cmx/cmximagepage/iscached/_index.md @@ -3,7 +3,7 @@ title: CmxImagePage.IsCached second_title: Aspose.Imaging for .NET API Reference description: CmxImagePage property. Gets a value indicating whether objects data is cached currently and no data reading is required type: docs -weight: 60 +weight: 70 url: /net/aspose.imaging.fileformats.cmx/cmximagepage/iscached/ --- ## CmxImagePage.IsCached property diff --git a/english/net/aspose.imaging.fileformats.cmx/cmximagepage/resize/_index.md b/english/net/aspose.imaging.fileformats.cmx/cmximagepage/resize/_index.md index 0a1e216f51..6520a9785a 100644 --- a/english/net/aspose.imaging.fileformats.cmx/cmximagepage/resize/_index.md +++ b/english/net/aspose.imaging.fileformats.cmx/cmximagepage/resize/_index.md @@ -3,33 +3,10 @@ title: CmxImagePage.Resize second_title: Aspose.Imaging for .NET API Reference description: CmxImagePage method. Resizes the image type: docs -weight: 100 +weight: 120 url: /net/aspose.imaging.fileformats.cmx/cmximagepage/resize/ --- -## Resize(int, int, ResizeType) {#resize_2} - -Resizes the image. - -```csharp -public override void Resize(int newWidth, int newHeight, ResizeType resizeType) -``` - -| Parameter | Type | Description | -| --- | --- | --- | -| newWidth | Int32 | The new width. | -| newHeight | Int32 | The new height. | -| resizeType | ResizeType | The resize type. | - -### See Also - -* enum [ResizeType](../../../aspose.imaging/resizetype/) -* class [CmxImagePage](../) -* namespace [Aspose.Imaging.FileFormats.Cmx](../../cmximagepage/) -* assembly [Aspose.Imaging](../../../) - ---- - -## Resize(int, int, ImageResizeSettings) {#resize_1} +## CmxImagePage.Resize method Resizes the image. diff --git a/english/net/aspose.imaging.fileformats.cmx/cmximagepage/setpalette/_index.md b/english/net/aspose.imaging.fileformats.cmx/cmximagepage/setpalette/_index.md index c295d08e24..493b98a1ef 100644 --- a/english/net/aspose.imaging.fileformats.cmx/cmximagepage/setpalette/_index.md +++ b/english/net/aspose.imaging.fileformats.cmx/cmximagepage/setpalette/_index.md @@ -3,7 +3,7 @@ title: CmxImagePage.SetPalette second_title: Aspose.Imaging for .NET API Reference description: CmxImagePage method. Sets the image palette type: docs -weight: 120 +weight: 130 url: /net/aspose.imaging.fileformats.cmx/cmximagepage/setpalette/ --- ## CmxImagePage.SetPalette method diff --git a/english/net/aspose.imaging.fileformats.cmx/cmximagepage/width/_index.md b/english/net/aspose.imaging.fileformats.cmx/cmximagepage/width/_index.md new file mode 100644 index 0000000000..cd31d7a194 --- /dev/null +++ b/english/net/aspose.imaging.fileformats.cmx/cmximagepage/width/_index.md @@ -0,0 +1,27 @@ +--- +title: CmxImagePage.Width +second_title: Aspose.Imaging for .NET API Reference +description: CmxImagePage property. Gets the image width +type: docs +weight: 80 +url: /net/aspose.imaging.fileformats.cmx/cmximagepage/width/ +--- +## CmxImagePage.Width property + +Gets the image width. + +```csharp +public override int Width { get; } +``` + +### Property Value + +The image width. + +### See Also + +* class [CmxImagePage](../) +* namespace [Aspose.Imaging.FileFormats.Cmx](../../cmximagepage/) +* assembly [Aspose.Imaging](../../../) + + diff --git a/english/net/aspose.imaging.fileformats.cmx/cmximagepage/widthf/_index.md b/english/net/aspose.imaging.fileformats.cmx/cmximagepage/widthf/_index.md index 22da1f40d4..23ec2f7928 100644 --- a/english/net/aspose.imaging.fileformats.cmx/cmximagepage/widthf/_index.md +++ b/english/net/aspose.imaging.fileformats.cmx/cmximagepage/widthf/_index.md @@ -3,7 +3,7 @@ title: CmxImagePage.WidthF second_title: Aspose.Imaging for .NET API Reference description: CmxImagePage property. Gets the object width in inches type: docs -weight: 70 +weight: 90 url: /net/aspose.imaging.fileformats.cmx/cmximagepage/widthf/ --- ## CmxImagePage.WidthF property diff --git a/english/net/aspose.imaging.fileformats.dicom/dicomimage/_index.md b/english/net/aspose.imaging.fileformats.dicom/dicomimage/_index.md index 57ce8dec69..4ad16531e6 100644 --- a/english/net/aspose.imaging.fileformats.dicom/dicomimage/_index.md +++ b/english/net/aspose.imaging.fileformats.dicom/dicomimage/_index.md @@ -134,7 +134,7 @@ public sealed class DicomImage : RasterCachedMultipageImage, IMultipageImageExt | [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int) | Resizes the width proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ImageResizeSettings) | Resizes the width proportionally. | | override [ResizeWidthProportionally](../../aspose.imaging.fileformats.dicom/dicomimage/resizewidthproportionally/#resizewidthproportionally_2)(int, ResizeType) | Adjust the width of the image while maintaining its aspect ratio with this convenient method. Ideal for developers seeking to resize images proportionally, ensuring consistent and visually appealing results across different display environment. | -| virtual [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | +| override [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | | override [Rotate](../../aspose.imaging.fileformats.dicom/dicomimage/rotate/#rotate_1)(float, bool, Color) | Rotate the image around its center with this convenient method. Ideal for developers seeking to adjust image orientation dynamically, ensuring optimal presentation and alignment within their applications. | | override [RotateFlip](../../aspose.imaging.fileformats.dicom/dicomimage/rotateflip/)(RotateFlipType) | Easily manipulate the active frame by rotating, flipping, or performing both actions simultaneously with this straightforward method. Ideal for developers who need to dynamically adjust the orientation of specific frames within their image sequences, ensuring optimal presentation and alignment. | | [Save](../../aspose.imaging/image/save/)() | Saves the image data to the underlying stream. | diff --git a/english/net/aspose.imaging.fileformats.dicom/dicompage/_index.md b/english/net/aspose.imaging.fileformats.dicom/dicompage/_index.md index 52c3cb308a..490f5b8c2e 100644 --- a/english/net/aspose.imaging.fileformats.dicom/dicompage/_index.md +++ b/english/net/aspose.imaging.fileformats.dicom/dicompage/_index.md @@ -78,7 +78,7 @@ public class DicomPage : RasterCachedImage | override [CacheData](../../aspose.imaging/rastercachedimage/cachedata/)() | Caches the data and ensures no additional data loading will be performed from the underlying [`DataStreamContainer`](../../aspose.imaging/datastreamsupporter/datastreamcontainer/). | | [CanSave](../../aspose.imaging/image/cansave/)(ImageOptionsBase) | Determines whether image can be saved to the specified file format represented by the passed save options. | | override [Crop](../../aspose.imaging/rastercachedimage/crop/)(Rectangle) | Cropping the image. | -| virtual [Crop](../../aspose.imaging/rasterimage/crop/)(int, int, int, int) | Crop image with shifts. | +| virtual [Crop](../../aspose.imaging/image/crop/)(int, int, int, int) | Crop image with shifts. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | | [Dither](../../aspose.imaging/rasterimage/dither/)(DitheringMethod, int) | Performs dithering on the current image. | | override [Dither](../../aspose.imaging/rastercachedimage/dither/)(DitheringMethod, int, IColorPalette) | Performs dithering on the current image. | @@ -122,7 +122,7 @@ public class DicomPage : RasterCachedImage | [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int) | Resizes the width proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ImageResizeSettings) | Resizes the width proportionally. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ResizeType) | Resizes the width proportionally. | -| virtual [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | +| override [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | | override [Rotate](../../aspose.imaging/rastercachedimage/rotate/)(float, bool, Color) | Rotate image around the center. | | override [RotateFlip](../../aspose.imaging/rastercachedimage/rotateflip/)(RotateFlipType) | Rotates, flips, or rotates and flips the image. | | [Save](../../aspose.imaging/image/save/)() | Saves the image data to the underlying stream. | diff --git a/english/net/aspose.imaging.fileformats.djvu/djvuimage/_index.md b/english/net/aspose.imaging.fileformats.djvu/djvuimage/_index.md index 81f565fed6..f4eb355717 100644 --- a/english/net/aspose.imaging.fileformats.djvu/djvuimage/_index.md +++ b/english/net/aspose.imaging.fileformats.djvu/djvuimage/_index.md @@ -133,7 +133,7 @@ public sealed class DjvuImage : RasterCachedMultipageImage, INotifyPropertyChang | [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int) | Resizes the width proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ImageResizeSettings) | Resizes the width proportionally. | | override [ResizeWidthProportionally](../../aspose.imaging.fileformats.djvu/djvuimage/resizewidthproportionally/#resizewidthproportionally_2)(int, ResizeType) | The `ResizeWidthProportionally` method offers a convenient solution to adjust the width of your image while maintaining its aspect ratio. By proportionally resizing the width, you can ensure that your images remain visually appealing and consistent across different devices and screen sizes, enhancing their versatility and usability in various contexts. | -| virtual [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | +| override [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | | override [Rotate](../../aspose.imaging.fileformats.djvu/djvuimage/rotate/#rotate_1)(float, bool, Color) | Rotate the image around its center with the Rotate method of the RasterCachedMultipageImage class. This convenient feature allows you to easily adjust the orientation of images while maintaining their center position, enhancing your image manipulation capabilities. | | override [RotateFlip](../../aspose.imaging.fileformats.djvu/djvuimage/rotateflip/)(RotateFlipType) | The `RotateFlip` method offers versatile manipulation options for your image, allowing you to rotate, flip, or perform both operations on the active frame independently. Whether you're editing photos, creating graphics, or enhancing digital art, this method provides precise control over the orientation and composition of your images, ensuring they meet your creative vision with ease and efficiency. | | [Save](../../aspose.imaging/image/save/)() | Saves the image data to the underlying stream. | diff --git a/english/net/aspose.imaging.fileformats.djvu/djvupage/_index.md b/english/net/aspose.imaging.fileformats.djvu/djvupage/_index.md index 51a8c3e89a..e7954a8913 100644 --- a/english/net/aspose.imaging.fileformats.djvu/djvupage/_index.md +++ b/english/net/aspose.imaging.fileformats.djvu/djvupage/_index.md @@ -75,7 +75,7 @@ public class DjvuPage : RasterCachedImage, INotifyPropertyChanged | override [CacheData](../../aspose.imaging/rastercachedimage/cachedata/)() | Caches the data and ensures no additional data loading will be performed from the underlying [`DataStreamContainer`](../../aspose.imaging/datastreamsupporter/datastreamcontainer/). | | [CanSave](../../aspose.imaging/image/cansave/)(ImageOptionsBase) | Determines whether image can be saved to the specified file format represented by the passed save options. | | override [Crop](../../aspose.imaging/rastercachedimage/crop/)(Rectangle) | Cropping the image. | -| virtual [Crop](../../aspose.imaging/rasterimage/crop/)(int, int, int, int) | Crop image with shifts. | +| virtual [Crop](../../aspose.imaging/image/crop/)(int, int, int, int) | Crop image with shifts. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | | [Dither](../../aspose.imaging/rasterimage/dither/)(DitheringMethod, int) | Performs dithering on the current image. | | override [Dither](../../aspose.imaging/rastercachedimage/dither/)(DitheringMethod, int, IColorPalette) | Performs dithering on the current image. | @@ -124,7 +124,7 @@ public class DjvuPage : RasterCachedImage, INotifyPropertyChanged | [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int) | Resizes the width proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ImageResizeSettings) | Resizes the width proportionally. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ResizeType) | Resizes the width proportionally. | -| virtual [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | +| override [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | | override [Rotate](../../aspose.imaging/rastercachedimage/rotate/)(float, bool, Color) | Rotate image around the center. | | override [RotateFlip](../../aspose.imaging/rastercachedimage/rotateflip/)(RotateFlipType) | Rotates, flips, or rotates and flips the image. | | [Save](../../aspose.imaging/image/save/)() | Saves the image data to the underlying stream. | diff --git a/english/net/aspose.imaging.fileformats.djvu/djvuraster/_index.md b/english/net/aspose.imaging.fileformats.djvu/djvuraster/_index.md index a57b35a7b7..1a20dc0770 100644 --- a/english/net/aspose.imaging.fileformats.djvu/djvuraster/_index.md +++ b/english/net/aspose.imaging.fileformats.djvu/djvuraster/_index.md @@ -71,7 +71,7 @@ public sealed class DjvuRaster : RasterCachedImage | override [CacheData](../../aspose.imaging/rastercachedimage/cachedata/)() | Caches the data and ensures no additional data loading will be performed from the underlying [`DataStreamContainer`](../../aspose.imaging/datastreamsupporter/datastreamcontainer/). | | [CanSave](../../aspose.imaging/image/cansave/)(ImageOptionsBase) | Determines whether image can be saved to the specified file format represented by the passed save options. | | override [Crop](../../aspose.imaging/rastercachedimage/crop/)(Rectangle) | Cropping the image. | -| virtual [Crop](../../aspose.imaging/rasterimage/crop/)(int, int, int, int) | Crop image with shifts. | +| virtual [Crop](../../aspose.imaging/image/crop/)(int, int, int, int) | Crop image with shifts. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | | [Dither](../../aspose.imaging/rasterimage/dither/)(DitheringMethod, int) | Performs dithering on the current image. | | override [Dither](../../aspose.imaging/rastercachedimage/dither/)(DitheringMethod, int, IColorPalette) | Performs dithering on the current image. | @@ -115,7 +115,7 @@ public sealed class DjvuRaster : RasterCachedImage | [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int) | Resizes the width proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ImageResizeSettings) | Resizes the width proportionally. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ResizeType) | Resizes the width proportionally. | -| virtual [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | +| override [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | | override [Rotate](../../aspose.imaging/rastercachedimage/rotate/)(float, bool, Color) | Rotate image around the center. | | override [RotateFlip](../../aspose.imaging/rastercachedimage/rotateflip/)(RotateFlipType) | Rotates, flips, or rotates and flips the image. | | [Save](../../aspose.imaging/image/save/)() | Saves the image data to the underlying stream. | diff --git a/english/net/aspose.imaging.fileformats.dng/dngimage/_index.md b/english/net/aspose.imaging.fileformats.dng/dngimage/_index.md index 86330d10f0..1f000f5b0b 100644 --- a/english/net/aspose.imaging.fileformats.dng/dngimage/_index.md +++ b/english/net/aspose.imaging.fileformats.dng/dngimage/_index.md @@ -71,7 +71,7 @@ public class DngImage : RasterCachedImage | override [CacheData](../../aspose.imaging/rastercachedimage/cachedata/)() | Caches the data and ensures no additional data loading will be performed from the underlying [`DataStreamContainer`](../../aspose.imaging/datastreamsupporter/datastreamcontainer/). | | [CanSave](../../aspose.imaging/image/cansave/)(ImageOptionsBase) | Determines whether image can be saved to the specified file format represented by the passed save options. | | override [Crop](../../aspose.imaging/rastercachedimage/crop/)(Rectangle) | Cropping the image. | -| virtual [Crop](../../aspose.imaging/rasterimage/crop/)(int, int, int, int) | Crop image with shifts. | +| virtual [Crop](../../aspose.imaging/image/crop/)(int, int, int, int) | Crop image with shifts. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | | [Dither](../../aspose.imaging/rasterimage/dither/)(DitheringMethod, int) | Performs dithering on the current image. | | override [Dither](../../aspose.imaging/rastercachedimage/dither/)(DitheringMethod, int, IColorPalette) | Performs dithering on the current image. | @@ -115,7 +115,7 @@ public class DngImage : RasterCachedImage | [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int) | Resizes the width proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ImageResizeSettings) | Resizes the width proportionally. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ResizeType) | Resizes the width proportionally. | -| virtual [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | +| override [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | | override [Rotate](../../aspose.imaging/rastercachedimage/rotate/)(float, bool, Color) | Rotate image around the center. | | override [RotateFlip](../../aspose.imaging/rastercachedimage/rotateflip/)(RotateFlipType) | Rotates, flips, or rotates and flips the image. | | [Save](../../aspose.imaging/image/save/)() | Saves the image data to the underlying stream. | diff --git a/english/net/aspose.imaging.fileformats.emf/emfimage/_index.md b/english/net/aspose.imaging.fileformats.emf/emfimage/_index.md index f777907db6..6a513bb4ed 100644 --- a/english/net/aspose.imaging.fileformats.emf/emfimage/_index.md +++ b/english/net/aspose.imaging.fileformats.emf/emfimage/_index.md @@ -36,8 +36,8 @@ public sealed class EmfImage : MetaImage | override [FileFormat](../../aspose.imaging.fileformats.emf/emfimage/fileformat/) { get; } | Access the file format value associated with the object. Easily determine the format of the file associated with the object for streamlined processing and compatibility checks. Simplify your workflow by retrieving the file format information with ease. | | virtual [HasBackgroundColor](../../aspose.imaging/image/hasbackgroundcolor/) { get; set; } | Gets or sets a value indicating whether image has background color. | | [Header](../../aspose.imaging.fileformats.emf/emfimage/header/) { get; set; } | Retrieve or modify the EMF metafile header record with this property. Ideal for managing metafile data efficiently within your application. Improve your workflow with streamlined access to metafile header information. | -| override [Height](../../aspose.imaging.fileformats.emf/emfimage/height/) { get; } | Retrieve the image's height, facilitating accurate rendering and layout adjustments. Accessing the height property ensures compatibility and seamless integration across different platforms and applications. | -| virtual [HeightF](../../aspose.imaging/vectorimage/heightf/) { get; } | Gets the object height, in inches. | +| override [Height](../../aspose.imaging/vectorimage/height/) { get; } | Gets the image height. | +| override [HeightF](../../aspose.imaging.fileformats.emf/emfimage/heightf/) { get; } | Retrieve the image's height, facilitating accurate rendering and layout adjustments. Accessing the height property ensures compatibility and seamless integration across different platforms and applications. | | [InterruptMonitor](../../aspose.imaging/image/interruptmonitor/) { get; set; } | Gets or sets the interrupt monitor. | | override [IsCached](../../aspose.imaging.fileformats.emf/emfimage/iscached/) { get; } | Access a value indicating whether the object's data is currently cached, eliminating the need for additional data reading. Enhance efficiency by quickly determining if cached data is available for immediate access. Optimize your workflow with streamlined data retrieval processes. | | [Palette](../../aspose.imaging/image/palette/) { get; set; } | Gets or sets the color palette. The color palette is not used when pixels are represented directly. | @@ -45,8 +45,8 @@ public sealed class EmfImage : MetaImage | [Size](../../aspose.imaging/image/size/) { get; } | Gets the image size. | | [SizeF](../../aspose.imaging/vectorimage/sizef/) { get; } | Gets the object size, in inches. | | virtual [UsePalette](../../aspose.imaging/image/usepalette/) { get; } | Gets a value indicating whether the image palette is used. | -| override [Width](../../aspose.imaging.fileformats.emf/emfimage/width/) { get; } | Access to the width of the image, providing essential information for precise rendering and processing. Quickly retrieve the image's width to ensure compatibility and proper layout within various applications and platforms. | -| virtual [WidthF](../../aspose.imaging/vectorimage/widthf/) { get; } | Gets the object width, in inches. | +| override [Width](../../aspose.imaging/vectorimage/width/) { get; } | Gets the image width. | +| override [WidthF](../../aspose.imaging.fileformats.emf/emfimage/widthf/) { get; } | Access to the width of the image, providing essential information for precise rendering and processing. Quickly retrieve the image's width to ensure compatibility and proper layout within various applications and platforms. | ## Methods @@ -54,8 +54,8 @@ public sealed class EmfImage : MetaImage | --- | --- | | override [CacheData](../../aspose.imaging.fileformats.emf/emfimage/cachedata/)() | Efficiently cache data and prevent redundant loading from the underlying [`DataStreamContainer`](../../aspose.imaging/datastreamsupporter/datastreamcontainer/) with this method. Enhance performance and streamline data access in your application, optimizing resource utilization for improved responsiveness. | | [CanSave](../../aspose.imaging/image/cansave/)(ImageOptionsBase) | Determines whether image can be saved to the specified file format represented by the passed save options. | -| override [Crop](../../aspose.imaging.fileformats.emf/emfimage/crop/#crop)(Rectangle) | Crop the specified rectangle using this function. Ideal for refining image composition and focusing on specific areas of interest within the image. Improve visual clarity and highlight key details with precise cropping functionality. | -| virtual [Crop](../../aspose.imaging.fileformats.emf/metaimage/crop/)(int, int, int, int) | Crop image with shifts. | +| override [Crop](../../aspose.imaging/vectorimage/crop/)(Rectangle) | Crops the specified rectangle. | +| virtual [Crop](../../aspose.imaging/image/crop/)(int, int, int, int) | Crop image with shifts. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | | override [GetDefaultOptions](../../aspose.imaging.fileformats.emf/emfimage/getdefaultoptions/)(object[]) | Retrieve the default options for your image effortlessly. With this feature, you can quickly access the preset configurations, ensuring seamless integration and optimal performance for your projects. Ideal for streamlining your workflow and achieving consistent results across your images. | | virtual [GetEmbeddedImages](../../aspose.imaging/vectorimage/getembeddedimages/)() | Gets the embedded images. | @@ -63,12 +63,12 @@ public sealed class EmfImage : MetaImage | virtual [GetOriginalOptions](../../aspose.imaging/image/getoriginaloptions/)() | Gets the options based on the original file settings. This can be helpful to keep bit-depth and other parameters of the original image unchanged. For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the [`Save`](../../aspose.imaging/datastreamsupporter/save/) method, the output PNG image with 8-bit per pixel will be produced. To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them to the [`Save`](../../aspose.imaging/image/save/) method as the second parameter. | | virtual [GetSerializedStream](../../aspose.imaging/image/getserializedstream/)(ImageOptionsBase, Rectangle, out int) | Converts to aps. | | override [GetUsedFonts](../../aspose.imaging.fileformats.emf/emfimage/getusedfonts/)() | Retrieve the list of fonts utilized within the metafile with this method. Gain insights into font usage, facilitating efficient management and optimization of font resources for enhanced rendering and display fidelity. | -| [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/)() | Removes the background. | -| [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/)(RemoveBackgroundSettings) | Removes the background. | +| virtual [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/)() | Removes the background. | +| virtual [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/)(RemoveBackgroundSettings) | Removes the background. | | virtual [RemoveMetadata](../../aspose.imaging/image/removemetadata/)() | Removes metadata. | | [Resize](../../aspose.imaging/image/resize/)(int, int) | Resizes the image. The default NearestNeighbourResample is used. | -| override [Resize](../../aspose.imaging.fileformats.emf/emfimage/resize/#resize_1)(int, int, ImageResizeSettings) | Adjust your image size with customizable settings, ensuring optimal dimensions and clarity. Perfect for tailoring images to specific requirements while maintaining quality. | -| override [Resize](../../aspose.imaging.fileformats.emf/emfimage/resize/#resize_2)(int, int, ResizeType) | Resize your image effortlessly with this function, specifying the desired width, height, and type. Perfect for adjusting images to fit specific dimensions while maintaining clarity and quality. Ideal for optimizing images for various platforms and applications. | +| override [Resize](../../aspose.imaging/vectorimage/resize/)(int, int, ImageResizeSettings) | Resizes the image with extended options. | +| override [Resize](../../aspose.imaging/vectorimage/resize/)(int, int, ResizeType) | Resizes the specified new width. | | override [ResizeCanvas](../../aspose.imaging.fileformats.emf/emfimage/resizecanvas/)(Rectangle) | Resize the canvas with ease using this function. Perfect for adjusting the overall dimensions of the image without altering its content. Enhance presentation and prepare images for various display sizes effortlessly. | | [ResizeHeightProportionally](../../aspose.imaging/image/resizeheightproportionally/)(int) | Resizes the height proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeHeightProportionally](../../aspose.imaging/image/resizeheightproportionally/)(int, ImageResizeSettings) | Resizes the height proportionally. | @@ -76,7 +76,8 @@ public sealed class EmfImage : MetaImage | [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int) | Resizes the width proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ImageResizeSettings) | Resizes the width proportionally. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ResizeType) | Resizes the width proportionally. | -| override [RotateFlip](../../aspose.imaging.fileformats.emf/emfimage/rotateflip/)(RotateFlipType) | Easily rotate, flip, or perform both operations simultaneously on your image using this simple `RotateFlip()` method. Perfect for adjusting orientation and enhancing visual appeal without hassle. Ideal for achieving the desired presentation of your images in any project or application. | +| override [Rotate](../../aspose.imaging/vectorimage/rotate/)(float) | Rotate image around the center. | +| override [RotateFlip](../../aspose.imaging/vectorimage/rotateflip/)(RotateFlipType) | Rotates, flips, or rotates and flips the image. | | [Save](../../aspose.imaging/image/save/)() | Saves the image data to the underlying stream. | | [Save](../../aspose.imaging/datastreamsupporter/save/)(Stream) | Saves the object's data to the specified stream. | | override [Save](../../aspose.imaging/image/save/)(string) | Saves the image to the specified file location. | @@ -85,7 +86,7 @@ public sealed class EmfImage : MetaImage | virtual [Save](../../aspose.imaging/image/save/)(string, ImageOptionsBase) | Saves the object's data to the specified file location in the specified file format according to save options. | | virtual [Save](../../aspose.imaging/image/save/)(Stream, ImageOptionsBase, Rectangle) | Saves the image's data to the specified stream in the specified file format according to save options. | | virtual [Save](../../aspose.imaging/image/save/)(string, ImageOptionsBase, Rectangle) | Saves the object's data to the specified file location in the specified file format according to save options. | -| override [SetPalette](../../aspose.imaging.fileformats.emf/emfimage/setpalette/)(IColorPalette, bool) | Enhance your image's color palette by setting it with the specified `IColorPalette`. Achieve vivid, vibrant visuals with ease, ensuring your images stand out and captivate viewers. Ideal for optimizing color schemes and achieving the perfect look for your projects. | +| override [SetPalette](../../aspose.imaging.fileformats.emf/emfimage/setpalette/)(IColorPalette, bool) | Sets the image palette. | ## Examples diff --git a/english/net/aspose.imaging.fileformats.emf/emfimage/getdefaultoptions/_index.md b/english/net/aspose.imaging.fileformats.emf/emfimage/getdefaultoptions/_index.md index cf455316ea..3728874356 100644 --- a/english/net/aspose.imaging.fileformats.emf/emfimage/getdefaultoptions/_index.md +++ b/english/net/aspose.imaging.fileformats.emf/emfimage/getdefaultoptions/_index.md @@ -3,7 +3,7 @@ title: EmfImage.GetDefaultOptions second_title: Aspose.Imaging for .NET API Reference description: EmfImage method. Retrieve the default options for your image effortlessly. With this feature you can quickly access the preset configurations ensuring seamless integration and optimal performance for your projects. Ideal for streamlining your workflow and achieving consistent results across your images type: docs -weight: 110 +weight: 100 url: /net/aspose.imaging.fileformats.emf/emfimage/getdefaultoptions/ --- ## EmfImage.GetDefaultOptions method diff --git a/english/net/aspose.imaging.fileformats.emf/emfimage/getusedfonts/_index.md b/english/net/aspose.imaging.fileformats.emf/emfimage/getusedfonts/_index.md index 12a1a98dd4..e772f8c274 100644 --- a/english/net/aspose.imaging.fileformats.emf/emfimage/getusedfonts/_index.md +++ b/english/net/aspose.imaging.fileformats.emf/emfimage/getusedfonts/_index.md @@ -3,7 +3,7 @@ title: EmfImage.GetUsedFonts second_title: Aspose.Imaging for .NET API Reference description: EmfImage method. Retrieve the list of fonts utilized within the metafile with this method. Gain insights into font usage facilitating efficient management and optimization of font resources for enhanced rendering and display fidelity type: docs -weight: 120 +weight: 110 url: /net/aspose.imaging.fileformats.emf/emfimage/getusedfonts/ --- ## EmfImage.GetUsedFonts method diff --git a/english/net/aspose.imaging.fileformats.emf/emfimage/heightf/_index.md b/english/net/aspose.imaging.fileformats.emf/emfimage/heightf/_index.md new file mode 100644 index 0000000000..acbbbbbe7a --- /dev/null +++ b/english/net/aspose.imaging.fileformats.emf/emfimage/heightf/_index.md @@ -0,0 +1,27 @@ +--- +title: EmfImage.HeightF +second_title: Aspose.Imaging for .NET API Reference +description: EmfImage property. Retrieve the images height facilitating accurate rendering and layout adjustments. Accessing the height property ensures compatibility and seamless integration across different platforms and applications +type: docs +weight: 50 +url: /net/aspose.imaging.fileformats.emf/emfimage/heightf/ +--- +## EmfImage.HeightF property + +Retrieve the image's height, facilitating accurate rendering and layout adjustments. Accessing the height property ensures compatibility and seamless integration across different platforms and applications. + +```csharp +public override float HeightF { get; } +``` + +### Property Value + +The image height. + +### See Also + +* class [EmfImage](../) +* namespace [Aspose.Imaging.FileFormats.Emf](../../emfimage/) +* assembly [Aspose.Imaging](../../../) + + diff --git a/english/net/aspose.imaging.fileformats.emf/emfimage/resizecanvas/_index.md b/english/net/aspose.imaging.fileformats.emf/emfimage/resizecanvas/_index.md index 0996cee899..4f8d06ed0e 100644 --- a/english/net/aspose.imaging.fileformats.emf/emfimage/resizecanvas/_index.md +++ b/english/net/aspose.imaging.fileformats.emf/emfimage/resizecanvas/_index.md @@ -3,7 +3,7 @@ title: EmfImage.ResizeCanvas second_title: Aspose.Imaging for .NET API Reference description: EmfImage method. Resize the canvas with ease using this function. Perfect for adjusting the overall dimensions of the image without altering its content. Enhance presentation and prepare images for various display sizes effortlessly type: docs -weight: 140 +weight: 120 url: /net/aspose.imaging.fileformats.emf/emfimage/resizecanvas/ --- ## EmfImage.ResizeCanvas method diff --git a/english/net/aspose.imaging.fileformats.emf/emfimage/setpalette/_index.md b/english/net/aspose.imaging.fileformats.emf/emfimage/setpalette/_index.md index e0b04ebdfd..1cd73cb88a 100644 --- a/english/net/aspose.imaging.fileformats.emf/emfimage/setpalette/_index.md +++ b/english/net/aspose.imaging.fileformats.emf/emfimage/setpalette/_index.md @@ -1,14 +1,14 @@ --- title: EmfImage.SetPalette second_title: Aspose.Imaging for .NET API Reference -description: EmfImage method. Enhance your images color palette by setting it with the specified IColorPalette. Achieve vivid vibrant visuals with ease ensuring your images stand out and captivate viewers. Ideal for optimizing color schemes and achieving the perfect look for your projects +description: EmfImage method. Sets the image palette type: docs -weight: 160 +weight: 130 url: /net/aspose.imaging.fileformats.emf/emfimage/setpalette/ --- ## EmfImage.SetPalette method -Enhance your image's color palette by setting it with the specified `IColorPalette`. Achieve vivid, vibrant visuals with ease, ensuring your images stand out and captivate viewers. Ideal for optimizing color schemes and achieving the perfect look for your projects. +Sets the image palette. ```csharp public override void SetPalette(IColorPalette palette, bool updateColors) @@ -23,7 +23,7 @@ public override void SetPalette(IColorPalette palette, bool updateColors) | exception | condition | | --- | --- | -| NotImplementedException | Invalid for vector images | +| NotImplementedException | | ### See Also diff --git a/english/net/aspose.imaging.fileformats.emf/emfimage/widthf/_index.md b/english/net/aspose.imaging.fileformats.emf/emfimage/widthf/_index.md new file mode 100644 index 0000000000..a8ff2cdc46 --- /dev/null +++ b/english/net/aspose.imaging.fileformats.emf/emfimage/widthf/_index.md @@ -0,0 +1,27 @@ +--- +title: EmfImage.WidthF +second_title: Aspose.Imaging for .NET API Reference +description: EmfImage property. Access to the width of the image providing essential information for precise rendering and processing. Quickly retrieve the images width to ensure compatibility and proper layout within various applications and platforms +type: docs +weight: 80 +url: /net/aspose.imaging.fileformats.emf/emfimage/widthf/ +--- +## EmfImage.WidthF property + +Access to the width of the image, providing essential information for precise rendering and processing. Quickly retrieve the image's width to ensure compatibility and proper layout within various applications and platforms. + +```csharp +public override float WidthF { get; } +``` + +### Property Value + +The image width. + +### See Also + +* class [EmfImage](../) +* namespace [Aspose.Imaging.FileFormats.Emf](../../emfimage/) +* assembly [Aspose.Imaging](../../../) + + diff --git a/english/net/aspose.imaging.fileformats.emf/metaimage/_index.md b/english/net/aspose.imaging.fileformats.emf/metaimage/_index.md index d89cdd1f73..55a34a06ef 100644 --- a/english/net/aspose.imaging.fileformats.emf/metaimage/_index.md +++ b/english/net/aspose.imaging.fileformats.emf/metaimage/_index.md @@ -52,8 +52,8 @@ public abstract class MetaImage : VectorImage | --- | --- | | abstract [CacheData](../../aspose.imaging/datastreamsupporter/cachedata/)() | Caches the data and ensures no additional data loading will be performed from the underlying [`DataStreamContainer`](../../aspose.imaging/datastreamsupporter/datastreamcontainer/). | | [CanSave](../../aspose.imaging/image/cansave/)(ImageOptionsBase) | Determines whether image can be saved to the specified file format represented by the passed save options. | -| virtual [Crop](../../aspose.imaging.fileformats.emf/metaimage/crop/#crop)(Rectangle) | Crops the specified rectangle. | -| virtual [Crop](../../aspose.imaging.fileformats.emf/metaimage/crop/#crop_1)(int, int, int, int) | Crop image with shifts. | +| override [Crop](../../aspose.imaging/vectorimage/crop/)(Rectangle) | Crops the specified rectangle. | +| virtual [Crop](../../aspose.imaging/image/crop/)(int, int, int, int) | Crop image with shifts. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | | virtual [GetDefaultOptions](../../aspose.imaging/image/getdefaultoptions/)(object[]) | Gets the default options. | | virtual [GetEmbeddedImages](../../aspose.imaging/vectorimage/getembeddedimages/)() | Gets the embedded images. | @@ -61,12 +61,12 @@ public abstract class MetaImage : VectorImage | virtual [GetOriginalOptions](../../aspose.imaging/image/getoriginaloptions/)() | Gets the options based on the original file settings. This can be helpful to keep bit-depth and other parameters of the original image unchanged. For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the [`Save`](../../aspose.imaging/datastreamsupporter/save/) method, the output PNG image with 8-bit per pixel will be produced. To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them to the [`Save`](../../aspose.imaging/image/save/) method as the second parameter. | | virtual [GetSerializedStream](../../aspose.imaging/image/getserializedstream/)(ImageOptionsBase, Rectangle, out int) | Converts to aps. | | abstract [GetUsedFonts](../../aspose.imaging.fileformats.emf/metaimage/getusedfonts/)() | Returns the list of font which used inside metafile. | -| [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/)() | Removes the background. | -| [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/)(RemoveBackgroundSettings) | Removes the background. | +| virtual [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/)() | Removes the background. | +| virtual [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/)(RemoveBackgroundSettings) | Removes the background. | | virtual [RemoveMetadata](../../aspose.imaging/image/removemetadata/)() | Removes metadata. | | [Resize](../../aspose.imaging/image/resize/)(int, int) | Resizes the image. The default NearestNeighbourResample is used. | -| abstract [Resize](../../aspose.imaging/image/resize/)(int, int, ImageResizeSettings) | Resizes the image. | -| abstract [Resize](../../aspose.imaging/image/resize/)(int, int, ResizeType) | Resizes the image. | +| override [Resize](../../aspose.imaging/vectorimage/resize/)(int, int, ImageResizeSettings) | Resizes the image with extended options. | +| override [Resize](../../aspose.imaging/vectorimage/resize/)(int, int, ResizeType) | Resizes the specified new width. | | abstract [ResizeCanvas](../../aspose.imaging.fileformats.emf/metaimage/resizecanvas/)(Rectangle) | Resizes the canvas. | | [ResizeHeightProportionally](../../aspose.imaging/image/resizeheightproportionally/)(int) | Resizes the height proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeHeightProportionally](../../aspose.imaging/image/resizeheightproportionally/)(int, ImageResizeSettings) | Resizes the height proportionally. | @@ -74,7 +74,8 @@ public abstract class MetaImage : VectorImage | [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int) | Resizes the width proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ImageResizeSettings) | Resizes the width proportionally. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ResizeType) | Resizes the width proportionally. | -| abstract [RotateFlip](../../aspose.imaging/image/rotateflip/)(RotateFlipType) | Rotates, flips, or rotates and flips the image. | +| override [Rotate](../../aspose.imaging/vectorimage/rotate/)(float) | Rotate image around the center. | +| override [RotateFlip](../../aspose.imaging/vectorimage/rotateflip/)(RotateFlipType) | Rotates, flips, or rotates and flips the image. | | [Save](../../aspose.imaging/image/save/)() | Saves the image data to the underlying stream. | | [Save](../../aspose.imaging/datastreamsupporter/save/)(Stream) | Saves the object's data to the specified stream. | | override [Save](../../aspose.imaging/image/save/)(string) | Saves the image to the specified file location. | diff --git a/english/net/aspose.imaging.fileformats.emf/metaimage/getmissedfonts/_index.md b/english/net/aspose.imaging.fileformats.emf/metaimage/getmissedfonts/_index.md index 6ad3b7e850..0d6bce178f 100644 --- a/english/net/aspose.imaging.fileformats.emf/metaimage/getmissedfonts/_index.md +++ b/english/net/aspose.imaging.fileformats.emf/metaimage/getmissedfonts/_index.md @@ -3,7 +3,7 @@ title: MetaImage.GetMissedFonts second_title: Aspose.Imaging for .NET API Reference description: MetaImage method. Returns the list of fonts which used inside metafile but not found type: docs -weight: 40 +weight: 30 url: /net/aspose.imaging.fileformats.emf/metaimage/getmissedfonts/ --- ## MetaImage.GetMissedFonts method diff --git a/english/net/aspose.imaging.fileformats.emf/metaimage/getusedfonts/_index.md b/english/net/aspose.imaging.fileformats.emf/metaimage/getusedfonts/_index.md index 1241700a0b..d8ae021588 100644 --- a/english/net/aspose.imaging.fileformats.emf/metaimage/getusedfonts/_index.md +++ b/english/net/aspose.imaging.fileformats.emf/metaimage/getusedfonts/_index.md @@ -3,7 +3,7 @@ title: MetaImage.GetUsedFonts second_title: Aspose.Imaging for .NET API Reference description: MetaImage method. Returns the list of font which used inside metafile type: docs -weight: 50 +weight: 40 url: /net/aspose.imaging.fileformats.emf/metaimage/getusedfonts/ --- ## MetaImage.GetUsedFonts method diff --git a/english/net/aspose.imaging.fileformats.emf/metaimage/resizecanvas/_index.md b/english/net/aspose.imaging.fileformats.emf/metaimage/resizecanvas/_index.md index b10d41a74d..87614a93e4 100644 --- a/english/net/aspose.imaging.fileformats.emf/metaimage/resizecanvas/_index.md +++ b/english/net/aspose.imaging.fileformats.emf/metaimage/resizecanvas/_index.md @@ -3,7 +3,7 @@ title: MetaImage.ResizeCanvas second_title: Aspose.Imaging for .NET API Reference description: MetaImage method. Resizes the canvas type: docs -weight: 60 +weight: 50 url: /net/aspose.imaging.fileformats.emf/metaimage/resizecanvas/ --- ## MetaImage.ResizeCanvas method diff --git a/english/net/aspose.imaging.fileformats.eps/epsimage/_index.md b/english/net/aspose.imaging.fileformats.eps/epsimage/_index.md index af8ee1c9e4..00b5bb6d85 100644 --- a/english/net/aspose.imaging.fileformats.eps/epsimage/_index.md +++ b/english/net/aspose.imaging.fileformats.eps/epsimage/_index.md @@ -34,8 +34,8 @@ public sealed class EpsImage : VectorImage | override [FileFormat](../../aspose.imaging.fileformats.eps/epsimage/fileformat/) { get; } | Access the file format of your image with this property. Retrieve essential information about the format of your image file, facilitating compatibility and efficient processing. Ideal for identifying the format of your image files for seamless integration into your projects. | | virtual [HasBackgroundColor](../../aspose.imaging/image/hasbackgroundcolor/) { get; set; } | Gets or sets a value indicating whether image has background color. | | [HasRasterPreview](../../aspose.imaging.fileformats.eps/epsimage/hasrasterpreview/) { get; } | Discover the presence of a raster preview effortlessly with this property. Access the boolean value indicating whether the `EpsImage` instance includes a raster preview, empowering your image processing tasks with clarity and efficiency. Ideal for streamlining workflow decisions based on the presence or absence of raster previews in EPS images. | -| override [Height](../../aspose.imaging.fileformats.eps/epsimage/height/) { get; } | Access the height of the image using this property. Obtain the image's height with ease, enabling seamless layout adjustments, aspect ratio calculations, and precise rendering across different screen resolutions and display environments. | -| virtual [HeightF](../../aspose.imaging/vectorimage/heightf/) { get; } | Gets the object height, in inches. | +| override [Height](../../aspose.imaging/vectorimage/height/) { get; } | Gets the image height. | +| override [HeightF](../../aspose.imaging.fileformats.eps/epsimage/heightf/) { get; } | Access the height of the image using this property. Obtain the image's height with ease, enabling seamless layout adjustments, aspect ratio calculations, and precise rendering across different screen resolutions and display environments. | | [InterruptMonitor](../../aspose.imaging/image/interruptmonitor/) { get; set; } | Gets or sets the interrupt monitor. | | override [IsCached](../../aspose.imaging.fileformats.eps/epsimage/iscached/) { get; } | This property provides a convenient way to check if the object's data is currently cached, eliminating the need for additional data reading. It offers a quick and efficient method to determine if the required information is readily available, optimizing performance and reducing resource overhead in data-intensive operations. | | [Palette](../../aspose.imaging/image/palette/) { get; set; } | Gets or sets the color palette. The color palette is not used when pixels are represented directly. | @@ -46,8 +46,8 @@ public sealed class EpsImage : VectorImage | [SizeF](../../aspose.imaging/vectorimage/sizef/) { get; } | Gets the object size, in inches. | | [Title](../../aspose.imaging.fileformats.eps/epsimage/title/) { get; } | This property retrieves the title extracted from the EPS Document Structuring Conventions (DSC) comments embedded within the EPS file. It provides valuable metadata about the content of the EPS file, aiding in document organization and identification within compatible software applications. | | virtual [UsePalette](../../aspose.imaging/image/usepalette/) { get; } | Gets a value indicating whether the image palette is used. | -| override [Width](../../aspose.imaging.fileformats.eps/epsimage/width/) { get; } | Retrieve the width of the image with this convenient property. Obtain the image's width effortlessly, facilitating precise layout calculations, scaling operations, and dimension-related tasks within your application. Ideal for ensuring accurate rendering and display of images across various platforms and devices. | -| virtual [WidthF](../../aspose.imaging/vectorimage/widthf/) { get; } | Gets the object width, in inches. | +| override [Width](../../aspose.imaging/vectorimage/width/) { get; } | Gets the image width. | +| override [WidthF](../../aspose.imaging.fileformats.eps/epsimage/widthf/) { get; } | Retrieve the width of the image with this convenient property. Obtain the image's width effortlessly, facilitating precise layout calculations, scaling operations, and dimension-related tasks within your application. Ideal for ensuring accurate rendering and display of images across various platforms and devices. | ## Methods @@ -55,6 +55,8 @@ public sealed class EpsImage : VectorImage | --- | --- | | override [CacheData](../../aspose.imaging.fileformats.eps/epsimage/cachedata/)() | This method does nothing as the current implementation of the `EpsImage` class does not involve caching data. While it may not perform any action, understanding this behavior is crucial for developers working with EPS images, ensuring efficient resource management and optimal performance within their applications. | | [CanSave](../../aspose.imaging/image/cansave/)(ImageOptionsBase) | Determines whether image can be saved to the specified file format represented by the passed save options. | +| override [Crop](../../aspose.imaging/vectorimage/crop/)(Rectangle) | Crops the specified rectangle. | +| virtual [Crop](../../aspose.imaging/image/crop/)(int, int, int, int) | Crop image with shifts. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | | override [GetDefaultOptions](../../aspose.imaging.fileformats.eps/epsimage/getdefaultoptions/)(object[]) | Retrieve default options effortlessly to streamline image processing tasks. Access preconfigured settings to expedite workflow and ensure consistent output quality without manual configuration. | | virtual [GetEmbeddedImages](../../aspose.imaging/vectorimage/getembeddedimages/)() | Gets the embedded images. | @@ -62,19 +64,20 @@ public sealed class EpsImage : VectorImage | [GetPreviewImage](../../aspose.imaging.fileformats.eps/epsimage/getpreviewimage/)(EpsPreviewFormat) | Retrieves the existing preview image in the specified *format* or returns `null` if none is found. This method offers flexibility in accessing preview images tailored to specific formats, optimizing compatibility and resource management within applications. | | [GetPreviewImages](../../aspose.imaging.fileformats.eps/epsimage/getpreviewimages/)() | Accesses the preview images linked to the `EpsImage` instance, allowing seamless retrieval for inspection or utilization in applications. This method provides convenient access to preview images, enhancing user interaction with the image data. | | virtual [GetSerializedStream](../../aspose.imaging/image/getserializedstream/)(ImageOptionsBase, Rectangle, out int) | Converts to aps. | -| [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/)() | Removes the background. | -| [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/)(RemoveBackgroundSettings) | Removes the background. | +| virtual [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/)() | Removes the background. | +| virtual [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/)(RemoveBackgroundSettings) | Removes the background. | | virtual [RemoveMetadata](../../aspose.imaging/image/removemetadata/)() | Removes metadata. | | [Resize](../../aspose.imaging/image/resize/)(int, int) | Resizes the image. The default NearestNeighbourResample is used. | -| override [Resize](../../aspose.imaging.fileformats.eps/epsimage/resize/#resize_1)(int, int, ImageResizeSettings) | This method resizes the image using predefined settings, allowing for efficient adjustment of dimensions. It provides a convenient way to modify the image size while maintaining control over various parameters, ensuring optimal results for different use cases. | -| override [Resize](../../aspose.imaging.fileformats.eps/epsimage/resize/#resize_2)(int, int, ResizeType) | This method resizes the image, adjusting its dimensions according to specified parameters. It offers a straightforward way to modify the size of the image, ensuring flexibility and ease of use for developers. | +| override [Resize](../../aspose.imaging/vectorimage/resize/)(int, int, ImageResizeSettings) | Resizes the image with extended options. | +| override [Resize](../../aspose.imaging/vectorimage/resize/)(int, int, ResizeType) | Resizes the specified new width. | | [ResizeHeightProportionally](../../aspose.imaging/image/resizeheightproportionally/)(int) | Resizes the height proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeHeightProportionally](../../aspose.imaging/image/resizeheightproportionally/)(int, ImageResizeSettings) | Resizes the height proportionally. | | virtual [ResizeHeightProportionally](../../aspose.imaging/image/resizeheightproportionally/)(int, ResizeType) | Resizes the height proportionally. | | [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int) | Resizes the width proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ImageResizeSettings) | Resizes the width proportionally. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ResizeType) | Resizes the width proportionally. | -| override [RotateFlip](../../aspose.imaging.fileformats.eps/epsimage/rotateflip/)(RotateFlipType) | This method facilitates versatile manipulation of the image by enabling rotation, flipping, or both rotation and flipping simultaneously. It offers flexibility in adjusting the orientation of the image to suit specific requirements, enhancing its usability and visual appeal. | +| override [Rotate](../../aspose.imaging/vectorimage/rotate/)(float) | Rotate image around the center. | +| override [RotateFlip](../../aspose.imaging/vectorimage/rotateflip/)(RotateFlipType) | Rotates, flips, or rotates and flips the image. | | [Save](../../aspose.imaging/image/save/)() | Saves the image data to the underlying stream. | | [Save](../../aspose.imaging/datastreamsupporter/save/)(Stream) | Saves the object's data to the specified stream. | | override [Save](../../aspose.imaging/image/save/)(string) | Saves the image to the specified file location. | diff --git a/english/net/aspose.imaging.fileformats.eps/epsimage/heightf/_index.md b/english/net/aspose.imaging.fileformats.eps/epsimage/heightf/_index.md new file mode 100644 index 0000000000..1142568817 --- /dev/null +++ b/english/net/aspose.imaging.fileformats.eps/epsimage/heightf/_index.md @@ -0,0 +1,27 @@ +--- +title: EpsImage.HeightF +second_title: Aspose.Imaging for .NET API Reference +description: EpsImage property. Access the height of the image using this property. Obtain the images height with ease enabling seamless layout adjustments aspect ratio calculations and precise rendering across different screen resolutions and display environments +type: docs +weight: 90 +url: /net/aspose.imaging.fileformats.eps/epsimage/heightf/ +--- +## EpsImage.HeightF property + +Access the height of the image using this property. Obtain the image's height with ease, enabling seamless layout adjustments, aspect ratio calculations, and precise rendering across different screen resolutions and display environments. + +```csharp +public override float HeightF { get; } +``` + +### Property Value + +The image height. + +### See Also + +* class [EpsImage](../) +* namespace [Aspose.Imaging.FileFormats.Eps](../../epsimage/) +* assembly [Aspose.Imaging](../../../) + + diff --git a/english/net/aspose.imaging.fileformats.eps/epsimage/setpalette/_index.md b/english/net/aspose.imaging.fileformats.eps/epsimage/setpalette/_index.md index ff461b2adb..ba8cacb4ba 100644 --- a/english/net/aspose.imaging.fileformats.eps/epsimage/setpalette/_index.md +++ b/english/net/aspose.imaging.fileformats.eps/epsimage/setpalette/_index.md @@ -3,7 +3,7 @@ title: EpsImage.SetPalette second_title: Aspose.Imaging for .NET API Reference description: EpsImage method. Customize image palettes to achieve unique color schemes and enhance visual appeal. Tailor colors for specific effects and optimize image quality across different platforms and devices with ease type: docs -weight: 220 +weight: 200 url: /net/aspose.imaging.fileformats.eps/epsimage/setpalette/ --- ## EpsImage.SetPalette method diff --git a/english/net/aspose.imaging.fileformats.eps/epsimage/widthf/_index.md b/english/net/aspose.imaging.fileformats.eps/epsimage/widthf/_index.md new file mode 100644 index 0000000000..daef4e08a2 --- /dev/null +++ b/english/net/aspose.imaging.fileformats.eps/epsimage/widthf/_index.md @@ -0,0 +1,27 @@ +--- +title: EpsImage.WidthF +second_title: Aspose.Imaging for .NET API Reference +description: EpsImage property. Retrieve the width of the image with this convenient property. Obtain the images width effortlessly facilitating precise layout calculations scaling operations and dimensionrelated tasks within your application. Ideal for ensuring accurate rendering and display of images across various platforms and devices +type: docs +weight: 150 +url: /net/aspose.imaging.fileformats.eps/epsimage/widthf/ +--- +## EpsImage.WidthF property + +Retrieve the width of the image with this convenient property. Obtain the image's width effortlessly, facilitating precise layout calculations, scaling operations, and dimension-related tasks within your application. Ideal for ensuring accurate rendering and display of images across various platforms and devices. + +```csharp +public override float WidthF { get; } +``` + +### Property Value + +The image width. + +### See Also + +* class [EpsImage](../) +* namespace [Aspose.Imaging.FileFormats.Eps](../../epsimage/) +* assembly [Aspose.Imaging](../../../) + + diff --git a/english/net/aspose.imaging.fileformats.eps/epsoptions/_index.md b/english/net/aspose.imaging.fileformats.eps/epsoptions/_index.md index 3a642fe036..0051c78468 100644 --- a/english/net/aspose.imaging.fileformats.eps/epsoptions/_index.md +++ b/english/net/aspose.imaging.fileformats.eps/epsoptions/_index.md @@ -41,7 +41,7 @@ public class EpsOptions : ImageOptionsBase | Name | Description | | --- | --- | -| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Clones this instance. | +| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Creates a memberwise clone of this instance. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | ### See Also diff --git a/english/net/aspose.imaging.fileformats.gif.blocks/gifframeblock/_index.md b/english/net/aspose.imaging.fileformats.gif.blocks/gifframeblock/_index.md index aa635eaab9..3dba450a0c 100644 --- a/english/net/aspose.imaging.fileformats.gif.blocks/gifframeblock/_index.md +++ b/english/net/aspose.imaging.fileformats.gif.blocks/gifframeblock/_index.md @@ -102,7 +102,7 @@ public sealed class GifFrameBlock : RasterCachedImage, IAnimationFrame, IGifBloc | override [CacheData](../../aspose.imaging/rastercachedimage/cachedata/)() | Caches the data and ensures no additional data loading will be performed from the underlying [`DataStreamContainer`](../../aspose.imaging/datastreamsupporter/datastreamcontainer/). | | [CanSave](../../aspose.imaging/image/cansave/)(ImageOptionsBase) | Determines whether image can be saved to the specified file format represented by the passed save options. | | override [Crop](../../aspose.imaging/rastercachedimage/crop/)(Rectangle) | Cropping the image. | -| virtual [Crop](../../aspose.imaging/rasterimage/crop/)(int, int, int, int) | Crop image with shifts. | +| virtual [Crop](../../aspose.imaging/image/crop/)(int, int, int, int) | Crop image with shifts. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | | [Dither](../../aspose.imaging/rasterimage/dither/)(DitheringMethod, int) | Performs dithering on the current image. | | override [Dither](../../aspose.imaging/rastercachedimage/dither/)(DitheringMethod, int, IColorPalette) | Performs dithering on the current image. | @@ -147,7 +147,7 @@ public sealed class GifFrameBlock : RasterCachedImage, IAnimationFrame, IGifBloc | [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int) | Resizes the width proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ImageResizeSettings) | Resizes the width proportionally. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ResizeType) | Resizes the width proportionally. | -| virtual [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | +| override [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | | override [Rotate](../../aspose.imaging/rastercachedimage/rotate/)(float, bool, Color) | Rotate image around the center. | | override [RotateFlip](../../aspose.imaging/rastercachedimage/rotateflip/)(RotateFlipType) | Rotates, flips, or rotates and flips the image. | | [Save](../../aspose.imaging/image/save/)() | Saves the image data to the underlying stream. | diff --git a/english/net/aspose.imaging.fileformats.gif/gifimage/_index.md b/english/net/aspose.imaging.fileformats.gif/gifimage/_index.md index 367ba10fff..3c10dfda1a 100644 --- a/english/net/aspose.imaging.fileformats.gif/gifimage/_index.md +++ b/english/net/aspose.imaging.fileformats.gif/gifimage/_index.md @@ -142,7 +142,7 @@ public sealed class GifImage : RasterCachedMultipageImage, IMultipageImageExt | [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int) | Resizes the width proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ImageResizeSettings) | Resizes the width proportionally. | | override [ResizeWidthProportionally](../../aspose.imaging/rastercachedmultipageimage/resizewidthproportionally/)(int, ResizeType) | Resizes the width proportionally. | -| virtual [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | +| override [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | | override [Rotate](../../aspose.imaging.fileformats.gif/gifimage/rotate/#rotate_1)(float, bool, Color) | This method rotates the image around its center point. By specifying the rotation angle, you can rotate the image clockwise or counterclockwise to achieve the desired orientation. This rotation helps adjust the image's presentation or alignment without distorting its content. | | override [RotateFlip](../../aspose.imaging.fileformats.gif/gifimage/rotateflip/)(RotateFlipType) | Perform rotation, flipping, or both on the active frame exclusively. This operation applies transformations solely to the currently active frame of the image, preserving the integrity of other frames in the sequence. | | [Save](../../aspose.imaging/image/save/)() | Saves the image data to the underlying stream. | diff --git a/english/net/aspose.imaging.fileformats.ico/icoimage/_index.md b/english/net/aspose.imaging.fileformats.ico/icoimage/_index.md index 22aa6bc53f..10a36e9803 100644 --- a/english/net/aspose.imaging.fileformats.ico/icoimage/_index.md +++ b/english/net/aspose.imaging.fileformats.ico/icoimage/_index.md @@ -128,7 +128,7 @@ public class IcoImage : RasterCachedMultipageImage, IMultipageImageExt | [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int) | Resizes the width proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ImageResizeSettings) | Resizes the width proportionally. | | override [ResizeWidthProportionally](../../aspose.imaging/rastercachedmultipageimage/resizewidthproportionally/)(int, ResizeType) | Resizes the width proportionally. | -| virtual [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | +| override [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | | override [Rotate](../../aspose.imaging/rastercachedmultipageimage/rotate/)(float, bool, Color) | [`Rotate`](../../aspose.imaging/rastercachedmultipageimage/rotate/) image around the center. | | override [RotateFlip](../../aspose.imaging/rastercachedmultipageimage/rotateflip/)(RotateFlipType) | Rotates, flips, or rotates and flips all pages. | | [Save](../../aspose.imaging/image/save/)() | Saves the image data to the underlying stream. | diff --git a/english/net/aspose.imaging.fileformats.jpeg/jpegimage/_index.md b/english/net/aspose.imaging.fileformats.jpeg/jpegimage/_index.md index 9fbbe54fcb..2e315bd692 100644 --- a/english/net/aspose.imaging.fileformats.jpeg/jpegimage/_index.md +++ b/english/net/aspose.imaging.fileformats.jpeg/jpegimage/_index.md @@ -90,7 +90,7 @@ public sealed class JpegImage : RasterCachedImage, IHasJpegExifData | override [CacheData](../../aspose.imaging/rastercachedimage/cachedata/)() | Caches the data and ensures no additional data loading will be performed from the underlying [`DataStreamContainer`](../../aspose.imaging/datastreamsupporter/datastreamcontainer/). | | [CanSave](../../aspose.imaging/image/cansave/)(ImageOptionsBase) | Determines whether image can be saved to the specified file format represented by the passed save options. | | override [Crop](../../aspose.imaging/rastercachedimage/crop/)(Rectangle) | Cropping the image. | -| virtual [Crop](../../aspose.imaging/rasterimage/crop/)(int, int, int, int) | Crop image with shifts. | +| virtual [Crop](../../aspose.imaging/image/crop/)(int, int, int, int) | Crop image with shifts. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | | [Dither](../../aspose.imaging/rasterimage/dither/)(DitheringMethod, int) | Performs dithering on the current image. | | override [Dither](../../aspose.imaging/rastercachedimage/dither/)(DitheringMethod, int, IColorPalette) | Performs dithering on the current image. | @@ -134,7 +134,7 @@ public sealed class JpegImage : RasterCachedImage, IHasJpegExifData | [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int) | Resizes the width proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ImageResizeSettings) | Resizes the width proportionally. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ResizeType) | Resizes the width proportionally. | -| virtual [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | +| override [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | | override [Rotate](../../aspose.imaging/rastercachedimage/rotate/)(float, bool, Color) | Rotate image around the center. | | override [RotateFlip](../../aspose.imaging/rastercachedimage/rotateflip/)(RotateFlipType) | Rotates, flips, or rotates and flips the image. | | [Save](../../aspose.imaging/image/save/)() | Saves the image data to the underlying stream. | diff --git a/english/net/aspose.imaging.fileformats.jpeg2000/jpeg2000image/_index.md b/english/net/aspose.imaging.fileformats.jpeg2000/jpeg2000image/_index.md index d3f3cb1b2e..8a14f92dcd 100644 --- a/english/net/aspose.imaging.fileformats.jpeg2000/jpeg2000image/_index.md +++ b/english/net/aspose.imaging.fileformats.jpeg2000/jpeg2000image/_index.md @@ -86,7 +86,7 @@ public sealed class Jpeg2000Image : RasterCachedImage | override [CacheData](../../aspose.imaging/rastercachedimage/cachedata/)() | Caches the data and ensures no additional data loading will be performed from the underlying [`DataStreamContainer`](../../aspose.imaging/datastreamsupporter/datastreamcontainer/). | | [CanSave](../../aspose.imaging/image/cansave/)(ImageOptionsBase) | Determines whether image can be saved to the specified file format represented by the passed save options. | | override [Crop](../../aspose.imaging/rastercachedimage/crop/)(Rectangle) | Cropping the image. | -| virtual [Crop](../../aspose.imaging/rasterimage/crop/)(int, int, int, int) | Crop image with shifts. | +| virtual [Crop](../../aspose.imaging/image/crop/)(int, int, int, int) | Crop image with shifts. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | | [Dither](../../aspose.imaging/rasterimage/dither/)(DitheringMethod, int) | Performs dithering on the current image. | | override [Dither](../../aspose.imaging/rastercachedimage/dither/)(DitheringMethod, int, IColorPalette) | Performs dithering on the current image. | @@ -130,7 +130,7 @@ public sealed class Jpeg2000Image : RasterCachedImage | [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int) | Resizes the width proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ImageResizeSettings) | Resizes the width proportionally. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ResizeType) | Resizes the width proportionally. | -| virtual [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | +| override [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | | override [Rotate](../../aspose.imaging/rastercachedimage/rotate/)(float, bool, Color) | Rotate image around the center. | | override [RotateFlip](../../aspose.imaging/rastercachedimage/rotateflip/)(RotateFlipType) | Rotates, flips, or rotates and flips the image. | | [Save](../../aspose.imaging/image/save/)() | Saves the image data to the underlying stream. | diff --git a/english/net/aspose.imaging.fileformats.opendocument/odgimage/_index.md b/english/net/aspose.imaging.fileformats.opendocument/odgimage/_index.md index 4a09a4dcba..ba6efd311a 100644 --- a/english/net/aspose.imaging.fileformats.opendocument/odgimage/_index.md +++ b/english/net/aspose.imaging.fileformats.opendocument/odgimage/_index.md @@ -35,7 +35,7 @@ public class OdgImage : OdImage | [Disposed](../../aspose.imaging/disposableobject/disposed/) { get; } | Gets a value indicating whether this instance is disposed. | | override [FileFormat](../../aspose.imaging.fileformats.opendocument/odgimage/fileformat/) { get; } | Gets a value of file format | | virtual [HasBackgroundColor](../../aspose.imaging/image/hasbackgroundcolor/) { get; set; } | Gets or sets a value indicating whether image has background color. | -| override [Height](../../aspose.imaging.fileformats.opendocument/odimage/height/) { get; } | Returns the height of the image, denoting the vertical dimension in pixels. This property is crucial for understanding the image's overall size and proportions, facilitating accurate display and processing of image content. | +| override [Height](../../aspose.imaging/vectormultipageimage/height/) { get; } | Gets the image height. | | virtual [HeightF](../../aspose.imaging/vectorimage/heightf/) { get; } | Gets the object height, in inches. | | [InterruptMonitor](../../aspose.imaging/image/interruptmonitor/) { get; set; } | Gets or sets the interrupt monitor. | | override [IsCached](../../aspose.imaging.fileformats.opendocument/odimage/iscached/) { get; } | Obtains a boolean value indicating whether the data of the object is currently cached, thus eliminating the need for data reading. This property serves as an optimization indicator, enhancing performance by minimizing redundant data access operation. | @@ -48,7 +48,7 @@ public class OdgImage : OdImage | [Size](../../aspose.imaging/image/size/) { get; } | Gets the image size. | | [SizeF](../../aspose.imaging/vectorimage/sizef/) { get; } | Gets the object size, in inches. | | virtual [UsePalette](../../aspose.imaging/image/usepalette/) { get; } | Gets a value indicating whether the image palette is used. | -| override [Width](../../aspose.imaging.fileformats.opendocument/odimage/width/) { get; } | Retrieves the width of the image, indicating the horizontal dimension in pixels. This property provides essential information about the image's size, enabling precise rendering, manipulation, and analysis of image data. | +| override [Width](../../aspose.imaging/vectormultipageimage/width/) { get; } | Gets the image width. | | virtual [WidthF](../../aspose.imaging/vectorimage/widthf/) { get; } | Gets the object width, in inches. | ## Methods @@ -57,24 +57,27 @@ public class OdgImage : OdImage | --- | --- | | override [CacheData](../../aspose.imaging/vectormultipageimage/cachedata/)() | Caches the data and ensures no additional data loading will be performed from the underlying [`DataStreamContainer`](../../aspose.imaging/datastreamsupporter/datastreamcontainer/). | | [CanSave](../../aspose.imaging/image/cansave/)(ImageOptionsBase) | Determines whether image can be saved to the specified file format represented by the passed save options. | +| override [Crop](../../aspose.imaging/vectormultipageimage/crop/)(Rectangle) | Crops the specified rectangle. | +| virtual [Crop](../../aspose.imaging/image/crop/)(int, int, int, int) | Crop image with shifts. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | | override [GetDefaultOptions](../../aspose.imaging.fileformats.opendocument/odgimage/getdefaultoptions/)(object[]) | This property provides access to the default options associated with an image. By retrieving these options, developers can quickly ascertain the default settings applied to the image, facilitating the creation of new instances or the modification of existing ones based on these presets. | | override [GetEmbeddedImages](../../aspose.imaging/vectormultipageimage/getembeddedimages/)() | Gets the embedded images. | | virtual [GetOriginalOptions](../../aspose.imaging/image/getoriginaloptions/)() | Gets the options based on the original file settings. This can be helpful to keep bit-depth and other parameters of the original image unchanged. For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the [`Save`](../../aspose.imaging/datastreamsupporter/save/) method, the output PNG image with 8-bit per pixel will be produced. To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them to the [`Save`](../../aspose.imaging/image/save/) method as the second parameter. | | override [GetSerializedStream](../../aspose.imaging/vectormultipageimage/getserializedstream/)(ImageOptionsBase, Rectangle, out int) | Converts to aps. | -| [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/)() | Removes the background. | -| [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/)(RemoveBackgroundSettings) | Removes the background. | +| override [RemoveBackground](../../aspose.imaging/vectormultipageimage/removebackground/)() | Removes the background. | +| override [RemoveBackground](../../aspose.imaging/vectormultipageimage/removebackground/)(RemoveBackgroundSettings) | Removes the background. | | virtual [RemoveMetadata](../../aspose.imaging/image/removemetadata/)() | Removes metadata. | | [Resize](../../aspose.imaging/image/resize/)(int, int) | Resizes the image. The default NearestNeighbourResample is used. | -| override [Resize](../../aspose.imaging.fileformats.opendocument/odgimage/resize/#resize_1)(int, int, ImageResizeSettings) | This method helps developers to resize images programmatically. By invoking this function, you can dynamically adjust the dimensions of images, catering to specific requirements or constraints within their applications. | -| override [Resize](../../aspose.imaging.fileformats.opendocument/odgimage/resize/#resize_2)(int, int, ResizeType) | This method facilitates image resizing with precise control over width, height, and resize type parameters. You can specify the desired dimensions and choose from different resizing algorithms or types to achieve optimal results based on application's requirements. | +| override [Resize](../../aspose.imaging/vectormultipageimage/resize/)(int, int, ImageResizeSettings) | Resizes the image. | +| override [Resize](../../aspose.imaging/vectormultipageimage/resize/)(int, int, ResizeType) | Resizes the image. | | [ResizeHeightProportionally](../../aspose.imaging/image/resizeheightproportionally/)(int) | Resizes the height proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeHeightProportionally](../../aspose.imaging/image/resizeheightproportionally/)(int, ImageResizeSettings) | Resizes the height proportionally. | | virtual [ResizeHeightProportionally](../../aspose.imaging/image/resizeheightproportionally/)(int, ResizeType) | Resizes the height proportionally. | | [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int) | Resizes the width proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ImageResizeSettings) | Resizes the width proportionally. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ResizeType) | Resizes the width proportionally. | -| override [RotateFlip](../../aspose.imaging.fileformats.opendocument/odgimage/rotateflip/)(RotateFlipType) | This versatile method apply various transformations to images, including rotation and flipping, to achieve desired orientations and visual effects. With intuitive parameters, you can specify the degree of rotation and the type of flipping (horizontal, vertical, or both) to precisely manipulate the image as needed. | +| override [Rotate](../../aspose.imaging/vectormultipageimage/rotate/)(float) | Rotate image around the center. | +| override [RotateFlip](../../aspose.imaging/vectormultipageimage/rotateflip/)(RotateFlipType) | Rotates, flips, or rotates and flips the image. | | [Save](../../aspose.imaging/image/save/)() | Saves the image data to the underlying stream. | | [Save](../../aspose.imaging/datastreamsupporter/save/)(Stream) | Saves the object's data to the specified stream. | | override [Save](../../aspose.imaging/image/save/)(string) | Saves the image to the specified file location. | diff --git a/english/net/aspose.imaging.fileformats.opendocument/odimage/_index.md b/english/net/aspose.imaging.fileformats.opendocument/odimage/_index.md index b5f74cac4c..961bf9c919 100644 --- a/english/net/aspose.imaging.fileformats.opendocument/odimage/_index.md +++ b/english/net/aspose.imaging.fileformats.opendocument/odimage/_index.md @@ -35,7 +35,7 @@ public abstract class OdImage : VectorMultipageImage | [Disposed](../../aspose.imaging/disposableobject/disposed/) { get; } | Gets a value indicating whether this instance is disposed. | | virtual [FileFormat](../../aspose.imaging/image/fileformat/) { get; } | Gets a value of file format | | virtual [HasBackgroundColor](../../aspose.imaging/image/hasbackgroundcolor/) { get; set; } | Gets or sets a value indicating whether image has background color. | -| override [Height](../../aspose.imaging.fileformats.opendocument/odimage/height/) { get; } | Returns the height of the image, denoting the vertical dimension in pixels. This property is crucial for understanding the image's overall size and proportions, facilitating accurate display and processing of image content. | +| override [Height](../../aspose.imaging/vectormultipageimage/height/) { get; } | Gets the image height. | | virtual [HeightF](../../aspose.imaging/vectorimage/heightf/) { get; } | Gets the object height, in inches. | | [InterruptMonitor](../../aspose.imaging/image/interruptmonitor/) { get; set; } | Gets or sets the interrupt monitor. | | override [IsCached](../../aspose.imaging.fileformats.opendocument/odimage/iscached/) { get; } | Obtains a boolean value indicating whether the data of the object is currently cached, thus eliminating the need for data reading. This property serves as an optimization indicator, enhancing performance by minimizing redundant data access operation. | @@ -48,7 +48,7 @@ public abstract class OdImage : VectorMultipageImage | [Size](../../aspose.imaging/image/size/) { get; } | Gets the image size. | | [SizeF](../../aspose.imaging/vectorimage/sizef/) { get; } | Gets the object size, in inches. | | virtual [UsePalette](../../aspose.imaging/image/usepalette/) { get; } | Gets a value indicating whether the image palette is used. | -| override [Width](../../aspose.imaging.fileformats.opendocument/odimage/width/) { get; } | Retrieves the width of the image, indicating the horizontal dimension in pixels. This property provides essential information about the image's size, enabling precise rendering, manipulation, and analysis of image data. | +| override [Width](../../aspose.imaging/vectormultipageimage/width/) { get; } | Gets the image width. | | virtual [WidthF](../../aspose.imaging/vectorimage/widthf/) { get; } | Gets the object width, in inches. | ## Methods @@ -57,24 +57,27 @@ public abstract class OdImage : VectorMultipageImage | --- | --- | | override [CacheData](../../aspose.imaging/vectormultipageimage/cachedata/)() | Caches the data and ensures no additional data loading will be performed from the underlying [`DataStreamContainer`](../../aspose.imaging/datastreamsupporter/datastreamcontainer/). | | [CanSave](../../aspose.imaging/image/cansave/)(ImageOptionsBase) | Determines whether image can be saved to the specified file format represented by the passed save options. | +| override [Crop](../../aspose.imaging/vectormultipageimage/crop/)(Rectangle) | Crops the specified rectangle. | +| virtual [Crop](../../aspose.imaging/image/crop/)(int, int, int, int) | Crop image with shifts. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | | virtual [GetDefaultOptions](../../aspose.imaging/image/getdefaultoptions/)(object[]) | Gets the default options. | | override [GetEmbeddedImages](../../aspose.imaging/vectormultipageimage/getembeddedimages/)() | Gets the embedded images. | | virtual [GetOriginalOptions](../../aspose.imaging/image/getoriginaloptions/)() | Gets the options based on the original file settings. This can be helpful to keep bit-depth and other parameters of the original image unchanged. For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the [`Save`](../../aspose.imaging/datastreamsupporter/save/) method, the output PNG image with 8-bit per pixel will be produced. To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them to the [`Save`](../../aspose.imaging/image/save/) method as the second parameter. | | override [GetSerializedStream](../../aspose.imaging/vectormultipageimage/getserializedstream/)(ImageOptionsBase, Rectangle, out int) | Converts to aps. | -| [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/)() | Removes the background. | -| [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/)(RemoveBackgroundSettings) | Removes the background. | +| override [RemoveBackground](../../aspose.imaging/vectormultipageimage/removebackground/)() | Removes the background. | +| override [RemoveBackground](../../aspose.imaging/vectormultipageimage/removebackground/)(RemoveBackgroundSettings) | Removes the background. | | virtual [RemoveMetadata](../../aspose.imaging/image/removemetadata/)() | Removes metadata. | | [Resize](../../aspose.imaging/image/resize/)(int, int) | Resizes the image. The default NearestNeighbourResample is used. | -| override [Resize](../../aspose.imaging.fileformats.opendocument/odimage/resize/#resize_1)(int, int, ImageResizeSettings) | Adjusts the dimensions of the image according to specified width, height, and resize settings. This method provides flexibility in resizing images while maintaining desired proportions and adhering to defined resize configurations, ensuring accurate adjustment of image dimensions to meet specific requirements or display criteria. | -| override [Resize](../../aspose.imaging.fileformats.opendocument/odimage/resize/#resize_2)(int, int, ResizeType) | This method resizes the image, adjusting both width and height based on the specified dimensions and resize type. It offers a comprehensive approach to resizing, allowing for precise adjustments while maintaining image quality and integrity. By incorporating the resize type parameter, users can choose from various resizing algorithms or methods to achieve optimal results for different use cases or preferences. | +| override [Resize](../../aspose.imaging/vectormultipageimage/resize/)(int, int, ImageResizeSettings) | Resizes the image. | +| override [Resize](../../aspose.imaging/vectormultipageimage/resize/)(int, int, ResizeType) | Resizes the image. | | [ResizeHeightProportionally](../../aspose.imaging/image/resizeheightproportionally/)(int) | Resizes the height proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeHeightProportionally](../../aspose.imaging/image/resizeheightproportionally/)(int, ImageResizeSettings) | Resizes the height proportionally. | | virtual [ResizeHeightProportionally](../../aspose.imaging/image/resizeheightproportionally/)(int, ResizeType) | Resizes the height proportionally. | | [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int) | Resizes the width proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ImageResizeSettings) | Resizes the width proportionally. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ResizeType) | Resizes the width proportionally. | -| override [RotateFlip](../../aspose.imaging.fileformats.opendocument/odimage/rotateflip/)(RotateFlipType) | This method provides functionality to rotate, flip, or perform both operations simultaneously on the image. It allows users to manipulate the orientation of the image according to their specific requirements. With support for rotation angles and flip directions, it offers flexibility in transforming the image to desired orientations or orientations. | +| override [Rotate](../../aspose.imaging/vectormultipageimage/rotate/)(float) | Rotate image around the center. | +| override [RotateFlip](../../aspose.imaging/vectormultipageimage/rotateflip/)(RotateFlipType) | Rotates, flips, or rotates and flips the image. | | [Save](../../aspose.imaging/image/save/)() | Saves the image data to the underlying stream. | | [Save](../../aspose.imaging/datastreamsupporter/save/)(Stream) | Saves the object's data to the specified stream. | | override [Save](../../aspose.imaging/image/save/)(string) | Saves the image to the specified file location. | diff --git a/english/net/aspose.imaging.fileformats.opendocument/odimage/iscached/_index.md b/english/net/aspose.imaging.fileformats.opendocument/odimage/iscached/_index.md index 56ee44475b..1636fb51b8 100644 --- a/english/net/aspose.imaging.fileformats.opendocument/odimage/iscached/_index.md +++ b/english/net/aspose.imaging.fileformats.opendocument/odimage/iscached/_index.md @@ -3,7 +3,7 @@ title: OdImage.IsCached second_title: Aspose.Imaging for .NET API Reference description: OdImage property. Obtains a boolean value indicating whether the data of the object is currently cached thus eliminating the need for data reading. This property serves as an optimization indicator enhancing performance by minimizing redundant data access operation type: docs -weight: 40 +weight: 30 url: /net/aspose.imaging.fileformats.opendocument/odimage/iscached/ --- ## OdImage.IsCached property diff --git a/english/net/aspose.imaging.fileformats.opendocument/odimage/metadata/_index.md b/english/net/aspose.imaging.fileformats.opendocument/odimage/metadata/_index.md index 48ee98f902..5a6fa0fd45 100644 --- a/english/net/aspose.imaging.fileformats.opendocument/odimage/metadata/_index.md +++ b/english/net/aspose.imaging.fileformats.opendocument/odimage/metadata/_index.md @@ -3,7 +3,7 @@ title: OdImage.Metadata second_title: Aspose.Imaging for .NET API Reference description: OdImage property. Retrieves metadata specific to OpenDocument files. This property allows access to essential information embedded within OD files facilitating various operations such as extraction modification or analysis of metadata type: docs -weight: 50 +weight: 40 url: /net/aspose.imaging.fileformats.opendocument/odimage/metadata/ --- ## OdImage.Metadata property diff --git a/english/net/aspose.imaging.fileformats.opendocument/odimage/pagecount/_index.md b/english/net/aspose.imaging.fileformats.opendocument/odimage/pagecount/_index.md index fc14c0f9e8..b95548a0b8 100644 --- a/english/net/aspose.imaging.fileformats.opendocument/odimage/pagecount/_index.md +++ b/english/net/aspose.imaging.fileformats.opendocument/odimage/pagecount/_index.md @@ -3,7 +3,7 @@ title: OdImage.PageCount second_title: Aspose.Imaging for .NET API Reference description: OdImage property. Retrieves the total count of pages within the image. This property is essential for applications managing multipage images enabling them to accurately determine the number of pages available for processing or display type: docs -weight: 60 +weight: 50 url: /net/aspose.imaging.fileformats.opendocument/odimage/pagecount/ --- ## OdImage.PageCount property diff --git a/english/net/aspose.imaging.fileformats.opendocument/odimage/records/_index.md b/english/net/aspose.imaging.fileformats.opendocument/odimage/records/_index.md index 4e7d42c172..c63c891220 100644 --- a/english/net/aspose.imaging.fileformats.opendocument/odimage/records/_index.md +++ b/english/net/aspose.imaging.fileformats.opendocument/odimage/records/_index.md @@ -3,7 +3,7 @@ title: OdImage.Records second_title: Aspose.Imaging for .NET API Reference description: OdImage property. Retrieves the OpenDocument records stored within the image. This property grants access to specific structured data elements embedded within OpenDocument files facilitating retrieval or manipulation of relevant information for further processing or analysis type: docs -weight: 70 +weight: 60 url: /net/aspose.imaging.fileformats.opendocument/odimage/records/ --- ## OdImage.Records property diff --git a/english/net/aspose.imaging.fileformats.opendocument/otgimage/_index.md b/english/net/aspose.imaging.fileformats.opendocument/otgimage/_index.md index 3fbeaa8c6c..48b38d50f5 100644 --- a/english/net/aspose.imaging.fileformats.opendocument/otgimage/_index.md +++ b/english/net/aspose.imaging.fileformats.opendocument/otgimage/_index.md @@ -35,7 +35,7 @@ public class OtgImage : OdImage | [Disposed](../../aspose.imaging/disposableobject/disposed/) { get; } | Gets a value indicating whether this instance is disposed. | | override [FileFormat](../../aspose.imaging.fileformats.opendocument/otgimage/fileformat/) { get; } | This property provides access to the OTG file format, offering crucial insights into the type of data encapsulated within the image file. It serves as a pivotal reference point for software developers, enabling them to effectively handle OTG files within their applications. By utilizing this property, you can ascertain the specific format of the image file, facilitating seamless integration and manipulation of OTG files in their software systems. | | virtual [HasBackgroundColor](../../aspose.imaging/image/hasbackgroundcolor/) { get; set; } | Gets or sets a value indicating whether image has background color. | -| override [Height](../../aspose.imaging.fileformats.opendocument/odimage/height/) { get; } | Returns the height of the image, denoting the vertical dimension in pixels. This property is crucial for understanding the image's overall size and proportions, facilitating accurate display and processing of image content. | +| override [Height](../../aspose.imaging/vectormultipageimage/height/) { get; } | Gets the image height. | | virtual [HeightF](../../aspose.imaging/vectorimage/heightf/) { get; } | Gets the object height, in inches. | | [InterruptMonitor](../../aspose.imaging/image/interruptmonitor/) { get; set; } | Gets or sets the interrupt monitor. | | override [IsCached](../../aspose.imaging.fileformats.opendocument/odimage/iscached/) { get; } | Obtains a boolean value indicating whether the data of the object is currently cached, thus eliminating the need for data reading. This property serves as an optimization indicator, enhancing performance by minimizing redundant data access operation. | @@ -48,7 +48,7 @@ public class OtgImage : OdImage | [Size](../../aspose.imaging/image/size/) { get; } | Gets the image size. | | [SizeF](../../aspose.imaging/vectorimage/sizef/) { get; } | Gets the object size, in inches. | | virtual [UsePalette](../../aspose.imaging/image/usepalette/) { get; } | Gets a value indicating whether the image palette is used. | -| override [Width](../../aspose.imaging.fileformats.opendocument/odimage/width/) { get; } | Retrieves the width of the image, indicating the horizontal dimension in pixels. This property provides essential information about the image's size, enabling precise rendering, manipulation, and analysis of image data. | +| override [Width](../../aspose.imaging/vectormultipageimage/width/) { get; } | Gets the image width. | | virtual [WidthF](../../aspose.imaging/vectorimage/widthf/) { get; } | Gets the object width, in inches. | ## Methods @@ -57,24 +57,27 @@ public class OtgImage : OdImage | --- | --- | | override [CacheData](../../aspose.imaging/vectormultipageimage/cachedata/)() | Caches the data and ensures no additional data loading will be performed from the underlying [`DataStreamContainer`](../../aspose.imaging/datastreamsupporter/datastreamcontainer/). | | [CanSave](../../aspose.imaging/image/cansave/)(ImageOptionsBase) | Determines whether image can be saved to the specified file format represented by the passed save options. | +| override [Crop](../../aspose.imaging/vectormultipageimage/crop/)(Rectangle) | Crops the specified rectangle. | +| virtual [Crop](../../aspose.imaging/image/crop/)(int, int, int, int) | Crop image with shifts. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | | override [GetDefaultOptions](../../aspose.imaging.fileformats.opendocument/otgimage/getdefaultoptions/)(object[]) | Retrieves the default options configured for the image, providing a convenient way to access and modify the default settings. This property ensures consistency in operations by offering predefined settings that align with common use cases, simplifying the development process. | | override [GetEmbeddedImages](../../aspose.imaging/vectormultipageimage/getembeddedimages/)() | Gets the embedded images. | | virtual [GetOriginalOptions](../../aspose.imaging/image/getoriginaloptions/)() | Gets the options based on the original file settings. This can be helpful to keep bit-depth and other parameters of the original image unchanged. For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the [`Save`](../../aspose.imaging/datastreamsupporter/save/) method, the output PNG image with 8-bit per pixel will be produced. To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them to the [`Save`](../../aspose.imaging/image/save/) method as the second parameter. | | override [GetSerializedStream](../../aspose.imaging/vectormultipageimage/getserializedstream/)(ImageOptionsBase, Rectangle, out int) | Converts to aps. | -| [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/)() | Removes the background. | -| [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/)(RemoveBackgroundSettings) | Removes the background. | +| override [RemoveBackground](../../aspose.imaging/vectormultipageimage/removebackground/)() | Removes the background. | +| override [RemoveBackground](../../aspose.imaging/vectormultipageimage/removebackground/)(RemoveBackgroundSettings) | Removes the background. | | virtual [RemoveMetadata](../../aspose.imaging/image/removemetadata/)() | Removes metadata. | | [Resize](../../aspose.imaging/image/resize/)(int, int) | Resizes the image. The default NearestNeighbourResample is used. | -| override [Resize](../../aspose.imaging.fileformats.opendocument/odimage/resize/)(int, int, ImageResizeSettings) | Adjusts the dimensions of the image according to specified width, height, and resize settings. This method provides flexibility in resizing images while maintaining desired proportions and adhering to defined resize configurations, ensuring accurate adjustment of image dimensions to meet specific requirements or display criteria. | -| override [Resize](../../aspose.imaging.fileformats.opendocument/odimage/resize/)(int, int, ResizeType) | This method resizes the image, adjusting both width and height based on the specified dimensions and resize type. It offers a comprehensive approach to resizing, allowing for precise adjustments while maintaining image quality and integrity. By incorporating the resize type parameter, users can choose from various resizing algorithms or methods to achieve optimal results for different use cases or preferences. | +| override [Resize](../../aspose.imaging/vectormultipageimage/resize/)(int, int, ImageResizeSettings) | Resizes the image. | +| override [Resize](../../aspose.imaging/vectormultipageimage/resize/)(int, int, ResizeType) | Resizes the image. | | [ResizeHeightProportionally](../../aspose.imaging/image/resizeheightproportionally/)(int) | Resizes the height proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeHeightProportionally](../../aspose.imaging/image/resizeheightproportionally/)(int, ImageResizeSettings) | Resizes the height proportionally. | | virtual [ResizeHeightProportionally](../../aspose.imaging/image/resizeheightproportionally/)(int, ResizeType) | Resizes the height proportionally. | | [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int) | Resizes the width proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ImageResizeSettings) | Resizes the width proportionally. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ResizeType) | Resizes the width proportionally. | -| override [RotateFlip](../../aspose.imaging.fileformats.opendocument/odimage/rotateflip/)(RotateFlipType) | This method provides functionality to rotate, flip, or perform both operations simultaneously on the image. It allows users to manipulate the orientation of the image according to their specific requirements. With support for rotation angles and flip directions, it offers flexibility in transforming the image to desired orientations or orientations. | +| override [Rotate](../../aspose.imaging/vectormultipageimage/rotate/)(float) | Rotate image around the center. | +| override [RotateFlip](../../aspose.imaging/vectormultipageimage/rotateflip/)(RotateFlipType) | Rotates, flips, or rotates and flips the image. | | [Save](../../aspose.imaging/image/save/)() | Saves the image data to the underlying stream. | | [Save](../../aspose.imaging/datastreamsupporter/save/)(Stream) | Saves the object's data to the specified stream. | | override [Save](../../aspose.imaging/image/save/)(string) | Saves the image to the specified file location. | diff --git a/english/net/aspose.imaging.fileformats.png/pngimage/_index.md b/english/net/aspose.imaging.fileformats.png/pngimage/_index.md index cc19f59b9d..15b112326b 100644 --- a/english/net/aspose.imaging.fileformats.png/pngimage/_index.md +++ b/english/net/aspose.imaging.fileformats.png/pngimage/_index.md @@ -85,7 +85,7 @@ public class PngImage : RasterCachedImage | override [CacheData](../../aspose.imaging/rastercachedimage/cachedata/)() | Caches the data and ensures no additional data loading will be performed from the underlying [`DataStreamContainer`](../../aspose.imaging/datastreamsupporter/datastreamcontainer/). | | [CanSave](../../aspose.imaging/image/cansave/)(ImageOptionsBase) | Determines whether image can be saved to the specified file format represented by the passed save options. | | override [Crop](../../aspose.imaging/rastercachedimage/crop/)(Rectangle) | Cropping the image. | -| virtual [Crop](../../aspose.imaging/rasterimage/crop/)(int, int, int, int) | Crop image with shifts. | +| virtual [Crop](../../aspose.imaging/image/crop/)(int, int, int, int) | Crop image with shifts. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | | [Dither](../../aspose.imaging/rasterimage/dither/)(DitheringMethod, int) | Performs dithering on the current image. | | override [Dither](../../aspose.imaging/rastercachedimage/dither/)(DitheringMethod, int, IColorPalette) | Performs dithering on the current image. | @@ -129,7 +129,7 @@ public class PngImage : RasterCachedImage | [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int) | Resizes the width proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ImageResizeSettings) | Resizes the width proportionally. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ResizeType) | Resizes the width proportionally. | -| virtual [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | +| override [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | | override [Rotate](../../aspose.imaging/rastercachedimage/rotate/)(float, bool, Color) | Rotate image around the center. | | override [RotateFlip](../../aspose.imaging/rastercachedimage/rotateflip/)(RotateFlipType) | Rotates, flips, or rotates and flips the image. | | [Save](../../aspose.imaging/image/save/)() | Saves the image data to the underlying stream. | diff --git a/english/net/aspose.imaging.fileformats.svg/svgimage/_index.md b/english/net/aspose.imaging.fileformats.svg/svgimage/_index.md index f08cc6d5cc..e3c7c23e74 100644 --- a/english/net/aspose.imaging.fileformats.svg/svgimage/_index.md +++ b/english/net/aspose.imaging.fileformats.svg/svgimage/_index.md @@ -37,7 +37,7 @@ public sealed class SvgImage : VectorImage | [Disposed](../../aspose.imaging/disposableobject/disposed/) { get; } | Gets a value indicating whether this instance is disposed. | | override [FileFormat](../../aspose.imaging.fileformats.svg/svgimage/fileformat/) { get; } | Retrieves the file format of the image, providing essential metadata for processing and compatibility checks. This property is instrumental in determining the appropriate decoding and encoding strategies for handling the image data effectively across different systems and applications. | | virtual [HasBackgroundColor](../../aspose.imaging/image/hasbackgroundcolor/) { get; set; } | Gets or sets a value indicating whether image has background color. | -| override [Height](../../aspose.imaging.fileformats.svg/svgimage/height/) { get; } | Retrieves the height of the image, indicating its vertical size in pixels. This property provides essential information for layout calculations and rendering processes, ensuring accurate display and manipulation of the image. | +| override [Height](../../aspose.imaging/vectorimage/height/) { get; } | Gets the image height. | | virtual [HeightF](../../aspose.imaging/vectorimage/heightf/) { get; } | Gets the object height, in inches. | | [InterruptMonitor](../../aspose.imaging/image/interruptmonitor/) { get; set; } | Gets or sets the interrupt monitor. | | override [IsCached](../../aspose.imaging.fileformats.svg/svgimage/iscached/) { get; } | Retrieves a boolean value indicating whether the object's data is presently cached, eliminating the need for additional data reading operations. This property provides insight into the current caching status, optimizing data retrieval and processing workflows for enhanced performance and efficiency. | @@ -45,7 +45,7 @@ public sealed class SvgImage : VectorImage | [Size](../../aspose.imaging/image/size/) { get; } | Gets the image size. | | [SizeF](../../aspose.imaging/vectorimage/sizef/) { get; } | Gets the object size, in inches. | | virtual [UsePalette](../../aspose.imaging/image/usepalette/) { get; } | Gets a value indicating whether the image palette is used. | -| override [Width](../../aspose.imaging.fileformats.svg/svgimage/width/) { get; } | Returns the width of the image, denoting its horizontal size in pixels. This property is crucial for layout computations and display rendering, ensuring precise positioning and visualization of the image content. | +| override [Width](../../aspose.imaging/vectorimage/width/) { get; } | Gets the image width. | | virtual [WidthF](../../aspose.imaging/vectorimage/widthf/) { get; } | Gets the object width, in inches. | ## Methods @@ -54,16 +54,18 @@ public sealed class SvgImage : VectorImage | --- | --- | | override [CacheData](../../aspose.imaging.fileformats.svg/svgimage/cachedata/)() | Cache the data and guarantee that there will be no further loading of data from the underlying [`DataStreamContainer`](../../aspose.imaging/datastreamsupporter/datastreamcontainer/). This optimization enhances performance by eliminating redundant data retrieval operations, especially beneficial in scenarios requiring frequent access to the image data. | | [CanSave](../../aspose.imaging/image/cansave/)(ImageOptionsBase) | Determines whether image can be saved to the specified file format represented by the passed save options. | +| override [Crop](../../aspose.imaging.fileformats.svg/svgimage/crop/#crop)(Rectangle) | Crops the specified rectangle. | +| virtual [Crop](../../aspose.imaging/image/crop/)(int, int, int, int) | Crop image with shifts. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | | override [GetDefaultOptions](../../aspose.imaging.fileformats.svg/svgimage/getdefaultoptions/)(object[]) | Retrieve the default options configured for the image, providing a baseline setting for various operations such as resizing, compression, or encoding. This method is pivotal in ensuring consistent behavior and quality standards across image processing tasks without the need for explicit parameterization. | | virtual [GetEmbeddedImages](../../aspose.imaging/vectorimage/getembeddedimages/)() | Gets the embedded images. | | virtual [GetOriginalOptions](../../aspose.imaging/image/getoriginaloptions/)() | Gets the options based on the original file settings. This can be helpful to keep bit-depth and other parameters of the original image unchanged. For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the [`Save`](../../aspose.imaging/datastreamsupporter/save/) method, the output PNG image with 8-bit per pixel will be produced. To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them to the [`Save`](../../aspose.imaging/image/save/) method as the second parameter. | | virtual [GetSerializedStream](../../aspose.imaging/image/getserializedstream/)(ImageOptionsBase, Rectangle, out int) | Converts to aps. | -| [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/)() | Removes the background. | -| [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/)(RemoveBackgroundSettings) | Removes the background. | +| virtual [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/)() | Removes the background. | +| virtual [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/)(RemoveBackgroundSettings) | Removes the background. | | virtual [RemoveMetadata](../../aspose.imaging/image/removemetadata/)() | Removes metadata. | | [Resize](../../aspose.imaging/image/resize/)(int, int) | Resizes the image. The default NearestNeighbourResample is used. | -| override [Resize](../../aspose.imaging.fileformats.svg/svgimage/resize/#resize_1)(int, int, ImageResizeSettings) | Adjusts the image size according to the specified settings, enabling customization of the resizing process to meet specific requirements. This method offers flexibility in resizing operations, allowing for precise control over aspects such as interpolation methods, aspect ratio preservation, and output quality. | +| override [Resize](../../aspose.imaging/vectorimage/resize/)(int, int, ImageResizeSettings) | Resizes the image with extended options. | | override [Resize](../../aspose.imaging.fileformats.svg/svgimage/resize/#resize_2)(int, int, ResizeType) | Resize the image to fit the specified dimensions while preserving its aspect ratio. This method provides a convenient way to adjust the size of the image without distorting its proportions, ensuring optimal display or storage according to the desired dimensions. | | [ResizeHeightProportionally](../../aspose.imaging/image/resizeheightproportionally/)(int) | Resizes the height proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeHeightProportionally](../../aspose.imaging/image/resizeheightproportionally/)(int, ImageResizeSettings) | Resizes the height proportionally. | @@ -71,7 +73,8 @@ public sealed class SvgImage : VectorImage | [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int) | Resizes the width proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ImageResizeSettings) | Resizes the width proportionally. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ResizeType) | Resizes the width proportionally. | -| override [RotateFlip](../../aspose.imaging.fileformats.svg/svgimage/rotateflip/)(RotateFlipType) | Applies rotation, flipping, or both to the image as per the specified parameters. This method offers versatility in image manipulation, allowing for seamless adjustment of orientation to achieve desired visual effects or correct orientation errors. | +| override [Rotate](../../aspose.imaging.fileformats.svg/svgimage/rotate/)(float) | Rotate image around the center. | +| override [RotateFlip](../../aspose.imaging/vectorimage/rotateflip/)(RotateFlipType) | Rotates, flips, or rotates and flips the image. | | [Save](../../aspose.imaging/image/save/)() | Saves the image data to the underlying stream. | | [Save](../../aspose.imaging/datastreamsupporter/save/)(Stream) | Saves the object's data to the specified stream. | | override [Save](../../aspose.imaging/image/save/)(string) | Saves the image to the specified file location. | diff --git a/english/net/aspose.imaging.fileformats.svg/svgimage/cachedata/_index.md b/english/net/aspose.imaging.fileformats.svg/svgimage/cachedata/_index.md index abfaba7fdb..1e07beae0c 100644 --- a/english/net/aspose.imaging.fileformats.svg/svgimage/cachedata/_index.md +++ b/english/net/aspose.imaging.fileformats.svg/svgimage/cachedata/_index.md @@ -3,7 +3,7 @@ title: SvgImage.CacheData second_title: Aspose.Imaging for .NET API Reference description: SvgImage method. Cache the data and guarantee that there will be no further loading of data from the underlying DataStreamContainer. This optimization enhances performance by eliminating redundant data retrieval operations especially beneficial in scenarios requiring frequent access to the image data type: docs -weight: 70 +weight: 50 url: /net/aspose.imaging.fileformats.svg/svgimage/cachedata/ --- ## SvgImage.CacheData method diff --git a/english/net/aspose.imaging.fileformats.svg/svgimage/crop/_index.md b/english/net/aspose.imaging.fileformats.svg/svgimage/crop/_index.md new file mode 100644 index 0000000000..1b7b95b932 --- /dev/null +++ b/english/net/aspose.imaging.fileformats.svg/svgimage/crop/_index.md @@ -0,0 +1,28 @@ +--- +title: SvgImage.Crop +second_title: Aspose.Imaging for .NET API Reference +description: SvgImage method. Crops the specified rectangle +type: docs +weight: 60 +url: /net/aspose.imaging.fileformats.svg/svgimage/crop/ +--- +## SvgImage.Crop method + +Crops the specified rectangle. + +```csharp +public override void Crop(Rectangle rectangle) +``` + +| Parameter | Type | Description | +| --- | --- | --- | +| rectangle | Rectangle | The rectangle. | + +### See Also + +* struct [Rectangle](../../../aspose.imaging/rectangle/) +* class [SvgImage](../) +* namespace [Aspose.Imaging.FileFormats.Svg](../../svgimage/) +* assembly [Aspose.Imaging](../../../) + + diff --git a/english/net/aspose.imaging.fileformats.svg/svgimage/getdefaultoptions/_index.md b/english/net/aspose.imaging.fileformats.svg/svgimage/getdefaultoptions/_index.md index 47e5e2883e..947fa1c783 100644 --- a/english/net/aspose.imaging.fileformats.svg/svgimage/getdefaultoptions/_index.md +++ b/english/net/aspose.imaging.fileformats.svg/svgimage/getdefaultoptions/_index.md @@ -3,7 +3,7 @@ title: SvgImage.GetDefaultOptions second_title: Aspose.Imaging for .NET API Reference description: SvgImage method. Retrieve the default options configured for the image providing a baseline setting for various operations such as resizing compression or encoding. This method is pivotal in ensuring consistent behavior and quality standards across image processing tasks without the need for explicit parameterization type: docs -weight: 80 +weight: 70 url: /net/aspose.imaging.fileformats.svg/svgimage/getdefaultoptions/ --- ## SvgImage.GetDefaultOptions method diff --git a/english/net/aspose.imaging.fileformats.svg/svgimage/iscached/_index.md b/english/net/aspose.imaging.fileformats.svg/svgimage/iscached/_index.md index 86b4800493..28d8eca343 100644 --- a/english/net/aspose.imaging.fileformats.svg/svgimage/iscached/_index.md +++ b/english/net/aspose.imaging.fileformats.svg/svgimage/iscached/_index.md @@ -3,7 +3,7 @@ title: SvgImage.IsCached second_title: Aspose.Imaging for .NET API Reference description: SvgImage property. Retrieves a boolean value indicating whether the objects data is presently cached eliminating the need for additional data reading operations. This property provides insight into the current caching status optimizing data retrieval and processing workflows for enhanced performance and efficiency type: docs -weight: 50 +weight: 40 url: /net/aspose.imaging.fileformats.svg/svgimage/iscached/ --- ## SvgImage.IsCached property diff --git a/english/net/aspose.imaging.fileformats.svg/svgimage/resize/_index.md b/english/net/aspose.imaging.fileformats.svg/svgimage/resize/_index.md index f7f3386b68..86b36d5fd3 100644 --- a/english/net/aspose.imaging.fileformats.svg/svgimage/resize/_index.md +++ b/english/net/aspose.imaging.fileformats.svg/svgimage/resize/_index.md @@ -3,10 +3,10 @@ title: SvgImage.Resize second_title: Aspose.Imaging for .NET API Reference description: SvgImage method. Resize the image to fit the specified dimensions while preserving its aspect ratio. This method provides a convenient way to adjust the size of the image without distorting its proportions ensuring optimal display or storage according to the desired dimensions type: docs -weight: 90 +weight: 80 url: /net/aspose.imaging.fileformats.svg/svgimage/resize/ --- -## Resize(int, int, ResizeType) {#resize_2} +## SvgImage.Resize method Resize the image to fit the specified dimensions while preserving its aspect ratio. This method provides a convenient way to adjust the size of the image without distorting its proportions, ensuring optimal display or storage according to the desired dimensions. @@ -27,27 +27,4 @@ public override void Resize(int newWidth, int newHeight, ResizeType resizeType) * namespace [Aspose.Imaging.FileFormats.Svg](../../svgimage/) * assembly [Aspose.Imaging](../../../) ---- - -## Resize(int, int, ImageResizeSettings) {#resize_1} - -Adjusts the image size according to the specified settings, enabling customization of the resizing process to meet specific requirements. This method offers flexibility in resizing operations, allowing for precise control over aspects such as interpolation methods, aspect ratio preservation, and output quality. - -```csharp -public override void Resize(int newWidth, int newHeight, ImageResizeSettings settings) -``` - -| Parameter | Type | Description | -| --- | --- | --- | -| newWidth | Int32 | The new width. | -| newHeight | Int32 | The new height. | -| settings | ImageResizeSettings | The resize settings. | - -### See Also - -* class [ImageResizeSettings](../../../aspose.imaging/imageresizesettings/) -* class [SvgImage](../) -* namespace [Aspose.Imaging.FileFormats.Svg](../../svgimage/) -* assembly [Aspose.Imaging](../../../) - diff --git a/english/net/aspose.imaging.fileformats.svg/svgimage/rotate/_index.md b/english/net/aspose.imaging.fileformats.svg/svgimage/rotate/_index.md new file mode 100644 index 0000000000..3f4edb03fe --- /dev/null +++ b/english/net/aspose.imaging.fileformats.svg/svgimage/rotate/_index.md @@ -0,0 +1,27 @@ +--- +title: SvgImage.Rotate +second_title: Aspose.Imaging for .NET API Reference +description: SvgImage method. Rotate image around the center +type: docs +weight: 90 +url: /net/aspose.imaging.fileformats.svg/svgimage/rotate/ +--- +## SvgImage.Rotate method + +Rotate image around the center. + +```csharp +public override void Rotate(float angle) +``` + +| Parameter | Type | Description | +| --- | --- | --- | +| angle | Single | The rotate angle in degrees. Positive values will rotate clockwise. | + +### See Also + +* class [SvgImage](../) +* namespace [Aspose.Imaging.FileFormats.Svg](../../svgimage/) +* assembly [Aspose.Imaging](../../../) + + diff --git a/english/net/aspose.imaging.fileformats.svg/svgimage/setpalette/_index.md b/english/net/aspose.imaging.fileformats.svg/svgimage/setpalette/_index.md index 22c72e67fc..dff2ad39e5 100644 --- a/english/net/aspose.imaging.fileformats.svg/svgimage/setpalette/_index.md +++ b/english/net/aspose.imaging.fileformats.svg/svgimage/setpalette/_index.md @@ -3,7 +3,7 @@ title: SvgImage.SetPalette second_title: Aspose.Imaging for .NET API Reference description: SvgImage method. Applies a specified palette to the image enabling customization of color schemes for aesthetic or functional purposes. This method provides flexibility in managing color palettes to suit various design or application requirements type: docs -weight: 110 +weight: 100 url: /net/aspose.imaging.fileformats.svg/svgimage/setpalette/ --- ## SvgImage.SetPalette method diff --git a/english/net/aspose.imaging.fileformats.tga/tgaimage/_index.md b/english/net/aspose.imaging.fileformats.tga/tgaimage/_index.md index a088030c1c..46f9a107a9 100644 --- a/english/net/aspose.imaging.fileformats.tga/tgaimage/_index.md +++ b/english/net/aspose.imaging.fileformats.tga/tgaimage/_index.md @@ -146,7 +146,7 @@ public class TgaImage : RasterCachedImage | [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int) | Resizes the width proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ImageResizeSettings) | Resizes the width proportionally. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ResizeType) | Resizes the width proportionally. | -| virtual [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | +| override [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | | override [Rotate](../../aspose.imaging.fileformats.tga/tgaimage/rotate/#rotate_1)(float, bool, Color) | Rotates the image around its center by a specified angle while maintaining resize proportionality and preserving the background color. This method allows for precise image manipulation, ensuring that the rotation maintains visual balance and consistency with the specified background color. It's ideal for tasks where accurate rotation around the center is necessary, such as orientation correction or artistic adjustments. | | override [RotateFlip](../../aspose.imaging.fileformats.tga/tgaimage/rotateflip/)(RotateFlipType) | The "RotateFlip" method enables rotating and flipping operations on the image. It offers versatile functionality for manipulating image orientation, allowing users to perform rotations and flips according to their requirements, facilitating efficient image processing tasks within software applications. | | [Save](../../aspose.imaging/image/save/)() | Saves the image data to the underlying stream. | diff --git a/english/net/aspose.imaging.fileformats.tiff.filemanagement/tiffstreamreader/_index.md b/english/net/aspose.imaging.fileformats.tiff.filemanagement/tiffstreamreader/_index.md index 75f06b1755..bacdd6314e 100644 --- a/english/net/aspose.imaging.fileformats.tiff.filemanagement/tiffstreamreader/_index.md +++ b/english/net/aspose.imaging.fileformats.tiff.filemanagement/tiffstreamreader/_index.md @@ -11,7 +11,7 @@ url: /net/aspose.imaging.fileformats.tiff.filemanagement/tiffstreamreader/ The tiff stream for handling little endian tiff file format. ```csharp -public class TiffStreamReader : #=z2TIM12UMKE8SftyKpG4JE18Al29Nj3uhb_lizl_JmsHEIyfrMQjqyy4= +public class TiffStreamReader : #=zoZFYF645XiIaQ9ZQWyasEuZcv34nAqVVQfTZiy32YTwhWRVBmpo3OhI= ``` ## Constructors diff --git a/english/net/aspose.imaging.fileformats.tiff.filemanagement/tiffstreamwriter/_index.md b/english/net/aspose.imaging.fileformats.tiff.filemanagement/tiffstreamwriter/_index.md index 68c1cf1058..f9ea40ff2f 100644 --- a/english/net/aspose.imaging.fileformats.tiff.filemanagement/tiffstreamwriter/_index.md +++ b/english/net/aspose.imaging.fileformats.tiff.filemanagement/tiffstreamwriter/_index.md @@ -11,7 +11,7 @@ url: /net/aspose.imaging.fileformats.tiff.filemanagement/tiffstreamwriter/ The Tiff stream writer. ```csharp -public class TiffStreamWriter : #=z2TIM12UMKE8SftyKpG4JE18Al29Nj3uhb_lizl_JmsHEIyfrMQjqyy4= +public class TiffStreamWriter : #=zoZFYF645XiIaQ9ZQWyasEuZcv34nAqVVQfTZiy32YTwhWRVBmpo3OhI= ``` ## Constructors diff --git a/english/net/aspose.imaging.fileformats.tiff/tiffframe/_index.md b/english/net/aspose.imaging.fileformats.tiff/tiffframe/_index.md index f6c7ee474f..aa2e3b4d3f 100644 --- a/english/net/aspose.imaging.fileformats.tiff/tiffframe/_index.md +++ b/english/net/aspose.imaging.fileformats.tiff/tiffframe/_index.md @@ -88,7 +88,7 @@ public sealed class TiffFrame : RasterCachedImage, IHasExifData | override [CacheData](../../aspose.imaging/rastercachedimage/cachedata/)() | Caches the data and ensures no additional data loading will be performed from the underlying [`DataStreamContainer`](../../aspose.imaging/datastreamsupporter/datastreamcontainer/). | | [CanSave](../../aspose.imaging/image/cansave/)(ImageOptionsBase) | Determines whether image can be saved to the specified file format represented by the passed save options. | | override [Crop](../../aspose.imaging.fileformats.tiff/tiffframe/crop/#crop)(Rectangle) | Cropping the image. | -| virtual [Crop](../../aspose.imaging/rasterimage/crop/)(int, int, int, int) | Crop image with shifts. | +| virtual [Crop](../../aspose.imaging/image/crop/)(int, int, int, int) | Crop image with shifts. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | | [Dither](../../aspose.imaging/rasterimage/dither/)(DitheringMethod, int) | Performs dithering on the current image. | | override [Dither](../../aspose.imaging/rastercachedimage/dither/)(DitheringMethod, int, IColorPalette) | Performs dithering on the current image. | @@ -132,7 +132,7 @@ public sealed class TiffFrame : RasterCachedImage, IHasExifData | [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int) | Resizes the width proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ImageResizeSettings) | Resizes the width proportionally. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ResizeType) | Resizes the width proportionally. | -| virtual [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | +| override [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | | override [Rotate](../../aspose.imaging.fileformats.tiff/tiffframe/rotate/#rotate_1)(float, bool, Color) | Rotate image around the center. | | override [RotateFlip](../../aspose.imaging/rastercachedimage/rotateflip/)(RotateFlipType) | Rotates, flips, or rotates and flips the image. | | [Save](../../aspose.imaging/image/save/)() | Saves the image data to the underlying stream. | diff --git a/english/net/aspose.imaging.fileformats.tiff/tiffimage/_index.md b/english/net/aspose.imaging.fileformats.tiff/tiffimage/_index.md index ab2794409f..d785a8abd3 100644 --- a/english/net/aspose.imaging.fileformats.tiff/tiffimage/_index.md +++ b/english/net/aspose.imaging.fileformats.tiff/tiffimage/_index.md @@ -138,7 +138,7 @@ public class TiffImage : RasterCachedMultipageImage, IHasExifData, IMultipageIma | [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int) | Resizes the width proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ImageResizeSettings) | Resizes the width proportionally. | | override [ResizeWidthProportionally](../../aspose.imaging.fileformats.tiff/tiffimage/resizewidthproportionally/#resizewidthproportionally_2)(int, ResizeType) | Adjust the width of the image while maintaining its aspect ratio, ensuring proportional resizing for optimal visual presentation. Utilize this method to dynamically scale images within your application, facilitating consistent and aesthetically pleasing rendering across various display contexts. | -| virtual [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | +| override [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | | override [Rotate](../../aspose.imaging.fileformats.tiff/tiffimage/rotate/#rotate_1)(float, bool, Color) | Rotate the image around its center point by a specified angle, enabling precise orientation adjustments. Incorporate this functionality into your image processing pipeline to facilitate accurate transformations, ensuring optimal alignment and presentation of visual content within your application. | | override [RotateFlip](../../aspose.imaging.fileformats.tiff/tiffimage/rotateflip/)(RotateFlipType) | Perform rotation, flipping, or a combination of both operations exclusively on the active frame. This method allows precise manipulation of individual frames within the image sequence, enhancing flexibility in image editing and composition within your application. | | [Save](../../aspose.imaging/image/save/)() | Saves the image data to the underlying stream. | diff --git a/english/net/aspose.imaging.fileformats.webp/webpframeblock/_index.md b/english/net/aspose.imaging.fileformats.webp/webpframeblock/_index.md index 0afb523c87..8493bf94ff 100644 --- a/english/net/aspose.imaging.fileformats.webp/webpframeblock/_index.md +++ b/english/net/aspose.imaging.fileformats.webp/webpframeblock/_index.md @@ -85,7 +85,7 @@ public class WebPFrameBlock : RasterCachedImage, IAnimationFrame, IFrame | override [CacheData](../../aspose.imaging/rastercachedimage/cachedata/)() | Caches the data and ensures no additional data loading will be performed from the underlying [`DataStreamContainer`](../../aspose.imaging/datastreamsupporter/datastreamcontainer/). | | [CanSave](../../aspose.imaging/image/cansave/)(ImageOptionsBase) | Determines whether image can be saved to the specified file format represented by the passed save options. | | override [Crop](../../aspose.imaging/rastercachedimage/crop/)(Rectangle) | Cropping the image. | -| virtual [Crop](../../aspose.imaging/rasterimage/crop/)(int, int, int, int) | Crop image with shifts. | +| virtual [Crop](../../aspose.imaging/image/crop/)(int, int, int, int) | Crop image with shifts. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | | [Dither](../../aspose.imaging/rasterimage/dither/)(DitheringMethod, int) | Performs dithering on the current image. | | override [Dither](../../aspose.imaging/rastercachedimage/dither/)(DitheringMethod, int, IColorPalette) | Performs dithering on the current image. | @@ -130,7 +130,7 @@ public class WebPFrameBlock : RasterCachedImage, IAnimationFrame, IFrame | [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int) | Resizes the width proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ImageResizeSettings) | Resizes the width proportionally. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ResizeType) | Resizes the width proportionally. | -| virtual [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | +| override [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | | override [Rotate](../../aspose.imaging/rastercachedimage/rotate/)(float, bool, Color) | Rotate image around the center. | | override [RotateFlip](../../aspose.imaging/rastercachedimage/rotateflip/)(RotateFlipType) | Rotates, flips, or rotates and flips the image. | | [Save](../../aspose.imaging/image/save/)() | Saves the image data to the underlying stream. | diff --git a/english/net/aspose.imaging.fileformats.webp/webpimage/_index.md b/english/net/aspose.imaging.fileformats.webp/webpimage/_index.md index 38e21394ff..72a2b24f0a 100644 --- a/english/net/aspose.imaging.fileformats.webp/webpimage/_index.md +++ b/english/net/aspose.imaging.fileformats.webp/webpimage/_index.md @@ -136,7 +136,7 @@ public sealed class WebPImage : RasterCachedMultipageImage, IMultipageImageExt | [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int) | Resizes the width proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ImageResizeSettings) | Resizes the width proportionally. | | override [ResizeWidthProportionally](../../aspose.imaging.fileformats.webp/webpimage/resizewidthproportionally/#resizewidthproportionally_2)(int, ResizeType) | Proportionally adjust the width of the image while maintaining its aspect ratio. Integrate this method into your image processing workflow to dynamically resize images with consistent proportions, ensuring optimal display or storage within your application. | -| virtual [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | +| override [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | | override [Rotate](../../aspose.imaging.fileformats.webp/webpimage/rotate/#rotate_1)(float, bool, Color) | Rotate the image around its center by a specified angle, while proportionally resizing it and applying specified background color parameters. Incorporate this method into your image processing workflow to achieve precise transformations with customizable background colors, ensuring optimal visual presentation within your application. | | override [RotateFlip](../../aspose.imaging.fileformats.webp/webpimage/rotateflip/)(RotateFlipType) | Apply rotation, flipping, or both operations exclusively to the active frame within the image. Integrate this method into your image processing workflow to achieve precise manipulation of individual frames, enhancing flexibility and control over frame transformations within your application. | | [Save](../../aspose.imaging/image/save/)() | Saves the image data to the underlying stream. | diff --git a/english/net/aspose.imaging.fileformats.wmf/wmfimage/_index.md b/english/net/aspose.imaging.fileformats.wmf/wmfimage/_index.md index 1f7e966c16..697b1b7770 100644 --- a/english/net/aspose.imaging.fileformats.wmf/wmfimage/_index.md +++ b/english/net/aspose.imaging.fileformats.wmf/wmfimage/_index.md @@ -36,8 +36,8 @@ public class WmfImage : MetaImage | override [FileFormat](../../aspose.imaging.fileformats.wmf/wmfimage/fileformat/) { get; } | Access the file format value associated with the image, providing information about the format in which the image is stored. Utilize this property to determine the file format of the image, facilitating compatibility checks and format-specific processing within your application. | | [FrameBounds](../../aspose.imaging.fileformats.wmf/wmfimage/framebounds/) { get; } | Access the bounds of the frame, indicating its position and dimensions within the image. Utilize this property to retrieve detailed information about the frame's spatial location, enabling precise manipulation and rendering within your application. | | virtual [HasBackgroundColor](../../aspose.imaging/image/hasbackgroundcolor/) { get; set; } | Gets or sets a value indicating whether image has background color. | -| override [Height](../../aspose.imaging.fileformats.wmf/wmfimage/height/) { get; } | Access the image's height, representing the number of pixels along its vertical axis. Utilize this property to ascertain the image's spatial dimensions and aspect ratio, enabling accurate layout and rendering adjustments within your application. | -| virtual [HeightF](../../aspose.imaging/vectorimage/heightf/) { get; } | Gets the object height, in inches. | +| override [Height](../../aspose.imaging/vectorimage/height/) { get; } | Gets the image height. | +| override [HeightF](../../aspose.imaging.fileformats.wmf/wmfimage/heightf/) { get; } | Access the image's height, representing the number of pixels along its vertical axis. Utilize this property to ascertain the image's spatial dimensions and aspect ratio, enabling accurate layout and rendering adjustments within your application. | | [Inch](../../aspose.imaging.fileformats.wmf/wmfimage/inch/) { get; set; } | Access or modify the inch property, representing a unit of measurement typically used for specifying physical dimensions in print or display contexts. Utilize this property to establish or retrieve inch values associated with the image, facilitating accurate representation of physical dimensions within your application. | | [InterruptMonitor](../../aspose.imaging/image/interruptmonitor/) { get; set; } | Gets or sets the interrupt monitor. | | override [IsCached](../../aspose.imaging.fileformats.wmf/wmfimage/iscached/) { get; } | Retrieve a boolean value indicating whether the object's data is currently cached, eliminating the need for additional data reading operations. Utilize this property to optimize performance by determining if the object's data is readily available without the need for costly data retrieval processes within your application. | @@ -46,8 +46,8 @@ public class WmfImage : MetaImage | [Size](../../aspose.imaging/image/size/) { get; } | Gets the image size. | | [SizeF](../../aspose.imaging/vectorimage/sizef/) { get; } | Gets the object size, in inches. | | virtual [UsePalette](../../aspose.imaging/image/usepalette/) { get; } | Gets a value indicating whether the image palette is used. | -| override [Width](../../aspose.imaging.fileformats.wmf/wmfimage/width/) { get; } | Access the width of the image, indicating the number of pixels along its horizontal axis. Utilize this property to determine the image's spatial dimensions and aspect ratio, enabling precise layout and rendering adjustments within your application. | -| virtual [WidthF](../../aspose.imaging/vectorimage/widthf/) { get; } | Gets the object width, in inches. | +| override [Width](../../aspose.imaging/vectorimage/width/) { get; } | Gets the image width. | +| override [WidthF](../../aspose.imaging.fileformats.wmf/wmfimage/widthf/) { get; } | Access the width of the image, indicating the number of pixels along its horizontal axis. Utilize this property to determine the image's spatial dimensions and aspect ratio, enabling precise layout and rendering adjustments within your application. | ## Methods @@ -56,8 +56,8 @@ public class WmfImage : MetaImage | [AddRecord](../../aspose.imaging.fileformats.wmf/wmfimage/addrecord/)(WmfObject) | Incorporate the specified record object into the image, enriching its content with additional data or metadata. Utilize this method to seamlessly integrate record objects into the image, facilitating comprehensive data storage and organization within your application. | | override [CacheData](../../aspose.imaging.fileformats.wmf/wmfimage/cachedata/)() | Efficiently cache the data, eliminating the need for additional loading from the underlying [`DataStreamContainer`](../../aspose.imaging/datastreamsupporter/datastreamcontainer/). Utilize this method to optimize performance and minimize resource usage within your application by storing and accessing local data cache. | | [CanSave](../../aspose.imaging/image/cansave/)(ImageOptionsBase) | Determines whether image can be saved to the specified file format represented by the passed save options. | -| override [Crop](../../aspose.imaging.fileformats.wmf/wmfimage/crop/#crop)(Rectangle) | Crop the image to the specified rectangle, retaining only the selected region while discarding the rest. Integrate this method into your image processing workflow to extract specific areas of interest and customize the composition of the image within your application. | -| virtual [Crop](../../aspose.imaging.fileformats.emf/metaimage/crop/)(int, int, int, int) | Crop image with shifts. | +| override [Crop](../../aspose.imaging/vectorimage/crop/)(Rectangle) | Crops the specified rectangle. | +| virtual [Crop](../../aspose.imaging/image/crop/)(int, int, int, int) | Crop image with shifts. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | | override [GetDefaultOptions](../../aspose.imaging.fileformats.wmf/wmfimage/getdefaultoptions/)(object[]) | Retrieve the default options associated with the image, providing access to predefined settings or configurations. Utilize this method to access default settings for image processing operations, facilitating consistency and convenience within your application's functionality. | | virtual [GetEmbeddedImages](../../aspose.imaging/vectorimage/getembeddedimages/)() | Gets the embedded images. | @@ -66,12 +66,12 @@ public class WmfImage : MetaImage | [GetPostScript](../../aspose.imaging.fileformats.wmf/wmfimage/getpostscript/)() | Access the PostScript data associated with the image, providing detailed information about its structure or content. Utilize this method to retrieve PostScript data for further analysis or processing within your application, enabling advanced functionality related to PostScript rendering or manipulation. | | virtual [GetSerializedStream](../../aspose.imaging/image/getserializedstream/)(ImageOptionsBase, Rectangle, out int) | Converts to aps. | | override [GetUsedFonts](../../aspose.imaging.fileformats.wmf/wmfimage/getusedfonts/)() | Retrieve the list of fonts used within the metafile, providing insight into the font resources utilized in the image. Utilize this method to analyze font usage and ensure font availability for rendering or further processing within your application. | -| [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/)() | Removes the background. | -| [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/)(RemoveBackgroundSettings) | Removes the background. | +| virtual [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/)() | Removes the background. | +| virtual [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/)(RemoveBackgroundSettings) | Removes the background. | | virtual [RemoveMetadata](../../aspose.imaging/image/removemetadata/)() | Removes metadata. | | [Resize](../../aspose.imaging/image/resize/)(int, int) | Resizes the image. The default NearestNeighbourResample is used. | -| override [Resize](../../aspose.imaging.fileformats.wmf/wmfimage/resize/#resize_1)(int, int, ImageResizeSettings) | Adjust the size of the image based on specified settings, enabling precise control over dimensions, aspect ratio, and scaling behavior. Integrate this method into your image processing workflow to achieve customized resizing operations tailored to the specific requirements of your application. | -| override [Resize](../../aspose.imaging.fileformats.wmf/wmfimage/resize/#resize_2)(int, int, ResizeType) | Resize the image with the specified resizing type, allowing for flexible adjustment of dimensions while preserving aspect ratio or applying specific scaling algorithms. Integrate this method into your image processing workflow to achieve precise resizing operations tailored to your application's requirements. | +| override [Resize](../../aspose.imaging/vectorimage/resize/)(int, int, ImageResizeSettings) | Resizes the image with extended options. | +| override [Resize](../../aspose.imaging/vectorimage/resize/)(int, int, ResizeType) | Resizes the specified new width. | | override [ResizeCanvas](../../aspose.imaging.fileformats.wmf/wmfimage/resizecanvas/)(Rectangle) | Resize the canvas of the image, adjusting its dimensions while retaining the image content. Utilize this method to modify the size of the canvas without altering the content, facilitating layout adjustments and composition changes within your application. | | [ResizeHeightProportionally](../../aspose.imaging/image/resizeheightproportionally/)(int) | Resizes the height proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeHeightProportionally](../../aspose.imaging/image/resizeheightproportionally/)(int, ImageResizeSettings) | Resizes the height proportionally. | @@ -79,7 +79,8 @@ public class WmfImage : MetaImage | [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int) | Resizes the width proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ImageResizeSettings) | Resizes the width proportionally. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ResizeType) | Resizes the width proportionally. | -| override [RotateFlip](../../aspose.imaging.fileformats.wmf/wmfimage/rotateflip/)(RotateFlipType) | Perform rotation, flipping, or a combination of both operations on the image. Integrate this method into your image processing workflow to achieve precise manipulation of image orientation and alignment within your application. | +| override [Rotate](../../aspose.imaging/vectorimage/rotate/)(float) | Rotate image around the center. | +| override [RotateFlip](../../aspose.imaging/vectorimage/rotateflip/)(RotateFlipType) | Rotates, flips, or rotates and flips the image. | | [Save](../../aspose.imaging/image/save/)() | Saves the image data to the underlying stream. | | [Save](../../aspose.imaging/datastreamsupporter/save/)(Stream) | Saves the object's data to the specified stream. | | override [Save](../../aspose.imaging/image/save/)(string) | Saves the image to the specified file location. | diff --git a/english/net/aspose.imaging.fileformats.wmf/wmfimage/getdefaultoptions/_index.md b/english/net/aspose.imaging.fileformats.wmf/wmfimage/getdefaultoptions/_index.md index ff12c616a0..a73e4cf09e 100644 --- a/english/net/aspose.imaging.fileformats.wmf/wmfimage/getdefaultoptions/_index.md +++ b/english/net/aspose.imaging.fileformats.wmf/wmfimage/getdefaultoptions/_index.md @@ -3,7 +3,7 @@ title: WmfImage.GetDefaultOptions second_title: Aspose.Imaging for .NET API Reference description: WmfImage method. Retrieve the default options associated with the image providing access to predefined settings or configurations. Utilize this method to access default settings for image processing operations facilitating consistency and convenience within your applications functionality type: docs -weight: 120 +weight: 110 url: /net/aspose.imaging.fileformats.wmf/wmfimage/getdefaultoptions/ --- ## WmfImage.GetDefaultOptions method diff --git a/english/net/aspose.imaging.fileformats.wmf/wmfimage/getpostscript/_index.md b/english/net/aspose.imaging.fileformats.wmf/wmfimage/getpostscript/_index.md index 552b9973f2..0db6275a49 100644 --- a/english/net/aspose.imaging.fileformats.wmf/wmfimage/getpostscript/_index.md +++ b/english/net/aspose.imaging.fileformats.wmf/wmfimage/getpostscript/_index.md @@ -3,7 +3,7 @@ title: WmfImage.GetPostScript second_title: Aspose.Imaging for .NET API Reference description: WmfImage method. Access the PostScript data associated with the image providing detailed information about its structure or content. Utilize this method to retrieve PostScript data for further analysis or processing within your application enabling advanced functionality related to PostScript rendering or manipulation type: docs -weight: 130 +weight: 120 url: /net/aspose.imaging.fileformats.wmf/wmfimage/getpostscript/ --- ## WmfImage.GetPostScript method diff --git a/english/net/aspose.imaging.fileformats.wmf/wmfimage/getusedfonts/_index.md b/english/net/aspose.imaging.fileformats.wmf/wmfimage/getusedfonts/_index.md index f861018780..c6d2e7b295 100644 --- a/english/net/aspose.imaging.fileformats.wmf/wmfimage/getusedfonts/_index.md +++ b/english/net/aspose.imaging.fileformats.wmf/wmfimage/getusedfonts/_index.md @@ -3,7 +3,7 @@ title: WmfImage.GetUsedFonts second_title: Aspose.Imaging for .NET API Reference description: WmfImage method. Retrieve the list of fonts used within the metafile providing insight into the font resources utilized in the image. Utilize this method to analyze font usage and ensure font availability for rendering or further processing within your application type: docs -weight: 140 +weight: 130 url: /net/aspose.imaging.fileformats.wmf/wmfimage/getusedfonts/ --- ## WmfImage.GetUsedFonts method diff --git a/english/net/aspose.imaging.fileformats.wmf/wmfimage/heightf/_index.md b/english/net/aspose.imaging.fileformats.wmf/wmfimage/heightf/_index.md new file mode 100644 index 0000000000..b66cd70197 --- /dev/null +++ b/english/net/aspose.imaging.fileformats.wmf/wmfimage/heightf/_index.md @@ -0,0 +1,33 @@ +--- +title: WmfImage.HeightF +second_title: Aspose.Imaging for .NET API Reference +description: WmfImage property. Access the images height representing the number of pixels along its vertical axis. Utilize this property to ascertain the images spatial dimensions and aspect ratio enabling accurate layout and rendering adjustments within your application +type: docs +weight: 50 +url: /net/aspose.imaging.fileformats.wmf/wmfimage/heightf/ +--- +## WmfImage.HeightF property + +Access the image's height, representing the number of pixels along its vertical axis. Utilize this property to ascertain the image's spatial dimensions and aspect ratio, enabling accurate layout and rendering adjustments within your application. + +```csharp +public override float HeightF { get; } +``` + +### Property Value + +The image height. + +### Exceptions + +| exception | condition | +| --- | --- | +| NotImplementedException | | + +### See Also + +* class [WmfImage](../) +* namespace [Aspose.Imaging.FileFormats.Wmf](../../wmfimage/) +* assembly [Aspose.Imaging](../../../) + + diff --git a/english/net/aspose.imaging.fileformats.wmf/wmfimage/resizecanvas/_index.md b/english/net/aspose.imaging.fileformats.wmf/wmfimage/resizecanvas/_index.md index cceaeefcaf..11a0fa2f32 100644 --- a/english/net/aspose.imaging.fileformats.wmf/wmfimage/resizecanvas/_index.md +++ b/english/net/aspose.imaging.fileformats.wmf/wmfimage/resizecanvas/_index.md @@ -3,7 +3,7 @@ title: WmfImage.ResizeCanvas second_title: Aspose.Imaging for .NET API Reference description: WmfImage method. Resize the canvas of the image adjusting its dimensions while retaining the image content. Utilize this method to modify the size of the canvas without altering the content facilitating layout adjustments and composition changes within your application type: docs -weight: 160 +weight: 140 url: /net/aspose.imaging.fileformats.wmf/wmfimage/resizecanvas/ --- ## WmfImage.ResizeCanvas method diff --git a/english/net/aspose.imaging.fileformats.wmf/wmfimage/setpalette/_index.md b/english/net/aspose.imaging.fileformats.wmf/wmfimage/setpalette/_index.md index d27c18eb66..efcf732c31 100644 --- a/english/net/aspose.imaging.fileformats.wmf/wmfimage/setpalette/_index.md +++ b/english/net/aspose.imaging.fileformats.wmf/wmfimage/setpalette/_index.md @@ -3,7 +3,7 @@ title: WmfImage.SetPalette second_title: Aspose.Imaging for .NET API Reference description: WmfImage method. Apply a specified palette to the image enabling customization of color representation. Utilize this method to enhance visual rendering and achieve specific color effects within your application type: docs -weight: 180 +weight: 150 url: /net/aspose.imaging.fileformats.wmf/wmfimage/setpalette/ --- ## WmfImage.SetPalette method diff --git a/english/net/aspose.imaging.fileformats.wmf/wmfimage/widthf/_index.md b/english/net/aspose.imaging.fileformats.wmf/wmfimage/widthf/_index.md new file mode 100644 index 0000000000..4f364900fe --- /dev/null +++ b/english/net/aspose.imaging.fileformats.wmf/wmfimage/widthf/_index.md @@ -0,0 +1,33 @@ +--- +title: WmfImage.WidthF +second_title: Aspose.Imaging for .NET API Reference +description: WmfImage property. Access the width of the image indicating the number of pixels along its horizontal axis. Utilize this property to determine the images spatial dimensions and aspect ratio enabling precise layout and rendering adjustments within your application +type: docs +weight: 80 +url: /net/aspose.imaging.fileformats.wmf/wmfimage/widthf/ +--- +## WmfImage.WidthF property + +Access the width of the image, indicating the number of pixels along its horizontal axis. Utilize this property to determine the image's spatial dimensions and aspect ratio, enabling precise layout and rendering adjustments within your application. + +```csharp +public override float WidthF { get; } +``` + +### Property Value + +The image width. + +### Exceptions + +| exception | condition | +| --- | --- | +| NotImplementedException | | + +### See Also + +* class [WmfImage](../) +* namespace [Aspose.Imaging.FileFormats.Wmf](../../wmfimage/) +* assembly [Aspose.Imaging](../../../) + + diff --git a/english/net/aspose.imaging.imageoptions/_index.md b/english/net/aspose.imaging.imageoptions/_index.md index 01a93a1285..1fc615d12f 100644 --- a/english/net/aspose.imaging.imageoptions/_index.md +++ b/english/net/aspose.imaging.imageoptions/_index.md @@ -48,7 +48,7 @@ The namespace contains classes suitable for export, save or creation of differen | [TgaOptions](./tgaoptions/) | The TGA file format create options. | | [TiffOptions](./tiffoptions/) | The tiff file format options. Note that width and height tags will get overwritten on image creation by width and height parameters so there is no need to specify them directly. Note that many options return a default value but that does not mean that this option is set explicitly as a tag value. To verify the tag is present use Tags property or the corresponding IsTagPresent method. | | [TimeInterval](./timeinterval/) | Represents the time interval in milliseconds | -| [VectorRasterizationOptions](./vectorrasterizationoptions/) | The vector rasterization options. | +| [VectorRasterizationOptions](./vectorrasterizationoptions/) | The vector rasterization options. Please note that [`VectorRasterizationOptions`](../aspose.imaging.imageoptions/vectorrasterizationoptions/) will no longer derive from [`ImageOptionsBase`](../aspose.imaging/imageoptionsbase/) since Aspose.Imaging 24.12 version. | | [WebPOptions](./webpoptions/) | Create modern WebP raster web images using our API, featuring robust support for lossless and lossy compression, as well as alpha channels and animation loops. Enhance your web content with dynamic visuals while optimizing file sizes for improved loading speeds and user experience. | | [WmfOptions](./wmfoptions/) | The wmf options. | | [WmfRasterizationOptions](./wmfrasterizationoptions/) | The Wmf rasterization options. | diff --git a/english/net/aspose.imaging.imageoptions/apngoptions/_index.md b/english/net/aspose.imaging.imageoptions/apngoptions/_index.md index b3b2f028cb..bcac752695 100644 --- a/english/net/aspose.imaging.imageoptions/apngoptions/_index.md +++ b/english/net/aspose.imaging.imageoptions/apngoptions/_index.md @@ -47,7 +47,7 @@ public class ApngOptions : PngOptions | Name | Description | | --- | --- | -| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Clones this instance. | +| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Creates a memberwise clone of this instance. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | ## Examples diff --git a/english/net/aspose.imaging.imageoptions/bmpoptions/_index.md b/english/net/aspose.imaging.imageoptions/bmpoptions/_index.md index a04d74f3d6..30d62546f0 100644 --- a/english/net/aspose.imaging.imageoptions/bmpoptions/_index.md +++ b/english/net/aspose.imaging.imageoptions/bmpoptions/_index.md @@ -43,7 +43,7 @@ public class BmpOptions : ImageOptionsBase | Name | Description | | --- | --- | -| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Clones this instance. | +| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Creates a memberwise clone of this instance. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | ## Examples diff --git a/english/net/aspose.imaging.imageoptions/cdrrasterizationoptions/_index.md b/english/net/aspose.imaging.imageoptions/cdrrasterizationoptions/_index.md index fbb6ea210b..4c63d30c49 100644 --- a/english/net/aspose.imaging.imageoptions/cdrrasterizationoptions/_index.md +++ b/english/net/aspose.imaging.imageoptions/cdrrasterizationoptions/_index.md @@ -34,9 +34,9 @@ public class CdrRasterizationOptions : VectorRasterizationOptions | [FullFrame](../../aspose.imaging/imageoptionsbase/fullframe/) { get; set; } | Gets or sets a value indicating whether [full frame]. | | [KeepMetadata](../../aspose.imaging/imageoptionsbase/keepmetadata/) { get; set; } | Gets a value whether to keep original image metadata on export. | | [MultiPageOptions](../../aspose.imaging/imageoptionsbase/multipageoptions/) { get; set; } | The multipage options | -| [PageHeight](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pageheight/) { get; set; } | Gets or sets the page height. | -| [PageSize](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagesize/) { get; set; } | Gets or sets the page size. | -| [PageWidth](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagewidth/) { get; set; } | Gets or sets the page width. | +| [PageHeight](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pageheight/) { get; set; } | Gets or sets the page height. If the value is 0, the source image aspect ratio will be preserved. | +| [PageSize](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagesize/) { get; set; } | Gets or sets the page size. If one of [`SizeF`](../../aspose.imaging/sizef/) dimensions is 0, the source image aspect ratio will be preserved. | +| [PageWidth](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagewidth/) { get; set; } | Gets or sets the page width. If the value is 0, the source image aspect ratio will be preserved. | | virtual [Palette](../../aspose.imaging/imageoptionsbase/palette/) { get; set; } | Gets or sets the color palette. | | [Positioning](../../aspose.imaging.imageoptions/vectorrasterizationoptions/positioning/) { get; set; } | Gets or sets the positioning. | | [ProgressEventHandler](../../aspose.imaging/imageoptionsbase/progresseventhandler/) { get; set; } | Gets or sets the progress event handler. | @@ -54,7 +54,7 @@ public class CdrRasterizationOptions : VectorRasterizationOptions | Name | Description | | --- | --- | -| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Clones this instance. | +| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Creates a memberwise clone of this instance. | | [CopyTo](../../aspose.imaging.imageoptions/vectorrasterizationoptions/copyto/)(VectorRasterizationOptions) | Copies to. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | diff --git a/english/net/aspose.imaging.imageoptions/cmxrasterizationoptions/_index.md b/english/net/aspose.imaging.imageoptions/cmxrasterizationoptions/_index.md index 041ba72698..403e6de504 100644 --- a/english/net/aspose.imaging.imageoptions/cmxrasterizationoptions/_index.md +++ b/english/net/aspose.imaging.imageoptions/cmxrasterizationoptions/_index.md @@ -34,9 +34,9 @@ public class CmxRasterizationOptions : VectorRasterizationOptions | [FullFrame](../../aspose.imaging/imageoptionsbase/fullframe/) { get; set; } | Gets or sets a value indicating whether [full frame]. | | [KeepMetadata](../../aspose.imaging/imageoptionsbase/keepmetadata/) { get; set; } | Gets a value whether to keep original image metadata on export. | | [MultiPageOptions](../../aspose.imaging/imageoptionsbase/multipageoptions/) { get; set; } | The multipage options | -| [PageHeight](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pageheight/) { get; set; } | Gets or sets the page height. | -| [PageSize](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagesize/) { get; set; } | Gets or sets the page size. | -| [PageWidth](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagewidth/) { get; set; } | Gets or sets the page width. | +| [PageHeight](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pageheight/) { get; set; } | Gets or sets the page height. If the value is 0, the source image aspect ratio will be preserved. | +| [PageSize](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagesize/) { get; set; } | Gets or sets the page size. If one of [`SizeF`](../../aspose.imaging/sizef/) dimensions is 0, the source image aspect ratio will be preserved. | +| [PageWidth](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagewidth/) { get; set; } | Gets or sets the page width. If the value is 0, the source image aspect ratio will be preserved. | | virtual [Palette](../../aspose.imaging/imageoptionsbase/palette/) { get; set; } | Gets or sets the color palette. | | [Positioning](../../aspose.imaging.imageoptions/vectorrasterizationoptions/positioning/) { get; set; } | Gets or sets the positioning. | | [ProgressEventHandler](../../aspose.imaging/imageoptionsbase/progresseventhandler/) { get; set; } | Gets or sets the progress event handler. | @@ -52,7 +52,7 @@ public class CmxRasterizationOptions : VectorRasterizationOptions | Name | Description | | --- | --- | -| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Clones this instance. | +| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Creates a memberwise clone of this instance. | | [CopyTo](../../aspose.imaging.imageoptions/vectorrasterizationoptions/copyto/)(VectorRasterizationOptions) | Copies to. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | diff --git a/english/net/aspose.imaging.imageoptions/dicomoptions/_index.md b/english/net/aspose.imaging.imageoptions/dicomoptions/_index.md index 0bab5de387..71aed5eff0 100644 --- a/english/net/aspose.imaging.imageoptions/dicomoptions/_index.md +++ b/english/net/aspose.imaging.imageoptions/dicomoptions/_index.md @@ -42,7 +42,7 @@ public class DicomOptions : ImageOptionsBase | Name | Description | | --- | --- | -| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Clones this instance. | +| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Creates a memberwise clone of this instance. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | ## Examples diff --git a/english/net/aspose.imaging.imageoptions/dxfoptions/_index.md b/english/net/aspose.imaging.imageoptions/dxfoptions/_index.md index ce462cf815..53a407e844 100644 --- a/english/net/aspose.imaging.imageoptions/dxfoptions/_index.md +++ b/english/net/aspose.imaging.imageoptions/dxfoptions/_index.md @@ -43,7 +43,7 @@ public class DxfOptions : ImageOptionsBase | Name | Description | | --- | --- | -| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Clones this instance. | +| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Creates a memberwise clone of this instance. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | ## Examples diff --git a/english/net/aspose.imaging.imageoptions/emfoptions/_index.md b/english/net/aspose.imaging.imageoptions/emfoptions/_index.md index 42fa57dc45..fbf1eca916 100644 --- a/english/net/aspose.imaging.imageoptions/emfoptions/_index.md +++ b/english/net/aspose.imaging.imageoptions/emfoptions/_index.md @@ -41,7 +41,7 @@ public class EmfOptions : MetafileOptions | Name | Description | | --- | --- | -| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Clones this instance. | +| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Creates a memberwise clone of this instance. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | ## Examples diff --git a/english/net/aspose.imaging.imageoptions/emfrasterizationoptions/_index.md b/english/net/aspose.imaging.imageoptions/emfrasterizationoptions/_index.md index e188c4e5e9..8cc416c1dd 100644 --- a/english/net/aspose.imaging.imageoptions/emfrasterizationoptions/_index.md +++ b/english/net/aspose.imaging.imageoptions/emfrasterizationoptions/_index.md @@ -34,9 +34,9 @@ public class EmfRasterizationOptions : MetafileRasterizationOptions | [FullFrame](../../aspose.imaging/imageoptionsbase/fullframe/) { get; set; } | Gets or sets a value indicating whether [full frame]. | | [KeepMetadata](../../aspose.imaging/imageoptionsbase/keepmetadata/) { get; set; } | Gets a value whether to keep original image metadata on export. | | [MultiPageOptions](../../aspose.imaging/imageoptionsbase/multipageoptions/) { get; set; } | The multipage options | -| [PageHeight](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pageheight/) { get; set; } | Gets or sets the page height. | -| [PageSize](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagesize/) { get; set; } | Gets or sets the page size. | -| [PageWidth](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagewidth/) { get; set; } | Gets or sets the page width. | +| [PageHeight](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pageheight/) { get; set; } | Gets or sets the page height. If the value is 0, the source image aspect ratio will be preserved. | +| [PageSize](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagesize/) { get; set; } | Gets or sets the page size. If one of [`SizeF`](../../aspose.imaging/sizef/) dimensions is 0, the source image aspect ratio will be preserved. | +| [PageWidth](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagewidth/) { get; set; } | Gets or sets the page width. If the value is 0, the source image aspect ratio will be preserved. | | virtual [Palette](../../aspose.imaging/imageoptionsbase/palette/) { get; set; } | Gets or sets the color palette. | | [Positioning](../../aspose.imaging.imageoptions/vectorrasterizationoptions/positioning/) { get; set; } | Gets or sets the positioning. | | [ProgressEventHandler](../../aspose.imaging/imageoptionsbase/progresseventhandler/) { get; set; } | Gets or sets the progress event handler. | @@ -53,7 +53,7 @@ public class EmfRasterizationOptions : MetafileRasterizationOptions | Name | Description | | --- | --- | -| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Clones this instance. | +| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Creates a memberwise clone of this instance. | | [CopyTo](../../aspose.imaging.imageoptions/vectorrasterizationoptions/copyto/)(VectorRasterizationOptions) | Copies to. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | diff --git a/english/net/aspose.imaging.imageoptions/epsrasterizationoptions/_index.md b/english/net/aspose.imaging.imageoptions/epsrasterizationoptions/_index.md index 8ddea60793..0f67e5953a 100644 --- a/english/net/aspose.imaging.imageoptions/epsrasterizationoptions/_index.md +++ b/english/net/aspose.imaging.imageoptions/epsrasterizationoptions/_index.md @@ -34,9 +34,9 @@ public class EpsRasterizationOptions : VectorRasterizationOptions | [FullFrame](../../aspose.imaging/imageoptionsbase/fullframe/) { get; set; } | Gets or sets a value indicating whether [full frame]. | | [KeepMetadata](../../aspose.imaging/imageoptionsbase/keepmetadata/) { get; set; } | Gets a value whether to keep original image metadata on export. | | [MultiPageOptions](../../aspose.imaging/imageoptionsbase/multipageoptions/) { get; set; } | The multipage options | -| [PageHeight](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pageheight/) { get; set; } | Gets or sets the page height. | -| [PageSize](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagesize/) { get; set; } | Gets or sets the page size. | -| [PageWidth](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagewidth/) { get; set; } | Gets or sets the page width. | +| [PageHeight](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pageheight/) { get; set; } | Gets or sets the page height. If the value is 0, the source image aspect ratio will be preserved. | +| [PageSize](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagesize/) { get; set; } | Gets or sets the page size. If one of [`SizeF`](../../aspose.imaging/sizef/) dimensions is 0, the source image aspect ratio will be preserved. | +| [PageWidth](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagewidth/) { get; set; } | Gets or sets the page width. If the value is 0, the source image aspect ratio will be preserved. | | virtual [Palette](../../aspose.imaging/imageoptionsbase/palette/) { get; set; } | Gets or sets the color palette. | | [Positioning](../../aspose.imaging.imageoptions/vectorrasterizationoptions/positioning/) { get; set; } | Gets or sets the positioning. | | [ProgressEventHandler](../../aspose.imaging/imageoptionsbase/progresseventhandler/) { get; set; } | Gets or sets the progress event handler. | @@ -52,7 +52,7 @@ public class EpsRasterizationOptions : VectorRasterizationOptions | Name | Description | | --- | --- | -| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Clones this instance. | +| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Creates a memberwise clone of this instance. | | [CopyTo](../../aspose.imaging.imageoptions/vectorrasterizationoptions/copyto/)(VectorRasterizationOptions) | Copies to. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | diff --git a/english/net/aspose.imaging.imageoptions/gifoptions/_index.md b/english/net/aspose.imaging.imageoptions/gifoptions/_index.md index 482cbbeede..d9487011fe 100644 --- a/english/net/aspose.imaging.imageoptions/gifoptions/_index.md +++ b/english/net/aspose.imaging.imageoptions/gifoptions/_index.md @@ -52,7 +52,7 @@ public class GifOptions : ImageOptionsBase | Name | Description | | --- | --- | -| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Clones this instance. | +| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Creates a memberwise clone of this instance. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | ## Examples diff --git a/english/net/aspose.imaging.imageoptions/html5canvasoptions/_index.md b/english/net/aspose.imaging.imageoptions/html5canvasoptions/_index.md index 0f34000788..42d95b9bf6 100644 --- a/english/net/aspose.imaging.imageoptions/html5canvasoptions/_index.md +++ b/english/net/aspose.imaging.imageoptions/html5canvasoptions/_index.md @@ -43,7 +43,7 @@ public class Html5CanvasOptions : ImageOptionsBase | Name | Description | | --- | --- | -| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Clones this instance. | +| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Creates a memberwise clone of this instance. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | ## Examples diff --git a/english/net/aspose.imaging.imageoptions/icooptions/_index.md b/english/net/aspose.imaging.imageoptions/icooptions/_index.md index 7eb1323423..7649ca8a49 100644 --- a/english/net/aspose.imaging.imageoptions/icooptions/_index.md +++ b/english/net/aspose.imaging.imageoptions/icooptions/_index.md @@ -43,7 +43,7 @@ public class IcoOptions : ImageOptionsBase | Name | Description | | --- | --- | -| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Clones this instance. | +| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Creates a memberwise clone of this instance. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | ### See Also diff --git a/english/net/aspose.imaging.imageoptions/jpeg2000options/_index.md b/english/net/aspose.imaging.imageoptions/jpeg2000options/_index.md index 218fd1ffb2..2d780d47ab 100644 --- a/english/net/aspose.imaging.imageoptions/jpeg2000options/_index.md +++ b/english/net/aspose.imaging.imageoptions/jpeg2000options/_index.md @@ -45,7 +45,7 @@ public class Jpeg2000Options : ImageOptionsBase | Name | Description | | --- | --- | -| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Clones this instance. | +| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Creates a memberwise clone of this instance. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | ## Examples diff --git a/english/net/aspose.imaging.imageoptions/jpegoptions/_index.md b/english/net/aspose.imaging.imageoptions/jpegoptions/_index.md index e041b97f0c..cbbb6f95df 100644 --- a/english/net/aspose.imaging.imageoptions/jpegoptions/_index.md +++ b/english/net/aspose.imaging.imageoptions/jpegoptions/_index.md @@ -60,7 +60,7 @@ public class JpegOptions : ImageOptionsBase, IHasJpegExifData | Name | Description | | --- | --- | -| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Clones this instance. | +| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Creates a memberwise clone of this instance. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | ## Examples diff --git a/english/net/aspose.imaging.imageoptions/metafileoptions/_index.md b/english/net/aspose.imaging.imageoptions/metafileoptions/_index.md index 3b21557980..e90cebf8b3 100644 --- a/english/net/aspose.imaging.imageoptions/metafileoptions/_index.md +++ b/english/net/aspose.imaging.imageoptions/metafileoptions/_index.md @@ -41,7 +41,7 @@ public class MetafileOptions : ImageOptionsBase | Name | Description | | --- | --- | -| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Clones this instance. | +| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Creates a memberwise clone of this instance. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | ### See Also diff --git a/english/net/aspose.imaging.imageoptions/metafilerasterizationoptions/_index.md b/english/net/aspose.imaging.imageoptions/metafilerasterizationoptions/_index.md index f348ab77a4..c5c6687d20 100644 --- a/english/net/aspose.imaging.imageoptions/metafilerasterizationoptions/_index.md +++ b/english/net/aspose.imaging.imageoptions/metafilerasterizationoptions/_index.md @@ -34,9 +34,9 @@ public abstract class MetafileRasterizationOptions : VectorRasterizationOptions | [FullFrame](../../aspose.imaging/imageoptionsbase/fullframe/) { get; set; } | Gets or sets a value indicating whether [full frame]. | | [KeepMetadata](../../aspose.imaging/imageoptionsbase/keepmetadata/) { get; set; } | Gets a value whether to keep original image metadata on export. | | [MultiPageOptions](../../aspose.imaging/imageoptionsbase/multipageoptions/) { get; set; } | The multipage options | -| [PageHeight](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pageheight/) { get; set; } | Gets or sets the page height. | -| [PageSize](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagesize/) { get; set; } | Gets or sets the page size. | -| [PageWidth](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagewidth/) { get; set; } | Gets or sets the page width. | +| [PageHeight](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pageheight/) { get; set; } | Gets or sets the page height. If the value is 0, the source image aspect ratio will be preserved. | +| [PageSize](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagesize/) { get; set; } | Gets or sets the page size. If one of [`SizeF`](../../aspose.imaging/sizef/) dimensions is 0, the source image aspect ratio will be preserved. | +| [PageWidth](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagewidth/) { get; set; } | Gets or sets the page width. If the value is 0, the source image aspect ratio will be preserved. | | virtual [Palette](../../aspose.imaging/imageoptionsbase/palette/) { get; set; } | Gets or sets the color palette. | | [Positioning](../../aspose.imaging.imageoptions/vectorrasterizationoptions/positioning/) { get; set; } | Gets or sets the positioning. | | [ProgressEventHandler](../../aspose.imaging/imageoptionsbase/progresseventhandler/) { get; set; } | Gets or sets the progress event handler. | @@ -52,7 +52,7 @@ public abstract class MetafileRasterizationOptions : VectorRasterizationOptions | Name | Description | | --- | --- | -| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Clones this instance. | +| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Creates a memberwise clone of this instance. | | [CopyTo](../../aspose.imaging.imageoptions/vectorrasterizationoptions/copyto/)(VectorRasterizationOptions) | Copies to. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | diff --git a/english/net/aspose.imaging.imageoptions/odgrasterizationoptions/_index.md b/english/net/aspose.imaging.imageoptions/odgrasterizationoptions/_index.md index 857054a3e7..af8d478063 100644 --- a/english/net/aspose.imaging.imageoptions/odgrasterizationoptions/_index.md +++ b/english/net/aspose.imaging.imageoptions/odgrasterizationoptions/_index.md @@ -34,9 +34,9 @@ public class OdgRasterizationOptions : OdRasterizationOptions | [FullFrame](../../aspose.imaging/imageoptionsbase/fullframe/) { get; set; } | Gets or sets a value indicating whether [full frame]. | | [KeepMetadata](../../aspose.imaging/imageoptionsbase/keepmetadata/) { get; set; } | Gets a value whether to keep original image metadata on export. | | [MultiPageOptions](../../aspose.imaging/imageoptionsbase/multipageoptions/) { get; set; } | The multipage options | -| [PageHeight](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pageheight/) { get; set; } | Gets or sets the page height. | -| [PageSize](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagesize/) { get; set; } | Gets or sets the page size. | -| [PageWidth](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagewidth/) { get; set; } | Gets or sets the page width. | +| [PageHeight](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pageheight/) { get; set; } | Gets or sets the page height. If the value is 0, the source image aspect ratio will be preserved. | +| [PageSize](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagesize/) { get; set; } | Gets or sets the page size. If one of [`SizeF`](../../aspose.imaging/sizef/) dimensions is 0, the source image aspect ratio will be preserved. | +| [PageWidth](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagewidth/) { get; set; } | Gets or sets the page width. If the value is 0, the source image aspect ratio will be preserved. | | virtual [Palette](../../aspose.imaging/imageoptionsbase/palette/) { get; set; } | Gets or sets the color palette. | | [Positioning](../../aspose.imaging.imageoptions/vectorrasterizationoptions/positioning/) { get; set; } | Gets or sets the positioning. | | [ProgressEventHandler](../../aspose.imaging/imageoptionsbase/progresseventhandler/) { get; set; } | Gets or sets the progress event handler. | @@ -52,7 +52,7 @@ public class OdgRasterizationOptions : OdRasterizationOptions | Name | Description | | --- | --- | -| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Clones this instance. | +| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Creates a memberwise clone of this instance. | | [CopyTo](../../aspose.imaging.imageoptions/vectorrasterizationoptions/copyto/)(VectorRasterizationOptions) | Copies to. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | diff --git a/english/net/aspose.imaging.imageoptions/odrasterizationoptions/_index.md b/english/net/aspose.imaging.imageoptions/odrasterizationoptions/_index.md index 5ff41d3393..bc6d9cb9a5 100644 --- a/english/net/aspose.imaging.imageoptions/odrasterizationoptions/_index.md +++ b/english/net/aspose.imaging.imageoptions/odrasterizationoptions/_index.md @@ -34,9 +34,9 @@ public class OdRasterizationOptions : VectorRasterizationOptions | [FullFrame](../../aspose.imaging/imageoptionsbase/fullframe/) { get; set; } | Gets or sets a value indicating whether [full frame]. | | [KeepMetadata](../../aspose.imaging/imageoptionsbase/keepmetadata/) { get; set; } | Gets a value whether to keep original image metadata on export. | | [MultiPageOptions](../../aspose.imaging/imageoptionsbase/multipageoptions/) { get; set; } | The multipage options | -| [PageHeight](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pageheight/) { get; set; } | Gets or sets the page height. | -| [PageSize](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagesize/) { get; set; } | Gets or sets the page size. | -| [PageWidth](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagewidth/) { get; set; } | Gets or sets the page width. | +| [PageHeight](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pageheight/) { get; set; } | Gets or sets the page height. If the value is 0, the source image aspect ratio will be preserved. | +| [PageSize](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagesize/) { get; set; } | Gets or sets the page size. If one of [`SizeF`](../../aspose.imaging/sizef/) dimensions is 0, the source image aspect ratio will be preserved. | +| [PageWidth](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagewidth/) { get; set; } | Gets or sets the page width. If the value is 0, the source image aspect ratio will be preserved. | | virtual [Palette](../../aspose.imaging/imageoptionsbase/palette/) { get; set; } | Gets or sets the color palette. | | [Positioning](../../aspose.imaging.imageoptions/vectorrasterizationoptions/positioning/) { get; set; } | Gets or sets the positioning. | | [ProgressEventHandler](../../aspose.imaging/imageoptionsbase/progresseventhandler/) { get; set; } | Gets or sets the progress event handler. | @@ -52,7 +52,7 @@ public class OdRasterizationOptions : VectorRasterizationOptions | Name | Description | | --- | --- | -| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Clones this instance. | +| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Creates a memberwise clone of this instance. | | [CopyTo](../../aspose.imaging.imageoptions/vectorrasterizationoptions/copyto/)(VectorRasterizationOptions) | Copies to. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | diff --git a/english/net/aspose.imaging.imageoptions/otgrasterizationoptions/_index.md b/english/net/aspose.imaging.imageoptions/otgrasterizationoptions/_index.md index 0da1af04a5..9aff43cd26 100644 --- a/english/net/aspose.imaging.imageoptions/otgrasterizationoptions/_index.md +++ b/english/net/aspose.imaging.imageoptions/otgrasterizationoptions/_index.md @@ -34,9 +34,9 @@ public class OtgRasterizationOptions : OdRasterizationOptions | [FullFrame](../../aspose.imaging/imageoptionsbase/fullframe/) { get; set; } | Gets or sets a value indicating whether [full frame]. | | [KeepMetadata](../../aspose.imaging/imageoptionsbase/keepmetadata/) { get; set; } | Gets a value whether to keep original image metadata on export. | | [MultiPageOptions](../../aspose.imaging/imageoptionsbase/multipageoptions/) { get; set; } | The multipage options | -| [PageHeight](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pageheight/) { get; set; } | Gets or sets the page height. | -| [PageSize](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagesize/) { get; set; } | Gets or sets the page size. | -| [PageWidth](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagewidth/) { get; set; } | Gets or sets the page width. | +| [PageHeight](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pageheight/) { get; set; } | Gets or sets the page height. If the value is 0, the source image aspect ratio will be preserved. | +| [PageSize](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagesize/) { get; set; } | Gets or sets the page size. If one of [`SizeF`](../../aspose.imaging/sizef/) dimensions is 0, the source image aspect ratio will be preserved. | +| [PageWidth](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagewidth/) { get; set; } | Gets or sets the page width. If the value is 0, the source image aspect ratio will be preserved. | | virtual [Palette](../../aspose.imaging/imageoptionsbase/palette/) { get; set; } | Gets or sets the color palette. | | [Positioning](../../aspose.imaging.imageoptions/vectorrasterizationoptions/positioning/) { get; set; } | Gets or sets the positioning. | | [ProgressEventHandler](../../aspose.imaging/imageoptionsbase/progresseventhandler/) { get; set; } | Gets or sets the progress event handler. | @@ -52,7 +52,7 @@ public class OtgRasterizationOptions : OdRasterizationOptions | Name | Description | | --- | --- | -| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Clones this instance. | +| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Creates a memberwise clone of this instance. | | [CopyTo](../../aspose.imaging.imageoptions/vectorrasterizationoptions/copyto/)(VectorRasterizationOptions) | Copies to. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | diff --git a/english/net/aspose.imaging.imageoptions/pdfoptions/_index.md b/english/net/aspose.imaging.imageoptions/pdfoptions/_index.md index ed42e36e48..28467309b9 100644 --- a/english/net/aspose.imaging.imageoptions/pdfoptions/_index.md +++ b/english/net/aspose.imaging.imageoptions/pdfoptions/_index.md @@ -44,7 +44,7 @@ public class PdfOptions : ImageOptionsBase | Name | Description | | --- | --- | -| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Clones this instance. | +| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Creates a memberwise clone of this instance. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | ## Examples diff --git a/english/net/aspose.imaging.imageoptions/pngoptions/_index.md b/english/net/aspose.imaging.imageoptions/pngoptions/_index.md index c43e6243d5..e7e5556fe1 100644 --- a/english/net/aspose.imaging.imageoptions/pngoptions/_index.md +++ b/english/net/aspose.imaging.imageoptions/pngoptions/_index.md @@ -46,7 +46,7 @@ public class PngOptions : ImageOptionsBase | Name | Description | | --- | --- | -| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Clones this instance. | +| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Creates a memberwise clone of this instance. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | ## Fields diff --git a/english/net/aspose.imaging.imageoptions/psdoptions/_index.md b/english/net/aspose.imaging.imageoptions/psdoptions/_index.md index faaa7bf6df..e3d208d65c 100644 --- a/english/net/aspose.imaging.imageoptions/psdoptions/_index.md +++ b/english/net/aspose.imaging.imageoptions/psdoptions/_index.md @@ -50,7 +50,7 @@ public class PsdOptions : ImageOptionsBase | Name | Description | | --- | --- | -| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Clones this instance. | +| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Creates a memberwise clone of this instance. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | ## Examples diff --git a/english/net/aspose.imaging.imageoptions/svgoptions/_index.md b/english/net/aspose.imaging.imageoptions/svgoptions/_index.md index dd0e79473a..cc3711db0b 100644 --- a/english/net/aspose.imaging.imageoptions/svgoptions/_index.md +++ b/english/net/aspose.imaging.imageoptions/svgoptions/_index.md @@ -44,7 +44,7 @@ public class SvgOptions : ImageOptionsBase | Name | Description | | --- | --- | -| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Clones this instance. | +| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Creates a memberwise clone of this instance. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | ## Examples diff --git a/english/net/aspose.imaging.imageoptions/svgrasterizationoptions/_index.md b/english/net/aspose.imaging.imageoptions/svgrasterizationoptions/_index.md index c9cc3e5012..4c7db6d71b 100644 --- a/english/net/aspose.imaging.imageoptions/svgrasterizationoptions/_index.md +++ b/english/net/aspose.imaging.imageoptions/svgrasterizationoptions/_index.md @@ -34,9 +34,9 @@ public class SvgRasterizationOptions : VectorRasterizationOptions | [FullFrame](../../aspose.imaging/imageoptionsbase/fullframe/) { get; set; } | Gets or sets a value indicating whether [full frame]. | | [KeepMetadata](../../aspose.imaging/imageoptionsbase/keepmetadata/) { get; set; } | Gets a value whether to keep original image metadata on export. | | [MultiPageOptions](../../aspose.imaging/imageoptionsbase/multipageoptions/) { get; set; } | The multipage options | -| [PageHeight](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pageheight/) { get; set; } | Gets or sets the page height. | -| [PageSize](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagesize/) { get; set; } | Gets or sets the page size. | -| [PageWidth](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagewidth/) { get; set; } | Gets or sets the page width. | +| [PageHeight](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pageheight/) { get; set; } | Gets or sets the page height. If the value is 0, the source image aspect ratio will be preserved. | +| [PageSize](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagesize/) { get; set; } | Gets or sets the page size. If one of [`SizeF`](../../aspose.imaging/sizef/) dimensions is 0, the source image aspect ratio will be preserved. | +| [PageWidth](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagewidth/) { get; set; } | Gets or sets the page width. If the value is 0, the source image aspect ratio will be preserved. | | virtual [Palette](../../aspose.imaging/imageoptionsbase/palette/) { get; set; } | Gets or sets the color palette. | | [Positioning](../../aspose.imaging.imageoptions/vectorrasterizationoptions/positioning/) { get; set; } | Gets or sets the positioning. | | [ProgressEventHandler](../../aspose.imaging/imageoptionsbase/progresseventhandler/) { get; set; } | Gets or sets the progress event handler. | @@ -54,7 +54,7 @@ public class SvgRasterizationOptions : VectorRasterizationOptions | Name | Description | | --- | --- | -| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Clones this instance. | +| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Creates a memberwise clone of this instance. | | [CopyTo](../../aspose.imaging.imageoptions/vectorrasterizationoptions/copyto/)(VectorRasterizationOptions) | Copies to. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | diff --git a/english/net/aspose.imaging.imageoptions/tgaoptions/_index.md b/english/net/aspose.imaging.imageoptions/tgaoptions/_index.md index c5edb809f3..ca5f83d93c 100644 --- a/english/net/aspose.imaging.imageoptions/tgaoptions/_index.md +++ b/english/net/aspose.imaging.imageoptions/tgaoptions/_index.md @@ -41,7 +41,7 @@ public class TgaOptions : ImageOptionsBase | Name | Description | | --- | --- | -| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Clones this instance. | +| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Creates a memberwise clone of this instance. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | ## Examples diff --git a/english/net/aspose.imaging.imageoptions/vectorrasterizationoptions/_index.md b/english/net/aspose.imaging.imageoptions/vectorrasterizationoptions/_index.md index 9f90b8908a..80b495322b 100644 --- a/english/net/aspose.imaging.imageoptions/vectorrasterizationoptions/_index.md +++ b/english/net/aspose.imaging.imageoptions/vectorrasterizationoptions/_index.md @@ -1,14 +1,14 @@ --- title: Class VectorRasterizationOptions second_title: Aspose.Imaging for .NET API Reference -description: Aspose.Imaging.ImageOptions.VectorRasterizationOptions class. The vector rasterization options +description: Aspose.Imaging.ImageOptions.VectorRasterizationOptions class. The vector rasterization options. Please note that VectorRasterizationOptions will no longer derive from ImageOptionsBase since Aspose.Imaging 24.12 version type: docs weight: 10510 url: /net/aspose.imaging.imageoptions/vectorrasterizationoptions/ --- ## VectorRasterizationOptions class -The vector rasterization options. +The vector rasterization options. Please note that `VectorRasterizationOptions` will no longer derive from [`ImageOptionsBase`](../../aspose.imaging/imageoptionsbase/) since Aspose.Imaging 24.12 version. ```csharp public class VectorRasterizationOptions : ImageOptionsBase @@ -34,9 +34,9 @@ public class VectorRasterizationOptions : ImageOptionsBase | [FullFrame](../../aspose.imaging/imageoptionsbase/fullframe/) { get; set; } | Gets or sets a value indicating whether [full frame]. | | [KeepMetadata](../../aspose.imaging/imageoptionsbase/keepmetadata/) { get; set; } | Gets a value whether to keep original image metadata on export. | | [MultiPageOptions](../../aspose.imaging/imageoptionsbase/multipageoptions/) { get; set; } | The multipage options | -| [PageHeight](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pageheight/) { get; set; } | Gets or sets the page height. | -| [PageSize](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagesize/) { get; set; } | Gets or sets the page size. | -| [PageWidth](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagewidth/) { get; set; } | Gets or sets the page width. | +| [PageHeight](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pageheight/) { get; set; } | Gets or sets the page height. If the value is 0, the source image aspect ratio will be preserved. | +| [PageSize](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagesize/) { get; set; } | Gets or sets the page size. If one of [`SizeF`](../../aspose.imaging/sizef/) dimensions is 0, the source image aspect ratio will be preserved. | +| [PageWidth](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagewidth/) { get; set; } | Gets or sets the page width. If the value is 0, the source image aspect ratio will be preserved. | | virtual [Palette](../../aspose.imaging/imageoptionsbase/palette/) { get; set; } | Gets or sets the color palette. | | [Positioning](../../aspose.imaging.imageoptions/vectorrasterizationoptions/positioning/) { get; set; } | Gets or sets the positioning. | | [ProgressEventHandler](../../aspose.imaging/imageoptionsbase/progresseventhandler/) { get; set; } | Gets or sets the progress event handler. | @@ -52,7 +52,7 @@ public class VectorRasterizationOptions : ImageOptionsBase | Name | Description | | --- | --- | -| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Clones this instance. | +| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Creates a memberwise clone of this instance. | | [CopyTo](../../aspose.imaging.imageoptions/vectorrasterizationoptions/copyto/)(VectorRasterizationOptions) | Copies to. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | diff --git a/english/net/aspose.imaging.imageoptions/vectorrasterizationoptions/pageheight/_index.md b/english/net/aspose.imaging.imageoptions/vectorrasterizationoptions/pageheight/_index.md index f72d2aa351..5e6c72529d 100644 --- a/english/net/aspose.imaging.imageoptions/vectorrasterizationoptions/pageheight/_index.md +++ b/english/net/aspose.imaging.imageoptions/vectorrasterizationoptions/pageheight/_index.md @@ -1,14 +1,14 @@ --- title: VectorRasterizationOptions.PageHeight second_title: Aspose.Imaging for .NET API Reference -description: VectorRasterizationOptions property. Gets or sets the page height +description: VectorRasterizationOptions property. Gets or sets the page height. If the value is 0 the source image aspect ratio will be preserved type: docs weight: 70 url: /net/aspose.imaging.imageoptions/vectorrasterizationoptions/pageheight/ --- ## VectorRasterizationOptions.PageHeight property -Gets or sets the page height. +Gets or sets the page height. If the value is 0, the source image aspect ratio will be preserved. ```csharp public float PageHeight { get; set; } diff --git a/english/net/aspose.imaging.imageoptions/vectorrasterizationoptions/pagesize/_index.md b/english/net/aspose.imaging.imageoptions/vectorrasterizationoptions/pagesize/_index.md index c0bbaf6eaf..6e32eaca95 100644 --- a/english/net/aspose.imaging.imageoptions/vectorrasterizationoptions/pagesize/_index.md +++ b/english/net/aspose.imaging.imageoptions/vectorrasterizationoptions/pagesize/_index.md @@ -1,14 +1,14 @@ --- title: VectorRasterizationOptions.PageSize second_title: Aspose.Imaging for .NET API Reference -description: VectorRasterizationOptions property. Gets or sets the page size +description: VectorRasterizationOptions property. Gets or sets the page size. If one of SizeF dimensions is 0 the source image aspect ratio will be preserved type: docs weight: 80 url: /net/aspose.imaging.imageoptions/vectorrasterizationoptions/pagesize/ --- ## VectorRasterizationOptions.PageSize property -Gets or sets the page size. +Gets or sets the page size. If one of [`SizeF`](../../../aspose.imaging/sizef/) dimensions is 0, the source image aspect ratio will be preserved. ```csharp public SizeF PageSize { get; set; } diff --git a/english/net/aspose.imaging.imageoptions/vectorrasterizationoptions/pagewidth/_index.md b/english/net/aspose.imaging.imageoptions/vectorrasterizationoptions/pagewidth/_index.md index 52deabb1e9..69a5c3bea7 100644 --- a/english/net/aspose.imaging.imageoptions/vectorrasterizationoptions/pagewidth/_index.md +++ b/english/net/aspose.imaging.imageoptions/vectorrasterizationoptions/pagewidth/_index.md @@ -1,14 +1,14 @@ --- title: VectorRasterizationOptions.PageWidth second_title: Aspose.Imaging for .NET API Reference -description: VectorRasterizationOptions property. Gets or sets the page width +description: VectorRasterizationOptions property. Gets or sets the page width. If the value is 0 the source image aspect ratio will be preserved type: docs weight: 90 url: /net/aspose.imaging.imageoptions/vectorrasterizationoptions/pagewidth/ --- ## VectorRasterizationOptions.PageWidth property -Gets or sets the page width. +Gets or sets the page width. If the value is 0, the source image aspect ratio will be preserved. ```csharp public float PageWidth { get; set; } diff --git a/english/net/aspose.imaging.imageoptions/webpoptions/_index.md b/english/net/aspose.imaging.imageoptions/webpoptions/_index.md index 2de1bceeff..ff98d6c823 100644 --- a/english/net/aspose.imaging.imageoptions/webpoptions/_index.md +++ b/english/net/aspose.imaging.imageoptions/webpoptions/_index.md @@ -44,7 +44,7 @@ public class WebPOptions : ImageOptionsBase | Name | Description | | --- | --- | -| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Clones this instance. | +| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Creates a memberwise clone of this instance. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | ## Examples diff --git a/english/net/aspose.imaging.imageoptions/wmfoptions/_index.md b/english/net/aspose.imaging.imageoptions/wmfoptions/_index.md index 215142b850..4a41843726 100644 --- a/english/net/aspose.imaging.imageoptions/wmfoptions/_index.md +++ b/english/net/aspose.imaging.imageoptions/wmfoptions/_index.md @@ -41,7 +41,7 @@ public class WmfOptions : MetafileOptions | Name | Description | | --- | --- | -| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Clones this instance. | +| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Creates a memberwise clone of this instance. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | ## Examples diff --git a/english/net/aspose.imaging.imageoptions/wmfrasterizationoptions/_index.md b/english/net/aspose.imaging.imageoptions/wmfrasterizationoptions/_index.md index 8fd32318c2..50601a6724 100644 --- a/english/net/aspose.imaging.imageoptions/wmfrasterizationoptions/_index.md +++ b/english/net/aspose.imaging.imageoptions/wmfrasterizationoptions/_index.md @@ -34,9 +34,9 @@ public class WmfRasterizationOptions : MetafileRasterizationOptions | [FullFrame](../../aspose.imaging/imageoptionsbase/fullframe/) { get; set; } | Gets or sets a value indicating whether [full frame]. | | [KeepMetadata](../../aspose.imaging/imageoptionsbase/keepmetadata/) { get; set; } | Gets a value whether to keep original image metadata on export. | | [MultiPageOptions](../../aspose.imaging/imageoptionsbase/multipageoptions/) { get; set; } | The multipage options | -| [PageHeight](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pageheight/) { get; set; } | Gets or sets the page height. | -| [PageSize](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagesize/) { get; set; } | Gets or sets the page size. | -| [PageWidth](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagewidth/) { get; set; } | Gets or sets the page width. | +| [PageHeight](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pageheight/) { get; set; } | Gets or sets the page height. If the value is 0, the source image aspect ratio will be preserved. | +| [PageSize](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagesize/) { get; set; } | Gets or sets the page size. If one of [`SizeF`](../../aspose.imaging/sizef/) dimensions is 0, the source image aspect ratio will be preserved. | +| [PageWidth](../../aspose.imaging.imageoptions/vectorrasterizationoptions/pagewidth/) { get; set; } | Gets or sets the page width. If the value is 0, the source image aspect ratio will be preserved. | | virtual [Palette](../../aspose.imaging/imageoptionsbase/palette/) { get; set; } | Gets or sets the color palette. | | [Positioning](../../aspose.imaging.imageoptions/vectorrasterizationoptions/positioning/) { get; set; } | Gets or sets the positioning. | | [ProgressEventHandler](../../aspose.imaging/imageoptionsbase/progresseventhandler/) { get; set; } | Gets or sets the progress event handler. | @@ -53,7 +53,7 @@ public class WmfRasterizationOptions : MetafileRasterizationOptions | Name | Description | | --- | --- | -| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Clones this instance. | +| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Creates a memberwise clone of this instance. | | [CopyTo](../../aspose.imaging.imageoptions/vectorrasterizationoptions/copyto/)(VectorRasterizationOptions) | Copies to. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | diff --git a/english/net/aspose.imaging/cmykcolorhelper/tocmykicc/_index.md b/english/net/aspose.imaging/cmykcolorhelper/tocmykicc/_index.md index 22b077150d..3db9c5f668 100644 --- a/english/net/aspose.imaging/cmykcolorhelper/tocmykicc/_index.md +++ b/english/net/aspose.imaging/cmykcolorhelper/tocmykicc/_index.md @@ -1,11 +1,37 @@ --- title: CmykColorHelper.ToCmykIcc second_title: Aspose.Imaging for .NET API Reference -description: CmykColorHelper method. The conversion from ARGB colors to CMYK colors using Icc conversion with custom profiles +description: CmykColorHelper method. The conversion from ARGB color to CMYK color using Icc conversion with custom profiles type: docs weight: 130 url: /net/aspose.imaging/cmykcolorhelper/tocmykicc/ --- +## ToCmykIcc(int, Stream, Stream) {#tocmykicc_3} + +The conversion from ARGB color to CMYK color using Icc conversion with custom profiles. + +```csharp +public static int ToCmykIcc(int argb, Stream rgbIccStream, Stream cmykIccStream) +``` + +| Parameter | Type | Description | +| --- | --- | --- | +| argb | Int32 | The ARGB color. | +| rgbIccStream | Stream | The stream containing RGB Icc profile. | +| cmykIccStream | Stream | The stream containing CMYK Icc profile. | + +### Return Value + +The CMYK color presented as a 32-bit integer value. + +### See Also + +* class [CmykColorHelper](../) +* namespace [Aspose.Imaging](../../cmykcolorhelper/) +* assembly [Aspose.Imaging](../../../) + +--- + ## ToCmykIcc(Color[], Stream, Stream) {#tocmykicc_5} The conversion from ARGB colors to CMYK colors using Icc conversion with custom profiles. @@ -294,30 +320,4 @@ using (System.IO.Stream cmykProfileStream = System.IO.File.OpenRead(dir + "ISOco * namespace [Aspose.Imaging](../../cmykcolorhelper/) * assembly [Aspose.Imaging](../../../) ---- - -## ToCmykIcc(int, Stream, Stream) {#tocmykicc_3} - -The conversion from ARGB color to CMYK color using Icc conversion with custom profiles. - -```csharp -public static int ToCmykIcc(int argb, Stream rgbIccStream, Stream cmykIccStream) -``` - -| Parameter | Type | Description | -| --- | --- | --- | -| argb | Int32 | The ARGB color. | -| rgbIccStream | Stream | The stream containing RGB Icc profile. | -| cmykIccStream | Stream | The stream containing CMYK Icc profile. | - -### Return Value - -The CMYK color presented as a 32-bit integer value. - -### See Also - -* class [CmykColorHelper](../) -* namespace [Aspose.Imaging](../../cmykcolorhelper/) -* assembly [Aspose.Imaging](../../../) - diff --git a/english/net/aspose.imaging/cmykcolorhelper/topsdcmykicc/_index.md b/english/net/aspose.imaging/cmykcolorhelper/topsdcmykicc/_index.md index 3aea94997a..9ea8737f87 100644 --- a/english/net/aspose.imaging/cmykcolorhelper/topsdcmykicc/_index.md +++ b/english/net/aspose.imaging/cmykcolorhelper/topsdcmykicc/_index.md @@ -1,22 +1,22 @@ --- title: CmykColorHelper.ToPsdCmykIcc second_title: Aspose.Imaging for .NET API Reference -description: CmykColorHelper method. The conversion from ARGB colors to CMYK colors using Icc conversion with custom profiles. Uses PSD CMYK format KCMY byte order with inverted channel values +description: CmykColorHelper method. The conversion from ARGB color to CMYK color using Icc conversion with custom profiles type: docs weight: 150 url: /net/aspose.imaging/cmykcolorhelper/topsdcmykicc/ --- -## ToPsdCmykIcc(int[], Stream, Stream) {#topsdcmykicc_3} +## ToPsdCmykIcc(int, Stream, Stream) {#topsdcmykicc_1} -The conversion from ARGB colors to CMYK colors using Icc conversion with custom profiles. Uses PSD CMYK format KCMY byte order with inverted channel values. +The conversion from ARGB color to CMYK color using Icc conversion with custom profiles. ```csharp -public static int[] ToPsdCmykIcc(int[] pixels, Stream rgbIccStream, Stream cmykIccStream) +public static int ToPsdCmykIcc(int pixel, Stream rgbIccStream, Stream cmykIccStream) ``` | Parameter | Type | Description | | --- | --- | --- | -| pixels | Int32[] | The ARGB colors. | +| pixel | Int32 | The ARGB color. | | rgbIccStream | Stream | The stream containing RGB Icc profile. | | cmykIccStream | Stream | The stream containing CMYK Icc profile. | @@ -32,17 +32,19 @@ The CMYK colors presented as 32-bit integer values in KCMY byte order with inver --- -## ToPsdCmykIcc(int[]) {#topsdcmykicc_2} +## ToPsdCmykIcc(int[], Stream, Stream) {#topsdcmykicc_3} -The conversion from ARGB colors to CMYK colors using Icc conversion with default profiles. Uses PSD CMYK format KCMY byte order with inverted channel values. +The conversion from ARGB colors to CMYK colors using Icc conversion with custom profiles. Uses PSD CMYK format KCMY byte order with inverted channel values. ```csharp -public static int[] ToPsdCmykIcc(int[] pixels) +public static int[] ToPsdCmykIcc(int[] pixels, Stream rgbIccStream, Stream cmykIccStream) ``` | Parameter | Type | Description | | --- | --- | --- | | pixels | Int32[] | The ARGB colors. | +| rgbIccStream | Stream | The stream containing RGB Icc profile. | +| cmykIccStream | Stream | The stream containing CMYK Icc profile. | ### Return Value @@ -56,21 +58,21 @@ The CMYK colors presented as 32-bit integer values in KCMY byte order with inver --- -## ToPsdCmykIcc(int) {#topsdcmykicc} +## ToPsdCmykIcc(int[]) {#topsdcmykicc_2} -The conversion from ARGB color to CMYK color using Icc conversion with default profiles. Uses PSD CMYK format KCMY byte order with inverted channel values. +The conversion from ARGB colors to CMYK colors using Icc conversion with default profiles. Uses PSD CMYK format KCMY byte order with inverted channel values. ```csharp -public static int ToPsdCmykIcc(int argb) +public static int[] ToPsdCmykIcc(int[] pixels) ``` | Parameter | Type | Description | | --- | --- | --- | -| argb | Int32 | The ARGB color. | +| pixels | Int32[] | The ARGB colors. | ### Return Value -The CMYK color presented as a 32-bit integer value in KCMY byte order with inverted channel values. +The CMYK colors presented as 32-bit integer values in KCMY byte order with inverted channel values.. ### See Also @@ -80,23 +82,21 @@ The CMYK color presented as a 32-bit integer value in KCMY byte order with inver --- -## ToPsdCmykIcc(int, Stream, Stream) {#topsdcmykicc_1} +## ToPsdCmykIcc(int) {#topsdcmykicc} -The conversion from ARGB color to CMYK color using Icc conversion with custom profiles. +The conversion from ARGB color to CMYK color using Icc conversion with default profiles. Uses PSD CMYK format KCMY byte order with inverted channel values. ```csharp -public static int ToPsdCmykIcc(int pixel, Stream rgbIccStream, Stream cmykIccStream) +public static int ToPsdCmykIcc(int argb) ``` | Parameter | Type | Description | | --- | --- | --- | -| pixel | Int32 | The ARGB color. | -| rgbIccStream | Stream | The stream containing RGB Icc profile. | -| cmykIccStream | Stream | The stream containing CMYK Icc profile. | +| argb | Int32 | The ARGB color. | ### Return Value -The CMYK colors presented as 32-bit integer values in KCMY byte order with inverted channel values.. +The CMYK color presented as a 32-bit integer value in KCMY byte order with inverted channel values. ### See Also diff --git a/english/net/aspose.imaging/image/_index.md b/english/net/aspose.imaging/image/_index.md index 783e3ffdf7..533acd4579 100644 --- a/english/net/aspose.imaging/image/_index.md +++ b/english/net/aspose.imaging/image/_index.md @@ -42,9 +42,9 @@ public abstract class Image : DataStreamSupporter, IObjectWithBounds | --- | --- | | static [Create](../../aspose.imaging/image/create/#create_2)(Image[]) | Creates a new image using the specified images as pages | | static [Create](../../aspose.imaging/image/create/#create)(MultipageCreateOptions) | Creates the specified multipage create options. | -| static [Create](../../aspose.imaging/image/create/#create_4)(string[]) | Creates the specified files. | +| static [Create](../../aspose.imaging/image/create/#create_4)(string[]) | Creates the multipage image containing the specified files. | | static [Create](../../aspose.imaging/image/create/#create_3)(Image[], bool) | Creates a new image the specified images as pages. | -| static [Create](../../aspose.imaging/image/create/#create_5)(string[], bool) | Creates the specified files. | +| static [Create](../../aspose.imaging/image/create/#create_5)(string[], bool) | Creates the multipage image containing the specified files. | | static [Create](../../aspose.imaging/image/create/#create_1)(ImageOptionsBase, int, int) | Creates a new image using the specified create options. | | static [Load](../../aspose.imaging/image/load/#load)(Stream) | Loads a new image from the specified stream. | | static [Load](../../aspose.imaging/image/load/#load_2)(string) | Loads a new image from the specified file path or URL. If *filePath* is a file path the method just opens the file. If *filePath* is an URL, the method downloads the file, stores it as a temporary one, and opens it. | @@ -52,6 +52,8 @@ public abstract class Image : DataStreamSupporter, IObjectWithBounds | static [Load](../../aspose.imaging/image/load/#load_3)(string, LoadOptions) | Loads a new image from the specified file path or URL. If *filePath* is a file path the method just opens the file. If *filePath* is an URL, the method downloads the file, stores it as a temporary one, and opens it. | | abstract [CacheData](../../aspose.imaging/datastreamsupporter/cachedata/)() | Caches the data and ensures no additional data loading will be performed from the underlying [`DataStreamContainer`](../datastreamsupporter/datastreamcontainer/). | | [CanSave](../../aspose.imaging/image/cansave/)(ImageOptionsBase) | Determines whether image can be saved to the specified file format represented by the passed save options. | +| virtual [Crop](../../aspose.imaging/image/crop/#crop)(Rectangle) | Crops the specified rectangle. | +| virtual [Crop](../../aspose.imaging/image/crop/#crop_1)(int, int, int, int) | Crop image with shifts. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | | virtual [GetDefaultOptions](../../aspose.imaging/image/getdefaultoptions/)(object[]) | Gets the default options. | | virtual [GetOriginalOptions](../../aspose.imaging/image/getoriginaloptions/)() | Gets the options based on the original file settings. This can be helpful to keep bit-depth and other parameters of the original image unchanged. For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the [`Save`](../datastreamsupporter/save/) method, the output PNG image with 8-bit per pixel will be produced. To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them to the [`Save`](./save/) method as the second parameter. | @@ -59,13 +61,14 @@ public abstract class Image : DataStreamSupporter, IObjectWithBounds | virtual [RemoveMetadata](../../aspose.imaging/image/removemetadata/)() | Removes metadata. | | [Resize](../../aspose.imaging/image/resize/#resize)(int, int) | Resizes the image. The default NearestNeighbourResample is used. | | abstract [Resize](../../aspose.imaging/image/resize/#resize_1)(int, int, ImageResizeSettings) | Resizes the image. | -| abstract [Resize](../../aspose.imaging/image/resize/#resize_2)(int, int, ResizeType) | Resizes the image. | +| virtual [Resize](../../aspose.imaging/image/resize/#resize_2)(int, int, ResizeType) | Resizes the image. | | [ResizeHeightProportionally](../../aspose.imaging/image/resizeheightproportionally/#resizeheightproportionally)(int) | Resizes the height proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeHeightProportionally](../../aspose.imaging/image/resizeheightproportionally/#resizeheightproportionally_1)(int, ImageResizeSettings) | Resizes the height proportionally. | | virtual [ResizeHeightProportionally](../../aspose.imaging/image/resizeheightproportionally/#resizeheightproportionally_2)(int, ResizeType) | Resizes the height proportionally. | | [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/#resizewidthproportionally)(int) | Resizes the width proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/#resizewidthproportionally_1)(int, ImageResizeSettings) | Resizes the width proportionally. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/#resizewidthproportionally_2)(int, ResizeType) | Resizes the width proportionally. | +| virtual [Rotate](../../aspose.imaging/image/rotate/)(float) | Rotate image around the center. | | abstract [RotateFlip](../../aspose.imaging/image/rotateflip/)(RotateFlipType) | Rotates, flips, or rotates and flips the image. | | [Save](../../aspose.imaging/image/save/#save)() | Saves the image data to the underlying stream. | | [Save](../../aspose.imaging/datastreamsupporter/save/)(Stream) | Saves the object's data to the specified stream. | diff --git a/english/net/aspose.imaging/image/canload/_index.md b/english/net/aspose.imaging/image/canload/_index.md index 0f7767c9cd..ab5f17bb76 100644 --- a/english/net/aspose.imaging/image/canload/_index.md +++ b/english/net/aspose.imaging/image/canload/_index.md @@ -3,7 +3,7 @@ title: Image.CanLoad second_title: Aspose.Imaging for .NET API Reference description: Image method. Determines whether image can be loaded from the specified file path type: docs -weight: 280 +weight: 300 url: /net/aspose.imaging/image/canload/ --- ## CanLoad(string) {#canload_2} diff --git a/english/net/aspose.imaging/image/create/_index.md b/english/net/aspose.imaging/image/create/_index.md index 349b75ae83..3211f80b6f 100644 --- a/english/net/aspose.imaging/image/create/_index.md +++ b/english/net/aspose.imaging/image/create/_index.md @@ -109,7 +109,7 @@ The multipage image ## Create(string[], bool) {#create_5} -Creates the specified files. +Creates the multipage image containing the specified files. ```csharp public static Image Create(string[] files, bool throwExceptionOnLoadError) @@ -134,7 +134,7 @@ The multipage image ## Create(string[]) {#create_4} -Creates the specified files. +Creates the multipage image containing the specified files. ```csharp public static Image Create(string[] files) diff --git a/english/net/aspose.imaging/image/crop/_index.md b/english/net/aspose.imaging/image/crop/_index.md new file mode 100644 index 0000000000..1c14790b7e --- /dev/null +++ b/english/net/aspose.imaging/image/crop/_index.md @@ -0,0 +1,92 @@ +--- +title: Image.Crop +second_title: Aspose.Imaging for .NET API Reference +description: Image method. Crops the specified rectangle +type: docs +weight: 180 +url: /net/aspose.imaging/image/crop/ +--- +## Crop(Rectangle) {#crop} + +Crops the specified rectangle. + +```csharp +public virtual void Crop(Rectangle rectangle) +``` + +| Parameter | Type | Description | +| --- | --- | --- | +| rectangle | Rectangle | The rectangle. | + +## Examples + +The following example crops a raster image. The cropping area is be specified via Aspose.Imaging.Rectangle. + +```csharp +[C#] + +string dir = @"c:\temp\"; + +using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(dir + "sample.png")) +{ + // Crop the image. The cropping area is the rectangular central area of the image. + Aspose.Imaging.Rectangle area = new Aspose.Imaging.Rectangle(rasterImage.Width / 4, rasterImage.Height / 4, rasterImage.Width / 2, rasterImage.Height / 2); + image.Crop(area); + + // Save the cropped image to PNG + image.Save(dir + "sample.Crop.png"); +} +``` + +### See Also + +* struct [Rectangle](../../rectangle/) +* class [Image](../) +* namespace [Aspose.Imaging](../../image/) +* assembly [Aspose.Imaging](../../../) + +--- + +## Crop(int, int, int, int) {#crop_1} + +Crop image with shifts. + +```csharp +public virtual void Crop(int leftShift, int rightShift, int topShift, int bottomShift) +``` + +| Parameter | Type | Description | +| --- | --- | --- | +| leftShift | Int32 | The left shift. | +| rightShift | Int32 | The right shift. | +| topShift | Int32 | The top shift. | +| bottomShift | Int32 | The bottom shift. | + +## Examples + +The following example crops a raster image. The cropping area is specified via Left, Top, Right, Bottom margins. + +```csharp +[C#] + +string dir = @"c:\temp\"; + +using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(dir + "sample.png")) +{ + // Crop again. Set a margin of 10% of the image size. + int horizontalMargin = rasterImage.Width / 10; + int verticalMargin = rasterImage.Height / 10; + image.Crop(horizontalMargin, horizontalMargin, verticalMargin, verticalMargin); + + // Save the cropped image to PNG. + image.Save(dir + "sample.Crop.png"); +} +``` + +### See Also + +* class [Image](../) +* namespace [Aspose.Imaging](../../image/) +* assembly [Aspose.Imaging](../../../) + + diff --git a/english/net/aspose.imaging/image/getdefaultoptions/_index.md b/english/net/aspose.imaging/image/getdefaultoptions/_index.md index f5355df6d6..86fef95638 100644 --- a/english/net/aspose.imaging/image/getdefaultoptions/_index.md +++ b/english/net/aspose.imaging/image/getdefaultoptions/_index.md @@ -3,7 +3,7 @@ title: Image.GetDefaultOptions second_title: Aspose.Imaging for .NET API Reference description: Image method. Gets the default options type: docs -weight: 180 +weight: 190 url: /net/aspose.imaging/image/getdefaultoptions/ --- ## Image.GetDefaultOptions method diff --git a/english/net/aspose.imaging/image/getfileformat/_index.md b/english/net/aspose.imaging/image/getfileformat/_index.md index 905365ed7c..5e348653c3 100644 --- a/english/net/aspose.imaging/image/getfileformat/_index.md +++ b/english/net/aspose.imaging/image/getfileformat/_index.md @@ -3,7 +3,7 @@ title: Image.GetFileFormat second_title: Aspose.Imaging for .NET API Reference description: Image method. Gets the file format type: docs -weight: 290 +weight: 310 url: /net/aspose.imaging/image/getfileformat/ --- ## GetFileFormat(string) {#getfileformat_1} diff --git a/english/net/aspose.imaging/image/getfittingrectangle/_index.md b/english/net/aspose.imaging/image/getfittingrectangle/_index.md index 8ad7e58a52..705f179f2a 100644 --- a/english/net/aspose.imaging/image/getfittingrectangle/_index.md +++ b/english/net/aspose.imaging/image/getfittingrectangle/_index.md @@ -3,7 +3,7 @@ title: Image.GetFittingRectangle second_title: Aspose.Imaging for .NET API Reference description: Image method. Gets rectangle which fits the current image type: docs -weight: 300 +weight: 320 url: /net/aspose.imaging/image/getfittingrectangle/ --- ## GetFittingRectangle(Rectangle, int, int) {#getfittingrectangle} diff --git a/english/net/aspose.imaging/image/getoriginaloptions/_index.md b/english/net/aspose.imaging/image/getoriginaloptions/_index.md index a4e7290e3d..91f188f5a6 100644 --- a/english/net/aspose.imaging/image/getoriginaloptions/_index.md +++ b/english/net/aspose.imaging/image/getoriginaloptions/_index.md @@ -3,7 +3,7 @@ title: Image.GetOriginalOptions second_title: Aspose.Imaging for .NET API Reference description: Image method. Gets the options based on the original file settings. This can be helpful to keep bitdepth and other parameters of the original image unchanged. For example if we load a blackwhite PNG image with 1 bit per pixel and then save it using the Save method the output PNG image with 8bit per pixel will be produced. To avoid it and save PNG image with 1bit per pixel use this method to get corresponding saving options and pass them to the Save method as the second parameter type: docs -weight: 190 +weight: 200 url: /net/aspose.imaging/image/getoriginaloptions/ --- ## Image.GetOriginalOptions method diff --git a/english/net/aspose.imaging/image/getproportionalheight/_index.md b/english/net/aspose.imaging/image/getproportionalheight/_index.md index dc4da3cc07..3ec038fd9a 100644 --- a/english/net/aspose.imaging/image/getproportionalheight/_index.md +++ b/english/net/aspose.imaging/image/getproportionalheight/_index.md @@ -3,7 +3,7 @@ title: Image.GetProportionalHeight second_title: Aspose.Imaging for .NET API Reference description: Image method. Gets a proportional height type: docs -weight: 310 +weight: 330 url: /net/aspose.imaging/image/getproportionalheight/ --- ## Image.GetProportionalHeight method diff --git a/english/net/aspose.imaging/image/getproportionalwidth/_index.md b/english/net/aspose.imaging/image/getproportionalwidth/_index.md index 2ee81ec9a0..fe7a3e7284 100644 --- a/english/net/aspose.imaging/image/getproportionalwidth/_index.md +++ b/english/net/aspose.imaging/image/getproportionalwidth/_index.md @@ -3,7 +3,7 @@ title: Image.GetProportionalWidth second_title: Aspose.Imaging for .NET API Reference description: Image method. Gets a proportional width type: docs -weight: 320 +weight: 340 url: /net/aspose.imaging/image/getproportionalwidth/ --- ## Image.GetProportionalWidth method diff --git a/english/net/aspose.imaging/image/getserializedstream/_index.md b/english/net/aspose.imaging/image/getserializedstream/_index.md index 47f50ae62b..82e6c29e0f 100644 --- a/english/net/aspose.imaging/image/getserializedstream/_index.md +++ b/english/net/aspose.imaging/image/getserializedstream/_index.md @@ -3,7 +3,7 @@ title: Image.GetSerializedStream second_title: Aspose.Imaging for .NET API Reference description: Image method. Converts to aps type: docs -weight: 200 +weight: 210 url: /net/aspose.imaging/image/getserializedstream/ --- ## Image.GetSerializedStream method diff --git a/english/net/aspose.imaging/image/removemetadata/_index.md b/english/net/aspose.imaging/image/removemetadata/_index.md index 1579ceb3f7..6fdef26b4f 100644 --- a/english/net/aspose.imaging/image/removemetadata/_index.md +++ b/english/net/aspose.imaging/image/removemetadata/_index.md @@ -3,7 +3,7 @@ title: Image.RemoveMetadata second_title: Aspose.Imaging for .NET API Reference description: Image method. Removes metadata type: docs -weight: 210 +weight: 220 url: /net/aspose.imaging/image/removemetadata/ --- ## Image.RemoveMetadata method diff --git a/english/net/aspose.imaging/image/resize/_index.md b/english/net/aspose.imaging/image/resize/_index.md index 145f773727..4989b142d6 100644 --- a/english/net/aspose.imaging/image/resize/_index.md +++ b/english/net/aspose.imaging/image/resize/_index.md @@ -1,132 +1,136 @@ --- title: Image.Resize second_title: Aspose.Imaging for .NET API Reference -description: Image method. Resizes the image. The default NearestNeighbourResample is used +description: Image method. Resizes the image type: docs -weight: 220 +weight: 230 url: /net/aspose.imaging/image/resize/ --- -## Resize(int, int) {#resize} +## Resize(int, int, ResizeType) {#resize_2} -Resizes the image. The default NearestNeighbourResample is used. +Resizes the image. ```csharp -public void Resize(int newWidth, int newHeight) +public virtual void Resize(int newWidth, int newHeight, ResizeType resizeType) ``` | Parameter | Type | Description | | --- | --- | --- | | newWidth | Int32 | The new width. | | newHeight | Int32 | The new height. | +| resizeType | ResizeType | The resize type. | ## Examples -The following example shows how to resize a metafile (WMF and EMF). +Resize EPS image and export it to PNG format. ```csharp [C#] -string dir = "c:\\aspose.imaging\\issues\\net\\3280\\"; -string[] fileNames = new[] { "image3.emf", "image4.wmf" }; -foreach (string fileName in fileNames) +// Load EPS image +using (var image = Image.Load("AstrixObelix.eps")) { - string inputFilePath = dir + fileName; - string outputFilePath = dir + "Downscale_" + fileName; + // Resize the image using the Mitchell cubic interpolation method + image.Resize(400, 400, ResizeType.Mitchell); - using (Aspose.Imaging.FileFormats.Emf.MetaImage image = (Aspose.Imaging.FileFormats.Emf.MetaImage)Aspose.Imaging.Image.Load(inputFilePath)) - { - image.Resize(image.Width / 4, image.Height / 4); - image.Save(outputFilePath); - } + // Export image to PNG format + image.Save("ExportResult.png", new PngOptions()); } ``` -The following example shows how to resize SVG image and save it to PNG. +Resize image using specific Resize Type. ```csharp [C#] -string dir = "c:\\aspose.imaging\\net\\issues\\3549"; -string[] fileNames = new string[] +using (var image = Image.Load("Photo.jpg")) { - "Logotype.svg", - "sample_car.svg", - "rg1024_green_grapes.svg", - "MidMarkerFigure.svg", - "embeddedFonts.svg" -}; + image.Resize(640, 480, ResizeType.CatmullRom); + image.Save("ResizedPhoto.jpg"); -Aspose.Imaging.PointF[] scales = new Aspose.Imaging.PointF[] -{ - new Aspose.Imaging.PointF(0.5f, 0.5f), - new Aspose.Imaging.PointF(1f, 1f), - new Aspose.Imaging.PointF(2f, 2f), - new Aspose.Imaging.PointF(3.5f, 9.2f), -}; + image.Resize(1024, 768, ResizeType.CubicConvolution); + image.Save("ResizedPhoto2.jpg"); -foreach (string inputFile in fileNames) -{ - foreach (Aspose.Imaging.PointF scale in scales) + var resizeSettings = new ImageResizeSettings { - string outputFile = string.Format("{0}_{1}_{2}.png", inputFile, scale.X.ToString(System.Globalization.CultureInfo.InvariantCulture), scale.Y.ToString(System.Globalization.CultureInfo.InvariantCulture)); - using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(System.IO.Path.Combine(dir, inputFile))) - { - image.Resize((int)(image.Width * scale.X), (int)(image.Height * scale.Y)); - image.Save(System.IO.Path.Combine(dir, outputFile), new Aspose.Imaging.ImageOptions.PngOptions()); - } - } + Mode = ResizeType.CubicBSpline, + FilterType = ImageFilterType.SmallRectangular + }; + + image.Resize(800, 800, resizeSettings); + image.Save("ResizedPhoto3.jpg"); } ``` -### See Also - -* class [Image](../) -* namespace [Aspose.Imaging](../../image/) -* assembly [Aspose.Imaging](../../../) +This example loads a WMF image and resizes it using various resizing methods. ---- +```csharp +[C#] -## Resize(int, int, ResizeType) {#resize_2} +string dir = "c:\\temp\\"; -Resizes the image. +using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(dir + "sample.wmf")) +{ + // Scale up by 2 times using Nearest Neighbour resampling. + image.Resize(image.Width * 2, image.Height * 2, Aspose.Imaging.ResizeType.NearestNeighbourResample); +} -```csharp -public abstract void Resize(int newWidth, int newHeight, ResizeType resizeType) -``` +using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(dir + "sample.wmf")) +{ + // Scale down by 2 times using Nearest Neighbour resampling. + image.Resize(image.Width / 2, image.Height / 2, Aspose.Imaging.ResizeType.NearestNeighbourResample); +} -| Parameter | Type | Description | -| --- | --- | --- | -| newWidth | Int32 | The new width. | -| newHeight | Int32 | The new height. | -| resizeType | ResizeType | The resize type. | +using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(dir + "sample.wmf")) +{ + // Scale up by 2 times using Bilinear resampling. + image.Resize(image.Width * 2, image.Height * 2, Aspose.Imaging.ResizeType.BilinearResample); +} -## Examples +using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(dir + "sample.wmf")) +{ + // Scale down by 2 times using Bilinear resampling. + image.Resize(image.Width / 2, image.Height / 2, Aspose.Imaging.ResizeType.BilinearResample); +} +``` -Resize image using specific Resize Type. +This example loads an image and resizes it using various resizing methods. ```csharp [C#] -using (var image = Image.Load("Photo.jpg")) +string dir = "c:\\temp\\"; + +using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(dir + "sample.gif")) { - image.Resize(640, 480, ResizeType.CatmullRom); - image.Save("ResizedPhoto.jpg"); + // Scale up by 2 times using Nearest Neighbour resampling. + image.Resize(image.Width* 2, image.Height* 2, Aspose.Imaging.ResizeType.NearestNeighbourResample); + image.Save(dir + "upsample.nearestneighbour.gif"); +} - image.Resize(1024, 768, ResizeType.CubicConvolution); - image.Save("ResizedPhoto2.jpg"); +using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(dir + "sample.gif")) +{ + // Scale down by 2 times using Nearest Neighbour resampling. + image.Resize(image.Width / 2, image.Height / 2, Aspose.Imaging.ResizeType.NearestNeighbourResample); + image.Save(dir + "downsample.nearestneighbour.gif"); +} - var resizeSettings = new ImageResizeSettings - { - Mode = ResizeType.CubicBSpline, - FilterType = ImageFilterType.SmallRectangular - }; +using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(dir + "sample.gif")) +{ + // Scale up by 2 times using Bilinear resampling. + image.Resize(image.Width* 2, image.Height* 2, Aspose.Imaging.ResizeType.BilinearResample); + image.Save(dir + "upsample.bilinear.gif"); +} - image.Resize(800, 800, resizeSettings); - image.Save("ResizedPhoto3.jpg"); +using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(dir + "sample.gif")) +{ + // Scale down by 2 times using Bilinear resampling. + image.Resize(image.Width / 2, image.Height / 2, Aspose.Imaging.ResizeType.BilinearResample); + image.Save(dir + "downsample.bilinear.gif"); } ``` -This example loads an image and resizes it using various resizing methods. +This example loads a raster image and resizes it using various resizing methods. ```csharp [C#] @@ -136,7 +140,7 @@ string dir = "c:\\temp\\"; using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(dir + "sample.gif")) { // Scale up by 2 times using Nearest Neighbour resampling. - image.Resize(image.Width* 2, image.Height* 2, Aspose.Imaging.ResizeType.NearestNeighbourResample); + image.Resize(image.Width * 2, image.Height * 2, Aspose.Imaging.ResizeType.NearestNeighbourResample); image.Save(dir + "upsample.nearestneighbour.gif"); } @@ -150,7 +154,7 @@ using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(dir + "sample.gif" using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(dir + "sample.gif")) { // Scale up by 2 times using Bilinear resampling. - image.Resize(image.Width* 2, image.Height* 2, Aspose.Imaging.ResizeType.BilinearResample); + image.Resize(image.Width * 2, image.Height * 2, Aspose.Imaging.ResizeType.BilinearResample); image.Save(dir + "upsample.bilinear.gif"); } @@ -162,6 +166,50 @@ using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(dir + "sample.gif" } ``` +This example loads a multi-page ODG image and resizes it using various resizing methods. + +```csharp +[C#] + +string dir = "c:\\temp\\"; + +using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(dir + "sample.odg")) +{ + // Scale up by 2 times using Nearest Neighbour resampling. + image.Resize(image.Width* 2, image.Height* 2, Aspose.Imaging.ResizeType.NearestNeighbourResample); + + // Save to PNG with default options. + image.Save(dir + "upsample.nearestneighbour.png", new Aspose.Imaging.ImageOptions.PngOptions()); +} + +using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(dir + "sample.odg")) +{ + // Scale down by 2 times using Nearest Neighbour resampling. + image.Resize(image.Width / 2, image.Height / 2, Aspose.Imaging.ResizeType.NearestNeighbourResample); + + // Save to PNG with default options. + image.Save(dir + "downsample.nearestneighbour.png", new Aspose.Imaging.ImageOptions.PngOptions()); +} + +using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(dir + "sample.odg")) +{ + // Scale up by 2 times using Bilinear resampling. + image.Resize(image.Width* 2, image.Height* 2, Aspose.Imaging.ResizeType.BilinearResample); + + // Save to PNG with default options. + image.Save(dir + "upsample.bilinear.png", new Aspose.Imaging.ImageOptions.PngOptions()); +} + +using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(dir + "sample.odg")) +{ + // Scale down by 2 times using Bilinear resampling. + image.Resize(image.Width / 2, image.Height / 2, Aspose.Imaging.ResizeType.BilinearResample); + + // Save to PNG with default options. + image.Save(dir + "downsample.bilinear.png", new Aspose.Imaging.ImageOptions.PngOptions()); +} +``` + Using a segment mask to speed up the segmentation process ```csharp @@ -263,6 +311,35 @@ using (var image = Image.Load("Photo.jpg")) } ``` +Resize EPS image using advanced settings. + +```csharp +[C#] + +// Load EPS image +using (var image = Image.Load("AstrixObelix.eps")) +{ + // Resize the image using advanced resize settings + image.Resize(400, 400, new ImageResizeSettings + { + // Set the interpolation mode + Mode = ResizeType.LanczosResample, + + // Set the type of the filter + FilterType = ImageFilterType.SmallRectangular, + + // Sets the color compare method + ColorCompareMethod = ColorCompareMethod.Euclidian, + + // Set the color quantization method + ColorQuantizationMethod = ColorQuantizationMethod.Popularity + }); + + // Export image to PNG format + image.Save("ExportResult.png", new PngOptions()); +} +``` + This example loads an image and resizes it using various resizing settings. ```csharp @@ -302,4 +379,84 @@ using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(dir + "sample.gif" * namespace [Aspose.Imaging](../../image/) * assembly [Aspose.Imaging](../../../) +--- + +## Resize(int, int) {#resize} + +Resizes the image. The default NearestNeighbourResample is used. + +```csharp +public void Resize(int newWidth, int newHeight) +``` + +| Parameter | Type | Description | +| --- | --- | --- | +| newWidth | Int32 | The new width. | +| newHeight | Int32 | The new height. | + +## Examples + +The following example shows how to resize a metafile (WMF and EMF). + +```csharp +[C#] + +string dir = "c:\\aspose.imaging\\issues\\net\\3280\\"; +string[] fileNames = new[] { "image3.emf", "image4.wmf" }; +foreach (string fileName in fileNames) +{ + string inputFilePath = dir + fileName; + string outputFilePath = dir + "Downscale_" + fileName; + + using (Aspose.Imaging.FileFormats.Emf.MetaImage image = (Aspose.Imaging.FileFormats.Emf.MetaImage)Aspose.Imaging.Image.Load(inputFilePath)) + { + image.Resize(image.Width / 4, image.Height / 4); + image.Save(outputFilePath); + } +} +``` + +The following example shows how to resize SVG image and save it to PNG. + +```csharp +[C#] + +string dir = "c:\\aspose.imaging\\net\\issues\\3549"; +string[] fileNames = new string[] +{ + "Logotype.svg", + "sample_car.svg", + "rg1024_green_grapes.svg", + "MidMarkerFigure.svg", + "embeddedFonts.svg" +}; + +Aspose.Imaging.PointF[] scales = new Aspose.Imaging.PointF[] +{ + new Aspose.Imaging.PointF(0.5f, 0.5f), + new Aspose.Imaging.PointF(1f, 1f), + new Aspose.Imaging.PointF(2f, 2f), + new Aspose.Imaging.PointF(3.5f, 9.2f), +}; + +foreach (string inputFile in fileNames) +{ + foreach (Aspose.Imaging.PointF scale in scales) + { + string outputFile = string.Format("{0}_{1}_{2}.png", inputFile, scale.X.ToString(System.Globalization.CultureInfo.InvariantCulture), scale.Y.ToString(System.Globalization.CultureInfo.InvariantCulture)); + using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(System.IO.Path.Combine(dir, inputFile))) + { + image.Resize((int)(image.Width * scale.X), (int)(image.Height * scale.Y)); + image.Save(System.IO.Path.Combine(dir, outputFile), new Aspose.Imaging.ImageOptions.PngOptions()); + } + } +} +``` + +### See Also + +* class [Image](../) +* namespace [Aspose.Imaging](../../image/) +* assembly [Aspose.Imaging](../../../) + diff --git a/english/net/aspose.imaging/image/resizeheightproportionally/_index.md b/english/net/aspose.imaging/image/resizeheightproportionally/_index.md index bd7af8e00b..18440e19a8 100644 --- a/english/net/aspose.imaging/image/resizeheightproportionally/_index.md +++ b/english/net/aspose.imaging/image/resizeheightproportionally/_index.md @@ -3,7 +3,7 @@ title: Image.ResizeHeightProportionally second_title: Aspose.Imaging for .NET API Reference description: Image method. Resizes the height proportionally. The default NearestNeighbourResample is used type: docs -weight: 230 +weight: 240 url: /net/aspose.imaging/image/resizeheightproportionally/ --- ## ResizeHeightProportionally(int) {#resizeheightproportionally} diff --git a/english/net/aspose.imaging/image/resizewidthproportionally/_index.md b/english/net/aspose.imaging/image/resizewidthproportionally/_index.md index 05a47b01cc..43e47710bf 100644 --- a/english/net/aspose.imaging/image/resizewidthproportionally/_index.md +++ b/english/net/aspose.imaging/image/resizewidthproportionally/_index.md @@ -3,7 +3,7 @@ title: Image.ResizeWidthProportionally second_title: Aspose.Imaging for .NET API Reference description: Image method. Resizes the width proportionally. The default NearestNeighbourResample is used type: docs -weight: 240 +weight: 250 url: /net/aspose.imaging/image/resizewidthproportionally/ --- ## ResizeWidthProportionally(int) {#resizewidthproportionally} diff --git a/english/net/aspose.imaging/image/rotate/_index.md b/english/net/aspose.imaging/image/rotate/_index.md new file mode 100644 index 0000000000..2fa90175c0 --- /dev/null +++ b/english/net/aspose.imaging/image/rotate/_index.md @@ -0,0 +1,27 @@ +--- +title: Image.Rotate +second_title: Aspose.Imaging for .NET API Reference +description: Image method. Rotate image around the center +type: docs +weight: 260 +url: /net/aspose.imaging/image/rotate/ +--- +## Image.Rotate method + +Rotate image around the center. + +```csharp +public virtual void Rotate(float angle) +``` + +| Parameter | Type | Description | +| --- | --- | --- | +| angle | Single | The rotate angle in degrees. Positive values will rotate clockwise. | + +### See Also + +* class [Image](../) +* namespace [Aspose.Imaging](../../image/) +* assembly [Aspose.Imaging](../../../) + + diff --git a/english/net/aspose.imaging/image/rotateflip/_index.md b/english/net/aspose.imaging/image/rotateflip/_index.md index 492dac3cf8..c1d3ec4b95 100644 --- a/english/net/aspose.imaging/image/rotateflip/_index.md +++ b/english/net/aspose.imaging/image/rotateflip/_index.md @@ -3,7 +3,7 @@ title: Image.RotateFlip second_title: Aspose.Imaging for .NET API Reference description: Image method. Rotates flips or rotates and flips the image type: docs -weight: 250 +weight: 270 url: /net/aspose.imaging/image/rotateflip/ --- ## Image.RotateFlip method @@ -62,6 +62,32 @@ foreach (Aspose.Imaging.RotateFlipType rotateFlipType in rotateFlipTypes) } ``` +This example loads a ODG image, rotates it by 90 degrees clockwise and optionally flips the image horizontally and(or) vertically. + +```csharp +[C#] + +string dir = "c:\\temp\\"; + +Aspose.Imaging.RotateFlipType[] rotateFlipTypes = new Aspose.Imaging.RotateFlipType[] +{ + Aspose.Imaging.RotateFlipType.Rotate90FlipNone, + Aspose.Imaging.RotateFlipType.Rotate90FlipX, + Aspose.Imaging.RotateFlipType.Rotate90FlipXY, + Aspose.Imaging.RotateFlipType.Rotate90FlipY, +}; + +foreach (Aspose.Imaging.Image rotateFlipType in rotateFlipTypes) +{ + // Rotate, flip and save to the output file. + using (Aspose.Imaging.Image image = (Aspose.Imaging.FileFormats.OpenDocument.OdImage)Aspose.Imaging.Image.Load(dir + "sample.odg")) + { + image.RotateFlip(rotateFlipType); + image.Save(dir + "sample." + rotateFlipType + ".png", new Aspose.Imaging.ImageOptions.PngOptions()); + } +} +``` + ### See Also * enum [RotateFlipType](../../rotatefliptype/) diff --git a/english/net/aspose.imaging/image/save/_index.md b/english/net/aspose.imaging/image/save/_index.md index 0ba00dcc65..daa2ffdeef 100644 --- a/english/net/aspose.imaging/image/save/_index.md +++ b/english/net/aspose.imaging/image/save/_index.md @@ -3,7 +3,7 @@ title: Image.Save second_title: Aspose.Imaging for .NET API Reference description: Image method. Saves the image data to the underlying stream type: docs -weight: 260 +weight: 280 url: /net/aspose.imaging/image/save/ --- ## Save() {#save} diff --git a/english/net/aspose.imaging/image/setpalette/_index.md b/english/net/aspose.imaging/image/setpalette/_index.md index 462185e18a..5d5c425238 100644 --- a/english/net/aspose.imaging/image/setpalette/_index.md +++ b/english/net/aspose.imaging/image/setpalette/_index.md @@ -3,7 +3,7 @@ title: Image.SetPalette second_title: Aspose.Imaging for .NET API Reference description: Image method. Sets the image palette type: docs -weight: 270 +weight: 290 url: /net/aspose.imaging/image/setpalette/ --- ## Image.SetPalette method diff --git a/english/net/aspose.imaging/imageoptionsbase/_index.md b/english/net/aspose.imaging/imageoptionsbase/_index.md index 7cd8d34ee7..9a345e61a4 100644 --- a/english/net/aspose.imaging/imageoptionsbase/_index.md +++ b/english/net/aspose.imaging/imageoptionsbase/_index.md @@ -11,7 +11,7 @@ url: /net/aspose.imaging/imageoptionsbase/ The image base options. ```csharp -public abstract class ImageOptionsBase : DisposableObject, IHasXmpData +public abstract class ImageOptionsBase : DisposableObject, ICloneable, IHasXmpData ``` ## Properties @@ -34,7 +34,7 @@ public abstract class ImageOptionsBase : DisposableObject, IHasXmpData | Name | Description | | --- | --- | -| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Clones this instance. | +| virtual [Clone](../../aspose.imaging/imageoptionsbase/clone/)() | Creates a memberwise clone of this instance. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | ### See Also diff --git a/english/net/aspose.imaging/imageoptionsbase/clone/_index.md b/english/net/aspose.imaging/imageoptionsbase/clone/_index.md index 5ba9cf9231..222a6da8d7 100644 --- a/english/net/aspose.imaging/imageoptionsbase/clone/_index.md +++ b/english/net/aspose.imaging/imageoptionsbase/clone/_index.md @@ -1,14 +1,14 @@ --- title: ImageOptionsBase.Clone second_title: Aspose.Imaging for .NET API Reference -description: ImageOptionsBase method. Clones this instance +description: ImageOptionsBase method. Creates a memberwise clone of this instance type: docs weight: 110 url: /net/aspose.imaging/imageoptionsbase/clone/ --- ## ImageOptionsBase.Clone method -Clones this instance. +Creates a memberwise clone of this instance. ```csharp public virtual ImageOptionsBase Clone() @@ -16,7 +16,7 @@ public virtual ImageOptionsBase Clone() ### Return Value -Returns shallow copy of this instance +A memberwise clone of this instance. ### See Also diff --git a/english/net/aspose.imaging/rastercachedimage/_index.md b/english/net/aspose.imaging/rastercachedimage/_index.md index f518102de5..c04caba9c1 100644 --- a/english/net/aspose.imaging/rastercachedimage/_index.md +++ b/english/net/aspose.imaging/rastercachedimage/_index.md @@ -70,7 +70,7 @@ public abstract class RasterCachedImage : RasterImage | override [CacheData](../../aspose.imaging/rastercachedimage/cachedata/)() | Caches the data and ensures no additional data loading will be performed from the underlying [`DataStreamContainer`](../datastreamsupporter/datastreamcontainer/). | | [CanSave](../../aspose.imaging/image/cansave/)(ImageOptionsBase) | Determines whether image can be saved to the specified file format represented by the passed save options. | | override [Crop](../../aspose.imaging/rastercachedimage/crop/#crop)(Rectangle) | Cropping the image. | -| virtual [Crop](../../aspose.imaging/rasterimage/crop/)(int, int, int, int) | Crop image with shifts. | +| virtual [Crop](../../aspose.imaging/image/crop/)(int, int, int, int) | Crop image with shifts. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | | [Dither](../../aspose.imaging/rasterimage/dither/)(DitheringMethod, int) | Performs dithering on the current image. | | override [Dither](../../aspose.imaging/rastercachedimage/dither/#dither_1)(DitheringMethod, int, IColorPalette) | Performs dithering on the current image. | @@ -114,7 +114,7 @@ public abstract class RasterCachedImage : RasterImage | [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int) | Resizes the width proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ImageResizeSettings) | Resizes the width proportionally. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ResizeType) | Resizes the width proportionally. | -| virtual [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | +| override [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | | override [Rotate](../../aspose.imaging/rastercachedimage/rotate/#rotate_1)(float, bool, Color) | Rotate image around the center. | | override [RotateFlip](../../aspose.imaging/rastercachedimage/rotateflip/)(RotateFlipType) | Rotates, flips, or rotates and flips the image. | | [Save](../../aspose.imaging/image/save/)() | Saves the image data to the underlying stream. | diff --git a/english/net/aspose.imaging/rastercachedmultipageimage/_index.md b/english/net/aspose.imaging/rastercachedmultipageimage/_index.md index 850df96945..606e2af695 100644 --- a/english/net/aspose.imaging/rastercachedmultipageimage/_index.md +++ b/english/net/aspose.imaging/rastercachedmultipageimage/_index.md @@ -117,7 +117,7 @@ public abstract class RasterCachedMultipageImage : RasterCachedImage, IMultipage | [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int) | Resizes the width proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ImageResizeSettings) | Resizes the width proportionally. | | override [ResizeWidthProportionally](../../aspose.imaging/rastercachedmultipageimage/resizewidthproportionally/#resizewidthproportionally_2)(int, ResizeType) | Resizes the width proportionally. | -| virtual [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | +| override [Rotate](../../aspose.imaging/rasterimage/rotate/)(float) | Rotate image around the center. | | override [Rotate](../../aspose.imaging/rastercachedmultipageimage/rotate/#rotate_1)(float, bool, Color) | [`Rotate`](./rotate/) image around the center. | | override [RotateFlip](../../aspose.imaging/rastercachedmultipageimage/rotateflip/)(RotateFlipType) | Rotates, flips, or rotates and flips all pages. | | [Save](../../aspose.imaging/image/save/)() | Saves the image data to the underlying stream. | diff --git a/english/net/aspose.imaging/rasterimage/_index.md b/english/net/aspose.imaging/rasterimage/_index.md index f629f3c028..f2e8a34053 100644 --- a/english/net/aspose.imaging/rasterimage/_index.md +++ b/english/net/aspose.imaging/rasterimage/_index.md @@ -69,8 +69,8 @@ public abstract class RasterImage : Image, IHasXmpData, IRasterImageArgb32PixelL | virtual [Blend](../../aspose.imaging/rasterimage/blend/#blend)(Point, RasterImage, Rectangle, byte) | Blends this image instance with the *overlay* image. | | abstract [CacheData](../../aspose.imaging/datastreamsupporter/cachedata/)() | Caches the data and ensures no additional data loading will be performed from the underlying [`DataStreamContainer`](../datastreamsupporter/datastreamcontainer/). | | [CanSave](../../aspose.imaging/image/cansave/)(ImageOptionsBase) | Determines whether image can be saved to the specified file format represented by the passed save options. | -| virtual [Crop](../../aspose.imaging/rasterimage/crop/#crop)(Rectangle) | Crops the specified rectangle. | -| virtual [Crop](../../aspose.imaging/rasterimage/crop/#crop_1)(int, int, int, int) | Crop image with shifts. | +| virtual [Crop](../../aspose.imaging/image/crop/)(Rectangle) | Crops the specified rectangle. | +| virtual [Crop](../../aspose.imaging/image/crop/)(int, int, int, int) | Crop image with shifts. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | | [Dither](../../aspose.imaging/rasterimage/dither/#dither)(DitheringMethod, int) | Performs dithering on the current image. | | abstract [Dither](../../aspose.imaging/rasterimage/dither/#dither_1)(DitheringMethod, int, IColorPalette) | Performs dithering on the current image. | @@ -107,14 +107,14 @@ public abstract class RasterImage : Image, IHasXmpData, IRasterImageArgb32PixelL | virtual [ReplaceNonTransparentColors](../../aspose.imaging/rasterimage/replacenontransparentcolors/#replacenontransparentcolors_1)(int) | Replaces all non-transparent colors with new color and preserves original alpha value to save smooth edges. Note: if you use it on images without transparency, all colors will be replaced with a single one. | | [Resize](../../aspose.imaging/image/resize/)(int, int) | Resizes the image. The default NearestNeighbourResample is used. | | override [Resize](../../aspose.imaging/rasterimage/resize/#resize_1)(int, int, ImageResizeSettings) | Resizes the image with extended options. | -| override [Resize](../../aspose.imaging/rasterimage/resize/#resize_2)(int, int, ResizeType) | Resizes the image. | +| virtual [Resize](../../aspose.imaging/image/resize/)(int, int, ResizeType) | Resizes the image. | | [ResizeHeightProportionally](../../aspose.imaging/image/resizeheightproportionally/)(int) | Resizes the height proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeHeightProportionally](../../aspose.imaging/image/resizeheightproportionally/)(int, ImageResizeSettings) | Resizes the height proportionally. | | virtual [ResizeHeightProportionally](../../aspose.imaging/image/resizeheightproportionally/)(int, ResizeType) | Resizes the height proportionally. | | [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int) | Resizes the width proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ImageResizeSettings) | Resizes the width proportionally. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ResizeType) | Resizes the width proportionally. | -| virtual [Rotate](../../aspose.imaging/rasterimage/rotate/#rotate)(float) | Rotate image around the center. | +| override [Rotate](../../aspose.imaging/rasterimage/rotate/#rotate)(float) | Rotate image around the center. | | virtual [Rotate](../../aspose.imaging/rasterimage/rotate/#rotate_1)(float, bool, Color) | Rotate image around the center. | | abstract [RotateFlip](../../aspose.imaging/image/rotateflip/)(RotateFlipType) | Rotates, flips, or rotates and flips the image. | | [Save](../../aspose.imaging/image/save/)() | Saves the image data to the underlying stream. | diff --git a/english/net/aspose.imaging/rasterimage/dither/_index.md b/english/net/aspose.imaging/rasterimage/dither/_index.md index d5f33af422..487172536c 100644 --- a/english/net/aspose.imaging/rasterimage/dither/_index.md +++ b/english/net/aspose.imaging/rasterimage/dither/_index.md @@ -3,7 +3,7 @@ title: RasterImage.Dither second_title: Aspose.Imaging for .NET API Reference description: RasterImage method. Performs dithering on the current image type: docs -weight: 270 +weight: 260 url: /net/aspose.imaging/rasterimage/dither/ --- ## Dither(DitheringMethod, int, IColorPalette) {#dither_1} diff --git a/english/net/aspose.imaging/rasterimage/filter/_index.md b/english/net/aspose.imaging/rasterimage/filter/_index.md index 6e8ba0376e..3b8305ce88 100644 --- a/english/net/aspose.imaging/rasterimage/filter/_index.md +++ b/english/net/aspose.imaging/rasterimage/filter/_index.md @@ -3,7 +3,7 @@ title: RasterImage.Filter second_title: Aspose.Imaging for .NET API Reference description: RasterImage method. Filters the specified rectangle type: docs -weight: 280 +weight: 270 url: /net/aspose.imaging/rasterimage/filter/ --- ## RasterImage.Filter method diff --git a/english/net/aspose.imaging/rasterimage/getargb32pixel/_index.md b/english/net/aspose.imaging/rasterimage/getargb32pixel/_index.md index 1e7011510d..ae75725faf 100644 --- a/english/net/aspose.imaging/rasterimage/getargb32pixel/_index.md +++ b/english/net/aspose.imaging/rasterimage/getargb32pixel/_index.md @@ -3,7 +3,7 @@ title: RasterImage.GetArgb32Pixel second_title: Aspose.Imaging for .NET API Reference description: RasterImage method. Gets an image 32bit ARGB pixel type: docs -weight: 290 +weight: 280 url: /net/aspose.imaging/rasterimage/getargb32pixel/ --- ## RasterImage.GetArgb32Pixel method diff --git a/english/net/aspose.imaging/rasterimage/getdefaultargb32pixels/_index.md b/english/net/aspose.imaging/rasterimage/getdefaultargb32pixels/_index.md index 7805766582..dda7d39bed 100644 --- a/english/net/aspose.imaging/rasterimage/getdefaultargb32pixels/_index.md +++ b/english/net/aspose.imaging/rasterimage/getdefaultargb32pixels/_index.md @@ -3,7 +3,7 @@ title: RasterImage.GetDefaultArgb32Pixels second_title: Aspose.Imaging for .NET API Reference description: RasterImage method. Gets the default 32bit ARGB pixels array type: docs -weight: 300 +weight: 290 url: /net/aspose.imaging/rasterimage/getdefaultargb32pixels/ --- ## RasterImage.GetDefaultArgb32Pixels method diff --git a/english/net/aspose.imaging/rasterimage/getdefaultpixels/_index.md b/english/net/aspose.imaging/rasterimage/getdefaultpixels/_index.md index df96c6631c..95209b5ad1 100644 --- a/english/net/aspose.imaging/rasterimage/getdefaultpixels/_index.md +++ b/english/net/aspose.imaging/rasterimage/getdefaultpixels/_index.md @@ -3,7 +3,7 @@ title: RasterImage.GetDefaultPixels second_title: Aspose.Imaging for .NET API Reference description: RasterImage method. Gets the default pixels array using partial pixel loader type: docs -weight: 310 +weight: 300 url: /net/aspose.imaging/rasterimage/getdefaultpixels/ --- ## RasterImage.GetDefaultPixels method diff --git a/english/net/aspose.imaging/rasterimage/getdefaultrawdata/_index.md b/english/net/aspose.imaging/rasterimage/getdefaultrawdata/_index.md index ee0a802f42..22145c2f0e 100644 --- a/english/net/aspose.imaging/rasterimage/getdefaultrawdata/_index.md +++ b/english/net/aspose.imaging/rasterimage/getdefaultrawdata/_index.md @@ -3,7 +3,7 @@ title: RasterImage.GetDefaultRawData second_title: Aspose.Imaging for .NET API Reference description: RasterImage method. Gets the default raw data array using partial pixel loader type: docs -weight: 320 +weight: 310 url: /net/aspose.imaging/rasterimage/getdefaultrawdata/ --- ## GetDefaultRawData(Rectangle, IPartialRawDataLoader, RawDataSettings) {#getdefaultrawdata_1} diff --git a/english/net/aspose.imaging/rasterimage/getmodifydate/_index.md b/english/net/aspose.imaging/rasterimage/getmodifydate/_index.md index cd098bb184..d84553c32f 100644 --- a/english/net/aspose.imaging/rasterimage/getmodifydate/_index.md +++ b/english/net/aspose.imaging/rasterimage/getmodifydate/_index.md @@ -3,7 +3,7 @@ title: RasterImage.GetModifyDate second_title: Aspose.Imaging for .NET API Reference description: RasterImage method. Gets the date and time the resource image was last modified type: docs -weight: 330 +weight: 320 url: /net/aspose.imaging/rasterimage/getmodifydate/ --- ## RasterImage.GetModifyDate method diff --git a/english/net/aspose.imaging/rasterimage/getpixel/_index.md b/english/net/aspose.imaging/rasterimage/getpixel/_index.md index 4e6442b55a..391e69750e 100644 --- a/english/net/aspose.imaging/rasterimage/getpixel/_index.md +++ b/english/net/aspose.imaging/rasterimage/getpixel/_index.md @@ -3,7 +3,7 @@ title: RasterImage.GetPixel second_title: Aspose.Imaging for .NET API Reference description: RasterImage method. Gets an image pixel type: docs -weight: 340 +weight: 330 url: /net/aspose.imaging/rasterimage/getpixel/ --- ## RasterImage.GetPixel method diff --git a/english/net/aspose.imaging/rasterimage/getskewangle/_index.md b/english/net/aspose.imaging/rasterimage/getskewangle/_index.md index e6203acb90..81e79f2e77 100644 --- a/english/net/aspose.imaging/rasterimage/getskewangle/_index.md +++ b/english/net/aspose.imaging/rasterimage/getskewangle/_index.md @@ -3,7 +3,7 @@ title: RasterImage.GetSkewAngle second_title: Aspose.Imaging for .NET API Reference description: RasterImage method. Gets the skew angle. This method is applicable to scanned text documents to determine the skew angle when scanning type: docs -weight: 350 +weight: 340 url: /net/aspose.imaging/rasterimage/getskewangle/ --- ## RasterImage.GetSkewAngle method diff --git a/english/net/aspose.imaging/rasterimage/grayscale/_index.md b/english/net/aspose.imaging/rasterimage/grayscale/_index.md index 4743c7cbec..664c21fec2 100644 --- a/english/net/aspose.imaging/rasterimage/grayscale/_index.md +++ b/english/net/aspose.imaging/rasterimage/grayscale/_index.md @@ -3,7 +3,7 @@ title: RasterImage.Grayscale second_title: Aspose.Imaging for .NET API Reference description: RasterImage method. Transformation of an image to its grayscale representation type: docs -weight: 360 +weight: 350 url: /net/aspose.imaging/rasterimage/grayscale/ --- ## RasterImage.Grayscale method diff --git a/english/net/aspose.imaging/rasterimage/loadargb32pixels/_index.md b/english/net/aspose.imaging/rasterimage/loadargb32pixels/_index.md index 08a37c6b33..d1e77e8b1c 100644 --- a/english/net/aspose.imaging/rasterimage/loadargb32pixels/_index.md +++ b/english/net/aspose.imaging/rasterimage/loadargb32pixels/_index.md @@ -3,7 +3,7 @@ title: RasterImage.LoadArgb32Pixels second_title: Aspose.Imaging for .NET API Reference description: RasterImage method. Loads 32bit ARGB pixels type: docs -weight: 370 +weight: 360 url: /net/aspose.imaging/rasterimage/loadargb32pixels/ --- ## RasterImage.LoadArgb32Pixels method diff --git a/english/net/aspose.imaging/rasterimage/loadargb64pixels/_index.md b/english/net/aspose.imaging/rasterimage/loadargb64pixels/_index.md index 079745374c..3163f6e7f9 100644 --- a/english/net/aspose.imaging/rasterimage/loadargb64pixels/_index.md +++ b/english/net/aspose.imaging/rasterimage/loadargb64pixels/_index.md @@ -3,7 +3,7 @@ title: RasterImage.LoadArgb64Pixels second_title: Aspose.Imaging for .NET API Reference description: RasterImage method. Loads 64bit ARGB pixels type: docs -weight: 380 +weight: 370 url: /net/aspose.imaging/rasterimage/loadargb64pixels/ --- ## RasterImage.LoadArgb64Pixels method diff --git a/english/net/aspose.imaging/rasterimage/loadcmyk32pixels/_index.md b/english/net/aspose.imaging/rasterimage/loadcmyk32pixels/_index.md index 66b0b0e488..1dd4de190f 100644 --- a/english/net/aspose.imaging/rasterimage/loadcmyk32pixels/_index.md +++ b/english/net/aspose.imaging/rasterimage/loadcmyk32pixels/_index.md @@ -3,7 +3,7 @@ title: RasterImage.LoadCmyk32Pixels second_title: Aspose.Imaging for .NET API Reference description: RasterImage method. Loads pixels in CMYK format type: docs -weight: 390 +weight: 380 url: /net/aspose.imaging/rasterimage/loadcmyk32pixels/ --- ## RasterImage.LoadCmyk32Pixels method diff --git a/english/net/aspose.imaging/rasterimage/loadpartialargb32pixels/_index.md b/english/net/aspose.imaging/rasterimage/loadpartialargb32pixels/_index.md index 1013f708dc..219054e6e9 100644 --- a/english/net/aspose.imaging/rasterimage/loadpartialargb32pixels/_index.md +++ b/english/net/aspose.imaging/rasterimage/loadpartialargb32pixels/_index.md @@ -3,7 +3,7 @@ title: RasterImage.LoadPartialArgb32Pixels second_title: Aspose.Imaging for .NET API Reference description: RasterImage method. Loads 32bit ARGB pixels partially by packs type: docs -weight: 400 +weight: 390 url: /net/aspose.imaging/rasterimage/loadpartialargb32pixels/ --- ## RasterImage.LoadPartialArgb32Pixels method diff --git a/english/net/aspose.imaging/rasterimage/loadpartialargb64pixels/_index.md b/english/net/aspose.imaging/rasterimage/loadpartialargb64pixels/_index.md index 6be9371ad9..48d537b4b6 100644 --- a/english/net/aspose.imaging/rasterimage/loadpartialargb64pixels/_index.md +++ b/english/net/aspose.imaging/rasterimage/loadpartialargb64pixels/_index.md @@ -3,7 +3,7 @@ title: RasterImage.LoadPartialArgb64Pixels second_title: Aspose.Imaging for .NET API Reference description: RasterImage method. Loads 64bit ARGB pixels partially by packs type: docs -weight: 410 +weight: 400 url: /net/aspose.imaging/rasterimage/loadpartialargb64pixels/ --- ## RasterImage.LoadPartialArgb64Pixels method diff --git a/english/net/aspose.imaging/rasterimage/loadpartialpixels/_index.md b/english/net/aspose.imaging/rasterimage/loadpartialpixels/_index.md index cf6efce2a4..eec5ad6530 100644 --- a/english/net/aspose.imaging/rasterimage/loadpartialpixels/_index.md +++ b/english/net/aspose.imaging/rasterimage/loadpartialpixels/_index.md @@ -3,7 +3,7 @@ title: RasterImage.LoadPartialPixels second_title: Aspose.Imaging for .NET API Reference description: RasterImage method. Loads pixels partially by packs type: docs -weight: 420 +weight: 410 url: /net/aspose.imaging/rasterimage/loadpartialpixels/ --- ## RasterImage.LoadPartialPixels method diff --git a/english/net/aspose.imaging/rasterimage/loadpixels/_index.md b/english/net/aspose.imaging/rasterimage/loadpixels/_index.md index 61a502c125..45f301bc75 100644 --- a/english/net/aspose.imaging/rasterimage/loadpixels/_index.md +++ b/english/net/aspose.imaging/rasterimage/loadpixels/_index.md @@ -3,7 +3,7 @@ title: RasterImage.LoadPixels second_title: Aspose.Imaging for .NET API Reference description: RasterImage method. Loads pixels type: docs -weight: 430 +weight: 420 url: /net/aspose.imaging/rasterimage/loadpixels/ --- ## RasterImage.LoadPixels method diff --git a/english/net/aspose.imaging/rasterimage/loadrawdata/_index.md b/english/net/aspose.imaging/rasterimage/loadrawdata/_index.md index 1968bc175e..ac4e0f1d25 100644 --- a/english/net/aspose.imaging/rasterimage/loadrawdata/_index.md +++ b/english/net/aspose.imaging/rasterimage/loadrawdata/_index.md @@ -3,7 +3,7 @@ title: RasterImage.LoadRawData second_title: Aspose.Imaging for .NET API Reference description: RasterImage method. Loads raw data type: docs -weight: 440 +weight: 430 url: /net/aspose.imaging/rasterimage/loadrawdata/ --- ## LoadRawData(Rectangle, RawDataSettings, IPartialRawDataLoader) {#loadrawdata} diff --git a/english/net/aspose.imaging/rasterimage/normalizeangle/_index.md b/english/net/aspose.imaging/rasterimage/normalizeangle/_index.md index 285ff70e06..4e2f50748f 100644 --- a/english/net/aspose.imaging/rasterimage/normalizeangle/_index.md +++ b/english/net/aspose.imaging/rasterimage/normalizeangle/_index.md @@ -3,7 +3,7 @@ title: RasterImage.NormalizeAngle second_title: Aspose.Imaging for .NET API Reference description: RasterImage method. Normalizes the angle. This method is applicable to scanned text documents to get rid of the skewed scan. This method uses GetSkewAngle and Rotate methods type: docs -weight: 450 +weight: 440 url: /net/aspose.imaging/rasterimage/normalizeangle/ --- ## NormalizeAngle() {#normalizeangle} diff --git a/english/net/aspose.imaging/rasterimage/readargb32scanline/_index.md b/english/net/aspose.imaging/rasterimage/readargb32scanline/_index.md index 75934855ff..4a6902c8a9 100644 --- a/english/net/aspose.imaging/rasterimage/readargb32scanline/_index.md +++ b/english/net/aspose.imaging/rasterimage/readargb32scanline/_index.md @@ -3,7 +3,7 @@ title: RasterImage.ReadArgb32ScanLine second_title: Aspose.Imaging for .NET API Reference description: RasterImage method. Reads the whole scan line by the specified scan line index type: docs -weight: 460 +weight: 450 url: /net/aspose.imaging/rasterimage/readargb32scanline/ --- ## RasterImage.ReadArgb32ScanLine method diff --git a/english/net/aspose.imaging/rasterimage/readscanline/_index.md b/english/net/aspose.imaging/rasterimage/readscanline/_index.md index 1d5a43a0bc..23fecab9dd 100644 --- a/english/net/aspose.imaging/rasterimage/readscanline/_index.md +++ b/english/net/aspose.imaging/rasterimage/readscanline/_index.md @@ -3,7 +3,7 @@ title: RasterImage.ReadScanLine second_title: Aspose.Imaging for .NET API Reference description: RasterImage method. Reads the whole scan line by the specified scan line index type: docs -weight: 470 +weight: 460 url: /net/aspose.imaging/rasterimage/readscanline/ --- ## RasterImage.ReadScanLine method diff --git a/english/net/aspose.imaging/rasterimage/removemetadata/_index.md b/english/net/aspose.imaging/rasterimage/removemetadata/_index.md index 48c6d1a376..4a255a3315 100644 --- a/english/net/aspose.imaging/rasterimage/removemetadata/_index.md +++ b/english/net/aspose.imaging/rasterimage/removemetadata/_index.md @@ -3,7 +3,7 @@ title: RasterImage.RemoveMetadata second_title: Aspose.Imaging for .NET API Reference description: RasterImage method. Removes this image instance metadata by setting this XmpData value to null type: docs -weight: 480 +weight: 470 url: /net/aspose.imaging/rasterimage/removemetadata/ --- ## RasterImage.RemoveMetadata method diff --git a/english/net/aspose.imaging/rasterimage/replacecolor/_index.md b/english/net/aspose.imaging/rasterimage/replacecolor/_index.md index a7b022071d..a2d9767f1e 100644 --- a/english/net/aspose.imaging/rasterimage/replacecolor/_index.md +++ b/english/net/aspose.imaging/rasterimage/replacecolor/_index.md @@ -3,7 +3,7 @@ title: RasterImage.ReplaceColor second_title: Aspose.Imaging for .NET API Reference description: RasterImage method. Replaces one color to another with allowed difference and preserves original alpha value to save smooth edges type: docs -weight: 490 +weight: 480 url: /net/aspose.imaging/rasterimage/replacecolor/ --- ## ReplaceColor(Color, byte, Color) {#replacecolor} diff --git a/english/net/aspose.imaging/rasterimage/replacenontransparentcolors/_index.md b/english/net/aspose.imaging/rasterimage/replacenontransparentcolors/_index.md index fc26cbd835..30cb085c96 100644 --- a/english/net/aspose.imaging/rasterimage/replacenontransparentcolors/_index.md +++ b/english/net/aspose.imaging/rasterimage/replacenontransparentcolors/_index.md @@ -3,7 +3,7 @@ title: RasterImage.ReplaceNonTransparentColors second_title: Aspose.Imaging for .NET API Reference description: RasterImage method. Replaces all nontransparent colors with new color and preserves original alpha value to save smooth edges. Note if you use it on images without transparency all colors will be replaced with a single one type: docs -weight: 500 +weight: 490 url: /net/aspose.imaging/rasterimage/replacenontransparentcolors/ --- ## ReplaceNonTransparentColors(Color) {#replacenontransparentcolors} diff --git a/english/net/aspose.imaging/rasterimage/resize/_index.md b/english/net/aspose.imaging/rasterimage/resize/_index.md index a84d7300c9..fab09aaa1e 100644 --- a/english/net/aspose.imaging/rasterimage/resize/_index.md +++ b/english/net/aspose.imaging/rasterimage/resize/_index.md @@ -1,73 +1,12 @@ --- title: RasterImage.Resize second_title: Aspose.Imaging for .NET API Reference -description: RasterImage method. Resizes the image +description: RasterImage method. Resizes the image with extended options type: docs -weight: 510 +weight: 500 url: /net/aspose.imaging/rasterimage/resize/ --- -## Resize(int, int, ResizeType) {#resize_2} - -Resizes the image. - -```csharp -public override void Resize(int newWidth, int newHeight, ResizeType resizeType) -``` - -| Parameter | Type | Description | -| --- | --- | --- | -| newWidth | Int32 | The new width. | -| newHeight | Int32 | The new height. | -| resizeType | ResizeType | The resize type. | - -## Examples - -This example loads a raster image and resizes it using various resizing methods. - -```csharp -[C#] - -string dir = "c:\\temp\\"; - -using (Aspose.Imaging.RasterImage image = (Aspose.Imaging.RasterImage)Aspose.Imaging.Image.Load(dir + "sample.gif")) -{ - // Scale up by 2 times using Nearest Neighbour resampling. - image.Resize(image.Width * 2, image.Height * 2, Aspose.Imaging.ResizeType.NearestNeighbourResample); - image.Save(dir + "upsample.nearestneighbour.gif"); -} - -using (Aspose.Imaging.RasterImage image = (Aspose.Imaging.RasterImage)Aspose.Imaging.Image.Load(dir + "sample.gif")) -{ - // Scale down by 2 times using Nearest Neighbour resampling. - image.Resize(image.Width / 2, image.Height / 2, Aspose.Imaging.ResizeType.NearestNeighbourResample); - image.Save(dir + "downsample.nearestneighbour.gif"); -} - -using (Aspose.Imaging.RasterImage image = (Aspose.Imaging.RasterImage)Aspose.Imaging.Image.Load(dir + "sample.gif")) -{ - // Scale up by 2 times using Bilinear resampling. - image.Resize(image.Width * 2, image.Height * 2, Aspose.Imaging.ResizeType.BilinearResample); - image.Save(dir + "upsample.bilinear.gif"); -} - -using (Aspose.Imaging.RasterImage image = (Aspose.Imaging.RasterImage)Aspose.Imaging.Image.Load(dir + "sample.gif")) -{ - // Scale down by 2 times using Bilinear resampling. - image.Resize(image.Width / 2, image.Height / 2, Aspose.Imaging.ResizeType.BilinearResample); - image.Save(dir + "downsample.bilinear.gif"); -} -``` - -### See Also - -* enum [ResizeType](../../resizetype/) -* class [RasterImage](../) -* namespace [Aspose.Imaging](../../rasterimage/) -* assembly [Aspose.Imaging](../../../) - ---- - -## Resize(int, int, ImageResizeSettings) {#resize_1} +## RasterImage.Resize method Resizes the image with extended options. @@ -107,7 +46,7 @@ resizeSettings.ColorQuantizationMethod = ColorQuantizationMethod.None; // The euclidian method resizeSettings.ColorCompareMethod = ColorCompareMethod.Euclidian; -using (Aspose.Imaging.RasterImage image = (Aspose.Imaging.RasterImage)Aspose.Imaging.Image.Load(dir + "sample.gif")) +using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(dir + "sample.gif")) { // Scale down by 2 times using adaptive resampling. image.Resize(image.Width / 2, image.Height / 2, resizeSettings); diff --git a/english/net/aspose.imaging/rasterimage/rotate/_index.md b/english/net/aspose.imaging/rasterimage/rotate/_index.md index 7e7b03c0e5..b756f6dd18 100644 --- a/english/net/aspose.imaging/rasterimage/rotate/_index.md +++ b/english/net/aspose.imaging/rasterimage/rotate/_index.md @@ -3,7 +3,7 @@ title: RasterImage.Rotate second_title: Aspose.Imaging for .NET API Reference description: RasterImage method. Rotate image around the center type: docs -weight: 520 +weight: 510 url: /net/aspose.imaging/rasterimage/rotate/ --- ## Rotate(float, bool, Color) {#rotate_1} @@ -40,7 +40,7 @@ public virtual void Rotate(float angle, bool resizeProportionally, Color backgro Rotate image around the center. ```csharp -public virtual void Rotate(float angle) +public override void Rotate(float angle) ``` | Parameter | Type | Description | diff --git a/english/net/aspose.imaging/rasterimage/save/_index.md b/english/net/aspose.imaging/rasterimage/save/_index.md index 02ab00263b..6f87e8f63f 100644 --- a/english/net/aspose.imaging/rasterimage/save/_index.md +++ b/english/net/aspose.imaging/rasterimage/save/_index.md @@ -3,7 +3,7 @@ title: RasterImage.Save second_title: Aspose.Imaging for .NET API Reference description: RasterImage method. Saves the images data to the specified stream in the specified file format according to save options type: docs -weight: 530 +weight: 520 url: /net/aspose.imaging/rasterimage/save/ --- ## RasterImage.Save method diff --git a/english/net/aspose.imaging/rasterimage/saveargb32pixels/_index.md b/english/net/aspose.imaging/rasterimage/saveargb32pixels/_index.md index cb4a12af26..d739cac690 100644 --- a/english/net/aspose.imaging/rasterimage/saveargb32pixels/_index.md +++ b/english/net/aspose.imaging/rasterimage/saveargb32pixels/_index.md @@ -3,7 +3,7 @@ title: RasterImage.SaveArgb32Pixels second_title: Aspose.Imaging for .NET API Reference description: RasterImage method. Saves the 32bit ARGB pixels type: docs -weight: 540 +weight: 530 url: /net/aspose.imaging/rasterimage/saveargb32pixels/ --- ## RasterImage.SaveArgb32Pixels method diff --git a/english/net/aspose.imaging/rasterimage/savecmyk32pixels/_index.md b/english/net/aspose.imaging/rasterimage/savecmyk32pixels/_index.md index 72a1254139..6251c4b1e1 100644 --- a/english/net/aspose.imaging/rasterimage/savecmyk32pixels/_index.md +++ b/english/net/aspose.imaging/rasterimage/savecmyk32pixels/_index.md @@ -3,7 +3,7 @@ title: RasterImage.SaveCmyk32Pixels second_title: Aspose.Imaging for .NET API Reference description: RasterImage method. Saves the pixels type: docs -weight: 550 +weight: 540 url: /net/aspose.imaging/rasterimage/savecmyk32pixels/ --- ## RasterImage.SaveCmyk32Pixels method diff --git a/english/net/aspose.imaging/rasterimage/savepixels/_index.md b/english/net/aspose.imaging/rasterimage/savepixels/_index.md index f4304d35d3..70535b17e6 100644 --- a/english/net/aspose.imaging/rasterimage/savepixels/_index.md +++ b/english/net/aspose.imaging/rasterimage/savepixels/_index.md @@ -3,7 +3,7 @@ title: RasterImage.SavePixels second_title: Aspose.Imaging for .NET API Reference description: RasterImage method. Saves the pixels type: docs -weight: 560 +weight: 550 url: /net/aspose.imaging/rasterimage/savepixels/ --- ## RasterImage.SavePixels method diff --git a/english/net/aspose.imaging/rasterimage/saverawdata/_index.md b/english/net/aspose.imaging/rasterimage/saverawdata/_index.md index 4eb8bc5d95..685a7c6c91 100644 --- a/english/net/aspose.imaging/rasterimage/saverawdata/_index.md +++ b/english/net/aspose.imaging/rasterimage/saverawdata/_index.md @@ -3,7 +3,7 @@ title: RasterImage.SaveRawData second_title: Aspose.Imaging for .NET API Reference description: RasterImage method. Saves the raw data type: docs -weight: 570 +weight: 560 url: /net/aspose.imaging/rasterimage/saverawdata/ --- ## RasterImage.SaveRawData method diff --git a/english/net/aspose.imaging/rasterimage/setargb32pixel/_index.md b/english/net/aspose.imaging/rasterimage/setargb32pixel/_index.md index d723875dd1..c3257f1664 100644 --- a/english/net/aspose.imaging/rasterimage/setargb32pixel/_index.md +++ b/english/net/aspose.imaging/rasterimage/setargb32pixel/_index.md @@ -3,7 +3,7 @@ title: RasterImage.SetArgb32Pixel second_title: Aspose.Imaging for .NET API Reference description: RasterImage method. Sets an image 32bit ARGB pixel for the specified position type: docs -weight: 580 +weight: 570 url: /net/aspose.imaging/rasterimage/setargb32pixel/ --- ## RasterImage.SetArgb32Pixel method diff --git a/english/net/aspose.imaging/rasterimage/setpalette/_index.md b/english/net/aspose.imaging/rasterimage/setpalette/_index.md index ac3a7c655f..d23b909432 100644 --- a/english/net/aspose.imaging/rasterimage/setpalette/_index.md +++ b/english/net/aspose.imaging/rasterimage/setpalette/_index.md @@ -3,7 +3,7 @@ title: RasterImage.SetPalette second_title: Aspose.Imaging for .NET API Reference description: RasterImage method. Sets the image palette type: docs -weight: 590 +weight: 580 url: /net/aspose.imaging/rasterimage/setpalette/ --- ## RasterImage.SetPalette method diff --git a/english/net/aspose.imaging/rasterimage/setpixel/_index.md b/english/net/aspose.imaging/rasterimage/setpixel/_index.md index 353d764622..1b381d14ca 100644 --- a/english/net/aspose.imaging/rasterimage/setpixel/_index.md +++ b/english/net/aspose.imaging/rasterimage/setpixel/_index.md @@ -3,7 +3,7 @@ title: RasterImage.SetPixel second_title: Aspose.Imaging for .NET API Reference description: RasterImage method. Sets an image pixel for the specified position type: docs -weight: 600 +weight: 590 url: /net/aspose.imaging/rasterimage/setpixel/ --- ## RasterImage.SetPixel method diff --git a/english/net/aspose.imaging/rasterimage/setresolution/_index.md b/english/net/aspose.imaging/rasterimage/setresolution/_index.md index a1b599c164..bc328a803f 100644 --- a/english/net/aspose.imaging/rasterimage/setresolution/_index.md +++ b/english/net/aspose.imaging/rasterimage/setresolution/_index.md @@ -3,7 +3,7 @@ title: RasterImage.SetResolution second_title: Aspose.Imaging for .NET API Reference description: RasterImage method. Sets the resolution for this RasterImage type: docs -weight: 610 +weight: 600 url: /net/aspose.imaging/rasterimage/setresolution/ --- ## RasterImage.SetResolution method diff --git a/english/net/aspose.imaging/rasterimage/tobitmap/_index.md b/english/net/aspose.imaging/rasterimage/tobitmap/_index.md index bbcf5f85f6..1a4b86b5fa 100644 --- a/english/net/aspose.imaging/rasterimage/tobitmap/_index.md +++ b/english/net/aspose.imaging/rasterimage/tobitmap/_index.md @@ -3,7 +3,7 @@ title: RasterImage.ToBitmap second_title: Aspose.Imaging for .NET API Reference description: RasterImage method. Converts raster image to the bitmap. This method is not supported in versions from .Net7.0 and higher type: docs -weight: 620 +weight: 610 url: /net/aspose.imaging/rasterimage/tobitmap/ --- ## RasterImage.ToBitmap method diff --git a/english/net/aspose.imaging/rasterimage/writeargb32scanline/_index.md b/english/net/aspose.imaging/rasterimage/writeargb32scanline/_index.md index 66f7479fa7..7330e9a713 100644 --- a/english/net/aspose.imaging/rasterimage/writeargb32scanline/_index.md +++ b/english/net/aspose.imaging/rasterimage/writeargb32scanline/_index.md @@ -3,7 +3,7 @@ title: RasterImage.WriteArgb32ScanLine second_title: Aspose.Imaging for .NET API Reference description: RasterImage method. Writes the whole scan line to the specified scan line index type: docs -weight: 630 +weight: 620 url: /net/aspose.imaging/rasterimage/writeargb32scanline/ --- ## RasterImage.WriteArgb32ScanLine method diff --git a/english/net/aspose.imaging/rasterimage/writescanline/_index.md b/english/net/aspose.imaging/rasterimage/writescanline/_index.md index 5534417759..11b8b18893 100644 --- a/english/net/aspose.imaging/rasterimage/writescanline/_index.md +++ b/english/net/aspose.imaging/rasterimage/writescanline/_index.md @@ -3,7 +3,7 @@ title: RasterImage.WriteScanLine second_title: Aspose.Imaging for .NET API Reference description: RasterImage method. Writes the whole scan line to the specified scan line index type: docs -weight: 640 +weight: 630 url: /net/aspose.imaging/rasterimage/writescanline/ --- ## RasterImage.WriteScanLine method diff --git a/english/net/aspose.imaging/vectorimage/_index.md b/english/net/aspose.imaging/vectorimage/_index.md index 41f5c43045..df34b301d2 100644 --- a/english/net/aspose.imaging/vectorimage/_index.md +++ b/english/net/aspose.imaging/vectorimage/_index.md @@ -45,24 +45,27 @@ public abstract class VectorImage : Image, IObjectWithSizeF | --- | --- | | abstract [CacheData](../../aspose.imaging/datastreamsupporter/cachedata/)() | Caches the data and ensures no additional data loading will be performed from the underlying [`DataStreamContainer`](../datastreamsupporter/datastreamcontainer/). | | [CanSave](../../aspose.imaging/image/cansave/)(ImageOptionsBase) | Determines whether image can be saved to the specified file format represented by the passed save options. | +| override [Crop](../../aspose.imaging/vectorimage/crop/#crop)(Rectangle) | Crops the specified rectangle. | +| virtual [Crop](../../aspose.imaging/image/crop/)(int, int, int, int) | Crop image with shifts. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | | virtual [GetDefaultOptions](../../aspose.imaging/image/getdefaultoptions/)(object[]) | Gets the default options. | | virtual [GetEmbeddedImages](../../aspose.imaging/vectorimage/getembeddedimages/)() | Gets the embedded images. | | virtual [GetOriginalOptions](../../aspose.imaging/image/getoriginaloptions/)() | Gets the options based on the original file settings. This can be helpful to keep bit-depth and other parameters of the original image unchanged. For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the [`Save`](../datastreamsupporter/save/) method, the output PNG image with 8-bit per pixel will be produced. To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them to the [`Save`](../image/save/) method as the second parameter. | | virtual [GetSerializedStream](../../aspose.imaging/image/getserializedstream/)(ImageOptionsBase, Rectangle, out int) | Converts to aps. | -| [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/#removebackground)() | Removes the background. | -| [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/#removebackground_1)(RemoveBackgroundSettings) | Removes the background. | +| virtual [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/#removebackground)() | Removes the background. | +| virtual [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/#removebackground_1)(RemoveBackgroundSettings) | Removes the background. | | virtual [RemoveMetadata](../../aspose.imaging/image/removemetadata/)() | Removes metadata. | | [Resize](../../aspose.imaging/image/resize/)(int, int) | Resizes the image. The default NearestNeighbourResample is used. | -| abstract [Resize](../../aspose.imaging/image/resize/)(int, int, ImageResizeSettings) | Resizes the image. | -| abstract [Resize](../../aspose.imaging/image/resize/)(int, int, ResizeType) | Resizes the image. | +| override [Resize](../../aspose.imaging/vectorimage/resize/#resize_1)(int, int, ImageResizeSettings) | Resizes the image with extended options. | +| override [Resize](../../aspose.imaging/vectorimage/resize/#resize_2)(int, int, ResizeType) | Resizes the specified new width. | | [ResizeHeightProportionally](../../aspose.imaging/image/resizeheightproportionally/)(int) | Resizes the height proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeHeightProportionally](../../aspose.imaging/image/resizeheightproportionally/)(int, ImageResizeSettings) | Resizes the height proportionally. | | virtual [ResizeHeightProportionally](../../aspose.imaging/image/resizeheightproportionally/)(int, ResizeType) | Resizes the height proportionally. | | [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int) | Resizes the width proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ImageResizeSettings) | Resizes the width proportionally. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ResizeType) | Resizes the width proportionally. | -| abstract [RotateFlip](../../aspose.imaging/image/rotateflip/)(RotateFlipType) | Rotates, flips, or rotates and flips the image. | +| override [Rotate](../../aspose.imaging/vectorimage/rotate/)(float) | Rotate image around the center. | +| override [RotateFlip](../../aspose.imaging/vectorimage/rotateflip/)(RotateFlipType) | Rotates, flips, or rotates and flips the image. | | [Save](../../aspose.imaging/image/save/)() | Saves the image data to the underlying stream. | | [Save](../../aspose.imaging/datastreamsupporter/save/)(Stream) | Saves the object's data to the specified stream. | | override [Save](../../aspose.imaging/image/save/)(string) | Saves the image to the specified file location. | diff --git a/english/net/aspose.imaging/vectorimage/crop/_index.md b/english/net/aspose.imaging/vectorimage/crop/_index.md new file mode 100644 index 0000000000..c1da5d167e --- /dev/null +++ b/english/net/aspose.imaging/vectorimage/crop/_index.md @@ -0,0 +1,28 @@ +--- +title: VectorImage.Crop +second_title: Aspose.Imaging for .NET API Reference +description: VectorImage method. Crops the specified rectangle +type: docs +weight: 60 +url: /net/aspose.imaging/vectorimage/crop/ +--- +## VectorImage.Crop method + +Crops the specified rectangle. + +```csharp +public override void Crop(Rectangle rectangle) +``` + +| Parameter | Type | Description | +| --- | --- | --- | +| rectangle | Rectangle | The rectangle. | + +### See Also + +* struct [Rectangle](../../rectangle/) +* class [VectorImage](../) +* namespace [Aspose.Imaging](../../vectorimage/) +* assembly [Aspose.Imaging](../../../) + + diff --git a/english/net/aspose.imaging/vectorimage/getembeddedimages/_index.md b/english/net/aspose.imaging/vectorimage/getembeddedimages/_index.md index 1e7424fc0d..2aa6e1aff4 100644 --- a/english/net/aspose.imaging/vectorimage/getembeddedimages/_index.md +++ b/english/net/aspose.imaging/vectorimage/getembeddedimages/_index.md @@ -3,7 +3,7 @@ title: VectorImage.GetEmbeddedImages second_title: Aspose.Imaging for .NET API Reference description: VectorImage method. Gets the embedded images type: docs -weight: 60 +weight: 70 url: /net/aspose.imaging/vectorimage/getembeddedimages/ --- ## VectorImage.GetEmbeddedImages method diff --git a/english/net/aspose.imaging/vectorimage/removebackground/_index.md b/english/net/aspose.imaging/vectorimage/removebackground/_index.md index 23077db8e9..3e84394806 100644 --- a/english/net/aspose.imaging/vectorimage/removebackground/_index.md +++ b/english/net/aspose.imaging/vectorimage/removebackground/_index.md @@ -3,7 +3,7 @@ title: VectorImage.RemoveBackground second_title: Aspose.Imaging for .NET API Reference description: VectorImage method. Removes the background type: docs -weight: 70 +weight: 80 url: /net/aspose.imaging/vectorimage/removebackground/ --- ## RemoveBackground() {#removebackground} @@ -11,7 +11,7 @@ url: /net/aspose.imaging/vectorimage/removebackground/ Removes the background. ```csharp -public void RemoveBackground() +public virtual void RemoveBackground() ``` ### See Also @@ -27,7 +27,7 @@ public void RemoveBackground() Removes the background. ```csharp -public void RemoveBackground(RemoveBackgroundSettings settings) +public virtual void RemoveBackground(RemoveBackgroundSettings settings) ``` | Parameter | Type | Description | diff --git a/english/net/aspose.imaging/vectorimage/resize/_index.md b/english/net/aspose.imaging/vectorimage/resize/_index.md new file mode 100644 index 0000000000..165d9ec386 --- /dev/null +++ b/english/net/aspose.imaging/vectorimage/resize/_index.md @@ -0,0 +1,53 @@ +--- +title: VectorImage.Resize +second_title: Aspose.Imaging for .NET API Reference +description: VectorImage method. Resizes the specified new width +type: docs +weight: 90 +url: /net/aspose.imaging/vectorimage/resize/ +--- +## Resize(int, int, ResizeType) {#resize_2} + +Resizes the specified new width. + +```csharp +public override void Resize(int newWidth, int newHeight, ResizeType resizeType) +``` + +| Parameter | Type | Description | +| --- | --- | --- | +| newWidth | Int32 | The new width. | +| newHeight | Int32 | The new height. | +| resizeType | ResizeType | Type of the resize. | + +### See Also + +* enum [ResizeType](../../resizetype/) +* class [VectorImage](../) +* namespace [Aspose.Imaging](../../vectorimage/) +* assembly [Aspose.Imaging](../../../) + +--- + +## Resize(int, int, ImageResizeSettings) {#resize_1} + +Resizes the image with extended options. + +```csharp +public override void Resize(int newWidth, int newHeight, ImageResizeSettings settings) +``` + +| Parameter | Type | Description | +| --- | --- | --- | +| newWidth | Int32 | The new width. | +| newHeight | Int32 | The new height. | +| settings | ImageResizeSettings | The resize settings. | + +### See Also + +* class [ImageResizeSettings](../../imageresizesettings/) +* class [VectorImage](../) +* namespace [Aspose.Imaging](../../vectorimage/) +* assembly [Aspose.Imaging](../../../) + + diff --git a/english/net/aspose.imaging/vectorimage/rotate/_index.md b/english/net/aspose.imaging/vectorimage/rotate/_index.md new file mode 100644 index 0000000000..8c7e39e674 --- /dev/null +++ b/english/net/aspose.imaging/vectorimage/rotate/_index.md @@ -0,0 +1,27 @@ +--- +title: VectorImage.Rotate +second_title: Aspose.Imaging for .NET API Reference +description: VectorImage method. Rotate image around the center +type: docs +weight: 100 +url: /net/aspose.imaging/vectorimage/rotate/ +--- +## VectorImage.Rotate method + +Rotate image around the center. + +```csharp +public override void Rotate(float angle) +``` + +| Parameter | Type | Description | +| --- | --- | --- | +| angle | Single | The rotate angle in degrees. Positive values will rotate clockwise. | + +### See Also + +* class [VectorImage](../) +* namespace [Aspose.Imaging](../../vectorimage/) +* assembly [Aspose.Imaging](../../../) + + diff --git a/english/net/aspose.imaging/vectorimage/rotateflip/_index.md b/english/net/aspose.imaging/vectorimage/rotateflip/_index.md new file mode 100644 index 0000000000..c71e78d4b9 --- /dev/null +++ b/english/net/aspose.imaging/vectorimage/rotateflip/_index.md @@ -0,0 +1,34 @@ +--- +title: VectorImage.RotateFlip +second_title: Aspose.Imaging for .NET API Reference +description: VectorImage method. Rotates flips or rotates and flips the image +type: docs +weight: 110 +url: /net/aspose.imaging/vectorimage/rotateflip/ +--- +## VectorImage.RotateFlip method + +Rotates, flips, or rotates and flips the image. + +```csharp +public override void RotateFlip(RotateFlipType rotateFlipType) +``` + +| Parameter | Type | Description | +| --- | --- | --- | +| rotateFlipType | RotateFlipType | Type of the rotate flip. | + +### Exceptions + +| exception | condition | +| --- | --- | +| NotImplementedException | | + +### See Also + +* enum [RotateFlipType](../../rotatefliptype/) +* class [VectorImage](../) +* namespace [Aspose.Imaging](../../vectorimage/) +* assembly [Aspose.Imaging](../../../) + + diff --git a/english/net/aspose.imaging/vectormultipageimage/_index.md b/english/net/aspose.imaging/vectormultipageimage/_index.md index 5c78e8d0f9..f23a3b77da 100644 --- a/english/net/aspose.imaging/vectormultipageimage/_index.md +++ b/english/net/aspose.imaging/vectormultipageimage/_index.md @@ -48,13 +48,15 @@ public abstract class VectorMultipageImage : VectorImage, IMultipageImage | --- | --- | | override [CacheData](../../aspose.imaging/vectormultipageimage/cachedata/)() | Caches the data and ensures no additional data loading will be performed from the underlying [`DataStreamContainer`](../datastreamsupporter/datastreamcontainer/). | | [CanSave](../../aspose.imaging/image/cansave/)(ImageOptionsBase) | Determines whether image can be saved to the specified file format represented by the passed save options. | +| override [Crop](../../aspose.imaging/vectormultipageimage/crop/#crop)(Rectangle) | Crops the specified rectangle. | +| virtual [Crop](../../aspose.imaging/image/crop/)(int, int, int, int) | Crop image with shifts. | | [Dispose](../../aspose.imaging/disposableobject/dispose/)() | Disposes the current instance. | | virtual [GetDefaultOptions](../../aspose.imaging/image/getdefaultoptions/)(object[]) | Gets the default options. | | override [GetEmbeddedImages](../../aspose.imaging/vectormultipageimage/getembeddedimages/)() | Gets the embedded images. | | virtual [GetOriginalOptions](../../aspose.imaging/image/getoriginaloptions/)() | Gets the options based on the original file settings. This can be helpful to keep bit-depth and other parameters of the original image unchanged. For example, if we load a black-white PNG image with 1 bit per pixel and then save it using the [`Save`](../datastreamsupporter/save/) method, the output PNG image with 8-bit per pixel will be produced. To avoid it and save PNG image with 1-bit per pixel, use this method to get corresponding saving options and pass them to the [`Save`](../image/save/) method as the second parameter. | | override [GetSerializedStream](../../aspose.imaging/vectormultipageimage/getserializedstream/)(ImageOptionsBase, Rectangle, out int) | Converts to aps. | -| [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/)() | Removes the background. | -| [RemoveBackground](../../aspose.imaging/vectorimage/removebackground/)(RemoveBackgroundSettings) | Removes the background. | +| override [RemoveBackground](../../aspose.imaging/vectormultipageimage/removebackground/#removebackground)() | Removes the background. | +| override [RemoveBackground](../../aspose.imaging/vectormultipageimage/removebackground/#removebackground_1)(RemoveBackgroundSettings) | Removes the background. | | virtual [RemoveMetadata](../../aspose.imaging/image/removemetadata/)() | Removes metadata. | | [Resize](../../aspose.imaging/image/resize/)(int, int) | Resizes the image. The default NearestNeighbourResample is used. | | override [Resize](../../aspose.imaging/vectormultipageimage/resize/#resize_1)(int, int, ImageResizeSettings) | Resizes the image. | @@ -65,6 +67,7 @@ public abstract class VectorMultipageImage : VectorImage, IMultipageImage | [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int) | Resizes the width proportionally. The default NearestNeighbourResample is used. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ImageResizeSettings) | Resizes the width proportionally. | | virtual [ResizeWidthProportionally](../../aspose.imaging/image/resizewidthproportionally/)(int, ResizeType) | Resizes the width proportionally. | +| override [Rotate](../../aspose.imaging/vectormultipageimage/rotate/)(float) | Rotate image around the center. | | override [RotateFlip](../../aspose.imaging/vectormultipageimage/rotateflip/)(RotateFlipType) | Rotates, flips, or rotates and flips the image. | | [Save](../../aspose.imaging/image/save/)() | Saves the image data to the underlying stream. | | [Save](../../aspose.imaging/datastreamsupporter/save/)(Stream) | Saves the object's data to the specified stream. | diff --git a/english/net/aspose.imaging/vectormultipageimage/crop/_index.md b/english/net/aspose.imaging/vectormultipageimage/crop/_index.md new file mode 100644 index 0000000000..b39f714263 --- /dev/null +++ b/english/net/aspose.imaging/vectormultipageimage/crop/_index.md @@ -0,0 +1,28 @@ +--- +title: VectorMultipageImage.Crop +second_title: Aspose.Imaging for .NET API Reference +description: VectorMultipageImage method. Crops the specified rectangle +type: docs +weight: 90 +url: /net/aspose.imaging/vectormultipageimage/crop/ +--- +## VectorMultipageImage.Crop method + +Crops the specified rectangle. + +```csharp +public override void Crop(Rectangle rectangle) +``` + +| Parameter | Type | Description | +| --- | --- | --- | +| rectangle | Rectangle | The rectangle. | + +### See Also + +* struct [Rectangle](../../rectangle/) +* class [VectorMultipageImage](../) +* namespace [Aspose.Imaging](../../vectormultipageimage/) +* assembly [Aspose.Imaging](../../../) + + diff --git a/english/net/aspose.imaging/vectormultipageimage/getembeddedimages/_index.md b/english/net/aspose.imaging/vectormultipageimage/getembeddedimages/_index.md index f8e4dbdd0d..93652eef5c 100644 --- a/english/net/aspose.imaging/vectormultipageimage/getembeddedimages/_index.md +++ b/english/net/aspose.imaging/vectormultipageimage/getembeddedimages/_index.md @@ -3,7 +3,7 @@ title: VectorMultipageImage.GetEmbeddedImages second_title: Aspose.Imaging for .NET API Reference description: VectorMultipageImage method. Gets the embedded images type: docs -weight: 90 +weight: 100 url: /net/aspose.imaging/vectormultipageimage/getembeddedimages/ --- ## VectorMultipageImage.GetEmbeddedImages method diff --git a/english/net/aspose.imaging/vectormultipageimage/getserializedstream/_index.md b/english/net/aspose.imaging/vectormultipageimage/getserializedstream/_index.md index 7f6de63bbc..d7e077b32b 100644 --- a/english/net/aspose.imaging/vectormultipageimage/getserializedstream/_index.md +++ b/english/net/aspose.imaging/vectormultipageimage/getserializedstream/_index.md @@ -3,7 +3,7 @@ title: VectorMultipageImage.GetSerializedStream second_title: Aspose.Imaging for .NET API Reference description: VectorMultipageImage method. Converts to aps type: docs -weight: 100 +weight: 110 url: /net/aspose.imaging/vectormultipageimage/getserializedstream/ --- ## VectorMultipageImage.GetSerializedStream method diff --git a/english/net/aspose.imaging/vectormultipageimage/removebackground/_index.md b/english/net/aspose.imaging/vectormultipageimage/removebackground/_index.md new file mode 100644 index 0000000000..d3c69d0649 --- /dev/null +++ b/english/net/aspose.imaging/vectormultipageimage/removebackground/_index.md @@ -0,0 +1,44 @@ +--- +title: VectorMultipageImage.RemoveBackground +second_title: Aspose.Imaging for .NET API Reference +description: VectorMultipageImage method. Removes the background +type: docs +weight: 120 +url: /net/aspose.imaging/vectormultipageimage/removebackground/ +--- +## RemoveBackground(RemoveBackgroundSettings) {#removebackground_1} + +Removes the background. + +```csharp +public override void RemoveBackground(RemoveBackgroundSettings settings) +``` + +| Parameter | Type | Description | +| --- | --- | --- | +| settings | RemoveBackgroundSettings | The settings. | + +### See Also + +* class [RemoveBackgroundSettings](../../removebackgroundsettings/) +* class [VectorMultipageImage](../) +* namespace [Aspose.Imaging](../../vectormultipageimage/) +* assembly [Aspose.Imaging](../../../) + +--- + +## RemoveBackground() {#removebackground} + +Removes the background. + +```csharp +public override void RemoveBackground() +``` + +### See Also + +* class [VectorMultipageImage](../) +* namespace [Aspose.Imaging](../../vectormultipageimage/) +* assembly [Aspose.Imaging](../../../) + + diff --git a/english/net/aspose.imaging/vectormultipageimage/resize/_index.md b/english/net/aspose.imaging/vectormultipageimage/resize/_index.md index cc7ef7afae..9e819faa20 100644 --- a/english/net/aspose.imaging/vectormultipageimage/resize/_index.md +++ b/english/net/aspose.imaging/vectormultipageimage/resize/_index.md @@ -3,7 +3,7 @@ title: VectorMultipageImage.Resize second_title: Aspose.Imaging for .NET API Reference description: VectorMultipageImage method. Resizes the image type: docs -weight: 110 +weight: 130 url: /net/aspose.imaging/vectormultipageimage/resize/ --- ## Resize(int, int, ResizeType) {#resize_2} diff --git a/english/net/aspose.imaging/vectormultipageimage/rotate/_index.md b/english/net/aspose.imaging/vectormultipageimage/rotate/_index.md new file mode 100644 index 0000000000..3e43ff5241 --- /dev/null +++ b/english/net/aspose.imaging/vectormultipageimage/rotate/_index.md @@ -0,0 +1,27 @@ +--- +title: VectorMultipageImage.Rotate +second_title: Aspose.Imaging for .NET API Reference +description: VectorMultipageImage method. Rotate image around the center +type: docs +weight: 140 +url: /net/aspose.imaging/vectormultipageimage/rotate/ +--- +## VectorMultipageImage.Rotate method + +Rotate image around the center. + +```csharp +public override void Rotate(float angle) +``` + +| Parameter | Type | Description | +| --- | --- | --- | +| angle | Single | The rotate angle in degrees. Positive values will rotate clockwise. | + +### See Also + +* class [VectorMultipageImage](../) +* namespace [Aspose.Imaging](../../vectormultipageimage/) +* assembly [Aspose.Imaging](../../../) + + diff --git a/english/net/aspose.imaging/vectormultipageimage/rotateflip/_index.md b/english/net/aspose.imaging/vectormultipageimage/rotateflip/_index.md index 38ad42e8f0..175e1bd06f 100644 --- a/english/net/aspose.imaging/vectormultipageimage/rotateflip/_index.md +++ b/english/net/aspose.imaging/vectormultipageimage/rotateflip/_index.md @@ -3,7 +3,7 @@ title: VectorMultipageImage.RotateFlip second_title: Aspose.Imaging for .NET API Reference description: VectorMultipageImage method. Rotates flips or rotates and flips the image type: docs -weight: 120 +weight: 150 url: /net/aspose.imaging/vectormultipageimage/rotateflip/ --- ## VectorMultipageImage.RotateFlip method diff --git a/english/net/aspose.imaging/vectormultipageimage/setpalette/_index.md b/english/net/aspose.imaging/vectormultipageimage/setpalette/_index.md index 99dc6261bf..21ac659a1d 100644 --- a/english/net/aspose.imaging/vectormultipageimage/setpalette/_index.md +++ b/english/net/aspose.imaging/vectormultipageimage/setpalette/_index.md @@ -3,7 +3,7 @@ title: VectorMultipageImage.SetPalette second_title: Aspose.Imaging for .NET API Reference description: VectorMultipageImage method. Sets the image palette type: docs -weight: 130 +weight: 160 url: /net/aspose.imaging/vectormultipageimage/setpalette/ --- ## VectorMultipageImage.SetPalette method