• 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_TQuad

Media_TQuad ( sourceScale ; topLeftX ; topLeftY ; topRightX ; topRightY ; bottomRightX ; bottomRightY ; bottomLeftX ; bottomLeftY )

Media_TQuad maps the source image into a quadrilateral of any shape when Media_TApply is called. This transformation can cause the image to appear as it would from any distance or point. Therefore Media_TQuad is often used to create a perspective projection.

Parameter Description
sourceScale The scale of the quadrilateral (in percentage).
topLeftX top left horizontal coordinate of the quadrilateral.
topLeftY top left vertical coordinate of the quadrilateral.
topRightX top right horizontal coordinate of the quadrilateral.
topRightY top right vertical coordinate of the quadrilateral.
bottomLeftX bottom left horizontal coordinate of the quadrilateral.
bottomLeftY bottom left vertical coordinate of the quadrilateral.
bottomRightX bottom right horizontal coordinate of the quadrilateral.
bottomRightY bottom right vertical coordinate of the quadrilateral.

The scale and coordinates can be fractional. Their full precision is used in the transformation.

Once a Media_TQuad transformation has been applied to an image, it is matched to the dimensions of that image. It should only be re-applied to images of the same size. To apply the Media_TQuad transformation to images of a different size, call Media_TQuad again.

Activated by Media_TApply.

Returns

Empty string.

Examples

To create a “Star Wars” title perspective:

Set Field [ MyTable::Response ; Media_TClear ]
Set Field [ MyTable::Response;
Media_TQuad ( 100 ;
30 ; 0 ;
70 ; 0 ;
100 ; 60 ;
0 ; 60 ) ]

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

To quad an image based on the values in user-entered fields:

Set Field [ Response ; Media_TClear ]
Set Field [ MyTable::Response;
Media_TQuad ( MyTable::Scale ;
MyTable::Top Left X;
MyTable::Top Left Y;
MyTable::Top Right X;
MyTable::Top Right Y;
MyTable::Bottom Left X;
MyTable::Bottom Left Y;
MyTable::Bottom Right X;
MyTable::Bottom Right Y ) ]

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.