Option Explicit
Private Sub Form_DblClick()
Dim JPEGImage As prjGDIplus.Image
Dim PropertyItem As PropertyItem
Dim StringFormat As StringFormat, Output As String
Set JPEGImage = CreateImageFromUrl("http://www.exif.org/samples/fujifilm-mx1700.jpg")
With CreateGraphics(hDC)
.DrawImage JPEGImage, 0, 0, ScaleWidth, ScaleHeight
.TextContrast = 10 'valid range is 0..12
Set StringFormat = DefaultStringFormat
StringFormat.FormatFlags = StringFormat.FormatFlags Or StringFormatFlagsNoWrap
StringFormat.SetTabStops 0, 70, 70, 70, 70, 70, 70, 70, 70
For Each PropertyItem In JPEGImage.Properties
Output = Output & Hex(PropertyItem.ID) & vbTab & PropertyItem.LookupID & vbTab & PropertyItem.StringValue & vbCrLf
Next
.DrawString _
CreateFont("Microsoft Sans Serif", FontStyleBold, 12, UnitPoint), _
CreateBrush(ARGB(vbCyan, 92)), _
Output, _
0, 0, ScaleWidth, ScaleHeight, _
StringFormat
End With
End Sub
Private Sub Form_Load()
ScaleMode = vbPixels
End Sub
Сейчас этот форум просматривают: AhrefsBot и гости: 70