change_formatchange_formatChangeFormatChangeFormatchange_format (Operator)

Name

change_formatchange_formatChangeFormatChangeFormatchange_format — Ändern der Bildgröße.

Signatur

change_format(Image : ImagePart : Width, Height : )

Herror change_format(const Hobject Image, Hobject* ImagePart, const Hlong Width, const Hlong Height)

Herror T_change_format(const Hobject Image, Hobject* ImagePart, const Htuple Width, const Htuple Height)

void ChangeFormat(const HObject& Image, HObject* ImagePart, const HTuple& Width, const HTuple& Height)

HImage HImage::ChangeFormat(Hlong Width, Hlong Height) const

static void HOperatorSet.ChangeFormat(HObject image, out HObject imagePart, HTuple width, HTuple height)

HImage HImage.ChangeFormat(int width, int height)

def change_format(image: HObject, width: int, height: int) -> HObject

Beschreibung

change_formatchange_formatChangeFormatChangeFormatChangeFormatchange_format vergrößert bzw. verkleinert die Eingabebilder auf die angegebene Höhe bzw. Breite. Bei einer Verkleinerung werden am „rechten“ bzw. „unteren“ Bildrand Teile abgeschnitten. Bei einer Vergrößerung werden die zusätzlichen Bereiche mit 0 besetzt. Der Definitionsbereich des Ausgabebildes entspricht dem des Eingabebildes, eventuell beschnitten auf die neue Bildgröße. Es wird kein Zooming durchgeführt.

Ausführungsinformationen

Parameter

ImageImageImageImageimageimage (input_object)  (multichannel-)image(-array) objectHImageHObjectHImageHobject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)

Eingabebild.

ImagePartImagePartImagePartImagePartimagePartimage_part (output_object)  (multichannel-)image(-array) objectHImageHObjectHImageHobject * (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)

Bild mit neuem Format.

WidthWidthWidthWidthwidthwidth (input_control)  extent.x HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Breite des neuen Bildes.

Defaultwert: 512

Wertevorschläge: 32, 64, 128, 256, 512, 768, 1024

HeightHeightHeightHeightheightheight (input_control)  extent.y HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Höhe des neuen Bildes.

Defaultwert: 512

Wertevorschläge: 32, 64, 128, 256, 512, 525, 1024

Nachfolger

disp_imagedisp_imageDispImageDispImageDispImagedisp_image

Alternativen

crop_partcrop_partCropPartCropPartCropPartcrop_part

Siehe auch

zoom_image_sizezoom_image_sizeZoomImageSizeZoomImageSizeZoomImageSizezoom_image_size, zoom_image_factorzoom_image_factorZoomImageFactorZoomImageFactorZoomImageFactorzoom_image_factor

Modul

Foundation