If you by any chance also think this would be a good thing write a quick comment please
Dear Roblox Developers,
Currently, Roblox cameras offer limited capabilities regarding image capture. We propose the implementation of a feature that would allow cameras to capture RGB data from a specific area of the screen and store this information.
This capability would enable the creation of personalized and detailed images within the Roblox environment, without the need for complex scripting. An additional feature would be the ability to load these captured data into an image object, allowing the application of existing visual effects within Roblox, such as blur, bloom, particles, 3D models, and textures, in a consistent and easy manner.
Furthermore, we would like to propose the inclusion of a parameter to define the resolution factor of the captured image, enabling the creation of images with varying levels of detail and styles, including the option to generate pixelated images.
Thank you for your attention and consideration to our request. We are available to discuss this proposal in more detail.
Down there i let some examples of what can be implemented with the tools we already have.
Interesting, with that contend ID it means that i could for example store the image data somehow?
edit: I think the current API allows you to trigger the existing screenshot/video tool, but it does not provide the ability to directly manipulate image data, save it to an in-game object, or control pixel-level details like resolution for artistic effects. Your request proposes a more powerful, low-level feature that is not currently part of the CaptureService’s capabilities.
I haven’t tried, but based on the documentation, it seems that way. I recommend reading through all of the API events/call backs.
And now you know where you start looking with Roblox announcements on this forum. I’m sure there’s a post here by staff with the name “Captures” with loads of info
And from what i have read in there and on “CaptureService | Documentation - Roblox Creator Hub” i dont think its currently possible to do what i asked that is being able of capturing the raw data from that capture RGB values of each pixel, what parts Models or meshes where in that photo how much of a certain object is on the photo we need some actual well made api not just letting us print the user screen and use as temporary texture dont you think we deserve more?
I think it was possible using the temporary ID before, but they disabled it. Not fully sure, but I tried changing the images before and I wasn’t able to, but there were several guides that showed it was possible.
Here’s a post from when it was released which shows you used to be able to edit it using EditabeImages:
-- Services
local UserInputService = game:GetService("UserInputService")
local AssetService = game:GetService("AssetService")
local CaptureService = game:GetService("CaptureService")
local HttpService = game:GetService("HttpService")
-- Function to capture screenshot
local function readCapturedScreenshot(callback)
CaptureService:CaptureScreenshot(function(contentId)
local editableImage = AssetService:CreateEditableImageAsync(contentId)
editableImage.Parent = workspace
-- Limit resolution to 1024px max
if editableImage.Size.X > 1024 then
editableImage:Resize(Vector2.new(1024, 1024 * (editableImage.Size.Y / editableImage.Size.X)))
end
if editableImage.Size.Y > 1024 then
editableImage:Resize(Vector2.new(1024 * (editableImage.Size.X / editableImage.Size.Y), 1024))
end
-- Read pixels
local screenshotData = editableImage:ReadPixels(Vector2.new(), editableImage.Size)
callback(screenshotData)
end)
end
-- Key press handler
UserInputService.InputBegan:Connect(function(input, gameProcessed)
if not gameProcessed and input.KeyCode == Enum.KeyCode.F then
print("Capturing screenshot...")
readCapturedScreenshot(function(data)
print("Screenshot captured! Data length:", string.len(HttpService:JSONEncode(data)))
end)
end
end)