• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

1stplugins

FileMaker plug-ins and Reverse Engineering

  • Plugins
    • MediaManager
  • Services
    • Reverse Engineering
    • FileMaker Plug-Ins
  • About
    • About Us
    • Contact Us
    • Terms of Use of the Website and Privacy Policy
  • Store
    • Terms and Conditions
    • Warranty Claim Guidelines
    • Contract Withdrawal Form
    • Warranty Claim Report

Media_TResize

Media_TResize( xDim ; yDim )

Media_TResize allows you to resize an image to a target size when you next call Media_TApply.

Parameter Description
xDim Horizontal dimensions in pixels.
yDim Vertical dimensions in pixels.

This function is similar to Media_TScale, but instead of scaling the image to a fractional size of the original, you can specify exact target dimensions, horizontally, vertically, or both.

If you specify one dimension as zero, the image will be resized to keep the same proportions. For example, if the source image is 200 x 300, and you specify Media_TResize(100; 0), the image will automatically be resized to 100 x 150.

When using Media_TResize in conjunction with the Media_TCrop transformation, the crop function will be performed first. In other words, in that case it is the cropped image that will be resized. If you are getting confusing results, it may be best to use Media_TApply separately with each function.

Activated by Media_TApply.

Returns

Empty string.

Examples

To resize an image to exactly 300 x 250 pixels:

Set Field [ MyTable::Response ; Media_TClear ]
Set Field [ MyTable::Response;
Media_TResize ( 300 ; 250 ) ]

Set Field [ MyTable::Picture Result;
Media_TApply ( MyTable::Picture 1 ) ]

To resize an image to a width of 300 pixels, keeping the image in proportion:
Set Field [ MyTable::Response ; Media_TClear ]
Set Field [ MyTable::Response;
Media_TResize ( 300 ; 0 ) ]

Set Field [ MyTable::Picture Result;
Media_TApply ( MyTable::Picture 1 ) ]

Primary Sidebar

Document Functions

Media_CopyItem
Media_CreateAlias
Media_CreateFolder
Media_DeleteItem
Media_ExportField
Media_ExtractInfo
Media_GetDefaultFolder
Media_GetItemInfo
Media_GetName
Media_GetPath
Media_InsertFile
Media_ListDisks
Media_ListFolder
Media_MoveItem
Media_OpenItem
Media_RenameItem
Media_SetDefaultFolder

General and Registration Functions

Media_Get
Media_GetLastError
Media_GetMouseUp
Media_JSONPath
Media_Register
Media_RegisterLicensedEncoder
Media_Set
Media_Version

Image Functions

Media_TApply
Media_TClear
Media_TCrop
Media_TQuad
Media_TResize
Media_TRotate
Media_TScale
Media_TSkew
Media_EffectApply
Media_EffectDialog
Media_ConvertImage
Media_GetImageInfo
Media_GetMetadata
Media_InsertImage
Media_ListImageOutputTypes
Media_SetImageDefaults

Script Steps

Copy Item
Create Alias
Create Folder
Delete Item
Export Field
Get Default Folder
Get Item Property
Move Item
Open Item
Rename Item
Set Default Folder

Sound Functions

Media_Amplify
Media_AppendSound
Media_ConvertSound
Media_CreateSound
Media_DrawWaveform
Media_ExtractSound
Media_FadeSound
Media_GetMetadata
Media_GetSoundInfo
Media_InsertQuickTime
Media_ListSoundOutputFormats
Media_MixSounds
Media_Normalize
Media_PlayPause
Media_PlaySound
Media_RecordSoundFormatDialog
Media_RecordSoundStart
Media_RecordSoundPause
Media_RecordSoundStop
Media_SetMetadata
Media_SoundFormatDialog
Media_StopSound

Video Functions

Media_GetVideoInfo

Footer

Let’s get started on your project.

Get in touch

  • Plugins
  • Services
  • About
  • Store

Copyright ©2006-2020 by 1stplugins, s.r.o. All rights reserved.