# brush.h File Reference

## Functions
void | Capturer_brosse (short Debut_X, short Debut_Y, short Fin_X, short Fin_Y, short Effacement)
void | Rotate_90_deg (void)
void | Etirer_brosse (short X1, short Y1, short X2, short Y2)
void | Etirer_brosse_preview (short X1, short Y1, short X2, short Y2)
void | Tourner_brosse (float Angle)
void | Tourner_brosse_preview (float Angle)
void | Remap_brosse (void)
void | Get_colors_from_brush (void)
void | Outline_brush (void)
void | Nibble_brush (void)
void | Capturer_brosse_au_lasso (int Vertices, short *Points, short Effacement)

## Function Documentation

void Capturer_brosse | ( | short | Debut_X,
|  | short | Debut_Y,
|  | short | Fin_X,
|  | short | Fin_Y,
|  | short | Effacement |
| ) |  |  |

References Back_color, Brosse, Brosse_Decalage_X, Brosse_Decalage_Y, Brosse_Hauteur, Brosse_Largeur, Copier_image_dans_brosse(), Erreur, Fore_color, Mettre_Ecran_A_Jour(), Pixel_dans_ecran_courant(), Pixel_Preview, Fenetre_Bouton_scroller::Pos_X, Fenetre_Bouton_scroller::Pos_Y, Principal_Hauteur_image, Principal_Largeur_image, Smear_Brosse, Smear_Brosse_Hauteur, Smear_Brosse_Largeur, TAILLE_MAXI_PINCEAU, Tiling_Decalage_X, and Tiling_Decalage_Y.

Referenced by Brosse_0_5(), and Initialisation_du_programme().

void Rotate_90_deg | ( | void |  | ) |

References Brosse, Brosse_Decalage_X, Brosse_Decalage_Y, Brosse_Hauteur, Brosse_Largeur, Erreur, Rotate_90_deg_LOWLEVEL(), Smear_Brosse_Hauteur, and Smear_Brosse_Largeur.

Referenced by Bouton_Brush_FX(), and Gestion_principale().

void Etirer_brosse | ( | short | X1,
|  | short | Y1,
|  | short | X2,
|  | short | Y2 |
| ) |  |  |

References Brosse, Brosse_Decalage_X, Brosse_Decalage_Y, Brosse_Hauteur, Brosse_Largeur, Erreur, Lit_pixel_dans_brosse(), Smear_Brosse, Smear_Brosse_Hauteur, Smear_Brosse_Largeur, and TAILLE_MAXI_PINCEAU.

Referenced by Etirer_brosse_2_7().

void Etirer_brosse_preview | ( | short | X1,
|  | short | Y1,
|  | short | X2,
|  | short | Y2 |
| ) |  |  |

References Back_color, Brosse_Hauteur, Brosse_Largeur, Limite_Gauche, Limite_Haut, Limite_visible_Bas, Limite_visible_Droite, Lit_pixel_dans_brosse(), Max(), Mettre_Ecran_A_Jour(), Min(), and Pixel_Preview.

Referenced by Etirer_brosse_0_7(), and Etirer_brosse_1_7().

void Tourner_brosse | ( | float | Angle | ) |

References Brosse, Brosse_Decalage_X, Brosse_Decalage_Y, Brosse_Hauteur, Brosse_Largeur, Calculer_quad_texture(), Erreur, Max(), Min(), Smear_Brosse, Smear_Brosse_Hauteur, Smear_Brosse_Largeur, TAILLE_MAXI_PINCEAU, and Transformer_point().

Referenced by Tourner_brosse_2_5().

void Tourner_brosse_preview | ( | float | Angle | ) |

References Brosse_Centre_rotation_X, Brosse_Centre_rotation_Y, Brosse_Hauteur, Brosse_Largeur, Dessiner_quad_texture_preview(), Max(), Mettre_Ecran_A_Jour(), Min(), and Transformer_point().

Referenced by Tourner_brosse_0_5(), and Tourner_brosse_1_5().

void Remap_brosse | ( | void |  | ) |

References Back_color, Brosse, Brosse_Hauteur, Brosse_Largeur, Brouillon_Palette, Lit_pixel_dans_brosse(), Meilleure_couleur(), Fenetre_Bouton_scroller::Pos_X, Fenetre_Bouton_scroller::Pos_Y, and Remap_general_LOWLEVEL().

Referenced by Bouton_Brush_FX(), and Gestion_principale().

void Get_colors_from_brush | ( | void |  | ) |

References Afficher_curseur(), Afficher_ecran(), Afficher_menu(), Backup(), Brosse_Hauteur, Brosse_Largeur, Brouillon_Palette, Calculer_couleurs_menu_optimales(), Demande_de_confirmation(), Effacer_curseur, Lit_pixel_dans_brosse(), Principal_Image_modifiee, Principal_Palette, and Set_palette().

Referenced by Bouton_Brush_FX(), and Gestion_principale().

void Outline_brush | ( | void |  | ) |

References Back_color, Brosse, Brosse_Decalage_X, Brosse_Decalage_Y, Brosse_Hauteur, Brosse_Largeur, Copier_une_partie_d_image_dans_une_autre(), Erreur, Fore_color, Hauteur, Largeur, Pixel_dans_brosse(), Fenetre_Bouton_scroller::Pos_X, Fenetre_Bouton_scroller::Pos_Y, Smear_Brosse, Smear_Brosse_Hauteur, Smear_Brosse_Largeur, and TAILLE_MAXI_PINCEAU.

Referenced by Bouton_Brush_FX(), and Gestion_principale().

void Nibble_brush | ( | void |  | ) |

References Back_color, Brosse, Brosse_Decalage_X, Brosse_Decalage_Y, Brosse_Hauteur, Brosse_Largeur, Copier_une_partie_d_image_dans_une_autre(), Erreur, Hauteur, Largeur, Pixel_dans_brosse(), Fenetre_Bouton_scroller::Pos_X, Fenetre_Bouton_scroller::Pos_Y, Smear_Brosse, Smear_Brosse_Hauteur, Smear_Brosse_Largeur, and TAILLE_MAXI_PINCEAU.

Referenced by Bouton_Brush_FX(), and Gestion_principale().

void Capturer_brosse_au_lasso | ( | int | Vertices,
|  | short * | Points,
|  | short | Effacement |
| ) |  |  |

References Back_color, Brosse, Brosse_Decalage_X, Brosse_Decalage_Y, Brosse_Hauteur, Brosse_Largeur, Erreur, Fore_color, Limite_Bas, Limite_Droite, Limite_Gauche, Limite_Haut, Lit_pixel_dans_brosse(), Lit_pixel_dans_ecran_courant(), Pixel_dans_brosse(), Pixel_dans_ecran_courant(), Pixel_figure, Pixel_figure_Dans_brosse(), Polyfill_General(), Fenetre_Bouton_scroller::Pos_X, Fenetre_Bouton_scroller::Pos_Y, Principal_Hauteur_image, Principal_Largeur_image, Smear_Brosse, Smear_Brosse_Hauteur, Smear_Brosse_Largeur, TAILLE_MAXI_PINCEAU, Tiling_Decalage_X, Tiling_Decalage_Y, and Tracer_ligne_General().

Referenced by Polybrosse_12_8().