///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// private void updateInitialImage() { convertValues(); if (stripType == 0) { SinClass1.sin_f(numberOfSin1Value / 10, phaseShift1Value, imageWidth, imageHeight, stripOrientation, pc1); } else if (stripType == 1) { } else if (stripType == 2) { SinClass1.drawLines(numberOfSin1Value / 10, phaseShift1Value, imageWidth, imageHeight, stripOrientation, pc1); } else if (stripType == 3) { SinClass1.drawDitheredLines(numberOfSin1Value / 10, phaseShift1Value, imageWidth, imageHeight, stripOrientation, pc1); } pc1.Invalidate(); pc1.Update(); }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// private void imageTaken(Image newImage) { Thread.Sleep(1000); imageNumber++; if (oneImageOfSeries != null) { oneImageOfSeries(newImage, imageNumber); } if (imageNumber >= numberOfImageInSeries) { // ShooterSingleton.imageCaptured -= imageTaken; } else { if (imageNumber == 1) { if (stripType == 0) { SinClass1.sin_f(numberOfSin1Value / 10, phaseShift2Value, imageWidth, imageHeight, stripOrientation, pc1); } else if (stripType == 2) { SinClass1.drawLines(numberOfSin1Value / 10, phaseShift2Value, imageWidth, imageHeight, stripOrientation, pc1); } else if (stripType == 3) { SinClass1.drawDitheredLines(numberOfSin1Value / 10, phaseShift2Value, imageWidth, imageHeight, stripOrientation, pc1); } } else if (imageNumber == 2) { if (stripType == 0) { SinClass1.sin_f(numberOfSin1Value / 10, phaseShift3Value, imageWidth, imageHeight, stripOrientation, pc1); } else if (stripType == 2) { SinClass1.drawLines(numberOfSin1Value / 10, phaseShift3Value, imageWidth, imageHeight, stripOrientation, pc1); } else if (stripType == 3) { SinClass1.drawDitheredLines(numberOfSin1Value / 10, phaseShift3Value, imageWidth, imageHeight, stripOrientation, pc1); } } else if (imageNumber == 3) { if (stripType == 0) { SinClass1.sin_f(numberOfSin1Value / 10, phaseShift4Value, imageWidth, imageHeight, stripOrientation, pc1); } else if (stripType == 2) { SinClass1.drawLines(numberOfSin1Value / 10, phaseShift4Value, imageWidth, imageHeight, stripOrientation, pc1); } else if (stripType == 3) { SinClass1.drawDitheredLines(numberOfSin1Value / 10, phaseShift4Value, imageWidth, imageHeight, stripOrientation, pc1); } } else if (imageNumber == 4) { if (stripType == 0) { SinClass1.sin_f(numberOfSin2Value / 10, phaseShift1Value, imageWidth, imageHeight, stripOrientation, pc1); } else if (stripType == 2) { SinClass1.drawLines(numberOfSin2Value / 10, phaseShift1Value, imageWidth, imageHeight, stripOrientation, pc1); } else if (stripType == 3) { SinClass1.drawDitheredLines(numberOfSin2Value / 10, phaseShift1Value, imageWidth, imageHeight, stripOrientation, pc1); } } else if (imageNumber == 5) { if (stripType == 0) { SinClass1.sin_f(numberOfSin2Value / 10, phaseShift2Value, imageWidth, imageHeight, stripOrientation, pc1); } else if (stripType == 2) { SinClass1.drawLines(numberOfSin2Value / 10, phaseShift2Value, imageWidth, imageHeight, stripOrientation, pc1); } else if (stripType == 3) { SinClass1.drawDitheredLines(numberOfSin2Value / 10, phaseShift2Value, imageWidth, imageHeight, stripOrientation, pc1); } } else if (imageNumber == 6) { if (stripType == 0) { SinClass1.sin_f(numberOfSin2Value / 10, phaseShift3Value, imageWidth, imageHeight, stripOrientation, pc1); } else if (stripType == 2) { SinClass1.drawLines(numberOfSin2Value / 10, phaseShift3Value, imageWidth, imageHeight, stripOrientation, pc1); } else if (stripType == 3) { SinClass1.drawDitheredLines(numberOfSin2Value / 10, phaseShift3Value, imageWidth, imageHeight, stripOrientation, pc1); } } else if (imageNumber == 7) { if (stripType == 0) { SinClass1.sin_f(numberOfSin2Value / 10, phaseShift4Value, imageWidth, imageHeight, stripOrientation, pc1); } else if (stripType == 2) { SinClass1.drawLines(numberOfSin2Value / 10, phaseShift4Value, imageWidth, imageHeight, stripOrientation, pc1); } else if (stripType == 3) { SinClass1.drawDitheredLines(numberOfSin2Value / 10, phaseShift4Value, imageWidth, imageHeight, stripOrientation, pc1); } } pc1.Invalidate(); pc1.Update(); Thread.Sleep(1000); // ShooterSingleton.getImage(); } }