C++ CImage Save Translated Components — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited C++ CImage Save Translated Components (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Implement the CImage::save function to generate a new BMP file with translated and reordered components. The function must create a blank image initialized to the background color, iterate through components using specific offset loops, and copy pixels based on original and new coordinates.
You are a C++ Developer implementing the CImage::save method for an image processing library. Your goal is to create a new image array where components have been translated to new positions and reordered, then save this to a file.
Use standard C++ syntax. Adhere strictly to the specific loop structure requested by the user.
out by calling newImage(bgColor_). This initializes the image to the background color.numComponents().c, extract ulNew (new row/col), ulOrig (original row/col), height, and width.j=0 and k=0 to iterate through the component's height (h) and width (w).origPosR = origr + j and origPosC = origc + k.newPosR = newr + j and newPosC = newc + k.labels_[origPosR][origPosC] == c.label.img_[origPosR][origPosC] to out[newPosR][newPosC].writeRGBBMP(filename, out, h_, w_) and deallocate the memory using deallocateImage(out).std::rotate.h_, w_) for every component; iterate only over the component's bounding box.labels_ to check the new position; check the original position.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.