change_formatchange_formatChangeFormatChangeFormat (Operator)

Name

change_formatchange_formatChangeFormatChangeFormat — Ä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)

Beschreibung

change_formatchange_formatChangeFormatChangeFormatChangeFormat 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

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

Eingabebild.

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

Bild mit neuem Format.

WidthWidthWidthWidthwidth (input_control)  extent.x HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Breite des neuen Bildes.

Defaultwert: 512

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

HeightHeightHeightHeightheight (input_control)  extent.y HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Höhe des neuen Bildes.

Defaultwert: 512

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

Nachfolger

disp_imagedisp_imageDispImageDispImageDispImage

Alternativen

crop_partcrop_partCropPartCropPartCropPart

Siehe auch

zoom_image_sizezoom_image_sizeZoomImageSizeZoomImageSizeZoomImageSize, zoom_image_factorzoom_image_factorZoomImageFactorZoomImageFactorZoomImageFactor

Modul

Foundation