[{"data":1,"prerenderedAt":348},["ShallowReactive",2],{"/vid/capture-image":3,"/vid/capture-image-surround":337},{"id":4,"title":5,"body":6,"description":305,"extension":306,"meta":307,"navigation":324,"path":333,"seo":334,"stem":335,"__hash__":336},"content/vid/capture-image.md","Vid Extension Dictionary: capture-image",{"type":7,"value":8,"toc":294},"minimark",[9],[10,11,15,16,15,26,51,55,58,61,233,255,258],"div",{"className":12,"id":14},[13],"dict_entry","capture-image","\n  ",[17,18,20,21,15],"h3",{"id":19},"vidcapture-image","\n    ",[22,23,25],"a",{"href":24},"#capture-image","vid:capture-image",[27,28,32],"h4",{"id":29,"className":30},"vidcapture-image-width-height",[31],"section-heading",[22,33,20,37,15],{"className":34,"href":36},[35],"section-anchor","#----vidcapture-image-width-height--",[38,39,42,43,47,48],"span",{"className":40},[41],"prim_example","vid:capture-image ",[44,45,46],"i",{},"width"," ",[44,49,50],{},"height",[52,53,54],"p",{},"Captures an image from the currently selected active source.",[52,56,57],{},"If width and height are not specified, the image is captured at the current source resolution.",[52,59,60],{},"Example:",[62,63,64],"pre",{},[65,66,67,73,74,47,79,83,84,87,47,93,97,99,100,105,99,107,111,99,113,118,119,121,122,126,121,128,47,132,47,136,47,139,143,121,145,47,149,47,152,47,157,160,162,163,121,165,47,169,47,174,47,178,118,183,185,186,190,185,192,196,185,198,47,201,47,204,207,185,209,47,212,47,215,47,218,221,223,224,226,227],"code",{},[38,68,72],{"className":69},[70,71],"token","keyword","extensions"," [ ",[38,75,78],{"className":76},[70,77],"variable","vid",[38,80,82],{"className":81},[70,77],"bitmap"," ]",[85,86],"br",{},[38,88,90,92],{"className":89},[70,71],[85,91],{},"to",[38,94,96],{"className":95},[70,77],"capture",[85,98],{},"  ",[38,101,104],{"className":102},[70,103],"comment","; capture an image if a video source is open,",[85,106],{},[38,108,110],{"className":109},[70,103],"; have the user select a camera if no video source found",[85,112],{},[38,114,117],{"className":115},[70,116],"command","carefully"," [",[85,120],{},"    ",[38,123,125],{"className":124},[70,103],"; when camera open, take an image",[85,127],{},[38,129,131],{"className":130},[70,116],"let",[38,133,135],{"className":134},[70,77],"image",[38,137,25],{"className":138},[70,77],[38,140,142],{"className":141},[70,103],"; returns image suitable for use with bitmap extension",[85,144],{},[38,146,148],{"className":147},[70,77],"bitmap:copy-to-drawing",[38,150,135],{"className":151},[70,77],[38,153,156],{"className":154},[70,155],"number","0",[38,158,156],{"className":159},[70,155],[85,161],{},"  ] [",[85,164],{},[38,166,168],{"className":167},[70,116],"if",[38,170,173],{"className":171},[70,172],"reporter","error-message",[38,175,177],{"className":176},[70,172],"=",[38,179,182],{"className":180},[70,181],"string","\"Extension exception: vid: no selected source\"",[85,184],{},"      ",[38,187,189],{"className":188},[70,77],"vid:camera-select",[85,191],{},[38,193,195],{"className":194},[70,77],"vid:start",[85,197],{},[38,199,131],{"className":200},[70,116],[38,202,135],{"className":203},[70,77],[38,205,25],{"className":206},[70,77],[85,208],{},[38,210,148],{"className":211},[70,77],[38,213,135],{"className":214},[70,77],[38,216,156],{"className":217},[70,155],[38,219,156],{"className":220},[70,155],[85,222],{},"    ]",[85,225],{},"  ]",[38,228,230,232],{"className":229},[70,71],[85,231],{},"end",[52,234,235,236,238,239,254],{},"If you want to capture images at a different resolution, simply replace ",[65,237,25],{}," with, e.g., ",[65,240,241,242,47,245,47,249,253],{},"(",[38,243,25],{"className":244},[70,77],[38,246,248],{"className":247},[70,155],"640",[38,250,252],{"className":251},[70,155],"480",")",".",[52,256,257],{},"Errors:",[259,260,261,285],"ul",{},[262,263,264,265,271,272,275,276,275,279,282,283,254],"li",{},"Message ",[65,266,267],{},[38,268,270],{"className":269},[70,181],"\"vid: no selected source\"",": There is no currently selected video source. Select a source with ",[65,273,274],{},"vid:movie-open",", ",[65,277,278],{},"vid:movie-select",[65,280,281],{},"vid:camera-open",", or ",[65,284,189],{},[262,286,264,287,293],{},[65,288,289],{},[38,290,292],{"className":291},[70,181],"\"vid: invalid dimensions\"",": The selected dimensions are invalid (one of the dimensions is zero or negative).",{"title":295,"searchDepth":296,"depth":297,"links":298},"",5,3,[299],{"id":19,"depth":297,"text":300,"children":301},"\n    vid:capture-image\n  ",[302],{"id":29,"depth":303,"text":304},4,"\n    vid:capture-image width height\n  ","Documentation for the capture-image primitive.","md",{"source":308,"metadataOutputPath":309,"projectConfig":310,"language":317,"inheritFrom":325,"output":324,"version":311,"layout":326,"dictionaryDisplayName":327,"dictionaryHomeDirectory":328,"indexFileURI":329,"currentItemId":14,"currentItemLabel":25,"primRoot":78,"icon":330,"extensionName":331,"assetsRoot":312},"../../external/extensions/vid/vid/capture-image.md","content/vid/capture-image.metadata.yaml",{"version":311,"projectRoot":254,"scanRoot":312,"outputRoot":313,"defaults":314,"engine":320,"partials":321,"dedupeIdenticalDiskWrites":324},"7.0.4","/home/runner/work/Helio/Helio/external/extensions/vid","content",{"inheritFrom":315,"language":317,"output":318,"extension":306,"title":319,"version":311},[316],0,"en",false,"NetLogo User Manual","mustache",{"directoryPaths":322,"extensions":323},[254],[320,306],true,[316],"catalog","Vid Extension Dictionary","/vid.html","/_index/extensions/vid.txt","i-lucide-video",{"shortName":78,"fullName":332},"Vid","/vid/capture-image",{"title":5,"description":305},"vid/capture-image","d83LDG5SBTB9g4t-glvGidgC1EEcRXcs59DEoFBOnz0",[338,343],{"title":339,"path":340,"stem":341,"description":342},"Vid Extension Dictionary: camera-select","/vid/camera-select","vid/camera-select","Documentation for the camera-select primitive.",{"title":344,"path":345,"stem":346,"description":347},"Vid Extension Dictionary: close","/vid/close","vid/close","Documentation for the close primitive.",1777657905928]