View bindings.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* automatically generated by rust-bindgen 0.64.0 */ | |
#![allow(missing_docs)] | |
#![allow(non_upper_case_globals)] | |
#![allow(non_camel_case_types)] | |
#![allow(non_snake_case)] | |
#![allow(clippy::upper_case_acronyms)] | |
#[repr(C)] | |
#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] |
View test_image.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Demo : https://www.youtube.com/watch?v=a3IF8Yu0BWM | |
require "webrick" | |
class ImageReturn < WEBrick::HTTPServlet::AbstractServlet | |
def do_GET request, response | |
response.status = 200 | |
response['Content-Type'] = 'image/png' | |
response.body = $GraphicsImage.to_s | |
end | |
end |