We demonstrate real-time microscope image gating to an arbitrary position in the cycle of the beating heart of a zebrafish embryo. We show how this can be used for high-precision prospective gating of fluorescence image slices of the moving heart. We also present initial results demonstrating the application of this technique to 3-D structural imaging of the beating embryonic heart.