client::networking

Function convert_to_pixel_data

Source
fn convert_to_pixel_data(data: Vec<u8>, task: FragmentTask) -> PixelData
Expand description

Convert a Vec<u8> to a PixelData struct.

§Arguments

  • data - A Vec<u8> containing the image data.

§Return

  • PixelData - A PixelData struct containing the image data.

§Details

This function converts the Vec<u8> to a PixelData struct.