ImageGear22.Core Assembly > ImageGear.Processing Namespace > ImGearProcessing Class : Crop Method |
'Declaration Public Shared Sub Crop( _ ByVal page As ImGearPage, _ ByVal left As Integer, _ ByVal top As Integer, _ ByVal width As Integer, _ ByVal height As Integer _ )
'Usage Dim page As ImGearPage Dim left As Integer Dim top As Integer Dim width As Integer Dim height As Integer ImGearProcessing.Crop(page, left, top, width, height)
ImGearProcessingVerifier.CanApplyCrop method can be called to check whether the operation can be performed.
// Crops 100 pixels off the top of an image.
ImGearProcessing.Crop(igRasterPage, 0, 100, igRasterPage.DIB.Width, igRasterPage.DIB.Height - 100);
' Crops 100 pixels off the top of an image.
ImGearProcessing.Crop(igRasterPage, 0, 100, igRasterPage.DIB.Width, igRasterPage.DIB.Height - 100)