This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alert("hello world") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Requires -Version 5.1 | |
| Using Assembly PresentationCore | |
| Using Assembly PresentationFramework | |
| Using Namespace System.Collections.Generic | |
| Using Namespace System.ComponentModel | |
| Using Namespace System.Linq | |
| Using Namespace System.Reflection | |
| Using Namespace System.Text | |
| Using Namespace System.Windows | |
| Using Namespace System.Windows.Input |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function getImageGPS($imagePath) { | |
| $imageProperties = New-Object -TypeName System.Drawing.Bitmap -ArgumentList $imagePath | |
| [double]$LatDegrees = (([System.BitConverter]::ToInt32( $imageProperties.GetPropertyItem(2).Value, 0)) / ([System.BitConverter]::ToInt32( $imageProperties.GetPropertyItem(2).Value, 4))); | |
| [double]$LatMinutes = ([System.BitConverter]::ToInt32( $imageProperties.GetPropertyItem(2).Value, 8)) / ([System.BitConverter]::ToInt32( $imageProperties.GetPropertyItem(2).Value, 12)); | |
| [double]$LatSeconds = ([System.BitConverter]::ToInt32( $imageProperties.GetPropertyItem(2).Value, 16)) / ([System.BitConverter]::ToInt32( $imageProperties.GetPropertyItem(2).Value, 20)); | |
| [double]$LonDegrees = (([System.BitConverter]::ToInt32( $imageProperties.GetPropertyItem(4).Value, 0)) / ([System.BitConverter]::ToInt32( $imageProperties.GetPropertyItem(4).Value, 4))); | |
| [double]$LonMinutes = ([System.BitConverter]::ToInt32( $imageProperties.GetPropertyItem(4).Value, 8)) / ([System.BitConverter]::ToI |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Param( | |
| [string]$uri = "https://pluspng.com/img-png/heart-png--3100.png" | |
| ) | |
| Add-Type -AssemblyName PresentationFramework | Out-Null | |
| Add-Type -AssemblyName System.Drawing | Out-Null | |
| Add-Type -AssemblyName System.Windows.Forms | Out-Null | |
| Add-Type -AssemblyName WindowsFormsIntegration | Out-Null | |
| [void][System.Windows.Forms.Application]::EnableVisualStyles() |