Μεταφόρτωση προσαρμοσμένων εικόνων#

Uploading Custom Images

This tutorial walks you through uploading a custom image in VEXcode AIR. By the end, you’ll have an image uploaded and ready to use in your projects.

  1. Select the Control Panel tab.

Screenshot of the VEXcode AIR tabs on the right side of the screen, with the Control Panel tab highlighted.

Note: If the Control Panel tab is not open, select View, then Add Tab, then Control Panel.

  1. Select the Images tab.

Screenshot of the Control Panel, with the Images tab highlighted.
  1. Select an Upload icon.

Screenshot of the Images tab, with the Upload button for image slot 1 highlighted.
  1. Select Upload Custom Image, then select Select File to open your device’s file navigation. Select your image file.

Screenshot of the Select an Image dialog, with the Upload Custom Image option and the Select File button highlighted.

Note: Images can be PNG, JPG, GIF, or BMP files smaller than 10 MB.

  1. The image will appear in the chosen slot. By default, images are named IMAGE1, with the number matching the slot the image was uploaded to.

Screenshot of the Images tab, with image slot 1 highlighted. Slot 1 now shows an uploaded image of the AIR logo, and its Upload and Trash buttons are both active.

You can use the custom image in a project with the commands in the Screen category for Blocks or Python.

The show image file block, set to a custom image.#
[Select your image from the dropdown.]
εμφάνιση αρχείου εικόνας [IMAGE1 v]
# Change IMAGE1 to the name of your image
controller.screen.show_file(IMAGE1, x=0, y=0)

  1. Select the Pencil icon to rename the image. This will be the image’s name when you use it in your projects.

Screenshot of image slot 1, with the Pencil icon to the right of the name IMAGE1 highlighted.
  1. Type a new name, then select Rename.

Screenshot of the Rename Image dialog. The name reads AIR_LOGO, and the Rename button is highlighted.

Note: Names are shown in capital letters. Names cannot begin with a number, and must be no longer than 14 characters.

  1. Select the Trash icon to delete an image file from a slot.

Screenshot of image slot 1, now named AIR_LOGO, with the Trash button highlighted.

To delete all images at once, select Delete All Images at the bottom of the Images tab.

Screenshot of the bottom of the Images tab, with the Delete All Images button highlighted.