mySobek Home   |   Help
Skip Navigation Links.
Expand <a href='https://sobekrepository.org/sobekcm' title='Sobek home page'>Project Home</a>Project Home
Expand <a href='https://sobekrepository.org/help' title='Online user help'>User Help</a>User Help
Expand <a href='https://sobekrepository.org/sobekcm/technical' title='Sobek home page'>Technical Help</a>Technical Help
Expand <a href='https://sobekrepository.org/software' title='Center for downloading all SobekCM-related software'>Download Center</a>Download Center
Training Videos
Collapse <a href='https://sobekrepository.org/codehelp' title='Details on each of the different classes, interfaces, properties, etc..'>Code Details</a>Code Details
MISSING BANNER

New_Group_And_Item_MySobekViewer.ScaleImage Method



Scales an existing SourceImage to a new max width / max height


Namespace: SobekCM.Library.MySobekViewer
Assembly: SobekCM_Library (in SobekCM_Library.dll) Version: 4.10.0.0 (4.10.0.0)

Syntax

C#
public static Image ScaleImage(
	Image SourceImage,
	int MaxWidth,
	int MaxHeight
)

Parameters

SourceImage
Type: System.Drawing..::..Image
Source image
MaxWidth
Type: System..::..Int32
Maximum width for the new image
MaxHeight
Type: System..::..Int32
Maximum height for the new image

Return Value

Type: Image
Newly scaled image, without changing the original source image

See Also



Version 4.10.0 ( last generated Monday, March 7, 2016 )