Types of blit attributes.
#include <screen/screen.h>
enum { SCREEN_BLIT_END = 0 SCREEN_BLIT_SOURCE_X = 1 SCREEN_BLIT_SOURCE_Y = 2 SCREEN_BLIT_SOURCE_WIDTH = 3 SCREEN_BLIT_SOURCE_HEIGHT = 4 SCREEN_BLIT_DESTINATION_X = 5 SCREEN_BLIT_DESTINATION_Y = 6 SCREEN_BLIT_DESTINATION_WIDTH = 7 SCREEN_BLIT_DESTINATION_HEIGHT = 8 SCREEN_BLIT_GLOBAL_ALPHA = 9 SCREEN_BLIT_TRANSPARENCY = 10 SCREEN_BLIT_SCALE_QUALITY = 11 SCREEN_BLIT_COLOR = 12 };
The offset is the distance, in pixels, from the left edge of the source buffer. If this attribute is not specified, then a default of 0 will be used.
The offset is the distance, in pixels, from the top edge of the source buffer. If this attribute is not specified, then a default of 0 will be used.
If this attribute is not specified, then the source buffer width will be used. The horizontal and vertical scale factors don't have to be equal. It is acceptable to specify a source width that is larger than the destination width while the source height is smaller than the destination height, and vice versa.
If this attribute is not specified, then the source buffer height will be used. The horizontal and vertical scale factors don't have to be equal. It is acceptable to specify a source width that is larger than the destination width while the source height is smaller than the destination height, and vice versa.
The offset is the distance, in pixels, from the left edge of the destination buffer. If this attribute is not specified, then a default of 0 will be used.
The offset is the distance, in pixels, from the top edge of the destination buffer. If this attribute is not specified, then a default of 0 will be used.
The width does not have to match the source width. If the destination width is larger, the source rectangle will be stretched. If the destination width is smaller than the source width, the source rectangle will be compressed. If this attribute is not specified, then the destination buffer width will be used.
The height does not have to match the source height. If the destination height is larger, the source rectangle will be stretched. If the destination height is smaller than the source height, the source rectangle will be compressed. If this attribute is not specified, then the destination buffer height will be used.
If this attribute is not specified, then a default of 255 will be used; this default indicates that no global transparency will be applied to the source.
The transparency setting defines how the alpha channel, if present, is used to combine the source and destination pixels. The transparency values must be of type Screen transparency types. If this attribute is not specified, then a default of SCREEN_TRANSPARENCY_NONE will be used.
The scale quality setting defines the type and amount of filtering applied when scaling is required. If the source and destination rectangles are identical in size, the scale quality setting is not used. The scale quality value must be of type Screen scale quality types. If this attribute is not specified, then a default of SCREEN_QUALITY_NORMAL will be used.