Take a look at this example program on the website. It does overlays and thresholding in VB.
http://venus.ni.com/stage/we/niepd_web_display.DISPLAY_EPD4?p_answer=&p_guid=B45EACE3E8E356A4E034080020E74861&p_node=DZ52505&p_rank=&p_source=Internal&p_submitted=N