/* =========================================================
 * ====                   WARNING                        ===
 * =========================================================
 * The code in this tab has been generated from the GUI form
 * designer and care should be taken when editing this file.
 * Only add/edit code inside the event handlers i.e. only
 * use lines between the matching comment tags. e.g.

 void myBtnEvents(GButton button) { //_CODE_:button1:12356:
     // It is safe to enter your event code here  
 } //_CODE_:button1:12356:
 
 * Do not rename this tab!
 * =========================================================
 */

public void btSpiegelnClick(GButton source, GEvent event) { //_CODE_:btSpiegeln:781683:
  if (opHorizontal.isSelected()) {
    bildNeu = spiegleHorizontal(bildAlt);
  } else {
    bildNeu = spiegleVertikal(bildAlt);
  }
  background(255); // altes Bild wird übermalt
  image(bildNeu, 0, 0); // Bild wird an der Position (0|0) angezeigt
} //_CODE_:btSpiegeln:781683:



// Create all the GUI controls. 
// autogenerated do not edit
public void createGUI(){
  G4P.messagesEnabled(false);
  G4P.setGlobalColorScheme(GCScheme.BLUE_SCHEME);
  G4P.setMouseOverEnabled(false);
  surface.setTitle("Sketch Window");
  btSpiegeln = new GButton(this, 670, 50, 120, 30);
  btSpiegeln.setText("Bild spiegeln");
  btSpiegeln.addEventHandler(this, "btSpiegelnClick");
  grSpiegeln = new GToggleGroup();
  opHorizontal = new GOption(this, 670, 30, 120, 20);
  opHorizontal.setIconAlign(GAlign.LEFT, GAlign.MIDDLE);
  opHorizontal.setText("horizontal");
  opHorizontal.setOpaque(false);
  opVertikal = new GOption(this, 670, 10, 120, 20);
  opVertikal.setIconAlign(GAlign.LEFT, GAlign.MIDDLE);
  opVertikal.setText("vertikal");
  opVertikal.setOpaque(false);
  grSpiegeln.addControl(opHorizontal);
  opHorizontal.setSelected(true);
  grSpiegeln.addControl(opVertikal);
}

// Variable declarations 
// autogenerated do not edit
GButton btSpiegeln; 
GToggleGroup grSpiegeln; 
GOption opHorizontal; 
GOption opVertikal; 
