Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. ' This function returns a value based on the PictureBox.Image.Flags property's value.
  2. Function GetFlags()
  3. If PictureBox.Image.Flags = 1 Then
  4. Return 1
  5. End If
  6. If PictureBox.Image.Flags >= 2 Then
  7. Return 2
  8. End If
  9. If PictureBox.Image.Flags >= 4 Then
  10. Return 3
  11. End If
  12. If PictureBox.Image.Flags >= 8 Then
  13. Return 4
  14. End If
  15. ' Update the "PictureInfo" variable based on the vlaue the "GetFlags()" function returns.
  16. If GetFlags() = 1 Then
  17. PictureInfo += Environment.NewLine & "• Scalable: yes."
  18. End If
  19. If GetFlags() = 2 Then
  20. PictureInfo += Environment.NewLine & "• Scalable: yes." &
  21. Environment.NewLine & "• Has aplha: yes."
  22. End If
  23. If GetFlags() = 3 Then
  24. PictureInfo += Environment.NewLine & "• Scalable: yes." &
  25. Environment.NewLine & "• Has aplha: yes." &
  26. Environment.NewLine & "• Has translucent: yes."
  27. End If
  28. If GetFlags() = 4 Then
  29. PictureInfo += Environment.NewLine & "• Partially scalable: yes." &
  30. Environment.NewLine & "• Has aplha: yes." &
  31. Environment.NewLine & "• Has translucent: yes."
  32. End If
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement